Skip to content

[WSO2 Cloud] [Refactoring] Move unported features to src/unported and flatten the app shell to Cloud - #983

Open
SandaminiM wants to merge 2 commits into
wso2:devant-migrationfrom
SandaminiM:remove-gating-p2
Open

SandaminiM wants to merge 2 commits into
wso2:devant-migrationfrom
SandaminiM:remove-gating-p2

Conversation

@SandaminiM

Copy link
Copy Markdown

Description

This PR covers steps 3 and 4 of the refactoring plan: Move unported features and App shell.

Cloud behaviour remains unchanged, except for a few URLs that previously led to broken, stub-backed screens and now redirect to the relevant home page (listed below). The WIP build still type-checks and builds, but its WIP-only navigation has been removed.

Move unported features (Commit 1)

  • Moved features that the Cloud BFF doesn't support yet (their API calls are still ni() stubs) into src/unported/, preserving the existing directory structure.

    • 79 pages: Cloud-hidden pages, routed pages backed by stubs (access control, delivery insights, RAG, scaling, and external CI), and unrouted Alerts/Metrics pages.
    • 227 supporting files: Components, hooks, utilities, constants, and assets used only by those pages, along with 20 utility tests.
  • Used git mv to preserve file history, with changes limited to import paths. At this stage, the Cloud and WIP production bundles were identical, chunk for chunk.

  • Added an ESLint rule preventing live code from importing from src/unported/. Unported code can still import live code.

  • Deleted the unrouted and unused PrivacyPolicy page.

Flatten the app shell (Commit 2)

  • Routes

    • Replaced 17 Cloud-hidden route blocks with three catch-all routes for org, project, and integration levels. Unknown or retired URLs now redirect to the relevant home page instead of rendering a blank screen.
    • Removed routes that were only reachable by URL and led to stub-backed screens: RAG, external CI, scaling, role/group details, and integration-level access control. These URLs now redirect.
    • Removed all remaining imports of src/unported/ from live code.
  • Navigation

    • Simplified navigation to a single Cloud nav tree with 30 entries, removing the hidden-ID lists and forCloud() filter.
  • App layout

    • Removed WIP-only sidebar sections and header items, including Copilot, Upgrade, Feature Preview, and External CI.
    • Removed the org-switch menu, which could no longer be opened.
  • Settings

    • Removed WIP-only settings sections, leaving only those available in Cloud.
  • Moved to src/unported/

    • Copilot, UpgradeButton, Feature Preview, and useExternalCi.
    • Removed the inactive "Ask Copilot" action from the AI Integration Builder.
  • Kept intentionally

    • /change-password and its ProtectedRoute redirect remain so WIP local login can still enforce a required password change. They'll be removed alongside WIP authentication in a later step.

Not included in this PR

Dead code identified during this work that was already unused before these changes—such as mock data, LoginForm, PageHeader, and unused nav.ts exports—will be removed in a separate cleanup commit as part of the later steps.

resolves https://github.com/wso2-enterprise/integration-engineering/issues/3111

Goals

Describe the solutions that this feature/fix will introduce to resolve the problems described above

Approach

Describe how you are implementing the solutions. Include an animated GIF or screenshot if the change affects the UI (email documentation@wso2.com to review all UI text). Include a link to a Markdown file or Google doc if the feature write-up is too long to paste here.

User stories

Summary of user stories addressed by this change>

Release note

Brief description of the new feature or bug fix as it will appear in the release notes

Documentation

Link(s) to product documentation that addresses the changes of this PR. If no doc impact, enter “N/A” plus brief explanation of why there’s no doc impact

Training

Link to the PR for changes to the training content in https://github.com/wso2/WSO2-Training, if applicable

Certification

Type “Sent” when you have provided new/updated certification questions, plus four answers for each question (correct answer highlighted in bold), based on this change. Certification questions/answers should be sent to certification@wso2.com and NOT pasted in this PR. If there is no impact on certification exams, type “N/A” and explain why.

Marketing

Link to drafts of marketing content that will describe and promote this feature, including product page changes, technical articles, blog posts, videos, etc., if applicable

Automation tests

  • Unit tests

    Code coverage information

  • Integration tests

    Details about the test cases and coverage

Security checks

Samples

Provide high-level details about the samples related to this feature

Related PRs

List any other related PRs

Migrations (if applicable)

Describe migration steps and platforms on which migration has been tested

Test environment

List all JDK versions, operating systems, databases, and browser/versions on which this feature/fix was tested

Learning

Describe the research phase and any blog posts, patterns, libraries, or add-ons you used to solve the problem.

@coderabbitai

coderabbitai Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 9442d67b-8c9d-462f-b500-787d1edf3e73

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@SandaminiM

Copy link
Copy Markdown
Author

The changes in this PR has been reviewed by Claude. Find the review results in the following artifacts:

@SandaminiM
SandaminiM requested review from sm1990 and a balanced review from Copilot October 9, 2026 10:01

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot wasn't able to review this pull request because it exceeds the maximum number of files (300). Try reducing the number of changed files and requesting a review from Copilot again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants