fix(dashboard): hidden widgets render at proper size in edit mode (t-paliad-238) #74
Closed
mAi
wants to merge 0 commits from
mai/tesla/dashboard-resize-clamp into main
pull from: mai/tesla/dashboard-resize-clamp
merge into: m:main
m:main
m:mai/ritchie/stale-negative-claims
m:mai/knuth/reset-form-language-and-email
m:mai/knuth/adopt-mauth-module
m:mai/knuth/reset-link-scanner-safe
m:mai/knuth/registry-coherence-139-postscript
m:mai/ritchie/db-test-packages-sh-and
m:mai/knuth/gen-skeleton-submission
m:mai/knuth/retire-skeleton-generator-tier5
m:mai/jason/seed-orphan-drafts-guard
m:mai/knuth/ci-lane-no-dsn
m:mai/jason/seed-script-prod-guard
m:mai/knuth/skeleton-doccomment-completeness
m:mai/brunel/harness-findings-postscript
m:mai/hades/dead-surface-sweep
m:mai/brunel/views-eventkind-flake
m:mai/jason/issue-158-service-address
m:mai/knuth/issue-139-letterhead-vars
m:mai/cronus/issue-148-trigger-picker
m:mai/hades/issue-155-followup
m:mai/hades/issue-155-naming
m:mai/brunel/escalation-visibility-flag
m:mai/jason/alles-overrides-horizon
m:mai/knuth/m-paliad-150-part-b-m
m:mai/hades/issue-161-zustandigkeit
m:mai/cronus/m-paliad-160-per-user
m:mai/jason/issue-163-parties-role
m:mai/ares/issue-162-one-convention
m:mai/brunel/m-paliad-115-the-sweep-s
m:mai/goodall/for-every-check-in-this
m:mai/knuth/land-darwin-s-follow-up
m:mai/diesel/guard-report-lib
m:mai/diesel/issue-139-slice-b
m:mai/diesel/issue-139-letterhead-vars
m:mai/darwin/148-crossparty-ui
m:mai/diesel/m-paliad-158-a-stale
m:mai/darwin/vacation-doc-warnings
m:mai/darwin/upc-vacation-findings
m:mai/darwin/rop-citation-fix
m:mai/darwin/issue-150-holidays
m:mai/ritchie/build-the-block-editor
m:mai/darwin/swallowed-cleanup-errors
m:mai/darwin/formalities-refusal-schema4
m:mai/darwin/drift-caveat-shape
m:mai/darwin/http-smoke-enforcing
m:mai/darwin/s6-round-3
m:mai/darwin/loops-acting-user
m:mai/darwin/s6-rehearsal-round-2
m:mai/darwin/close-the-s6-blockers
m:mai/darwin/rehearse-the-s6-flip
m:mai/knuth/drilling-the-scheduled
m:mai/brunel/21-test-files-under-pkg
m:mai/atlas/design-hlc-com-as
m:mai/hopper3/a-hand-run-can-advance
m:mai/grace4/re-vendor-mai
m:mai/grace3/vendor-the-nine-german
m:mai/head/slug-rule-contract
m:mai/head/vendor-contract-note
m:mai/grace2/wiki-generator-language
m:mai/marco/verify-the-outlook-add
m:mai/pike2/an-explicit-begin-commit
m:mai/noether5/remove-the-paris-p3-and
m:mai/lexy2/r2-backfill-procedural
m:mai/kepler/issue-502-hl-to-hlc
m:mai/hertz2/r4-litigationplanner
m:mai/shannon2/docker-compose-yml-never
m:mai/linus2/r3-finish-the-b-5
m:mai/zeus2/guard-no-live-sql-string
m:mai/galileo2/the-embedded-upc-planner
m:mai/kepler2/slice-b-procedural
m:mai/diesel2/mig044-erwiderung-repair
m:mai/diesel2/fresh-db-replay-past-mig
m:mai/head/gen-upc-snapshot-dead-table
m:mai/noether4/offices-export-regen-201
m:mai/noether4/base-p1-genericize-m
m:mai/hopper/finish-the-half-built
m:mai/pike/dead-migration-tests
m:mai/linus/audit-comment-fix
m:mai/linus/fristensuche-82-search
m:mai/linus/b7-checklists
m:mai/linus/b8-frontend-pure-logic
m:mai/pike/b5-auth-path-coverage
m:mai/diesel/rule-test-resync
m:mai/diesel/regression-m-confirmed
m:mai/patton/b1-make-the-dormant-test
m:mai/athena/test-gap-audit-map
m:mai/diesel/kostenrechner-bug-upc
m:mai/hopper/patentsstyle-styleguide
m:mai/pike/re-render-patentsstyle
m:mai/linus/firm-footer-officelanguag
m:mai/carmack/re-render-deploy
m:mai/diesel/fresh-db-bootstrap
m:mai/pike/follow-up-gen-template
m:mai/turing/docforge-flip
m:mai/cronus/bighand-delimiter-constant
m:mai/ritchie/composer-delete-all
m:mai/atlas/inventor-followup-rules
m:mai/knuth/coder-conditional-rule
m:mai/cronus/inventor-ci-cd-pre
m:mai/demeter/gitster-submission
m:mai/atlas/inventor-per-event-card
m:mai/cronus/inventor-procedural
m:mai/cronus/inventor-backup-mode
m:mai/icarus/inventor-inbox-overhaul
m:mai/atlas/inventor-symmetric-date
m:mai/gauss/inventorcoder-team-admin
m:mai/kepler/inventorcoder-project
m:mai/darwin/roadmap-ccr-en
m:mai/euler/coder-small-ux-polish
m:mai/darwin/fristenrechner-cleanup
m:mai/darwin/fixercoder-priority-bug
m:mai/leibniz/inventor-caldav-multi
m:mai/hertz/inventor-unified-modal
m:mai/archimedes/inventor-excel-data
m:mai/boltzmann/inventor-gap-tolerant
m:mai/copernicus/submission-slice-1
m:mai/fermi/interactive-session
m:mai/hertz/inventor-suggest-changes
m:mai/copernicus/inventor-submission
m:mai/mendel/test-strategy-slice-1
m:mai/ampere/custom-views-improvements
m:mai/planck/paliadin-per-user-rls
m:mai/ritchie/phase-h-ai-deadline
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
No description provided.
Delete Branch "mai/tesla/dashboard-resize-clamp"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Symptom
m 2026-05-22 15:41: "Resizing my dashboard layout lead to an error where now I have some super slim columns which I can move but not resize - and they seem greyed out."
No Gitea issue filed yet — head dispatched this as task t-paliad-238 directly. Filing an issue retro-actively if needed.
Root cause
Hidden widgets in edit mode were rendering as 1×1 slivers because
applyLayoutleft their inlinegrid-columnempty —placeWidgetsskipped non-visible entries entirely, so CSS Grid auto-flowed them into the next free cell at 1/12 width.rebuildEditChromecorrectly omits the resize handle for hidden widgets (line 940-943); this is intentional UX (un-hide before resizing).dashboard-widget--hiddenclass addsopacity: 0.45.The last two are correct signals that a widget is hidden. The slim rendering was the bug. Resize itself never changed visibility — the user likely hit × at some point (deliberately or accidentally) and saw the result on the next edit-mode entry.
Fix
Frontend (
frontend/src/client/dashboard-grid.ts)placeWidgets()gains a{includeHidden}option.applyLayout()passesincludeHidden: editMode.materializePositions()keeps the default (hidden widgets retain stored coordinates so un-hiding restores them in place).Backend (
internal/services/dashboard_layout_spec.go)SanitizeForReadnow also clamps each widget'sW/H/Xagainst the catalogMinW/MaxW/MinH/MaxH+ grid bounds on load. Stale rows withWbelowMinW(or aboveMaxW, orX+Woverflowing the grid) heal on the nextGET /api/me/dashboard-layoutand the cleaned spec is persisted back.W=0stays0(auto/default sentinel — the placer expands it).Recovery for m
If m's saved layout already has out-of-range sizes, the next
/api/me/dashboard-layoutGET will heal them and persist the cleaned spec back. He should see proper rendering on reload.Tests
dashboard-grid.test.tspinincludeHiddenbehaviour. All 103 frontend tests pass.dashboard_layout_spec_test.gocover eachSanitizeForReadclamp plus a round-tripValidateguarantee. All./internal/...tests pass.go test ./cmd/server/...clean.go build ./...+bun run buildclean.Test plan
bun test103/103go test ./internal/... ./cmd/server/...cleango build ./...+bun run buildcleanmAi referenced this pull request2026-05-22 13:52:22 +00:00
fix(dashboard): t-paliad-238 — hidden widgets render at proper size in edit modeto fix(dashboard): hidden widgets render at proper size in edit mode (t-paliad-238)d5b3652963to4cd2f05d33Pull request closed