feat(app): replay UI + report viewer + react refactor#77
Merged
Conversation
Add three view tabs to the inspector: Inspect, Replay, and Report. - Inspect: existing timeline + message inspector view (unchanged) - Replay: play/pause/step/scrubbar with speed selector, event payload display, and failures-at-this-event highlighting - Report: in-app report viewer with Markdown (pre) and HTML (iframe with srcdoc) formats, toggleable via format selector Refactor: extract ReplayView into a separate component to avoid TypeScript null-narrowing issues in JSX. Add ReplayEngine integration with auto-advance when playing. Add Playwright E2E tests for replay UI (step forward/back, payload display) and report viewer (HTML iframe rendering). Also fix E2E test for failed-auth: scope FAILED_AUTHORIZATION locator to failure-summary section with .first() (multiple failures in fixture). Closes #64
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Summary
Adds three view tabs to the Inspector: Inspect, Replay, and Report.
Changes
Replay Tab
ReplayEnginefrom@ocpp-debugkit/toolkit/replayReport Tab
<pre>with raw report textsrcDoc(no XSS risk)generateMarkdownReportandgenerateHtmlReportfrom@ocpp-debugkit/toolkit/reporterExport
Refactor
ReplayViewcomponent to avoid TypeScript null-narrowing issues in JSXFAILED_AUTHORIZATIONlocator to[data-testid="failure-summary"]with.first()E2E Tests (
tests/replay.spec.ts)Verification
pnpm test— 295/295 unit tests passpnpm build— clean (toolkit + web)pnpm lint— cleanpnpm typecheck— cleanpnpm format:check— cleanCloses #64