From b09e9f934a1ae17b96f9d6c572132570b20b62a6 Mon Sep 17 00:00:00 2001 From: Christian Kemper Date: Tue, 17 Nov 2026 19:52:04 +0100 Subject: [PATCH 1/3] ui: use the full viewport width in the frontend The Tailwind v4 .container utility capped content at 1280/1536px on 12 call sites, leaving 80px gutters at 1440px viewports and 512px at 2560px. Remove the caps globally by appending an unlayered .container { max-width: none; } override to tailwind/input.css: an unlayered rule deterministically wins over every breakpoint rule inside @layer utilities, so a single line replaces 12 mechanical class edits (same rendered result). Usable content width: 1392px at 1440px viewports (was 1232px), 2512px at 2560px (was 1488px). Mobile (<640px) unchanged - those breakpoints never applied a cap. The regenerated public/style.css also carries tailwind 4.2.1 -> 4.3.4 output churn from the local toolchain. Rendered and verified by hand via trunk serve. --- crates/context-frontend/src/public/style.css | 33 ++++++++++--------- .../context-frontend/src/tailwind/input.css | 8 +++++ 2 files changed, 26 insertions(+), 15 deletions(-) diff --git a/crates/context-frontend/src/public/style.css b/crates/context-frontend/src/public/style.css index 415a3d45..cd7d1462 100644 --- a/crates/context-frontend/src/public/style.css +++ b/crates/context-frontend/src/public/style.css @@ -1,4 +1,4 @@ -/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */ +/*! tailwindcss v4.3.4 | MIT License | https://tailwindcss.com */ @layer properties; @layer theme, base, components, utilities; @layer theme { @@ -471,10 +471,10 @@ translate: var(--tw-translate-x) var(--tw-translate-y); } .transform { - transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,); + transform: var(--tw-rotate-x, ) var(--tw-rotate-y, ) var(--tw-rotate-z, ) var(--tw-skew-x, ) var(--tw-skew-y, ); } .transform\! { - transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,) !important; + transform: var(--tw-rotate-x, ) var(--tw-rotate-y, ) var(--tw-rotate-z, ) var(--tw-skew-x, ) var(--tw-skew-y, ) !important; } .animate-spin { animation: var(--animate-spin); @@ -999,7 +999,7 @@ } .ordinal { --tw-ordinal: ordinal; - font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,); + font-variant-numeric: var(--tw-ordinal, ) var(--tw-slashed-zero, ) var(--tw-numeric-figure, ) var(--tw-numeric-spacing, ) var(--tw-numeric-fraction, ); } .line-through { text-decoration-line: line-through; @@ -1024,11 +1024,11 @@ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow); } .ring { - --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor); + --tw-ring-shadow: var(--tw-ring-inset, ) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor); box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow); } .ring-1 { - --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor); + --tw-ring-shadow: var(--tw-ring-inset, ) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor); box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow); } .ring-ctp-blue { @@ -1040,23 +1040,23 @@ } .blur\! { --tw-blur: blur(8px) !important; - filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,) !important; + filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, ) !important; } .drop-shadow { --tw-drop-shadow-size: drop-shadow(0 1px 2px var(--tw-drop-shadow-color, rgb(0 0 0 / 0.1))) drop-shadow(0 1px 1px var(--tw-drop-shadow-color, rgb(0 0 0 / 0.06))); --tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / 0.1)) drop-shadow( 0 1px 1px rgb(0 0 0 / 0.06)); - filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,); + filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, ); } .invert { --tw-invert: invert(100%); - filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,); + filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, ); } .filter { - filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,); + filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, ); } .backdrop-filter { - -webkit-backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,); - backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,); + -webkit-backdrop-filter: var(--tw-backdrop-blur, ) var(--tw-backdrop-brightness, ) var(--tw-backdrop-contrast, ) var(--tw-backdrop-grayscale, ) var(--tw-backdrop-hue-rotate, ) var(--tw-backdrop-invert, ) var(--tw-backdrop-opacity, ) var(--tw-backdrop-saturate, ) var(--tw-backdrop-sepia, ); + backdrop-filter: var(--tw-backdrop-blur, ) var(--tw-backdrop-brightness, ) var(--tw-backdrop-contrast, ) var(--tw-backdrop-grayscale, ) var(--tw-backdrop-hue-rotate, ) var(--tw-backdrop-invert, ) var(--tw-backdrop-opacity, ) var(--tw-backdrop-saturate, ) var(--tw-backdrop-sepia, ); } .transition { transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events; @@ -1146,7 +1146,7 @@ border-color: var(--ctp-blue); } .focus\:ring-2:focus { - --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor); + --tw-ring-shadow: var(--tw-ring-inset, ) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor); box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow); } .focus\:ring-ctp-blue:focus { @@ -1154,7 +1154,7 @@ } .focus\:ring-offset-2:focus { --tw-ring-offset-width: 2px; - --tw-ring-offset-shadow: var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color); + --tw-ring-offset-shadow: var(--tw-ring-inset, ) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color); } .focus\:ring-offset-ctp-base:focus { --tw-ring-offset-color: var(--ctp-base); @@ -1835,6 +1835,9 @@ body { grid-template-columns: var(--kanban-grid-cols, repeat(6, minmax(0, 1fr))); } } +.container { + max-width: none; +} @property --tw-translate-x { syntax: "*"; inherits: false; @@ -2138,7 +2141,7 @@ body { } } @layer properties { - @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) { + @supports ((-webkit-hyphens: none) and (not (margin-trim: block))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) { *, ::before, ::after, ::backdrop { --tw-translate-x: 0; --tw-translate-y: 0; diff --git a/crates/context-frontend/src/tailwind/input.css b/crates/context-frontend/src/tailwind/input.css index 95bcb4ec..6f7d3616 100644 --- a/crates/context-frontend/src/tailwind/input.css +++ b/crates/context-frontend/src/tailwind/input.css @@ -837,3 +837,11 @@ body { grid-template-columns: var(--kanban-grid-cols, repeat(6, minmax(0, 1fr))); } } + +/* Use the full viewport width: remove Tailwind v4 .container max-width caps. + Intentionally unlayered so this rule deterministically wins over every + breakpoint rule inside @layer utilities. */ +.container { + max-width: none; +} + From 9f3aeb3922cfeadef27fa7481fb421f0949bd0bd Mon Sep 17 00:00:00 2001 From: Christian Kemper Date: Tue, 17 Nov 2026 19:54:47 +0100 Subject: [PATCH 2/3] chore: fix tailwind content globs and frontend docs drift config.js pointed content globs at ./src/frontend/** paths that never existed anywhere in the repository (and referenced a src/main.rs that does not exist - the crate root is lib.rs). Replace them with one repo-root-relative glob matching the real source tree; output verified byte-identical before and after regeneration via the trunk pre_build hook. docs/frontend.md claimed style.css is gitignored, listed input.css under public/, and named the config tailwind.config.js; correct the tree to match reality: style.css is committed and regenerated by the pre_build hook, config and input live under tailwind/. --- crates/context-frontend/src/tailwind/config.js | 12 +++++------- docs/frontend.md | 6 +++--- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/crates/context-frontend/src/tailwind/config.js b/crates/context-frontend/src/tailwind/config.js index b02de7a0..78223129 100644 --- a/crates/context-frontend/src/tailwind/config.js +++ b/crates/context-frontend/src/tailwind/config.js @@ -1,13 +1,11 @@ /** @type {import('tailwindcss').Config} */ module.exports = { content: [ - "./src/frontend/components/**/*.rs", - "./src/frontend/pages/**/*.rs", - "./src/frontend/api/**/*.rs", - "./src/frontend/models/**/*.rs", - "./src/frontend/app.rs", - "./src/frontend/main.rs", - "./src/frontend/public/index.html", + // Repo-root-relative: the trunk pre_build hook runs tailwindcss from the + // repository root. Tailwind v4 also auto-detects sources, but these globs + // stay correct and explicit for v3-style resolution. + "./crates/context-frontend/src/**/*.rs", + "./crates/context-frontend/src/public/index.html", ], safelist: [ // Connection indicator colors diff --git a/docs/frontend.md b/docs/frontend.md index 8826f25b..bc193ac4 100644 --- a/docs/frontend.md +++ b/docs/frontend.md @@ -44,10 +44,10 @@ crates/context-frontend/src/ │ └── repos.rs ├── public/ │ ├── index.html # HTML template -│ ├── input.css # Tailwind CSS input -│ └── style.css # Generated CSS (gitignored) +│ └── style.css # Compiled Tailwind output (committed; regenerated by the trunk pre_build hook) └── tailwind/ - └── tailwind.config.js + ├── config.js # Tailwind config + └── input.css # Tailwind CSS input ``` ## Development Workflow From d005cf59821a073f52403b479c387203e25ce6b2 Mon Sep 17 00:00:00 2001 From: Christian Kemper Date: Tue, 17 Nov 2026 19:59:43 +0100 Subject: [PATCH 3/3] ci: run the test suite with cargo nextest align the CI runner with the runner used everywhere else: the devshell tests script and the pre-push hook already run cargo nextest run (nix/dev.nix:19), and the CI shell has installed cargo-nextest for that exact purpose since its introduction (nix/ci.nix:13, 'JUnit output for CI') - but ci.yaml kept invoking plain cargo test --workspace, leaving the dependency installed and unused and diverging local/CI runner behavior (per-test timeouts, parallel execution, retry semantics). cargo nextest run covers the whole workspace by default, matching cargo test --workspace. --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 8f822826..bd63f8d9 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -27,4 +27,4 @@ jobs: - name: Build and test env: NIX_CONFIG: "access-tokens = github.com=${{ github.token }}" - run: nix develop .#ci --command cargo test --workspace + run: nix develop .#ci --command cargo nextest run