Commit Graph
1304 Commits
Author SHA1 Message Date
g-butandClaude Sonnet 4.6 cf75146a21 fix(ui): fix two more empty/error states using unreadable muted color
ProjectProfile "No profile" and ProjectDetail "Project not found" messages
upgraded from text-muted to text-secondary for legibility.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 20:28:49 +02:00
g-butandClaude Sonnet 4.6 62f017c610 fix(ui): upgrade empty-state and error text from muted to readable contrast
Replaced text-text-muted (~2:1) with text-text-secondary/tertiary (~3-6:1)
on all informational empty states and error messages across 9 components:
CommitmentsCard, SubscriptionsCard, CalendarCard, WeatherCard (error/status),
EventsGrid, Goals page, TeamSettings, ProjectsSettings, LogConversationButton.
Decorative icons remain tertiary; only primary message text upgraded.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 20:27:37 +02:00
g-butandClaude Sonnet 4.6 323b4ae525 fix(ui): improve light-mode readability across three touch points
- ui-kicker contrast: text-muted → text-tertiary (~2:1 → ~3.2:1 in light mode)
- GoalCard "Add sub-goal": text-muted → text-secondary for discoverability
- Compact ActionButtons: p-1/p-1.5 → p-2 (touch target 24–28px → 32px)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 20:21:00 +02:00
g-butandClaude Sonnet 4.6 fe33d8839b refactor(goals): use useInlineEdit hook for title/desc edits in GoalCard
Removes 6 hand-rolled editing/saving state vars, replaces them with the
existing useInlineEdit hook that all other inline-edit components use.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 20:02:08 +02:00
g-butandClaude Sonnet 4.6 2136e0066c fix(people): exclude user self correctly when external_id IS NULL
e.external_id != 'george' evaluates to NULL (not TRUE) for contacts
where external_id IS NULL — incorrectly excluding them from queries.
Changed to (IS NULL OR != default) in both people.ts and today.ts.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 19:54:08 +02:00
g-butandClaude Sonnet 4.6 ada41dc64f fix(today): stale contacts pill now only counts contacts with prior interactions
1279→106: importing WhatsApp contacts created 1279 "stale" entries because
the query matched IS NULL (never interacted). Contacts with no interaction
history are dormant imports, not contacts that need rekindling — only those
you've previously engaged deserve the "needs attention" signal.

Changed LEFT JOIN → JOIN and dropped OR max IS NULL clause. Updated pill
link to remove the `unknown` health filter for consistency.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 19:46:44 +02:00
g-butandClaude Sonnet 4.6 61866d78e2 chore(control): remove unused profile destructure after ProfilePanel removal
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 19:32:29 +02:00
g-butandClaude Sonnet 4.6 06c59ce667 refactor(control): remove redundant ProfilePanel + polish LatestOrchestrationPanel
ProfilePanel in the Status tab duplicated the Profile tab introduced in the
previous redesign — two collapsible "Profile" sections was confusing UX.
Removed ProfilePanel and its private MaturityBar (only consumers of those
two exports) and cleaned up the now-unused Info/ChevronDown/ChevronRight/
ExternalLink imports.

LatestOrchestrationPanel: semantic state badge coloring (done=positive /
error=negative / running=warning), tightened spacing, reduced text sizes
for better visual hierarchy.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 19:29:51 +02:00
g-butandClaude Sonnet 4.6 f376cf5761 fix(control): mobile grid overflow + terminal indicator for aliased tabs
Mobile (375px): idle tile grid lacked explicit grid-cols-1 so browser
auto-sized the single track to content width (~1240px), overflowing the
container. Adding grid-cols-1 as the base gives minmax(0,1fr) behavior.

Terminal indicator: expose liveTab in ProjectState so ProjectCard and
ProjectTile can resolve the correct Zellij tab name for alias matches
(e.g. canonical "Cockpit" → live "Cockpit Claude"). Previously tabOpen
was always false for any aliased project.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 19:17:51 +02:00
g-butandClaude Sonnet 4.6 e1b043978d fix(control): use liveTab for parseSession + SSOT + key/cn cleanups
- control/route: resolveEffectiveTab before parseSession so "Cockpit Claude.md"
  is read instead of stale "Cockpit.md" when tab has a Zellij alias
- sessions/route: import SESSIONS_DIR from lib/claude-config (was duplicated)
- project-card-sections: stable key on recentCustomPrompts (customPrompt not index)
  + use cn() instead of template string for conditional classes

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 19:07:18 +02:00
g-butandClaude Sonnet 4.6 6bc632ef14 feat(control): collapse expanded tiles + live terminal indicator
Expanded idle projects now show a "Collapse" button in the card tab bar
that returns them to the tile grid — onCollapse is only wired for cards
promoted via expandedTabs, not natively-active ones.

Terminal icon shown in accent color on both ProjectCard header and
ProjectTile when the project's Zellij tab is currently open, making the
terminal↔web connection visually explicit.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 18:58:47 +02:00
g-butandClaude Sonnet 4.6 db5bcfcdd8 chore(control): remove unused Fragment + ChevronDown imports
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 18:52:31 +02:00
g-butandClaude Sonnet 4.6 447bcc663f fix(control): key prop bug + redesign ProjectProfile to xAI-grade polish
Bug: Fragment in MetaSection.map() had no key — moved key to Fragment.

