Repository navigation
Flatten daily-driver UI: fewer cards and borders - #732
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a1605940fd
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| const brace = match.index + match[0].length - 1; | ||
| const end = css.indexOf("}", brace); | ||
| if (end < 0) return ""; | ||
| return css.slice(brace + 1, end); |
There was a problem hiding this comment.
Match compound selectors in allRuleBodies
Update this selector scan to include every rule containing the class. As written, \s*\{ requires the opening brace immediately after .card, so declarations in existing selector forms such as .card.toolCard and .body > .card + .card are skipped despite the helper's stated purpose. A later card fill, border, or shadow added through a compound/ contextual selector would therefore bypass the new contract test.
Useful? React with 👍 / 👎.
| function hasTileBorder(body: string): boolean { | ||
| return /border:\s*1px solid var\(--border\)/.test(body); | ||
| } |
There was a problem hiding this comment.
Reject all tile borders in the flattening contract
Broaden this predicate beyond the exact --border token. The visual contract requires these sections and transcript blocks to have no 1px outline, but border: 1px solid var(--border-soft)—the previous value on .planCard and .specCard—passes every hasTileBorder assertion. Restoring that outline or using another color token would silently regress the flattened UI while this contract remains green.
Useful? React with 👍 / 👎.
This reverts commit 6555107. Co-authored-by: Willem <[email protected]>
The #732 flatten (and the leftover/secondary follow-ups on this tree) stripped cards, borders, and shadows. Restore the previous boxed chrome and drop the CSS-lock tests that forbade it.
Closes #727
User feedback: the app is functionally great, but the UI is a dashboard of cards and borders. It should read as a continuous page of type and space.
Decision: flatten, daily driver only. Identity stays (Inter, dark/light tokens, blue accent, three-column shell). Functionality stays.
Rule
In-page grouping uses type, space, and hover.
background: var(--card)plus a 1px--borderis reserved for floating surfaces and the composer.What changed
CSS-only. Markup and
data-*-cardattributes are unchanged..btn).gitCard,.sessionCard,.teamSection,.workflow)Contract test:
test/flattenDailyDriver.test.ts(parses the CSS modules). Focused renderer tests: 220 pass.Out of scope
Memory, Skills, Settings, Kanban, Fleet, leftover inner
.gitBtnchips,.reviewBar/.inboundCard, marketing screenshots (#690).Spec / plan
docs/superpowers/specs/2026-08-27-flatten-daily-driver-ui-design.mddocs/superpowers/plans/2026-08-27-flatten-daily-driver-ui.md