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