Design: complete visual overhaul of the profile tab —
- Mission highlighted with left-border callout
- Status/Maturity inline in a single stats row (StatusChip + segment dots)
- URL with Globe icon, no-protocol display, hover transition
- Stack + extra attrs in a bordered card with MetaRow grid
- Dimension accordions use ChevronRight with CSS rotation (no swap)
- Agent selector: compact rounded-lg toggles with ✓ for default
- All colors via SSOT tokens, zero inline styles

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 18:51:32 +02:00
g-butandClaude Sonnet 4.6 8c510853a2 fix(control): extract resolveEffectiveTab helper + apply to all inject paths
Adds resolveEffectiveTab() to lib/claude-config.ts — single source of truth
for the canonical→live tab alias logic. Applied to all three call sites:

- inject/route.ts: replaces inline alias logic (DRY)
- orchestration/run/route.ts: claude/codex inject adapters now resolve alias
- control/route.ts: sentinel file reads (ready/closing/closed/prompt) now use
  the live tab name so the control panel correctly reflects state after inject

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 18:48:34 +02:00
g-butandClaude Sonnet 4.6 4b8aea04a7 fix(control): resolve Zellij tab alias + voice input on custom prompt
Inject route: when the canonical project tab name (e.g. "Cockpit") isn't
an active Zellij tab, look up the directory and find any conf alias that IS
alive (e.g. "Cockpit Claude"). All /tmp sentinel files and the injection
itself now use the live tab name so stop.sh lifecycle hooks stay in sync.

Custom prompt field: mic button (Web Speech API) with pulse animation while
recording, matching the UX already in AskIvyModal.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 18:44:20 +02:00
g-butandClaude Sonnet 4.6 daac799c9e refactor(ui): SSOT — EventsGrid + GoalsGrid count badges use ui-badge
Consistent with PeopleGrid and ProjectGrid which already use ui-badge
for the search-bar count. Also updates next-env.d.ts to production
build path.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 18:31:50 +02:00
g-butandClaude Sonnet 4.6 714af29698 refactor(settings): use PageLayout SSOT — removes ad-hoc padding/header
Settings page was the only app route not using PageLayout, manually
repeating the padding pattern (px-4 py-8 mx-auto max-w-2xl) and a raw
h1 element instead of the standard ui-page-title header.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 11:39:11 +02:00
g-butandClaude Sonnet 4.6 32dd938d7c refactor(ui): three more SSOT fixes — ui-tag, ui-btn-add adoption
- memory/page: TypeBadge shape → ui-tag (removes 5 redundant Tailwind classes)
- PersonChannelsSection, PersonDetailAttrs: add-item buttons →
  ui-btn-add (were using text-text-tertiary instead of the SSOT class)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 11:37:24 +02:00
g-butandClaude Sonnet 4.6 6668e21a0e refactor(ui): badge SSOT fixes + 3 missed ui-hover-reveal instances
- habits/page: "inactive" tag → ui-tag ui-tag-neutral
- ProjectGrid: attribute pill → ui-micro-badge rounded-full
- project-overview-helpers, ProjectGoalsTab: 3 more sm:opacity-0
  sm:group-hover:opacity-100 → ui-hover-reveal (missed from prior sweep)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 11:35:20 +02:00
g-butandClaude Sonnet 4.6 8fe7744b1b refactor(ui): add ui-btn-row-action SSOT + consolidate 4 icon button patterns
globals.css: add .ui-btn-row-action (p-1.5 rounded text-text-muted
transition-colors hover:text-text-secondary hover:bg-surface-raised)
for small icon edit/action buttons on list row surfaces.

Replace in: EventCard (edit), CommitmentItem (edit), HabitRow (edit),
GoalCard (cancel-add-child).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 11:30:24 +02:00
g-butandClaude Sonnet 4.6 45e0c49815 refactor(ui): add ui-hover-reveal SSOT + consolidate 7 hover-action patterns
globals.css: add .ui-hover-reveal (sm:opacity-0 sm:group-hover:opacity-100)
for the desktop-only hover-reveal pattern on row action buttons.

Replace sm:opacity-0 sm:group-hover:opacity-100 in:
- EventCard, CommitmentItem action button groups
- PersonDetailAttrs, PersonChannelsSection icon buttons
- DeleteGoalButton trigger, goal-card-helpers edit/date buttons

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 11:25:23 +02:00
g-butandClaude Sonnet 4.6 514f98bc26 refactor(ui): add ui-micro-badge SSOT + consolidate 7 ad-hoc micro-badge patterns
globals.css: add .ui-micro-badge shape class (inline-flex rounded border
px-1.5 py-0.5 text-[10px] font-medium) — caller adds color/bg.

Replace repeated ad-hoc patterns across:
- EventCard: type + category chips → ui-micro-badge
- ProjectDetailHeader: owner chip → ui-micro-badge
- project-badges: StatusBadge + HealthBadge → ui-micro-badge
- PersonDetail: alias chips → ui-badge
- project-card-helpers: orchestration run state → ui-badge

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 11:21:43 +02:00
g-butandClaude Sonnet 4.6 826a582669 refactor(ui): replace ad-hoc badge/pill classes with ui-tag/ui-badge SSOT
- control/project-card-sections: git-behind warning → ui-tag ui-tag-warning
- people/PeopleGrid + projects/ProjectGrid: count badge → ui-badge
- projects/ProjectOverviewTab: relation name pills → ui-tag ui-tag-neutral

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 10:12:11 +02:00
g-butandClaude Sonnet 4.6 933449dd38 refactor(settings): use ui-tag SSOT for invitation status badge
Replaced ad-hoc rounded-full/px-2/text-xs conditional classes with
ui-tag + ui-tag-{positive,negative,neutral} — the existing SSOT.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 10:10:11 +02:00
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