Repository navigation
Landing page and dashboard v2, with light/dark switch and Space Mono - #4
Merged
Merged
Conversation
- New landing page (report_tool/templates/landing.html) replaces the bare upload form: hero, live preview from the sample file, how it works, what the report contains and the required columns. - File input checks type, size and emptiness before upload, supports drag and drop, shows the chosen file and a progress state. - Light/dark theme switch saved in localStorage, following the system setting until chosen; Space Mono throughout. - /template.xlsx download; upload errors say what's wrong and how to fix it (NotAWorkbookError, MissingColumnsError in the loader). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016gtNTGbmvq2DdoGC4air5K
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…table table - Period (all weeks / last N), route and class filters; the page re-computes figures, charts and table from the embedded bookings (names masked before embedding, money in whole cents). - Headline numbers show the change against the previous period with an arrow, sign and words; revenue has a sparkline. - New cancellation-rate-by-route chart with an average reference line. - Weekly revenue trend shades the compared weeks, labels high and low, and has a hover crosshair and tooltip. - Data-quality line says when every row was used. - Table gains a Discount column, sortable headers (aria-sort) and paging. - App header with file chip, Upload another file (web app only), and the shared Space Mono / light-dark theme from the landing page. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016gtNTGbmvq2DdoGC4air5K
royalpriest
added a commit
that referenced
this pull request
Nov 19, 2026
Landing page and dashboard v2, with light/dark switch and Space Mono
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.
Two parts, one commit each: the landing page, then the dashboard. Both share the same theme files (
_theme.htmland_theme_button.html), which provide Space Mono and a light/dark switch. The switch is saved in the browser and follows the system setting until you choose.1. Landing page
report_tool/templates/landing.html) replaces the bare upload form. It has:/template.xlsx: a starter workbook with the right headers.NotAWorkbookErrorandMissingColumnsError. Both are subclasses ofWorkbookError, so the CLI is unchanged.2. Dashboard v2
Filters:
The page re-computes everything in the browser from the bookings embedded as JSON. Names are masked before they're embedded, and money is kept in whole cents. In a no-JavaScript check, the browser's headline numbers matched the server's exactly on three test files.
Headline numbers show the change against the previous period with an arrow, sign and words, for example "▼ down 9.1% last 6 wk vs previous 6". Net revenue also has a sparkline.
Charts:
Data quality: a green line says "All N rows used". The amber warning stays for skipped rows.
Table:
aria-sort;Print shows all rows, and Export CSV exports the filtered rows.
Header: shows the file name, row count and generation time. "Upload another file" appears only in the web app (
render_html(upload_url=...)).Removed the Python chart geometry (
line_chart,nice_axisand related code), which the page now draws itself.Version bumped to 1.2.0.
Checks
pytest: 51 passed.ruff checkandruff format --checkare clean.🤖 Generated with Claude Code
https://claude.ai/code/session_016gtNTGbmvq2DdoGC4air5K