- 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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
- 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>
- 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>
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>
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>
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>
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>
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>
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>
- 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>
- 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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>