Remove the per-widget wide size option#78
Merged
Conversation
Widgets could be set to a "wide" size that spanned two board columns, but the board has no real layout support to make that useful — it was a fluff option that mostly just produced an awkwardly stretched card. Drop it so every widget renders at the single standard size. This clears the way for a better approach later: a smarter layout that decides width on its own, or a more deliberate UI/UX flow, rather than a manual toggle that does not earn its place. Removes the WidgetSize type and the optional size field, the Size select in the edit dialog, the board-row--wide rendering and CSS, and the unit/e2e coverage for it. Storage keeps unknown fields as-is, so any board that already stored size: "wide" simply renders as standard — no migration needed.
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.
What
Removes the per-widget Size customization. Widgets could be set to a
widesize that spanned two board columns; this drops that option so every widget renders at the single standard size, and it is no longer possible to make a widget wide.Why
The wide size was a fluff option — the board has no real layout support to make a two-column-spanning widget genuinely useful, so it mostly produced an awkwardly stretched card. Removing it clears the way for a better approach later: a smarter layout that decides width on its own, or a more deliberate UI/UX flow, rather than a manual toggle that does not earn its place.
Changes
src/lib/types.ts— drop theWidgetSizetype and the optionalsizefield onWidgetBase.src/components/ItemDialog.tsx— remove the Size<select>and itsupdateSizehandler / import.src/components/BoardRow.tsx— stop emitting theboard-row--wideclass.src/styles/global.css— remove the.board-row--widegrid rules.AGENTS.md— update Product Direction to reflect a single standard size.Backward compatibility
Storage keeps unknown fields as-is (no migration layer by design), so any synced board that already stored
size: "wide"simply renders as standard — the field becomes inert. No data migration needed. The board-level column count setting (Auto / 1–4) is untouched.Verification
npm run typecheck— cleannpm test— 114 passednpm run buildandnpm run build:edge— both succeednpm run e2e— 43 passed