Skip to content

feat(webapp): dark responsive UI refresh + build version in the UI#25

Merged
cgoulart35 merged 1 commit into
masterfrom
feat/webapp-ui-refresh-and-version
Jun 14, 2026
Merged

feat(webapp): dark responsive UI refresh + build version in the UI#25
cgoulart35 merged 1 commit into
masterfrom
feat/webapp-ui-refresh-and-version

Conversation

@cgoulart35

Copy link
Copy Markdown
Owner

What & why

The web app worked but looked hand-built on desktop (every panel was width:75% with no max-width, so rows stretched on big screens and wasted margin on phones), and there was no way to confirm which build was live. This refreshes the UI dark-first (same four signature colors — pumpkin/purple/toxic-green/magenta — kept as glowing accents), makes it consistent across desktop/laptop/mobile, and surfaces the build SHA in the UI.

UI

  • CSS-variable palette + dark base; cards (radius, neon glow, padding)
  • single max-width content column + breakpoints (fixes the desktop stretch and tightens phone margins); hover gated to hover-capable devices so it doesn't stick on tap
  • PWA chrome: theme-color, apple-touch-icon, manifest.json (Add to Home Screen)
  • floating Scan action; capped result/QR images
  • vendor w3pro.css + w3-theme-orange.css locally — removes the www.w3schools.com hot-link single-point-of-failure for all styling
  • scoreboard/fight results rendered as tidy WON/LOST match cards; humanized display times (un-padded date + hour, drop :00 seconds)

Build version

  • CI stamps the short SHA as the APP_VERSION build-arg → ENV VERSION in both images (kept as the last layer so it doesn't bust the pip/cert cache)
  • shown at the bottom of the slide-out menu (build · <sha>); exposed to templates via a Blueprint context processor
  • VERSION defaulted to "dev" and removed from the env templates — a value in env_file overrides the baked ENV, so it stays out of the env files (also keeps old-image rollbacks booting)

Verification

  • /test green (68 passed)
  • bake verified via docker inspect: default dev, and --build-arg APP_VERSION=… override flows into ENV VERSION
  • full manual QA on the real domain against the qa-halloween-event sandbox, desktop + mobile: signup / feed / scan / qrcode / profile + the off-season end screen

⚠️ One-time manual step after this deploys

Remove the VERSION= line from the real api.env and app.env in the repo dir on the Pi (gitignored, not visible from here), then redeploy. Until then env_file overrides the baked SHA and the menu keeps showing the old value (1.0).

🤖 Generated with Claude Code

Restyle the web app dark-first while keeping the four signature colors as
glowing accents, and make the layout consistent across desktop/laptop/mobile:
- CSS-variable palette + dark base; card treatment (radius, neon glow, padding)
- single max-width content column + breakpoints (fixes the desktop stretch and
  tightens phone margins); hover gated to hover-capable devices
- PWA chrome: theme-color, apple-touch-icon, manifest (Add to Home Screen)
- floating Scan action; capped result/QR images
- vendor w3pro.css + w3-theme-orange.css locally (remove the w3schools hot-link
  single-point-of-failure)
- scoreboard/fight results as tidy WON/LOST match cards; humanized display times
  (un-padded date + hour, drop :00 seconds)

Surface the running build so "is the latest code live?" is answerable at a glance:
CI stamps the short SHA as the APP_VERSION build-arg -> ENV VERSION in both images
and the web UI shows it at the bottom of the slide-out menu. VERSION is defaulted
to "dev" and removed from the env templates (a value in env_file would override the
baked SHA); templates get it via a context processor.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@claude

claude Bot commented Jun 14, 2026

Copy link
Copy Markdown

No blocking issues.

@cgoulart35
cgoulart35 merged commit 5ec9c72 into master Jun 14, 2026
5 checks passed
@cgoulart35
cgoulart35 deleted the feat/webapp-ui-refresh-and-version branch June 14, 2026 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant