Repository navigation
Fixes #35304: Make the product tour offline, visible and startable (backport 2.0 #35305) - #35344
Conversation
Backport of #35305 to 2.0, adapted to the 2.0 code: - Pre-mount the tour's Explore page with visibility instead of display:none so the highlighted result card is not clipped. - Stop the summary panel, lineage section, change summary, contract, asset health, knowledge pages and query count fetching the tour's mock table. The summary panel gets a view-only grant on the tour, and passes a boolean hasViewTests so a missing grant no longer defaults the tab to fetching. - On /tour, skip the welcome screen and use the default landing layout. - Normalise react-tour's lazy import for Vite's dev pre-bundle. - Harden Tour.spec: real step actions, in-viewport targets, a mock-request tripwire, a first-visit test, and per-test accounts.
❌ 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 |
🔄 Playwright impact map auto-refreshedThis PR touched specs or UI source that changed the source→spec routing map. I regenerated What is this file? It is the auto-generated half of Playwright's PR planner. It routes "if source X changes, run specs Y" by walking spec imports and cross-referencing What if I want to regenerate locally instead? Run this before pushing your next change to skip the bot commit: python3 .github/scripts/generate_playwright_impact_map.py
git add .github/playwright/impact-map.generated.json
git commit --amend --no-edit # or a separate commit |
Code Review ✅ Approved🟡 Medium risk · Tour-mode guards suppress entity and health requests while changing permission handling; misapplied tour state could leave real asset panels incomplete. Makes the product tour work offline on 2.0 by hiding Explore with VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledOptionsDisplay: compact → Counting what did not apply, without listing it. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
|



Describe your changes:
Fixes #35304
Backport of #35305 to
2.0. On 2.0 I ran the tour first, to see which of the bugs exist there. These do:The changes match #35305, adapted to the 2.0 code:
TourPage: loads Explore early but hides it withvisibility(tw:invisible tw:fixed tw:inset-0,aria-hidden, no pointer events) instead ofdisplay: none. Underdisplay: nonethe results panel measured 0px wide and kept that width.isTourPagethat skip the request inLineageSection,DataAssetSummaryPanelV1andGenericProvider(change summary),DataAssetsHeader(contract),useAssetHealth,KnowledgePagesandTableDetailsPageV1(query count).EntitySummaryPanel: 2.0 still loads permissions withusePermissionProvider, so the port is done by hand:mockTourSummaryPanelPermission = { ViewBasic: true }) instead of a permission request.hasViewTests={entityPermissions.ViewTests || entityPermissions.ViewAll}. With neither grant that value isundefined, andDataQualityTabdeclareshasViewTests = trueas its default, so the tab fetched anyway. It now passesBoolean(...), as main does withcanViewTests. Outside the tour this also stops a user without the ViewTests grant from sending a request that would fail.MyDataPage: on/tour, no welcome screen and always the default layout.Tour.tsx: the lazyreact-tourimport handles both export shapes.Differences from #35305, and why:
LineageMapmock scene. 2.0's lineage tab usesLineageProviderwith the mockentityLineage, which already stays offline.LineageMapdoes not exist on 2.0.mockTablePermissionstays inmockTourData.constants.ts. Nothing on 2.0 reads it, so moving it would be churn.mockTourPermission.constants.tsholds only the summary panel's grant.docs/decisions/folder or checker. The record lands onmainwith Fixes #35304: Make the product tour offline, visible and startable #35305.Type of change:
High-level design:
The design is the same as #35305, adapted to 2.0 as listed above. Each new check applies only on
/tour, and there are no API or schema changes.Tests:
Use cases covered
/tour. No API request names the mock table./tourgets the tour, not the welcome screen.Unit tests
AppTour/Tour.test.tsxandAssetHealthWidget/useAssetHealth.test.tsx. Added tour cases toTourPage,MyDataPage,EntitySummaryPanel(written for 2.0'susePermissionProvidermocks),LineageSection,KnowledgePages,DataAssetsHeader,GenericProvider,DataAssetSummaryPanelV1andTableDetailsPageV1(a 2.0-shaped query-count tour test).yarn testover every touched area: 37 suites, 445 tests passed.TableDetailsPageV1"Queries tab count" tests with-tfails on unmodified2.0too, because the suite's mocks depend on test order. The full file passes: 20/20 on 2.0 and 21/21 on this branch.Backend integration tests
Ingestion integration tests
Playwright (UI) tests
Flow/Tour.spec.tsfollows Fixes #35304: Make the product tour offline, visible and startable #35305, adapted to 2.0's Playwright helpers. It signs in withlogin(), and its fixture uses 2.0'sgetWorkerAdminAPIContext. It keeps 2.0's reload-retry on the first badge for the help and welcome tests. The first-visit test does not use it, because a reload would hide the welcome-screen bug it tests for.--repeat-each=8 --workers=4passed 24/24.toBeInViewport: viewport ratio 0), and first-visit fails because the tour never appears.Manual testing performed
A scripted walkthrough of the 2.0 build (all 15 steps with real clicks, a request recorder and a toast recorder) reported no problems, no toasts and no request for the mock table. On the instance used, which has no
dim_addresstable, unmodified 2.0 stalls at step 5 and shows "not found" toasts.UI screen recording:
Not applicable — this is a backport of a bug fix. Recording, if any, is on #35305.
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: not applicable.
For a UI feature or feature task: not applicable, this is a bug fix backport.
I have added tests (unit / integration / Playwright as applicable) and listed them above.
Decision check: the record ships with Fixes #35304: Make the product tour offline, visible and startable #35305 on
main. 2.0 has nodocs/decisions/folder.I have added a test that covers the exact scenario we are fixing.