Commit Graph
143 Commits
Author SHA1 Message Date
kawaandClaude Sonnet 4.6 0352900e53 docs(08-02): complete phase 8 — Task 3 approved, STATE and SUMMARY updated
- Mark Task 3 (human-verify checkpoint) as user-approved
- Update SUMMARY.md to reflect all 3 tasks complete
- Update STATE.md: Phase 8 complete, THEME-01/THEME-02 satisfied
- Progress: 50% (2 of 4 v1.2 phases complete)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-01 05:17:39 +02:00
kawa 18252cbad1 docs(08-02): complete component color migration plan
- 08-02-SUMMARY.md: documents mechanical migration of 63 hardcoded color classes to semantic MD3 tokens across 9 components
- STATE.md: updated decisions and session info
- ROADMAP.md: phase 8 marked complete (2/2 plans with summaries)
2026-04-01 05:11:49 +02:00
kawa 1ac32eadc5 feat(08-02): migrate wizard components to semantic MD3 token classes
- AzureAuthToggle: border-gray-300 -> border-outline, bg-blue-600/text-white -> bg-primary/text-on-primary, bg-white/text-gray-700/hover:bg-gray-50 -> bg-surface-container/text-on-surface-container/hover:bg-surface
- SftpAuthToggle: same tab/info-tooltip mapping as AzureAuthToggle + text-gray-700 -> text-on-surface-container
- DeploymentStep: Back button border-gray-300/hover:bg-gray-50 -> border-outline/hover:bg-surface; Next bg-blue-600 -> bg-primary/text-on-primary
- OutputBlock: text-gray-700 -> text-on-surface-container, border-gray-300 -> border-outline (x2), bg-gray-900/text-gray-100 -> bg-surface-variant/text-on-surface-variant
- RemoteConfigStep: Back/Next buttons same as DeploymentStep pattern
- ReviewStep: text-green-700/bg-green-50 -> text-success/bg-success/10, bg-yellow-50/border-yellow-300 -> bg-warning/10/border-warning, text-yellow-800/900 -> text-warning, Back/Download buttons semantic tokens
- FieldRenderer (fix): text branch label text-gray-700 -> text-on-surface-container, text branch tooltip bg-blue-50/border-blue-200 -> bg-primary/10/border-primary/30
2026-04-01 05:08:33 +02:00
kawa 4e30f2ee79 feat(08-02): migrate UI primitives to semantic MD3 token classes
- BackendCard: border-blue-600/bg-blue-50 -> border-primary/bg-primary/10, border-gray-200/bg-white -> border-outline/bg-surface-container, text-gray-900 -> text-on-surface, text-gray-500 -> text-on-surface-container/70
- FieldRenderer: text-gray-700 -> text-on-surface-container, text-red-500 -> text-error, text-blue-500/700 -> text-primary, bg-blue-50/border-blue-200 -> bg-primary/10/border-primary/30, border-red-500 -> border-error, focus:ring-red-300 -> focus:ring-error/50, border-gray-300 -> border-outline, focus:ring-blue-300 -> focus:ring-primary/50, text-gray-500 -> text-on-surface-container/70, text-red-600 -> text-error
- PasswordField: same mapping as FieldRenderer + text-gray-400/hover:text-gray-700 -> text-on-surface-container/50 hover:text-on-surface-container
2026-04-01 05:04:33 +02:00
kawa 01752a126d docs(08-01): complete theme foundation plan 01
- SUMMARY with MD3 token system, ThemeToggle, FOUC prevention
- STATE updated: decisions, session, 97% progress
- ROADMAP phase 8 marked In Progress (1/2 plans)
- REQUIREMENTS THEME-01, THEME-02 marked complete
2026-04-01 04:51:55 +02:00
kawa 074dc33c86 feat(08-01): implement ThemeToggle component and wire into App.tsx
- Add ThemeToggle segmented control (Light/Dark/System) with DOM class toggle
- Use getStored() lazy init and applyTheme() for side-effect-free render
- Stub localStorage and matchMedia in tests for Node v25 compatibility
- Wire ThemeToggle into App.tsx header flex row next to h1
- Change App outer div to bg-surface, h1 to text-on-surface
- All 7 ThemeToggle unit tests passing; 166 total tests green
2026-04-01 04:49:56 +02:00
kawa fa2c0d963f test(08-01): add failing tests for ThemeToggle component
- Test renders three buttons: Light, Dark, System
- Test default state is System when localStorage is empty
- Test clicking Dark adds .dark class to documentElement
- Test clicking Light removes .dark class from documentElement
- Test clicking Dark writes to localStorage key r2b-theme
- Test active/inactive aria-pressed state
- Test group has aria-label="Theme"
2026-04-01 04:34:01 +02:00
kawa 602755276e feat(08-01): define MD3 color tokens and flash prevention script
- Add @custom-variant dark directive for .dark class-based toggling
- Define 15 CSS custom property token pairs (light/dark) in @layer base
- Map all tokens to Tailwind utility classes via @theme with var() references
- Include warning/success tokens (amber + green) for ReviewStep coverage
- Add body transition with prefers-reduced-motion guard
- Add inline blocking script in index.html head to prevent FOUC
2026-04-01 04:33:31 +02:00
kawaandClaude Opus 4.6 2ea0a1faaf fix(08): revise plans based on checker feedback
- 08-01 Task 2: change type="auto" tdd="true" to type="tdd" (schema consistency)
- 08-02 Task 2: fix inverted on-role tokens in ReviewStep migration
  bg-on-success -> bg-success/10, bg-on-warning -> bg-warning/10
