feat(ux): list density preference + select-value display labels - #123
Merged
Conversation
Two list/dashboard presentation improvements that share the list renderer.
Density (UX-F):
- A global "List density" preference (comfortable / compact) in Appearance,
persisted via ui-store. List views without an explicit `rowHeight` fall back
to it, so users can tighten every list at once. New DensitySelector mirrors
ThemeSelector; appearance.{density,comfortable,compact} added in en/zh/ar.
Display labels (parallel work, lands here because it touches buildListItems):
- List group-by headers and dashboard chart category buckets now render a
select field's option *label* ("Completed") instead of the raw stored value
("completed"). buildListItems takes the field defs to resolve the label;
the dashboard screen fetches each dataset object's fields once and threads
them through resolveDatasetWidget.
tsc + lint clean; full suite 1328 passing (new ui-store density case + the
label feature's list/dashboard tests).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
UX-F (2/2) — List density + value labels
Two list/dashboard presentation improvements that share
ListViewRenderer, so they ship together.List density (this session)
ui-store.rowHeightfall back to it, so a user can tighten every list at once; a view that sets its own density still wins.DensitySelectormirrorsThemeSelector(theme-aware, haptic);appearance.{density,comfortable,compact}added in en/zh/ar.Select-value display labels (parallel work)
buildListItemstakes the field defs to resolve the label; the dashboard screen fetches each dataset object's fields once and threads them throughresolveDatasetWidget.Tests
tsc + lint clean. Full suite: 1328 passing — adds a ui-store density case plus the label feature's list + dashboard tests.
Verified
Browser (375dp, dark, zh): Appearance shows 列表密度 → 宽松 / 紧凑 under the theme picker.
Note
This closes UX-F. The one remaining walkthrough item — inline status-badge edit on the detail screen — is deferred (it needs a field-level mutation flow; larger and riskier than the rest of the polish pass).
🤖 Generated with Claude Code