feat: extract compose design system

This commit is contained in:
Hermes Agent
2026-07-24 09:44:22 +00:00
parent 26bff1174d
commit 9ed096997c
8 changed files with 806 additions and 350 deletions
+7 -7
View File
@@ -22,13 +22,6 @@
## Now — finish the foundation already in progress
- [ ] **F1 — Compose design system extraction**
- Extract tokens for color, spacing, typography, shape, elevation, motion, and semantic status colors.
- Implement light/dark themes with readable contrast; eliminate default-sample styling.
- Split oversized UI into clear design, feature, and reusable component packages.
- Add Compose previews: small phone, normal phone, tablet width, light, dark.
- Verification: Android compile/build plus visual preview review.
- [ ] **F2 — Polished fake-data chat proving ground**
- Session rail/list, conversation screen, context controls, keyboard-safe composer, send/cancel/retry behavior.
- Render assistant/user/system/error/streaming messages from UI models.
@@ -98,6 +91,13 @@ _Move finished items here with date, commit, and verification. Keep this section
- Verification: `git diff --check` passed; `npm run typecheck --workspace @hermes-mobile/companion` passed; `npm run lint --workspace @hermes-mobile/companion` passed; `npm run build --workspace @hermes-mobile/companion` passed; `npm run typecheck` passed; `npm run lint` passed; `npm run build` passed.
- Android debug build attempted with `GRADLE_USER_HOME=/root/hermes-mobile/.gradle-user ./gradlew :app:assembleDebug` from `apps/mobile/android`; blocked before compilation because network socket creation is not permitted while downloading Gradle 8.11.1.
- [x] **F1 — Compose design system extraction** — 2026-07-24, commit `PENDING` (`feat: extract compose design system`).
- Extracted color, semantic status, spacing, typography, shape, elevation, and motion tokens.
- Added light and dark Hermes Compose themes backed by Material 3 color schemes.
- Split shared Compose cards, rows, controls, notices, message bubbles, list scaffolds, and code surfaces out of `MainActivity.kt`.
- Added Compose previews for small phone, normal phone, tablet width, light theme, and dark theme component coverage.
- Verification: `git diff --check` passed; `GRADLE_USER_HOME=/root/hermes-mobile/.gradle-user ./gradlew :app:assembleDebug` from `apps/mobile/android` passed.
## Work-loop checklist
Before coding: