Repository navigation
Tidy the design system, docs, and dependencies for forkers - #6
Merged
Merged
Conversation
- Fix the /?range=toString crash and cap console route bodies at 64 KB. - Add a same-origin check to the console storage route. - Sanitize the server SDK pageUrl like the browser client (new allowedQueryParams option). - Update outdated dependencies and remove unused ones. - Share one Button, card, input, and focus style. Replace arbitrary values with scale values. - Raise badge colors to WCAG AA contrast and remove unused tokens. - Move branding to lib/site.ts and derive engagement labels from the query constants. - Rewrite the README, SDK README, CONTRIBUTING, and AGENTS.md so each fact lives in one place. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…per file - components/ui/: generic primitives and shared class strings (styles.ts). - components/dashboard/: cards, grid, bar list, charts, data table, date filter. - components/console/: one file per console card; console-store.ts unchanged. - app/(dashboard)/_sections/: one file per dashboard section; page.tsx loads data and lays out. - Remove stale code: SegmentedLinks, props no caller passes, unused exports. - Point the README, AGENTS.md, and lib/queries.ts at the new paths. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
- Keep stat values on one line so "1 : 0.28" doesn't wrap. - Show the API key command as its own scrollable code block on sign-in. - Link the live demo at the top of the README. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
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
Make the project easier to fork, simpler, and better documented. Also fixes a dashboard crash, hardens the console routes, and updates outdated dependencies.
Changes
Fixes
/?range=toStringreturned a 500.lib/range.tsnow usesObject.hasOwn, and a test covers it./api/console/server-eventand/api/console/storedreject bodies over 64 KB (413).storednow accepts same-origin requests only.pageUrlis sanitized like the browser client (no credentials, no hash, only allowed query params), with a newallowedQueryParamsoption. Relative URLs still throw.Dependencies
@base-ui/react1.9.0,@tabler/icons-react3.49.0,@vercel/connect2.4.1,tailwind-merge3.7.0,@types/node24.19.2 (kept on 24 to matchengines).playwright-coreandclass-variance-authority.Design system
Button(components/button.tsx, no cva), plus sharedcardClass,inputClass,focusRing,Notice, andExternalLinkincomponents/ui.tsx.@4xltwo-column breakpoint. The recordings list is 24rem wide.refis now attached), and event viewer rows are keyboard buttons.dark:classes, unused props, and the provenance comments.One component per file
components/ui/: generic primitives (button, badge, tooltip, notice, popover, calendar) and shared class strings instyles.ts.components/dashboard/: cards, grid, bar list, charts, data table, date filter.components/console/: one file per console card.console-store.tsis unchanged.app/(dashboard)/_sections/: one file per dashboard section.page.tsxgoes from 584 to 133 lines andconsole-app.tsxfrom 679 to 66.SegmentedLinks, props no caller passes, and exports nobody imports. Compiled CSS is byte-identical and screenshots match before and after the split.Forkability
lib/site.ts(name, tagline, links).ENGAGED_MSandQUICK_EXIT_MS, so they match the SQL.Docs
eventsandrecordings..env.examplematches the README.Test plan
npm run typecheck,npm test(97 tests), andnpm run buildpassnpm run dev: dashboard, console, and recordings at 1440 and 1280px, the console at 600px, both sign-in tabs, date picker keyboard navigationScreenshots
Dashboard, before and after. Badge text and chart series are darker for contrast, and cards use one ring edge. Shot on the synthetic
demo_eventsdata.public/overview.jpgis refreshed in this PR so the README matches the new colors.🤖 Generated with Claude Code