Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Aunshon
Copy link
Collaborator

@Aunshon Aunshon commented Oct 7, 2025

Changes proposed in this Pull Request:

Remove pro feature vue codes.

Closes

How to test the changes in this Pull Request:

Check ld pro feature page and check if anything breaks for this pr.

Changelog entry

Not needed

Summary by CodeRabbit

  • Chores
    • Removed the PRO Features item from the admin toolbar.
    • Removed the PRO Features submenu from the admin menu.
    • Removed the Premium page and its admin route, eliminating the promotional/upgrade screens.

@Aunshon Aunshon self-assigned this Oct 7, 2025
@Aunshon Aunshon added Needs: Testing This requires further testing Needs: Dev Review It requires a developer review and approval labels Oct 7, 2025
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Oct 7, 2025

Walkthrough

Removes the Premium/PRO UI: deletes the Vue Premium.vue page, unregisters the /premium SPA route, and removes the PRO Features admin toolbar/menu entries. Other admin menus, routes, and public APIs remain unchanged.

Changes

Cohort / File(s) Summary of changes
Admin toolbar & menu (PHP)
includes/Admin/AdminBar.php, includes/Admin/Menu.php
Removed the commented/conditional additions of the “PRO Features” / dokan-pro-features admin toolbar item and the conditional “PRO Features” submenu for non‑Pro installs; other menu items unchanged.
SPA assets / routes (PHP)
includes/Assets.php
Removed the Vue SPA admin route registration for path /premium from gets_vue_admin_routes.
Vue Premium page removal
src/admin/pages/Premium.vue
Deleted the Premium.vue single-file component (template, script, styles, data, methods, imports).
Admin router (JS)
src/admin/router/index.js
Disabled/commented out the Premium route import and its dokan_add_route registration; Premium is no longer registered in the admin router.

Sequence Diagram(s)

sequenceDiagram
    actor AdminUser as Admin User
    participant SPA as Admin SPA Router
    participant Menu as PHP Admin Menu
    participant Toolbar as Admin Toolbar

    AdminUser->>Menu: Request admin menu
    Menu-->>AdminUser: Menu without "PRO Features"
    AdminUser->>Toolbar: Request admin toolbar
    Toolbar-->>AdminUser: Toolbar without "PRO Features"
    AdminUser->>SPA: Navigate to /premium
    Note right of SPA: Route removed/disabled
    SPA-->>AdminUser: 404 or redirect (no Premium component)
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related PRs

Suggested labels

Dev Review Done

Suggested reviewers

  • mrabbani

Poem

A rabbit nibble, soft and quick,
Snipped the Premium page—clean and slick.
Menus lighter, routes set free,
Hops and carrots, joy for me.
Thump-thump code, a tiny trick. 🐰

Pre-merge checks and finishing touches

❌ Failed checks (1 warning, 1 inconclusive)
Check name Status Explanation Resolution
Description Check ⚠️ Warning The pull request description includes a brief summary of the proposed change and closes the relevant issue, but it omits the required checklist of standards and testing items, lacks the recommended Related Pull Request(s) section with links, and does not provide Before/After change details as specified by the repository template. Please update the description to include the top-level checklist for coding standards and testing, add a Related Pull Request(s) section linking PR #2825, and supply Before and After change descriptions to fully adhere to the repository’s template.
Linked Issues Check ❓ Inconclusive The changes correctly remove all Vue Pro feature code in line with issue #959, but the PR does not explicitly verify that the React replacement from PR #2825 is available prior to removal, leaving a dependency unconfirmed within this changeset. Please confirm that PR #2825 or equivalent React-based Pro feature implementation is already merged into the target branch before proceeding with this removal to avoid breaking the feature.
✅ Passed checks (3 passed)
Check name Status Explanation
Title Check ✅ Passed The pull request title clearly describes the removal of the Vue Pro features page and accompanying routing updates, matching the main changes in the codebase without extraneous details or noise.
Out of Scope Changes Check ✅ Passed All file modifications directly relate to removing the Vue Pro features page and its associated routes or menu entries, and no unrelated or extraneous code changes are present in this pull request.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch update/remove-vue-pro-page

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 779638e and 7d495ef.

