Skip to content

Move Memos onto the shared card layer (plan PR 4) - #97

Merged
mapgie merged 3 commits into
claude/pr-94-review-zm6ostfrom
claude/memos-shared-layer
Aug 22, 2026
Merged

Move Memos onto the shared card layer (plan PR 4)#97
mapgie merged 3 commits into
claude/pr-94-review-zm6ostfrom
claude/memos-shared-layer

Conversation

@mapgie

@mapgie mapgie commented Aug 22, 2026

Copy link
Copy Markdown
Owner

Implements PR 4 of the UI component-system plan (docs/ui-component-system-plan.md, from #94). Stacked on claude/list-scaffolding-identity-strip (PR 3); the diff here is PR 4 only. GitHub retargets to main as the stack merges down.

Changes

  • ReminderCardDashListCard. Overdue Memos drop the reserved errorContainer/error palette (which CLAUDE.md reserves for genuine errors) and map through statusTone() to the shared overdue vocabulary: a red accent bar and red time text. The opaque container, plus PR 3's swipe-panel gating, fully fix the archived-overdue Memo that rendered as a purple card with a red rim and a "Done✔" label showing through.
  • SourceChip (new) — a colour-coded pill naming each alarm's origin, tinted from LocalTypeAccents (green for chore-sourced, lavender for task-sourced), replacing the plain primary-coloured linked label. The label text ("Chore: Air Plant") carries the meaning; colour is a secondary cue. Ad hoc Memos have no linked source and show no chip (unchanged from today's behaviour).
  • §5c respected: Memos leaves the owner / zen / sort / filter slots empty — it's a collation surface, and the slot API makes that a no-op.
  • Overview sheets (ChoreOverviewSheet, TaskOverviewSheet) adopt the shared CategoryBadge and OwnerAvatar, so the detail views match the list views (they previously showed an uppercase text eyebrow and no owner).
  • DashListCard content slot regains a 4dp inter-line gap that was lost when the cards moved onto the shell in PR 2 — needed by Memos and restoring the Task title/meta spacing.

Checks

  • python3 a11y_check.py — clean (88 files).
  • Changelog fragment memos-shared-layer.json (patch).

This container has no Android SDK, so the app is not compiled locally; CI is the build check.

🤖 Generated with Claude Code

https://claude.ai/code/session_011bvGtNaiY6zFyB2w4fTVAf


Generated by Claude Code

PR 4 of the UI component-system plan (docs/ui-component-system-plan.md).

- ReminderCard rewritten as a thin binding onto DashListCard. Overdue Memos
  drop the reserved errorContainer/error palette and map through statusTone
  to the shared overdue vocabulary (red accent bar + red time). The opaque
  container plus PR 3's swipe-panel gating fix the archived-overdue Memo that
  showed a coloured panel and stray label through the card.
- SourceChip: a colour-coded chip naming each alarm's origin, tinted from
  LocalTypeAccents (green chore-sourced, lavender task-sourced), replacing the
  plain primary-coloured linked label. The text carries the meaning; colour is
  a secondary cue. Ad hoc Memos have no source and show no chip, as before.
- Memos leaves the owner/zen/sort/filter slots empty (it is a collation
  surface, §5c).
- ChoreOverviewSheet and TaskOverviewSheet adopt the shared CategoryBadge and
  OwnerAvatar so the detail views match the list views.
- DashListCard content slot regains the 4dp inter-line gap (lost when the
  cards moved onto the shell in PR 2); needed by Memos and restores the Task
  title/meta spacing.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011bvGtNaiY6zFyB2w4fTVAf
@mapgie
mapgie changed the base branch from claude/list-scaffolding-identity-strip to claude/pr-94-review-zm6ost August 22, 2026 09:20
PR 5 of the UI component-system plan (docs/ui-component-system-plan.md).

- ui/components/core/Gallery.kt: a set of @Preview composables rendering the
  three card bindings and every core primitive side by side, in light/dark,
  zen, and high-contrast. The Storybook analogue: one place to see drift in
  review. Preview-only; nothing ships in the running app.
- ui/components/README.md: documents the rule the layer exists to enforce -
  screens compose components, screens do not draw - plus the layout, the
  opaque-container and one-status-vocabulary rules, and how to add a component.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011bvGtNaiY6zFyB2w4fTVAf
@mapgie
mapgie marked this pull request as ready for review August 22, 2026 09:36
Component gallery + components guide (plan PR 5)
@mapgie
mapgie merged commit 6d1c668 into claude/pr-94-review-zm6ost Aug 22, 2026
@mapgie
mapgie deleted the claude/memos-shared-layer branch August 22, 2026 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants