feat(ui-lab): add first-run and update scenarios
github/actions/ci GitHub Actions CI finished: success

Add separate UI Lab scenarios for true first-run onboarding and post-update What's New checks. Keep empty-library fixtures reusable across mock data, tagger readiness, worker pause defaults, and launch-time version state so browser verification can exercise the real flows.
This commit is contained in:
2026-07-04 21:41:34 +01:00
parent af1a443a64
commit aa3fe2062d
4 changed files with 38 additions and 13 deletions
+11
View File
@@ -9,6 +9,8 @@ export type MockScenario =
| 'extreme'
| 'unready'
| 'joytag-unready'
| 'new-user'
| 'just-updated'
const SCENARIOS = new Set<MockScenario>([
'rich',
@@ -21,8 +23,17 @@ const SCENARIOS = new Set<MockScenario>([
'extreme',
'unready',
'joytag-unready',
'new-user',
'just-updated',
])
// Scenarios that start with no folders or media. 'empty' is a bare library
// with onboarding already behind it; 'new-user' is the true first run and
// additionally opens the onboarding tour with no tagger model downloaded.
export function isEmptyLibraryScenario(scenario: MockScenario): boolean {
return scenario === 'empty' || scenario === 'new-user'
}
export function getMockScenario(): MockScenario {
if (typeof window === 'undefined') return 'rich'
const value = new URLSearchParams(window.location.search).get('scenario')