Skip to content

Render the home page at /my-data in AI mode - #38077

Merged
Rohit0301 merged 2 commits into
mainfrom
Rohit0301/my-data-page-display-fix
Nov 18, 2026
Merged

Rohit0301 merged 2 commits into
mainfrom
Rohit0301/my-data-page-display-fix

Conversation

@Rohit0301

@Rohit0301 Rohit0301 commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Describe your changes:

In AI mode, /my-data was a routed My Data & Following page, duplicating the personal-space modal opened from the user menu. Because classic mode lands on /my-data (sidebar Home, post-sign-in), and switching modes pushes / on top of that entry, pressing browser Back after switching to AI mode (Home → Explore → Back → Back) surfaced that standalone My Data page.

This PR removes the AI-mode /my-data route so the path behaves as in classic mode: / and /my-data both render the home landing page.

  • personalSpace.module.tsx: drop the /my-data route (My Data stays modal-only); remove MY_DATA from PERSONAL_SPACE_ROUTES.
  • /my-data now falls through to the shell's page table, which already maps it to the same MyDataPage that / renders — no redirect, so hash links such as /my-data#notification/alerts keep opening their modal.
  • home.module.tsx: Home also owns /my-data (additionalPrefixes), so the sidebar Home item is active there.
  • InboxIconButton: no longer treats /my-data as an inbox path.

Type of change:

  • Bug fix

Tests:

Use cases covered

  • AI mode: visiting /my-data shows the home landing page with Home highlighted.
  • AI mode: Classic /my-data history entry → switch to AI → Explore → Back lands on home, not the old My Data page.
  • AI mode: user menu → My Data still opens the personal-space modal.
  • Classic mode: /my-data unchanged.

Unit tests

  • home.module.test.ts — Home is the active module at / and /my-data.
  • InboxIconButton.test.tsx — updated route mock.
  • AppModeRoutes.test.tsx (unchanged) already asserts /my-data is served from the classic page table.
  • yarn test src/components/platform/ai-shell src/components/discovery — 274 suites, 2869 tests pass.

Playwright (UI) tests

  • AppModeUrlHandling.spec.ts — /my-data in AI mode renders the home landing page with Home active; removed the "Home not highlighted on /my-data" step.
  • ProfileDetails.spec.ts — dropped the routed /my-data permission-gate step (My Data is modal-only).
  • Removed VisualRegression/aiModePages.spec.ts and its ai-my-data baselines (the page no longer exists as a route).
  • Ran locally at 43961c4a76f (chromium, --no-deps, against yarn start on :3000), only the changed tests — 3 passed:
    • AppModeUrlHandling.spec.ts › serves the home landing page at /my-data in AI mode
    • AppModeUrlHandling.spec.ts › opens the home landing page from the sidebar Home item in AI mode
    • ProfileDetails.spec.ts › a user without USER view permission is blocked across the personal space
  • yarn lint:playwright passes with 0 errors.

Playwright results

Manual testing performed

  1. yarn start against a local backend on :8585.
  2. Classic → Home (/my-data) → switch to AI mode → Explore → Back → Back: lands on the home page.
  3. AI mode: /my-data shows home; user menu → My Data opens the modal.

UI screen recording:

ai-my-data-home.mov

Checklist:

  • I have read the CONTRIBUTING document.
  • I have added tests (unit / integration / Playwright as applicable) and listed them above.

🤖 Generated with Claude Code

RetriggerView in GreptileConfidence Score: 5/5

This follow-up appears safe to merge.

Summary

In AI mode, /my-data now shows the home landing page, while My Data remains available through the user-menu modal.

  • AI mode shows the Home page at /my-data.

No new issues found in this follow-up.

Reviews (7) · Last reviewed commit: "Describe the /my-data fall-through in th..." · Reviewed by Greptile

My Data & Following lives in the personal-space modal in AI mode, so the
routed /my-data page is removed. /my-data now falls through to the same
landing page / renders, as in classic mode, and the sidebar Home item owns
both paths. A classic /my-data history entry no longer surfaces the old
My Data page on browser Back after switching to AI mode.
@Rohit0301
Rohit0301 requested a review from a team as a code owner November 18, 2026 06:00
@Rohit0301
Rohit0301 requested a review from karanh37 November 18, 2026 06:00
@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically.

Maintainers can bypass this check by adding the skip-pr-checks label.

@gitar-bot

gitar-bot Bot commented Nov 18, 2026

Copy link
Copy Markdown
Code Review ✅ Approved 🟡 Medium risk 1 closed / 1 findings

Removing the AI-mode /my-data route changes where direct and history navigation lands; users could reach Home instead of the former My Data page.

Removes the AI-mode /my-data routed page so the path renders the home landing page, matching classic mode, while My Data stays available as the user-menu modal. A comment that wrongly described a redirect to / has been corrected, and no open issues remain.

✅ 1 closed
✅ Quality: Comment says AppModeRoutes redirects /my-data to /, but nothing does

📄 openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/personalSpace.module.tsx:42-43
The updated JSDoc in personalSpace.module.tsx says "AppModeRoutes redirects /my-data to /". AppModeRoutes.tsx has no such redirect. The PR description says so too: /my-data falls through to the shell's page table, which renders MyDataPage there directly. That is the reason hash links like /my-data#notification/alerts keep working. Someone who trusts this comment could "restore" a redirect that breaks those hash links, or go looking for a redirect that isn't there. Change the comment to describe the fall-through.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@Rohit0301

Copy link
Copy Markdown
Contributor Author

Local Playwright run of the changed tests (commit 43961c4, chromium, --no-deps, against yarn start on :3000): 3 passed.

Playwright results

@Rohit0301
Rohit0301 merged commit b450bfa into main Nov 18, 2026
60 of 64 checks passed
@Rohit0301
Rohit0301 deleted the Rohit0301/my-data-page-display-fix branch November 18, 2026 06:44
shah-harshit added a commit that referenced this pull request Nov 18, 2026
* test(playwright): refresh stale 2.1 visual baselines and fix shell menu scenes

Refresh 32 baselines from the 2.1 nightly (run 44266671648) actuals. Every
diff traces to an intended change that arrived with the main merge: Tableau
connected-app auth option (#37084), 400px entity summary panel (#37888),
unified CopyButton (#37953), new Insights/AdvancedSearch icons (#37973),
Data Estate connector counts (#37910) and the users Name/Email columns
(#37127, #37998).

shell-profile-menu and shell-mode-menu waited for my-data-page, which
#38077 removed from /my-data in AI mode; wait for home-landing-page.

* test(playwright): complete 2.1 shell and expanded Tableau baselines
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.

3 participants