Skip to content

Fixes #37761: Replace the in-app product tour with a Storylane demo - #37765

Merged
shrabantipaul-collate merged 12 commits into
mainfrom
shrabantipaul/storylane-product-tour
Nov 16, 2026
Merged

shrabantipaul-collate merged 12 commits into
mainfrom
shrabantipaul/storylane-product-tour

Conversation

@shrabantipaul-collate

@shrabantipaul-collate shrabantipaul-collate commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

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-step marker 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:

  • Improvement

High-level design:

  • Opening the tour. useProductTourStore (open/close) is the single entry point: the Tour help item (HELP_ITEMS, used by the classic navbar and the AI-mode user menu) calls open() instead of linking to /tour, and so does the Welcome screen button. ProductTourModal, mounted in AuthenticatedApp above both app shells, renders the popup while it is open. There is no /tour route any more; a bookmarked /tour lands on the not-found page.

  • The popup is the Learning Center player. ProductTourModal passes a learning-resource-shaped object (Storylane type, the demo URL, title label.product-tour) to ResourcePlayerModal, with two new props:

    • isFullScreenByDefault asks 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.
    • The dialog now also gets an 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:

    • the react-tour engine, useProductTourStore's old tour state, the step list, path recorder, recorded fixtures and the axios fixture mock;
    • ProductTourPagesClassBase, the /tour route and page;
    • every data-tour-step / data-tour-page marker and the tour hooks in AuthProvider, withDomainFilter, useDismissedAnnouncements, useFirstLoginWelcome, AppModeRoutes, AppShell and AppContainer;
    • ProductTour.spec.ts and the tour unit tests;
    • the tour-only translation keys (26 per locale);
    • the @deuex-solutions/react-tour and regenerator-runtime dependencies.

    .github/playwright/impact-map.generated.json is 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-fixtures is 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.mjs now allows app-shell two undefined exports, lodash-es sortBy and mergeWith:

    • CommonJS packages require() them (json-schema-merge-allof, json-schema-compare, and lodash-es defaultsDeep), so Rolldown wraps them in a lazy initialiser.
    • Every chunk that uses them runs that initialiser first. I checked the 17 importing chunks in the build output.
    • The removed react-tour (CommonJS) used to require all of lodash from the shell at startup, which had initialised them.
    • Locally yarn bundle:runtime passes (148 route chunks) and so does yarn 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

  • Help > Tour (classic navbar and AI-mode user menu) opens the Storylane demo full screen, over the current page; closing it returns to that page.
  • The Welcome screen's tour button closes the Welcome screen and opens the demo.
  • A browser that refuses full screen leaves the popup at its normal size.
  • Learning Center resources still open in the same player as before (fetched by id, not full screen).

Unit tests

  • I added unit tests for the new/changed logic.
  • Files added/updated:
    • new: ProductTourModal.test.tsx, useProductTourStore.test.ts, ProductTourClassBase.test.ts;
    • updated: 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;
    • edited to drop tour cases: AuthProvider, withDomainFilter, useDismissedAnnouncements, MyDataPage, WelcomeScreenGate.
  • Run locally on this branch (Jest, against OSS main 976a843b0c):
    • Affected areas: 682 suites, 7,418 tests (ProductTour, Learning, MyData, Auth, ai-shell, AppRouter, AppContainer, DataQuality, Services, Connections, discovery, DataMarketplace, ontology, ExploreV1, ContextCenter, Glossary, Profiler, Navbar utils, src/hooks, src/rest). 680 suites passed. The 2 Ontology review suites (OntologyReviewBanner, OntologyTasksDrawer) failed only because the locally built ui-core-components dist predated main's new button variant; after rebuilding the dist both pass (5 suites, 54 tests).
    • After the final aria-label change: Learning/ResourcePlayer 58 passed, ProductTour and 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.
  • ESLint: 0 errors on changed files. Prettier: clean.
  • generate_playwright_impact_map.py --check: up to date.

Backend integration tests

  • Not applicable (no backend API changes).

Ingestion integration tests

  • Not applicable (no ingestion changes).