📒 Files selected for processing (1)
  • src/admin/router/index.js (0 hunks)
💤 Files with no reviewable changes (1)
  • src/admin/router/index.js
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
  • GitHub Check: e2e tests (2, 3)
  • GitHub Check: e2e tests (3, 3)
  • GitHub Check: api tests (1, 1)
  • GitHub Check: e2e tests (1, 3)

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between fe18fba and 779638e.

⛔ Files ignored due to path filters (23)
  • assets/images/premium/Cédric-Lefrancq.jpeg is excluded by !**/*.jpeg
  • assets/images/premium/Morten-J.-Christensen.jpg is excluded by !**/*.jpg
  • assets/images/premium/[email protected] is excluded by !**/*.png
  • assets/images/premium/cedric-lefrancq.jpeg is excluded by !**/*.jpeg
  • assets/images/premium/david-gaz.jpeg is excluded by !**/*.jpeg
  • assets/images/premium/[email protected] is excluded by !**/*.png
  • assets/images/premium/[email protected] is excluded by !**/*.png
  • assets/images/premium/gaurantee-thumb.png is excluded by !**/*.png
  • assets/images/premium/[email protected] is excluded by !**/*.png
  • assets/images/premium/melissa.jpg is excluded by !**/*.jpg
  • assets/images/premium/payment-options.png is excluded by !**/*.png
  • assets/images/premium/quote-icon.png is excluded by !**/*.png
  • assets/images/premium/[email protected] is excluded by !**/*.png
  • assets/images/premium/[email protected] is excluded by !**/*.png
  • assets/images/premium/[email protected] is excluded by !**/*.png
  • assets/images/premium/[email protected] is excluded by !**/*.png
  • assets/images/premium/[email protected] is excluded by !**/*.png
  • assets/images/premium/[email protected] is excluded by !**/*.png
  • assets/images/premium/[email protected] is excluded by !**/*.png
  • assets/images/premium/[email protected] is excluded by !**/*.png
  • assets/images/premium/[email protected] is excluded by !**/*.png
  • assets/images/premium/[email protected] is excluded by !**/*.png
  • assets/images/premium/[email protected] is excluded by !**/*.png
📒 Files selected for processing (5)
  • includes/Admin/AdminBar.php (0 hunks)
  • includes/Admin/Menu.php (0 hunks)
  • includes/Assets.php (0 hunks)
  • src/admin/pages/Premium.vue (0 hunks)
  • src/admin/router/index.js (2 hunks)
💤 Files with no reviewable changes (4)
  • includes/Assets.php
  • includes/Admin/AdminBar.php
  • src/admin/pages/Premium.vue
  • includes/Admin/Menu.php
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
  • GitHub Check: e2e tests (2, 3)
  • GitHub Check: e2e tests (3, 3)
  • GitHub Check: e2e tests (1, 3)
  • GitHub Check: api tests (1, 1)

@mrabbani mrabbani added Needs: Author Reply and removed Needs: Dev Review It requires a developer review and approval labels Oct 14, 2025
@Aunshon Aunshon added Needs: Dev Review It requires a developer review and approval and removed Needs: Author Reply labels Oct 14, 2025
@mrabbani mrabbani added Dev Review Done and removed Needs: Dev Review It requires a developer review and approval labels Oct 20, 2025
@dev-shahed dev-shahed added 🎉 QA Approved This PR is approved by the QA team and removed Needs: Testing This requires further testing labels Oct 20, 2025
@MdAsifHossainNadim MdAsifHossainNadim merged commit effa248 into develop Oct 22, 2025
1 of 6 checks passed
@MdAsifHossainNadim MdAsifHossainNadim deleted the update/remove-vue-pro-page branch October 22, 2025 06:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants