Skip to content

Migrate frontend to Tailwind CSS 4 - #173

Merged
d3mocide merged 6 commits into
mainfrom
tailwind-4
Oct 5, 2026
Merged

d3mocide merged 6 commits into
mainfrom
tailwind-4

Conversation

@d3mocide

@d3mocide d3mocide commented Oct 5, 2026

Copy link
Copy Markdown
Owner

Summary

  • Frontend moves to Tailwind CSS 4.3.3 with @tailwindcss/postcss (exact pins; npm audit: 0 vulnerabilities). Needed for the migration deferred from the braces-advisory work.
  • Design tokens move from tailwind.config.js into an @theme block in frontend/src/index.css (colours, 0px radii, shadows, fonts); renamed v4 utilities updated across components; space-y-* keeps v3 behaviour as stack-y-*.
  • Fixes a v4 cascade-layer regression: MapLibre's unlayered position: relative beat absolute inset-0 and collapsed the map to zero height. Container now sized with w-full h-full.
  • Also carries three earlier unpushed commits (layers follow-ups, radio location extraction, task-log correction).

Test plan

  • cd frontend && npx tsc --noEmit exits 0
  • npm audit reports 0 vulnerabilities
  • docker compose config --quiet, docker compose build frontend
  • Rebuilt stack: sign-in, no page errors, map renders with entities (desktop and phone widths)
  • Visual pass on the other pages (admin, settings, panels) on real hardware

🤖 Generated with Claude Code

https://claude.ai/code/session_011UFDuvC8ZvtrTuLzLPL1gT

d3mocide and others added 6 commits October 5, 2026 07:56
…nu, terrain polygons

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018qynKVbc2YsgXtocakyWKZ
…ions, highways, street-only

Recovers locations (and the crash category) for about 18 points more of the serious
incidents over a 14-day corpus; water rescue apparatus names are no longer incidents.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018qynKVbc2YsgXtocakyWKZ
Tokens move from tailwind.config.js to an @theme block in index.css,
renamed v4 utilities are updated, and space-y keeps its v3 behaviour as
stack-y. Fixes the map collapsing to zero height: v4 utilities sit in a
CSS layer, so MapLibre's unlayered position:relative beat absolute
inset-0 on the container.

Packages: tailwindcss and @tailwindcss/postcss 4.3.3 (required by the
migration), exact pins; npm audit reports 0 vulnerabilities.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011UFDuvC8ZvtrTuLzLPL1gT
The Incidents map, radar mini-map and Flight Log map used absolute
inset-0 on the MapLibre container; MapLibre's unlayered position:relative
now wins over the layered utility, leaving them blank. Size them with
w-full h-full like the main map.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011UFDuvC8ZvtrTuLzLPL1gT
@d3mocide
d3mocide merged commit bd68639 into main Oct 5, 2026
4 checks passed
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