- 08-02 mapping comment: same fix for consistency

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-31 18:11:02 +02:00
kawaandClaude Opus 4.6 bee3bad93a docs(08): create phase plan - 2 plans, 2 waves
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-31 18:07:29 +02:00
kawa 0ef71cdcab docs(phase-8): add validation strategy 2026-03-31 18:01:58 +02:00
kawaandClaude Sonnet 4.6 abb8320d74 docs(08): research phase — Tailwind v4 @theme tokens, dark mode, FOUC prevention
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-31 18:00:35 +02:00
kawaandClaude Opus 4.6 03aca9c768 docs(state): record phase 8 context session
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-31 17:53:32 +02:00
kawaandClaude Opus 4.6 43246745e7 docs(08): capture phase context
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-31 17:53:23 +02:00
kawaandClaude Opus 4.6 9196d030cc docs: create milestone v1.2 roadmap (4 phases) — 15 requirements mapped
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-31 17:42:16 +02:00
kawaandClaude Opus 4.6 edfbbef07f docs: define milestone v1.2 requirements — 15 requirements across 5 categories
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-31 16:14:51 +02:00
kawaandClaude Opus 4.6 4d4b01d9b7 docs(v1.2): complete project research — stack, features, architecture, pitfalls, summary
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-31 15:34:46 +02:00
kawaandClaude Opus 4.6 4a5ca206db docs: start milestone v1.2 UI Polish & Clarity
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-31 15:22:44 +02:00
kawaandClaude Opus 4.6 d8822e0e0b chore: archive v1.1 milestone — 3 phases, 11 plans, 11/11 requirements shipped
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
v1.1
2026-03-31 15:11:28 +02:00
kawaandClaude Sonnet 4.6 1aae501ddf docs(v1.1): create milestone audit — tech_debt, 11/11 requirements satisfied
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-31 15:04:12 +02:00
kawaandClaude Sonnet 4.6 cd3d31ee4c docs(phase-06): update validation strategy — nyquist_compliant true
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-31 14:07:43 +02:00
kawaandClaude Sonnet 4.6 5700fef647 docs(phase-05): update validation strategy — nyquist_compliant true
All 8 tasks verified green: 44 tests pass, 0 TypeScript errors, 0 act() warnings.
No gaps found — stub VALIDATION.md updated to reflect actual execution state.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-31 14:05:36 +02:00
kawaandClaude Sonnet 4.6 e51b366c81 docs(phase-07): complete phase execution — VALID-01 and UX-01 verified
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-31 13:53:32 +02:00
kawaandClaude Sonnet 4.6 7e0d1e92fa docs(07-02): complete UX-01 tooltip plan — human verify approved
- Updated SUMMARY.md to reflect human-verify approval and full plan completion
- STATE.md advanced: position, decisions, metrics, session recorded
- ROADMAP.md phase 7 marked complete (3/3 plans)
- UX-01 requirement satisfied

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-31 13:49:05 +02:00
kawa 7548c7b07b docs(07-02): complete UX-01 tooltip plan — awaiting human verify checkpoint
- SUMMARY.md created for plan 07-02
- STATE.md updated with decisions and session info
- ROADMAP.md updated with phase 7 plan progress
2026-03-31 13:35:24 +02:00
kawa 7c10600d02 feat(07-02): wire AzureAuthToggle tooltipText + add SFTP auth-method tooltip
- AzureAuthToggle reads sas_url/key tooltipText from BACKEND_REGISTRY and passes to PasswordField
- SftpAuthToggle adds showAuthTip state with ⓘ button above segmented control
- All 159 tests pass including UX-01 tooltip toggle tests
2026-03-31 13:33:36 +02:00
kawa 9aae9e33bd feat(07-02): add tooltipText to registry fields + render ⓘ in FieldRenderer and PasswordField
- Populate tooltipText for azureblob.sas_url, azureblob.key, and onedrive.token in registry
- Add tooltipText prop and showTooltip state to PasswordField with toggle button + panel
- Add showTooltip state to FieldRenderer; pass tooltipText to PasswordField for password branch
- Add ⓘ button + panel for text/select branches in FieldRenderer
- Use sr-only span for accessible name to avoid getByLabelText collision
2026-03-31 09:55:09 +02:00
kawa 057ba80b68 docs(07-01): complete VALID-01 format validation plan
- Add 07-01-SUMMARY.md (registry + Zod regex chaining)
- Update STATE.md with progress, decisions, session
- Update ROADMAP.md phase 7 plan progress
2026-03-31 09:51:25 +02:00
kawa c6d38fa0f1 feat(07-01): extend buildZodSchema() to chain .regex() from field.validate
- Replace simple ternary assignment with let schema pattern
- Chain (schema as z.ZodString).regex() when field.validate is present
- Handle optional fields: z.string() first, then .regex() if needed, then .optional()
- VALID-01 tests all pass (GREEN): azureblob account, s3 region, gcs project_number
2026-03-31 09:50:02 +02:00
kawa 3dea5c8561 feat(07-01): extend FieldDef with validate/tooltipText and add 3 validate rules
- Add validate?: { regex: RegExp; message: string } to FieldDef interface
- Add tooltipText?: string to FieldDef interface (prep for Plan 07-02)
- Add validate rule to azureblob.account: /^[a-z0-9]{3,24}$/
- Add validate rule to s3.region: /^[a-z][a-z0-9-]+[a-z0-9]$/
- Add validate rule to gcs.project_number: /^\d+$/
2026-03-31 09:49:13 +02:00
kawa 10bc1e93ed docs(07-00): complete wave-0 TDD stubs plan
- Create 07-00-SUMMARY.md with deviation documentation and self-check
- Update STATE.md: advance progress, add decisions, record session
- Update ROADMAP.md: phase 7 marked In Progress (1/3 summaries)
- Update REQUIREMENTS.md: VALID-01 and UX-01 marked complete
2026-03-31 09:47:14 +02:00
kawa 327421ed69 test(07-00): add failing stubs for VALID-01 and UX-01
- Add VALID-01 describe block with 7 tests: Azure account name (reject uppercase, reject <3 chars, accept valid), S3 region (reject spaces, accept valid), GCS project_number (reject non-digits, accept valid)
- Add UX-01 describe block with 5 tests: ⓘ button presence on sas_url, SFTP auth section, OneDrive token; tooltip show/hide toggle
- 9 new tests fail (RED state — validate property and tooltipText not on FieldDef yet)
- 3 new acceptance tests pass (absence-of-error condition already met before implementation)
- All 147 pre-existing tests still pass (zero regressions)
2026-03-31 09:45:21 +02:00
kawa 9d02764fa3 docs(07): create phase plan — 3 plans for VALID-01 and UX-01 2026-03-31 09:20:11 +02:00
kawa 78f54e3c9e docs(07): add validation strategy and research 2026-03-31 09:15:01 +02:00
kawaandClaude Sonnet 4.6 31d618309d docs(07): research phase validation and ux polish
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-31 09:13:53 +02:00
kawa 7d7af6e4c4 docs(state): record phase 7 context session 2026-03-31 09:08:53 +02:00
kawa f86f952266 docs(07): capture phase context 2026-03-31 09:08:48 +02:00
kawa 8d580a964f docs(phase-06): complete phase execution 2026-03-31 09:02:17 +02:00
kawa 31a6d00a67 docs(06-03): complete new backends UI wiring plan
- SUMMARY.md: all 7 backends wired in RemoteConfigStep, human-verified
- STATE.md: progress updated to 100%, decision and metrics recorded
- ROADMAP.md: phase 6 marked Complete (4/4 plans)
2026-03-31 08:59:26 +02:00
kawa 09adff0e67 feat(06-03): extend RemoteConfigStep for all 7 backends
- Add SftpAuthToggle import
- Extend backendLabel record to cover onedrive/sftp/gcs/b2
- Add sftp branch with host/user FieldRenderers + SftpAuthToggle
- onedrive/gcs/b2 render via existing registry loop (no custom branch)
- Full Vitest suite green (147 tests); zero TypeScript errors
2026-03-31 08:53:12 +02:00
kawa 7e9bdd8343 docs(06-02): complete SFTP data layer and SftpAuthToggle plan 2026-03-30 18:16:43 +02:00
kawaandClaude Sonnet 4.6 edce4146f8 docs(06-01): complete OneDrive/GCS/B2 data layer plan
- 06-01-SUMMARY.md: BackendType union extended to 7 types, BACKEND_REGISTRY/BACKEND_SCHEMAS/RCLONE_TYPE_MAP updated
- STATE.md: advanced to 06-01 complete, 92% progress, decisions recorded
- ROADMAP.md: phase 6 progress updated (3/4 summaries)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-30 18:15:24 +02:00
kawa dde2a1f01f feat(06-02): create SftpAuthToggle.tsx following AzureAuthToggle CSS-hidden pattern
- Password and Private Key tabs using CSS-hidden segmented control
- Both pass and key_pem fields always registered with react-hook-form
- Password tab active by default (authMethod = 'password')
- Active tab: bg-blue-600 text-white; inactive: bg-white text-gray-700 hover:bg-gray-50
- Wired into RemoteConfigStep in Plan 03 (06-03-PLAN.md)
2026-03-30 18:14:01 +02:00
kawa c1d61d380c feat(06-02): add sftp entry to registry, index, and rclone-conf
- Add sftp entry to BACKEND_REGISTRY with host, user, pass, key_pem fields
- Remove placeholder NOTE comment (sftp entry now present)
- Add sftp, onedrive, gcs, b2 to BACKEND_SCHEMAS in index.ts
- Add sftp, onedrive, gcs (google cloud storage), b2 to RCLONE_TYPE_MAP
- All 55 registry and rclone-conf tests pass; zero TypeScript errors
2026-03-30 18:12:39 +02:00
kawa 631470d5ac docs(06-00): complete Wave 0 RED test stubs plan
- Create 06-00-SUMMARY.md with RED state confirmation (27 failing, 49 green)
- Update STATE.md: progress 88%, decisions, session info
- Update ROADMAP.md: phase 6 in progress (1/4 summaries)
- Mark BACK-01 through BACK-04 complete in REQUIREMENTS.md
2026-03-30 18:10:49 +02:00
kawa 6f46f6b135 test(06-00): add failing describe blocks for OneDrive, SFTP, GCS, B2 in RemoteConfigStep (RED)
- BACK-01 (Phase 6): OneDrive — OAuth Token, Drive ID, Drive Type select
- BACK-02 (Phase 6): SFTP — Host, Username, Password tab, Private Key tab, tab-switching CSS-hide, value preservation
- BACK-03 (Phase 6): GCS — Project Number, Service Account JSON
- BACK-04 (Phase 6): Backblaze B2 — Application Key ID, Application Key
- 13 new tests fail RED; 8 existing tests remain green
2026-03-30 18:08:57 +02:00
kawa ad3d3240b1 test(06-00): add failing assertions for 7-backend registry (RED)
- EXPECTED_BACKENDS now includes onedrive, sftp, gcs, b2 (7 total)
- Added describe blocks for OneDrive, SFTP, GCS, Backblaze B2 field assertions
- 9 tests fail RED because registry.ts still has only 3 BackendType values
2026-03-30 17:18:30 +02:00
kawaandClaude Sonnet 4.6 b314e65536 docs(06-new-backends): create phase plan
4 plans across 3 waves: Wave 0 TDD stubs, Wave 1 data layer (parallel: OneDrive/GCS/B2 + SFTP/SftpAuthToggle), Wave 2 RemoteConfigStep wiring.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-30 13:38:46 +02:00
kawa e9bf449183 docs(06): add research and validation strategy 2026-03-30 13:29:50 +02:00
kawaandClaude Sonnet 4.6 71cd1c6373 docs(06): research phase new-backends
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-30 13:28:42 +02:00