Playwright (UI) tests

  • Updated 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. Removed playwright/e2e/Flow/ProductTour.spec.ts and playwright/constant/productTour.ts.
  • Not run locally: WelcomeScreen.spec.ts needs an OpenMetadata server; Collate's lane ignores the mirrored OSS specs. It is pending for the merge queue.
  • The same Help > Tour flow is covered by the Collate counterpart's CollateProductTour.spec.ts, run locally: 2 passed, including document.fullscreenElement being the player.

Visual regression baselines

  • Not applicable. The Help menu keeps its Tour row (same label and icon); only its click handler changes. The visual lane will confirm classic-help-menu.

Manual testing performed

  1. Collate UI dev server (this branch through the Collate PR's submodule pointer) against a local Collate server, signed in as an admin.
  2. Classic navbar Help > Tour on /explore and 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.
  3. Learning Center resources still open in their popup at normal size.

UI screen recording:

Screen.Recording.2026-11-13.at.5.08.59.PM.mov

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation>
  • My PR is linked to a GitHub issue via Fixes #<issue-number> above.
  • I have commented on my code, particularly in hard-to-understand areas.
  • For JSON Schema changes: I updated the migration scripts or explained why it is not needed.
  • For a UI feature or feature task: as part of PR creation, I ran the PR build in Docker with sample data and embedded a verified GitHub-hosted recording plus build/health evidence above (or explained why this requirement is not applicable).
  • I have added tests (unit / integration / Playwright as applicable) and listed them above.
  • Self-review: I reviewed the final diff against REVIEW.md (the pr-checklist skill runs it) and fixed every 🔴 finding, or answered it on the line below.
  • Decision check: if this PR decides something the next contributor could undo — a schema field, REST path or format another component or repo must agree with, a new default or limit, an ordering that must hold, or a rule stated only in this description — it adds a record under docs/decisions/ (see its README.md). This description is gone from git log after the squash-merge.

Self-review: an independent review of the removal part found three 🔴, now resolved:

  • The stale impact-map.generated.json is regenerated.
  • The old ADR left Accepted is now marked superseded here.
  • The Collate impact map is fixed in the counterpart.

The new-tour part was self-reviewed at 53f90f76b8, which added the dialog name and the single full-screen request.

🤖 Generated with Claude Code

RetriggerView in GreptileConfidence 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.

  • Help and Welcome open a Storylane demo 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"]
Loading

Reviews (7) · Last reviewed commit: "Merge branch 'main' into shrabantipaul/s..." · Reviewed by Greptile

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]>
@shrabantipaul-collate
shrabantipaul-collate marked this pull request as ready for review November 13, 2026 12:04
@shrabantipaul-collate
shrabantipaul-collate requested a review from a team as a code owner November 13, 2026 12:04
@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This 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 skip-pr-checks label.

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]>
Shrabanti Paul and others added 3 commits November 16, 2026 11:07
…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
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]>
@shrabantipaul-collate
shrabantipaul-collate enabled auto-merge (squash) November 16, 2026 07:34
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]>
@greptile-apps

greptile-apps Bot commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

Comments Outside Diff

These findings could not be posted inline.

  • P2 Learning dialog loses its name openmetadata-ui/src/main/resources/ui/src/components/Learning/ResourcePlayer/ResourcePlayerModal.component.tsx:405 ▶

    Removing aria-label leaves the Learning Center player dialog unnamed for screen readers. ResourceHeader renders ordinary text, not a title linked to Dialog.

    Restore aria-label={resource.displayName || resource.name} and its test. The repository requires accessible names, so this requirement must be met before merging.

          <Dialog
            aria-label={resource.displayName || resource.name}
            data-testid="resource-player-dialog"
            width={1143}>
    

    Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

Shrabanti Paul and others added 6 commits November 16, 2026 15:33
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]>
@gitar-bot

gitar-bot Bot commented Nov 16, 2026

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

Replacing 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

