Live audit: Batch A (user-facing) + Batch C (perf) + live-site journey report#150
Merged
Conversation
…ut, minimap, a11y, login default) From the live Cloudflare audit: - Offline/connection-error overlay no longer leaks localhost + `./start` dev hints in production; env-aware message (generic on hosted, dev hints under import.meta.env.DEV). (InteractiveGraphVisualization.tsx) - A transient `me`-query failure no longer wipes the token / logs the user out; only clear session on genuine UNAUTHENTICATED/401, else keep session + hydrate from cached user. (AuthContext.tsx) - Mini-Map seeds from the laid-out graph on load (bounded publish over the first few seconds) instead of staying "No nodes yet" until a node is clicked. (IGV) - A11y: view-switcher + login toggle get role=tab/aria-selected; mobile "More" sheet gets role=dialog + Esc-to-close + focus; main graph <svg> gets role=img + aria-label + sr-only description; login active-tab contrast bumped to AA. (ViewSwitcher.tsx, Signin.tsx, MobileBottomNav.tsx, IGV) - Login defaults to Passwordless on a passwordless product (Password tab still available for admin). (Signin.tsx) Deferred: phone bottom-row label overlap (needs visual iteration on a 390px device). Verified: web typecheck clean; web unit suite 228/228. (Smoke gate flaky only due to a concurrent unrelated Playwright suite starving this box — proven by stashing these changes and reproducing the same smoke failure on pristine dev.) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…plitting) From the live audit (#100): - Graph GetWorkItems/GetEdges poll relaxed 2s → 15s and skipped while the tab is hidden (skipPollAttempt); own mutations still refetch instantly. No WS subs, so a slow poll keeps cross-client freshness without the idle hammer. (IGV) - useAdaptiveQuality FPS-sampler rAF loop pauses on tab-hidden (visibilitychange) instead of spinning forever in backgrounded tabs. (useAdaptiveQuality.ts) - Code-splitting: vite manualChunks splits react/apollo/d3/lucide into cacheable vendor chunks + Admin/Backend/Ontology/Agents/Analytics are React.lazy routes. Entry chunk ~1.46MB → 662KB; largest gzip chunk 266KB (budget 450). (vite.config, App.tsx) Verified: typecheck clean; production build succeeds with split chunks; check-bundle-size within budget. (Deeper "stop rAF when graph settled" left for #100.) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…arration) Drives the real production SPA (graphdone-cloud.pages.dev) as a guest on desktop (1440x900) and phone (390x844), recording .webm video + a labelled screenshot per step, then folds into the unified report + live dashboard + piper-tts narration. - tests/e2e/reports/live-cloud-journey.spec.ts: the journey. Guest entry uses the verify-live recipe (mint guest token from the live Worker, seed localStorage, reload); captures the real sign-in + guest dialog first. Each screenshot is testInfo.attach'd so it lands in the report. Hard-asserts a guest sees nodes render + no JS errors (desktop) and no horizontal overflow (mobile); every interaction is best-effort so the tour always produces media. - playwright.config.ts: new 'live-journey' project (video:'on', screenshot:'on'). - tests/sequences/unified.config.mjs: 'live-journey' sequence + 'live' profile. - scripts/narrate-report.mjs: give the live desktop/mobile clips clean spoken names + real descriptions (was reading the raw test title twice). Run: TEST_URL=https://graphdone-cloud.pages.dev node tests/run-unified.mjs \ --profile live --out ../GraphDone-Cloud/live-full-report/<stamp> Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
🧪 Comprehensive Test Suite
Full-stack smoke gate runs in the CI workflow. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Lands the live-Cloudflare-audit fixes plus a new live-site user-journey test.
Batch A — user-facing (SPA)
me-query no longer logs the user out (only clears on real 401/UNAUTHENTICATED).<svg>role/label + sr-only description.Batch C — performance
skipPollAttempt).visibilitychange.manualChunks+React.lazyroute code-splitting (entry 1.46MB→662KB; largest gzip chunk 266KB < 450KB budget).live-site journey report
tests/e2e/reports/live-cloud-journey.spec.ts: drives the real production SPA as a guest on desktop + phone, recording .webm video + screenshots → unified report + dashboard + piper-tts narration. Newlive-journeyPlaywright project +liveprofile.Verification
verify-liveloads the SPA under the CSP.🤖 Generated with Claude Code