Commit Graph
1545 Commits
Author SHA1 Message Date
g-butandClaude Sonnet 4.6 dba51f7a83 refactor(landing+auth): eliminate rgba/color inline styles, redundant fontFamily
- page.tsx: 15 inline style props → Tailwind (rgba colors, #050505, #fff,
  letterSpacing); justified gradient/backgroundImage/clamp kept inline
- auth headings: fontFamily (already inherited from h1 rule in globals.css)
  and lineHeight/letterSpacing moved to Tailwind leading-*/tracking-[*]
- Added hover states to nav Sign in and View source links in page.tsx

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 10:08:49 +02:00
g-butandClaude Sonnet 4.6 d7c51a09d8 refactor(ui): remove FIELD_INPUT_CLASS indirection — inline ui-input directly
FIELD_INPUT_CLASS = "ui-input" added no value. Replaced all 24 usages
across 6 components with className="ui-input" directly, removed the
constant and cleaned up all imports.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 10:05:05 +02:00
g-butandClaude Sonnet 4.6 fa63d1bf45 refactor(auth): eliminate last rgba inline styles in sign-in / sign-out
Converted remaining style={{ color: "rgba(255,255,255,0.x)" }} to
text-white/38. Replaced bare label+div in sign-in form with AuthField
so the label color comes from the shared component.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 09:59:33 +02:00
g-butandClaude Sonnet 4.6 48d5a2bb6f refactor(auth): convert rgba text color inline styles to Tailwind classes
setup/page.tsx and invite/[token]/page.tsx had style={{ color: "rgba(255,255,255,0.x)" }}
for subtitle text — replaced with text-white/38, text-white/18, text-white/35.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 09:57:08 +02:00
g-butandClaude Sonnet 4.6 02a7411b6c refactor(auth): replace all inline styles in AuthShell with Tailwind classes
Removed 12 inline style props and 2 JS onFocus/onBlur handlers from
AuthShell.tsx. rgba(255,255,255,x) → text-white/x / bg-white/x / border-white/x,
backdropFilter → backdrop-blur-[12px], bg-white and bg-[#050505] in className.
CSS focus:border-white/30 replaces the JS border mutation on AuthInput.
Also fixed the one invite-page style override: text-white/60 className.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 09:55:14 +02:00
g-butandClaude Sonnet 4.6 6372e34874 refactor(auth): replace JS hover on GitHub button with CSS hover classes
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 09:49:41 +02:00
g-butandClaude Sonnet 4.6 131664a46f refactor(auth): fix sign-out DRY + JS hover anti-pattern
sign-out/page.tsx duplicated the AuthSubmitButton white-button style inline
instead of reusing the shared component. Extended AuthSubmitButton to accept
optional onClick (uses type=button when provided). Replaced JS onMouseEnter/
onMouseLeave hover with Tailwind hover: classes on the cancel button.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 09:47:18 +02:00
g-butandClaude Sonnet 4.6 4f3b7e16a0 refactor(ui): extract prompt category colors to ui-cat-* SSOT classes
Hardcoded Tailwind palette strings (bg-blue-500/15 etc.) were scattered
across prompt-library.ts config. Moved all 10 category color definitions
to globals.css as ui-cat-* classes; config now references class names.
Color changes happen in one place.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 09:40:17 +02:00
g-butandClaude Sonnet 4.6 184e38fe85 feat(today): surface action history when queue is empty
getRecentActions existed but was dead code — after approving/rejecting
actions they vanished with no trace. Now ActionQueueCard shows the last
5 reviewed actions (✓ done / ✗ skipped + relative time) when the queue
is clear, closing the judgment feedback loop.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 09:34:17 +02:00
g-butandClaude Sonnet 4.6 1f8cd1d5fe refactor(ui): replace inline MORE_INTENTS classes with ui-btn-ready-more SSOT
Two hardcoded className strings in IntentButtonPanel bypassed the ui-*
SSOT. Updated ui-btn-ready-more to match the actual usage (bg-surface-overlay,
px-3 py-2, disabled:opacity-50) then used it for the MORE_INTENTS buttons
and the Clear context button (with a hover:text-status-warning override).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 09:24:54 +02:00
g-butandClaude Sonnet 4.6 6644620436 fix(actions): prevent duplicate draft actions via partial unique index
Ivy was re-generating check-in drafts for people who already had one
pending, causing the same person to appear twice in the action queue.
Cleaned up 3 existing stale duplicates and added a partial unique index
on (user_id, title) WHERE status='draft' so the DB rejects any future
duplicates at insertion time.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 09:15:12 +02:00
g-butandClaude Sonnet 4.6 a4006ccc86 fix(habits): sync HabitsCard header counter on toggle and remove
toggle/remove only did optimistic setState — the server component counter
(X/Y today) stayed stale until manual reload. Adding router.refresh()
after each successful API call re-renders the server component so the
counter reflects actual DB state.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 09:04:41 +02:00
g-butandClaude Sonnet 4.6 0b19eb7711 fix(today): prevent HabitsCard from stretching to CommitmentsCard height
CSS Grid default align-items:stretch was expanding the empty habits
card to 322px to match its row sibling. items-start restores natural
height (~138px).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 08:57:22 +02:00
g-butandClaude Sonnet 4.6 3546235042 fix(code-quality): unminify thoughts pages, clean timer type cast
- Expand minified single-line JSX in thoughts/page.tsx and
  thoughts/[slug]/page.tsx into properly formatted multi-line JSX
  (previous session had written these as one-liners with a comment
  "unchanged visual layout")
- Split SubscriptionActions props across lines in money/page.tsx
- Replace `0 as unknown as ReturnType<typeof setTimeout>` with
  `ReturnType<typeof setTimeout> | undefined` in ProjectCard.tsx

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 08:46:34 +02:00
g-butandClaude Sonnet 4.6 7d2f41e2be refactor(auth): DRY auth pages into shared AuthShell + fix sign-out blue button
- Create src/components/auth/AuthShell.tsx with 8 shared primitives
  (AuthShell, AuthCard, AuthField, AuthInput, AuthSubmitButton,
  AuthIconBadge, AuthDivider, AuthFooterLink) — eliminates ~150 lines
  of duplicated background/grid/nav HTML across 3 pages
- Rewrite sign-in, setup, and invite pages to use the shared shell
- Add src/app/sign-out/page.tsx — styled confirmation page matching
  auth design (white CTA + ghost cancel), replacing Next-Auth's default
  blue-button page
- Register pages.signOut: "/sign-out" in auth.ts
- Sidebar: replace form POST to /api/auth/signout with signOut() from
  next-auth/react, skipping confirmation page on sidebar click

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 08:37:34 +02:00
g-butandClaude Sonnet 4.6 0aad8f69d7 refactor(ui): consolidate micro-label SSOT and replace legacy bg-background tokens
- 6 instances of inline text-[10px] text-text-muted uppercase tracking-wider
  in ProjectOverviewTab, project-overview-helpers, ProjectPromptsTab replaced
  with ui-micro-label (class was added in prior session but code wasn't updated)
- Public profile page: text-indigo-400 → text-accent-primary,
  bg-indigo-500/20 → bg-accent-muted, bg-background → bg-surface-page
- AppShell: bg-background text-foreground → bg-surface-page text-text-primary
- PersonDetail sticky header: bg-background/95 → bg-surface-page/95
- modal.tsx background drawer surface: bg-background → bg-surface-page

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 08:24:13 +02:00
g-butandClaude Sonnet 4.6 c61d02a476 fix: resolve hydration errors and stale JWT onboarding loop
- ThemeToggle: render stable placeholder until mounted to avoid SSR/client
  theme mismatch (next-themes resolves theme client-side only)
- ProjectTile: change outer <button> to <div role="button"> — nested
  <button> inside <button> is invalid HTML and caused hydration errors
- auth.ts jwt callback: re-read DB when trigger === "update" so onboarding
  page can call update() to get a fresh JWT after saving username/onboardedAt
- layout.tsx: wrap app in <SessionProvider> to enable useSession() app-wide
- onboarding/page.tsx: call update() after PATCH /api/me to force JWT
  refresh before redirect, preventing proxy reading stale null values
- globals.css: fix @apply h-3.5 / h-2.5 (backslash escaping broke Tailwind 4)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 08:14:56 +02:00
g-butandClaude Sonnet 4.6 5ee48c0585 refactor(ui): add ui-btn-text-cancel, fix inconsistent transition-colors
Covers the 6× small inline text cancel button (px-1, text-xs, no bg).
3 instances were missing transition-colors — fixed as part of extraction.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 07:50:08 +02:00
g-butandClaude Sonnet 4.6 4cdc91c323 refactor(ui): add ui-btn-inline-cancel + ui-label-row SSOT classes
ui-btn-inline-cancel covers the 3× inline edit cancel button (rounded,
no bg hover) in goal-card-helpers, project-overview-helpers, AddHabitForm.
ui-label-row covers the 3× justify-between label+value row in SystemStats.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 07:48:04 +02:00
g-butandClaude Sonnet 4.6 994583c98e refactor(ui): add ui-list-row + ui-btn-icon-accent SSOT classes
ui-list-row covers the 4× compact list-item row in PersonDetail,
PersonChannelsSection, PersonInteractionsSection, PersonDetailAttrs.
ui-btn-icon-accent covers the 3× small accent-bg icon save buttons
in people components (caller adds p-1 or p-1.5 padding).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 07:45:00 +02:00
g-butandClaude Sonnet 4.6 8a1b84e216 refactor(ui): move PROMPT_STYLE Tailwind strings into globals.css SSOT
Adds ui-btn-ready-{primary,action,more} to globals.css — the compact
py-2.5 button variants used in ready-banner prompts. PROMPT_STYLE config
now holds class names instead of raw Tailwind utility strings.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 07:40:09 +02:00
g-butandClaude Sonnet 4.6 9829693edf refactor(ui): extract ui-card-section + ui-micro-label SSOT classes
ui-card-section covers the 4× border-t section divider in project cards
and AskIvyModal. ui-micro-label covers the 17× text-[10px] uppercase
tracking-wider micro-label pattern in JobDetail, AutopilotCard,
MemorySummaryCard, and other compact data views.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 07:37:37 +02:00
g-butandClaude Sonnet 4.6 9adf3bd2f9 refactor(ui): consolidate all animate-spin patterns into ui-spinner-* SSOT classes
Adds ui-spinner-2xs (h-2.5), ui-spinner-xs (h-3), ui-spinner-sm (h-3.5),
ui-spinner (h-4) to globals.css — covering 43 Loader2 instances across 37
files that were each spelling out identical Tailwind size+animate combos.

Also adds ui-data-cell for the 7× repeated compact stat box in JobDetail.tsx.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 07:33:54 +02:00
g-butandClaude Sonnet 4.6 85107211fb fix(prompts): replace non-existent ui-button-primary + add ui-* classes
- Fix bug: ui-button-primary does not exist → Run buttons in PromptRow
  and FeaturedCard had no styling; replaced with ui-btn-lg
- Add ui-badge, ui-chip, ui-chip-filter/active, ui-btn-overlay to globals.css
- Replace 3× repeated badge spans in PromptRow with ui-badge
- Replace 3× category chip labels with ui-chip across FeaturedCard + PromptLibraryClient
- Replace 5× icon overlay buttons with ui-btn-overlay (PromptRow, FeaturedCard,
  RunModal, ScheduleModal)
- Replace 5× toggle filter buttons with ui-chip-filter/active (CategoryBar,
  PromptLibraryClient)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 07:24:19 +02:00
g-butandClaude Sonnet 4.6 714427f383 refactor(control): ui-btn-lg classes + withinWindow helper
- Add ui-btn-lg / ui-btn-lg-outline to globals.css as SSOT for the
  large action buttons used throughout the control panel intent rows
- Replace 5 inline rounded-2xl button strings in project-card-sections
  with the new classes
- Extract withinWindow() helper to lib/constants/control.ts; collapses
  10 instances of ts !== null && nowS - ts < X across ProjectCard and
  ControlPanel into single readable calls

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 07:16:02 +02:00
g-butandClaude Sonnet 4.6 b32b15f6cf refactor(api): complete readJsonBody migration across all remaining routes
Replaces every hand-rolled req.json().catch()/typeof-guard pattern with
readJsonBody + Zod schemas in inject, invitations, setup, project-states,
clear-context, and sync routes. project-states collapses 12 manual typeof
checks into a typed schema; inject adds a .refine() guard so the
promptKey-or-customPrompt business rule lives in the schema.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 07:05:58 +02:00
g-butandClaude Sonnet 4.6 ece4a4de12 refactor(api): migrate remaining routes to readJsonBody helper
Eliminates hand-rolled req.json().catch() + safeParse patterns in
me, user-projects POST, and user-projects PATCH routes. Also adds
readIdParam to user-projects DELETE for consistent UUID validation.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 06:58:26 +02:00
g-butandClaude Sonnet 4.6 0580f57093 refactor: complete form.tsx → globals.css migration for all remaining constants
Add ui-btn-chip, ui-btn-icon, ui-btn-save, ui-btn-add, ui-btn-submit to globals.css.
Remove SECONDARY_BUTTON_CLASS, ICON_BUTTON_CLASS, INLINE_SAVE_CLASS, ADD_BUTTON_CLASS,
PRIMARY_BUTTON_CLASS, DANGER_BUTTON_CLASS string constants from form.tsx.
All 36 usages across 13 files now reference ui-* classes directly — no import needed.
form.tsx now contains only FIELD_INPUT_CLASS alias and the Field component.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 06:49:33 +02:00
g-butandClaude Sonnet 4.6 94107a3006 refactor: promote input variants to ui-* classes, eliminate DeleteCommitmentButton
- Add ui-input-compact and ui-input-tight to globals.css (visual SSOT)
- Remove FIELD_INPUT_CLASS_COMPACT / FIELD_INPUT_CLASS_TIGHT string constants from form.tsx
- Inline ui-input-compact/tight directly in all 17 components (no import needed)
- Delete DeleteCommitmentButton.tsx (52-line reimplementation of DeleteButton);
  CommitmentItem now uses DeleteButton directly

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 06:44:46 +02:00
g-butandClaude Sonnet 4.6 e9f5d8d24b refactor: eliminate all raw fetch() calls — route everything through lib/api/fetch helpers
Replaces the remaining 10 raw fetch() calls across 6 files with getJson/postJson/patchJson.
No more repeated { method, headers, body: JSON.stringify } boilerplate outside the SSOT helper.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 06:34:49 +02:00
g-butandClaude Sonnet 4.6 596d2dc7bc feat(people): one-tap "reached out" quick-log on PersonCard
Adds a single-click "→ Reached out" button to each person card so reviewing
stale contacts requires no extra steps — tap once, health updates immediately.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 06:28:33 +02:00
g-butandClaude Sonnet 4.6 12a5aa5885 fix(people): full grid state sync for create and delete from PersonDetail
Three related state-sync gaps closed:

1. Deleting a person from the detail drawer no longer leaves a ghost card
   in the grid — onDeleted callback removes from local state immediately
   (router.refresh() was unreliable since PeopleGrid uses useState).

2. Creating a person now shows the new card — NewPersonButton moved inside
   PeopleGrid and passed an onCreated callback that calls search() with
   the current query/sort/filter state.

3. useRouter import removed from PersonDetail (no longer needed).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 06:23:33 +02:00
g-butandClaude Sonnet 4.6 f0bed51924 fix(people): sync grid health state when interaction logged from detail drawer
PersonDetail (drawer) had no callback back to PeopleGrid, so logging an
interaction from the drawer left the card's health dot and last-seen
timestamp stale until a page reload. Adds onInteractionLogged prop to
PersonDetail, extracts shared handleLogged into PeopleGrid so both the
inline PersonCard log and the drawer route through the same update logic.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 06:16:31 +02:00
g-butandClaude Sonnet 4.6 04e963a070 refactor(fetch): replace raw fetch boilerplate with postJson/patchJson/deleteJson helpers
Eliminates repeated { method, headers, body: JSON.stringify(...) } patterns
across 6 components, and migrates NewProjectModal to the shared <Modal>
component instead of rolling its own fixed inset-0 z-50 backdrop.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 06:08:17 +02:00
g-butandClaude Sonnet 4.6 d8fcb14a99 feat(people): remove logged contact from filtered view when health improves
When a health filter is active (fading/stale/unknown) and you log an
interaction that moves the contact to 'active', the card now disappears
immediately from the list and the total count decrements. Previously the
contact stayed in the list with an updated dot, leaving noise in the
stale-contact review workflow.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 05:59:48 +02:00
g-butandClaude Sonnet 4.6 016eced27f feat(events): autocomplete type field from existing event types
The type input in AddEventForm now shows a datalist of types already in
the list, preventing accidental "conference" vs "Conference" splits that
would fragment the filter chips. New types still accepted freely.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 05:56:46 +02:00
g-butandClaude Sonnet 4.6 5c41c4648b feat(goals): inline sub-goal creation directly on GoalCard
Previously adding a sub-goal required the global New Goal modal + parent
dropdown. Now each active goal card has an inline '+ Add sub-goal' button
that expands an input field in the children section — Enter to save,
Escape to cancel. Refreshes server state on success.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 05:54:22 +02:00
g-butandClaude Sonnet 4.6 0f08004f3a feat(projects): create goals directly from project Goals tab
Previously you could only link existing goals to a project — now you can
create a new goal (with title + optional target date) inline, pre-linked
to the project in a single API call. Adds entityId to CreateGoalBody/POST
route, and replaces the single 'Link existing' button with a mode-based
panel (idle → create | link → idle).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 05:51:13 +02:00
g-butandClaude Sonnet 4.6 75c7d4e734 fix(tokens): eliminate last text-white and opacity-white violations
- HabitRow checkmark: text-white → text-text-inverted (on colored bg)
- ProjectDetailTabBar active tab: text-white → text-text-primary
- Goals empty state: text-white/30 → text-text-muted
- channels.ts email/other: text-white/40|/30 → text-text-tertiary|muted

All bare text-white, bg-white, border-white and white/opacity classes
are now eliminated from app components.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 05:43:18 +02:00
g-butandClaude Sonnet 4.6 a10b64e84d fix(tokens): eliminate last hardcoded oklch values in setup and landing pages
- setup/page.tsx error text: oklch literal → text-status-negative
- page.tsx green dot: oklch literal → bg-status-positive class

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 05:37:46 +02:00
g-butandClaude Sonnet 4.6 a3f09eea4e fix(tokens): remove hardcoded oklch status-negative value from auth pages
Error messages in sign-in and invite pages used style={{ color: "oklch(...)" }}
which was literally the --status-negative token value. Replace with className.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 05:36:05 +02:00
g-butandClaude Sonnet 4.6 5f894e2b76 fix(tokens): replace text-destructive with text-status-negative for SSOT
Error messages and destructive hover states in ProjectsSettings, ProfileSettings,
and onboarding were using the shadcn 'destructive' token instead of our SSOT
semantic token text-status-negative.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 05:33:04 +02:00
g-butandClaude Sonnet 4.6 e289f0362f fix(tokens): eliminate last hardcoded Tailwind colors, add border-interactive token
- Add --border-interactive token (light: 0.30, dark: 55% white) for
  interactive-element hover borders — replaces hover:border-white/60 on
  goal checkboxes
- HEALTH_DOT_COLOR: bg-green/yellow/red-400 → bg-status-positive/warning/negative
- ProjectGrid issues border: border-yellow-500/20 → border-status-warning/20
- PromptLibraryClient star: text-yellow-400/80 → text-status-warning/80

Zero hardcoded Tailwind color classes remain outside intentional brand/config files.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 05:29:57 +02:00
g-butandClaude Sonnet 4.6 43dc962d28 refactor: split ProjectOverviewTab and AskIvyModal below 300-line limit
- Move ClaudeSession into project-overview-helpers (ProjectOverviewTab: 322 → 258)
- Extract useSpeechRecognition into src/hooks/use-speech-recognition.ts
- Extract useElapsedTimer + QUICK_PROMPTS into ask-ivy-helpers.ts
  (AskIvyModal: 317 → 226)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 05:25:08 +02:00
g-butandClaude Sonnet 4.6 096fd6e3c8 refactor(control): extract useControlData hook from ControlPanel
Moves all data fetching, SSE subscription, and API callbacks into
src/hooks/use-control-data.ts. ControlPanel drops from 488 → 278 lines,
staying under the 300-line god-component limit.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 05:21:04 +02:00
g-butandClaude Sonnet 4.6 3d54cf27e4 refactor(control): split ProjectCard god component 523→252 lines
Extracted ProjectCardHeader, SessionSummary, ProjectBanners, and
IntentButtonPanel into project-card-sections.tsx (388 lines). Header
self-manages syncing/syncResult; IntentButtonPanel self-manages
showMore/clearingContext. ProjectCard now contains only state, effects,
computed values, and a clean JSX skeleton.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 05:15:10 +02:00
g-butandClaude Sonnet 4.6 4cb631e856 fix(tokens): replace remaining bg-white/* indicator dots with bg-status-neutral
3 inactive state dots (never-run, low-progress) → bg-status-neutral.
2 intentional exceptions remain: hover:border-white/60 on goal checkboxes
(interactive 60% hover highlight has no defined token equivalent).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 05:07:06 +02:00
g-butandClaude Sonnet 4.6 3b3b8ce391 fix(tokens): replace bg-white/* and border-white/* with semantic tokens
74 bg-white/* opacity backgrounds → bg-surface-base/raised/overlay;
84 border-white/* opacity borders → border-border-subtle/default/strong.
5 intentional exceptions remain: hover:border-white/60 (checkbox highlight,
beyond token range) and bg-white/20-25 (inactive indicator dots, need a
dedicated status-inactive token to handle cleanly).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 05:05:18 +02:00
g-butandClaude Sonnet 4.6 5487caf649 fix(tokens): replace 241 text-white/* opacity violations with semantic tokens
All text-white/X inline opacity classes replaced with the correct
semantic token: /80-85→text-text-primary, /50-75→text-text-secondary,
/35-40→text-text-tertiary, /10-30→text-text-muted. Eliminates hardcoded
color pattern across 44 component files per SSOT rule.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 04:58:35 +02:00
g-butandClaude Sonnet 4.6 7211266f76 refactor(control): split ControlPanel god component 723→488 lines
Extracted ActivityLogPanel, BrainConfigPanel, FleetStatusBar, and
NewProjectModal into control-panel-helpers.tsx (362 lines). ControlPanel
now contains only state, effects, and callbacks — no large JSX blocks.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 04:53:17 +02:00