Repository navigation
Fixes #37761: Replace the in-app product tour with a Storylane demo - #37765
Conversation
The tour that walked the real pages on recorded fixtures stopped working when the landing page was redesigned. It is replaced by an interactive Storylane demo, shown in the Learning Center's resource player. Help > Tour, in the classic navbar and the AI-mode user menu, and the Welcome screen's tour button now open that player as a popup over the current page, full screen from the click that opened it. There is no /tour route. - ProductTourClassBase.getTourUrl() returns the demo link; a distribution overrides it to show its own demo. - useProductTourStore opens and closes the tour, and ProductTourModal, mounted above both app shells, shows it. - ResourcePlayerModal can open full screen and show a resource it is given without fetching it, as the tour is not a stored learning resource. Removed with the old tour: the react-tour engine, its store, step list, path recorder, recorded fixtures and request mock; the /tour route and page; the data-tour-step markers and the tour hooks in the auth provider, domain filter, welcome screen, announcements and both app shells; ProductTour.spec.ts, the tour unit tests, the tour-only translation keys, and the react-tour and regenerator-runtime dependencies. ADR:2026-11-13-the-product-tour-is-a-storylane-demo Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
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 |
Fixes the UI Checkstyle bundle runtime check on this PR. - ProductTourModal, which the app shell mounts, now loads the learning resource player when the tour opens, as LearningIcon loads its drawer, instead of pulling the player and its viewers into the shell chunk. - check-bundle-runtime allows the app shell two undefined exports: lodash-es sortBy and mergeWith. CommonJS packages require them (json-schema-merge-allof and json-schema-compare; lodash-es defaultsDeep), so Rolldown wraps them in a lazy initialiser, and every chunk that uses one runs that initialiser first. The removed react-tour, also CommonJS, required all of lodash from the shell at startup, which initialised them there. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…ne-product-tour # Conflicts: # openmetadata-ui/src/main/resources/ui/src/components/AppRouter/ProductTourPagesClassBase.ts # openmetadata-ui/src/main/resources/ui/src/components/governance/ontology/OntologyStudioHeader/OntologyStudioHeader.tsx # openmetadata-ui/src/main/resources/ui/src/constants/product-tour/classicTour.constants.ts
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The player chunk was only fetched when the tour opened, so on a cold cache the full-screen request could come after the browser's short window for the opening click and be refused. ProductTourModal now fetches it while the app is idle (on a 2 s timer where there is no requestIdleCallback, as in Safari), through the same loader React.lazy uses, so a click opens it from cache. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Review follow-ups on the product tour. - The tour is its own modal, ProductTourModal, instead of the learning resource player: a full-screen modal titled after the tour, with a close button, around the Learning Center's StorylaneTour frame. It fills the window rather than requesting browser full screen, so it no longer depends on the opening click's permission; the player's full-screen and no-fetch options, and the idle preload, are gone. StorylaneTour takes a url and title instead of a learning resource. - The app shell mounts only ProductTour, which loads the modal when the tour opens. - Help menu items run their action from the menu item's onAction, so Enter and Space open the tour, not only a click. - Signing out closes the tour, so it does not reopen at the next sign-in. - PRODUCT_TOUR_URL and the decision record note that OpenMetadata's demo link is a placeholder until an OpenMetadata demo is published. ADR:2026-11-13-the-product-tour-is-a-storylane-demo Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Comments Outside DiffThese findings could not be posted inline.
|
StorylaneTour takes a `fill` prop that makes its frame fill the caller's space instead of the player's padded 16:9 box, styled in its own stylesheet. ProductTourModal sets only layout on it, dropping the `!important` and descendant-selector classes the styling rules forbid, and its Dialog uses dividers="scroll" as every modal must. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The tour modal opens full screen, and a header button, like the Learning Center player's, switches it to a popup of that player's size and back without reloading the demo. The header's close button is now part of the same button group. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The other Help items are links, and their icons inherit the anchor's brand colour; Tour runs an action, has no anchor, and its icon took the text colour instead. Every Help item's icon now sets tw:text-brand-secondary, the same brand-700 (brand-400 in dark mode) the anchors use. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…modal ProductTourModal is now its own lazily loaded module, so the generated map gains its entry: it maps to WelcomeScreen.spec.ts, which opens the tour. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Code Review ✅ Approved 🟡 Medium risk 4 closed / 4 findingsReplacing the in-app tour and /tour route with a Storylane modal changes onboarding; blocked network or CSP could leave the demo empty. Replaces the in-app product tour with a Storylane demo opened from Help > Tour and the Welcome screen, full screen by default over the current page. Three findings were resolved: the OSS placeholder demo URL rule, the full-screen permission being consumed by the lazy player load, and the modal styling overrides. No open findings remain. ✅ 4 closed✅ Quality: OSS default tour URL is Collate's demo; the placeholder rule isn't recorded
✅ Bug: Lazy player load can use up the click's full-screen permission
✅ Quality: Tour modal styling uses
|
| Compact |
|
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source
| import { StorylaneTour } from '../Learning/ResourcePlayer/StorylaneTour.component'; | ||
|
|
||
| // The Learning Center player's width, for the minimized popup. | ||
| const POPUP_WIDTH = 1143; |
There was a problem hiding this comment.
We don't need this right?
Describe your changes:
Fixes #37761
Help > Tour and the Welcome screen's "Take a product tour" now open an interactive Storylane demo in the Learning Center's resource player popup, full screen by default, over the page the user is on. The in-app tour that walked the real pages on recorded fixtures is removed. That tour stopped starting on the redesigned landing page (its first step anchored on a widget the new Home no longer renders). It also needed a step list, a
data-tour-stepmarker on every page and fixtures re-recorded for every UI change. The Storylane demo is maintained outside the codebase, so updating it needs no release.Collate counterpart: https://github.com/open-metadata/openmetadata-collate/pull/8545
Type of change:
High-level design:
Opening the tour.
useProductTourStore(open/close) is the single entry point: theTourhelp item (HELP_ITEMS, used by the classic navbar and the AI-mode user menu) callsopen()instead of linking to/tour, and so does the Welcome screen button.ProductTourModal, mounted inAuthenticatedAppabove both app shells, renders the popup while it is open. There is no/tourroute any more; a bookmarked/tourlands on the not-found page.The popup is the Learning Center player.
ProductTourModalpasses a learning-resource-shaped object (Storylane type, the demo URL, titlelabel.product-tour) toResourcePlayerModal, with two new props:isFullScreenByDefaultasks the browser for full screen as the player opens, using the click that opened it. It asks exactly once: a ref guards the StrictMode re-run, whose second request is always refused. If the browser refuses, the popup stays at its normal size. Leaving full screen and closing work as for any learning resource.isStored={false}skips the by-id fetch, since the tour is not a stored learning resource. It also does not appear in any Learning Center list.aria-label(the resource name). The Learning Center popup had none.The demo URL comes from
ProductTourClassBase.getTourUrl(). A distribution overrides it (Collate shows its own demo). The OSS default is currently the Collate demo, as a placeholder until an OpenMetadata demo is published. Classic and AI mode show the same demo.Removed:
useProductTourStore's old tour state, the step list, path recorder, recorded fixtures and the axios fixture mock;ProductTourPagesClassBase, the/tourroute and page;data-tour-step/data-tour-pagemarker and the tour hooks inAuthProvider,withDomainFilter,useDismissedAnnouncements,useFirstLoginWelcome,AppModeRoutes,AppShellandAppContainer;ProductTour.spec.tsand the tour unit tests;@deuex-solutions/react-tourandregenerator-runtimedependencies..github/playwright/impact-map.generated.jsonis regenerated.Decision record:
ADR:2026-11-13-the-product-tour-is-a-storylane-demo;ADR:2026-10-23-the-product-tour-serves-its-pages-from-recorded-fixturesis marked superseded.Bundle:
ProductTourModal(mounted in the app shell) loads the learning player when the tour opens, so the player stays out of the shell chunk.check-bundle-runtime.mjsnow allowsapp-shelltwo undefined exports, lodash-essortByandmergeWith:require()them (json-schema-merge-allof, json-schema-compare, and lodash-esdefaultsDeep), so Rolldown wraps them in a lazy initialiser.yarn bundle:runtimepasses (148 route chunks) and so doesyarn bundle:check.Consequence: the tour needs the browser to reach
*.storylane.io. Without internet access, or with a CSP that blocks that origin in frames, the player is empty.Tests:
Use cases covered
Unit tests
ProductTourModal.test.tsx,useProductTourStore.test.ts,ProductTourClassBase.test.ts;ResourcePlayerModal.test.tsx(full screen by default, a single request under StrictMode, refusal, no fetch for unstored resources, dialog name),NavbarUtils.test.tsx,NavbarUtilClassBase.test.tsx,WelcomScreen.test.tsx;AuthProvider,withDomainFilter,useDismissedAnnouncements,MyDataPage,WelcomeScreenGate.main976a843b0c):src/hooks,src/rest). 680 suites passed. The 2 Ontology review suites (OntologyReviewBanner,OntologyTasksDrawer) failed only because the locally builtui-core-componentsdist predatedmain's new button variant; after rebuilding the dist both pass (5 suites, 54 tests).aria-labelchange:Learning/ResourcePlayer58 passed,ProductTourand the store passed.tsc --noEmit: no errors in changed files. The only remaining errors are the pre-existing TS4023/TS4053 declaration-emit ones in unrelated constants.generate_playwright_impact_map.py --check: up to date.Backend integration tests
Ingestion integration tests
Playwright (UI) tests
playwright/e2e/Features/WelcomeScreen.spec.ts: "take a product tour" now asserts the player opens with the Storylane frame, with the Storylane request answered locally. Removedplaywright/e2e/Flow/ProductTour.spec.tsandplaywright/constant/productTour.ts.WelcomeScreen.spec.tsneeds an OpenMetadata server; Collate's lane ignores the mirrored OSS specs. It is pending for the merge queue.CollateProductTour.spec.ts, run locally: 2 passed, includingdocument.fullscreenElementbeing the player.Visual regression baselines
classic-help-menu.Manual testing performed
/exploreand on Home: the "Product Tour" player opens full screen with the demo. Exiting full screen leaves the normal popup, and Close returns to the same page.UI screen recording:
Screen.Recording.2026-11-13.at.5.08.59.PM.mov
Checklist:
Fixes <issue-number>: <short explanation>Fixes #<issue-number>above.REVIEW.md(thepr-checklistskill runs it) and fixed every 🔴 finding, or answered it on the line below.docs/decisions/(see itsREADME.md). This description is gone fromgit logafter the squash-merge.Self-review: an independent review of the removal part found three 🔴, now resolved:
impact-map.generated.jsonis regenerated.The new-tour part was self-reviewed at
53f90f76b8, which added the dialog name and the single full-screen request.🤖 Generated with Claude Code


Confidence Score: 5/5
The PR appears safe to merge with no new actionable issues found.Summary
Replaces the recorded in-app tour with a lazily loaded Storylane dialog over the current page.
No new actionable issues were found. Tests and visual checks were not run; this checkout has no installed UI dependencies or built app.
Diagram
%%{init: {'theme': 'neutral'}}%% flowchart LR Help["Help > Tour"] --> Store["useProductTourStore.open()"] Welcome["Welcome tour button"] --> Store Store --> Gate["ProductTour"] Gate --> Lazy["Load ProductTourModal"] Lazy --> Frame["StorylaneTour iframe"] Config["ProductTourClassBase.getTourUrl()"] --> Frame Close["Close or sign out"] --> Reset["useProductTourStore.close()"] Reset --> Hidden["Remove tour; keep current page"]Reviews (7) · Last reviewed commit: "Merge branch 'main' into shrabantipaul/s..." · Reviewed by Greptile