📄 openmetadata-ui/src/main/resources/ui/src/utils/ProductTourClassBase.ts:14-26 📄 docs/decisions/2026-11-13-the-product-tour-is-a-storylane-demo.md:28-30
PRODUCT_TOUR_URL sends every OpenMetadata user to https://collate.storylane.io/demo/wbl3aevcc3ct. The only explanation is in the PR description: "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." The new ADR 2026-11-13-the-product-tour-is-a-storylane-demo says nothing about this, and neither does the code comment. The repo squash-merges, so once this lands nobody will know whether OSS showing the Collate demo is intended, or that the URL is meant to be replaced. The same goes for the single URL that doesn't depend on app mode.

Add these two rules to the ADR's Decision section (and point the code comment at it): "Until an OpenMetadata Storylane demo is published, the OSS ProductTourClassBase.getTourUrl() returns the Collate demo as a placeholder; replacing it is a URL change only." and "Classic and AI mode show the same demo; getTourUrl() takes no mode."

✅ Bug: Lazy player load can use up the click's full-screen permission

📄 openmetadata-ui/src/main/resources/ui/src/components/ProductTour/ProductTourModal.tsx:21-30 📄 openmetadata-ui/src/main/resources/ui/src/components/ProductTour/ProductTourModal.tsx:62-73 📄 openmetadata-ui/src/main/resources/ui/src/components/Learning/ResourcePlayer/ResourcePlayerModal.component.tsx
requestFullscreen() only works while the opening click's transient user activation is still valid. The browser keeps that activation for a short, browser-defined window. Before this change, ResourcePlayer's mount effect ran in the same render as open(). Now the import() only starts once isOpen turns true, so on the first tour open (cold cache, slow network, or a large player chunk) the request is delayed by however long the chunk takes to download and evaluate. If that runs past the activation window, the browser refuses full screen and the headline 'full screen by default' behaviour silently falls back to the normal popup. The unit test mocks the module, so it can't catch this. To keep the chunk out of the app shell and still request full screen in time, start downloading the chunk before the click: share one loader between lazy() and a preload call, and fire the preload when ProductTourModal mounts (for example on idle), on hover/focus of the Tour item, or inside useProductTourStore.open().

✅ Quality: Tour modal styling uses ! overrides and descendant selectors

📄 openmetadata-ui/src/main/resources/ui/src/components/ProductTour/ProductTourModal.tsx:20-23 📄 openmetadata-ui/src/main/resources/ui/src/components/ProductTour/ProductTourModal.tsx:46-51
FILL_CLASS in the new ProductTourModal uses !important utilities (tw:p-0!, tw:[&>*]:size-full!, …) and the tw:[&>*]: descendant selector to reach into StorylaneTour's internal .storylane-tour-container. The frontend-styling rules explicitly ban both. The new <Dialog> also leaves out dividers="scroll", which the rules require on every modal; the default always is legacy only. Instead, give StorylaneTour a fill/variant prop (or have the caller set only layout on the wrapper and let the component size its container), drop the !/descendant classes, and set dividers="scroll" on the Dialog.

Closed: Bug: Learning Center dialog loses its accessible name

📄 openmetadata-ui/src/main/resources/ui/src/components/Learning/ResourcePlayer/ResourcePlayerModal.component.tsx:405
This commit removed aria-label={resource.displayName || resource.name} from the ResourcePlayerModal <Dialog>, along with the test that checked it. That Dialog gets no title, so it renders no <Heading slot="title"> either, and react-aria leaves the dialog without an accessible name. Screen readers will announce it as just "dialog", and react-aria logs a warning about the missing label. The PR description also says "The Learning Center dialog now also has an aria-label set to the resource name", which is no longer true. Put the aria-label back and restore the 'should name the dialog after the resource' test.

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

import { StorylaneTour } from '../Learning/ResourcePlayer/StorylaneTour.component';

// The Learning Center player's width, for the minimized popup.
const POPUP_WIDTH = 1143;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

We don't need this right?

@shrabantipaul-collate
shrabantipaul-collate merged commit f7852c4 into main Nov 16, 2026
58 of 60 checks passed
@shrabantipaul-collate
shrabantipaul-collate deleted the shrabantipaul/storylane-product-tour branch November 16, 2026 11:02
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.

Replace the in-app product tour with a Storylane demo

2 participants