Builders seeing a stalled goal had no path to agent dispatch from the
Goals page. CopyGoalPromptButton builds a complete prompt (title,
description, progress, next milestone, deadline, project) and writes it
to clipboard. Paste directly into any agent input in Control or AskIvy.
Shows on hover alongside the existing abandon/delete actions.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The 'next' field from orchestration run summaries is the agent's handoff
to the builder — what it recommends doing next. Showing only 'done' left
the builder without that signal, forcing a trip to /control to read it.
Now each run row shows done (grey) + next (accent arrow) so judgment
can happen inline on Today.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Stalled goals previously required navigating to /goals to act on them.
AbandonGoalButton calls handleAbandonGoal server action (revalidates
/today + /goals) so the builder can clear dead goals from Today in one
click without context-switching.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Builders accumulate goals that silently stagnate. Added stuckGoals count
to getTodaySummary, a SummaryBar amber pill ("N stalled"), and a
StuckGoalsCard showing which goals are stuck with idle-day counts.
Gives the builder a judgment signal to delegate, update, or abandon.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The Today view showed fleet counts (running/waiting/degraded) but no
outcomes. Builders had to navigate to /control to see what each agent
actually accomplished. RecentRunsCard queries orchestration_runs for
the last 24h of completed runs and shows project name, health tag, and
done-summary so judgment calls can be made from a single view.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
ProjectOverviewTab.tsx had 2 private sub-components bundled at the bottom,
pushing the file to 339 lines. Moved both into the existing helpers file
(project-overview-helpers.tsx already holds AddAttrInline/AttrRow/ClaudeSession).
Main file drops from 339 → 274 lines; no behavior changes.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
DimensionSection, NotesSection, and DevLogSection each duplicated 15-20
lines of identical accordion chrome (border-t, ChevronRight rotate-90,
px-4 py-3 button, open state). Extracted CollapsibleSection primitive
that owns the toggle state and accepts icon/title/badge/trailing/children.
Three sections now declare only their content — zero accordion boilerplate.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
ProjectProfile.tsx contained 9 sub-components (MaturityDots, StatusChip,
MetaRow, MetaSection, DimensionSection, NotesSection, DevLogSection,
RemoveSection, QuickProfileForm) plus utilities, pushing the file to 603
lines. Extracted all helpers to project-profile-helpers.tsx following the
existing pattern (project-card-helpers.tsx, goal-card-helpers.tsx).
Main file now 200 lines; all sub-components unchanged in behavior.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
commitEdit was ignoring the boolean returned by onEdit — if the PATCH
failed, the edit mode closed silently showing the old title, giving the
user no indication the save was rejected. Now throws inside ie.commit()
on false return so the error propagates, is caught, and a timed
"Failed to save — try again" message appears below the row.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Without the check, a failed focus-tab call would still flash "done" for 2s,
giving false feedback that the workspace was focused. Now clears back to idle
on any non-ok response.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
patchJson/deleteJson/postJson return raw Response objects that never throw
on HTTP errors, so try/catch rollback blocks in handleToggleActive and
handleToggleDone never fired. handleFrequencyChange had optimistic update
with no rollback at all. handleDelete and goal link/unlink called router.refresh
regardless of outcome. All now check res.ok and either rollback state or
skip the success path on failure.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
saveStatus and saveMaturity in ProjectDetailHeader were updating local
state regardless of API outcome, showing stale UI on failure. deleteChannel
in PersonChannelsSection was removing the channel from local state even
when the DELETE returned an error. Both now gate state updates behind res.ok.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
setAttr/removeAttr return raw Response objects; without checking .ok,
a 404 or 500 would close the form and call onSaved/onReload as if the
operation succeeded. AddAttrInline now shows an error banner on failure;
AttrRow.deleteAttr now guards onReload behind res.ok.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
postJson returns a raw Response; without checking .ok a 404/500 would
call onSaved() as if the save worked. Now throws when any attr upsert fails.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
SummaryBar showed "0 goals · 0%" unconditionally — the only pill not following
the conditional pattern every other pill uses. New users with no goals saw a
meaningless data point instead of a clean empty bar.
Also adds autoFocus to Mission input in QuickProfileForm so the field is
immediately active when the profile panel opens — no extra click needed.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
When a project has no profile, the ProjectProfile panel now shows an inline
form (Mission, Stack, URL) instead of a dead-end message. Saving fires setAttr
calls in parallel, then triggers a full control-panel refresh so MetaSection
replaces the form immediately. A "Full editor in Projects →" escape hatch is
preserved for the complete profile editor.
Callback chain: QuickProfileForm → onProfileSaved → ProjectCard → ControlPanel.cardProps → refresh(true)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Annual price was text-white/20 (~20% opacity) — effectively invisible,
directly contradicting the "Simple, honest pricing" section title.
Raised to text-white/40 so users can see the annual commitment before clicking.
Also removed hardcoded letterSpacing inline style on pricing heading,
replaced with tracking-tight (design SSOT).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
ProjectProfile showed a dead-end text message when a project had no profile.
Now links directly to /projects?open=<id> so the user can fill in mission,
stack, and URL without guessing where to go.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
New users arriving after GitHub signup had no guidance. Two empty state improvements:
/control: Replace bare "No projects configured" text with an onboarding card —
fleet view icon, explanatory copy, and two wired CTAs: "Bootstrap new project"
(opens BootstrapModal) and "Register existing project" (opens NewProjectModal).
/today: When getUserProjects returns empty, render an accent banner below the
greeting directing users to /control with one-sentence explanation of the value.
Banner disappears automatically once the first project is registered.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
'Welcome back / Sign in to your Cockpit' was dead-end copy for new users
arriving from 'Get started' CTAs — implied an account was required.
- Heading: 'Welcome back' → 'Welcome to Cockpit'
- Subtitle: 'Sign in to your Cockpit.' → 'Sign in or create your account to get started.'
- GitHub button promoted to primary position (above password form)
- 'New accounts are created automatically' note added below GitHub button
- Password form demoted to secondary with 'or sign in with password' divider
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Repeated inline-flex min-h-11 min-w-11 sm:min-h-0 sm:min-w-0 items-center
justify-center appeared across 7 files with no shared name. Extracted to
.ui-icon-btn in globals.css as the SSOT for touch-target icon buttons.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Renders LANDING_PRICING from marketing.ts as a three-column card grid below
the feature cards. Pro tier is visually highlighted with a brighter border
and 'Most popular' badge. All CTAs route to /sign-in.
Also adds whitepaper CTA to hero, fixes middleware matcher (.*→.+) so root /
is not caught by auth guard, and adds setup/whitepaper/u/ exclusions.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Writes "The Builder's Operating System" — a ~2,000-word technical
whitepaper covering the execution gap, builder loop, agent injection
architecture, daemon bridge, dispatch intelligence, and subscription
tiers. Published at /whitepaper (no auth required) via PublicSurface
with the existing design system. Landing page CTA now links to the
whitepaper alongside "Get started". Middleware exclusion updated to
allow unauthenticated access to /whitepaper.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Abandon/delete goal buttons and project attribute edit/delete buttons
were p-1 (~28px). Added min-h-11 min-w-11 sm:min-h-0 sm:min-w-0 so
they meet the 44px minimum on mobile while staying compact on desktop.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
View-toggle, refresh, and New buttons in ControlPanel header were p-0.5
(~14px). Copy-prompt and queue send/remove row buttons were the same.
All fixed with min-h-11 min-w-11 sm:min-h-0 sm:min-w-0 pattern.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Pause/Play auto-continue toggle was p-0.5 (~18px) — the smallest
tap target in the most-used mobile flow. Dismiss was unsized text.
Intent buttons (primary/action/more) were py-2 (~34px).
All three classes now min-h-11 sm:min-h-0 on mobile. Desktop unchanged.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Recent Activity was buried last in the drawer, below Notes/Channels/Details/
Aliases — primary action required scrolling past everything. Also the log
form was below the full interaction history list.
Reordered: drawer now shows Recent Activity first (log button immediately
visible), log form/button moved above history list. Secondary info
(channels, details, aliases) follows.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Habits page was read-only — no way to log today's completion without
going to Today. Now every HabitCard shows a check circle (matches Today
page style) that optimistically toggles done state via PATCH /api/habits/:id.
Disabled for inactive habits.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds isUserTypingInTab() that reads /tmp/cockpit-typing-<PANE_ID> marker
files written by ZSH zle hooks. The inject route returns
{ ok: true, blocked: true, reason: "user-typing" } instead of firing
write-chars into a tab where the user is mid-keystroke.
Includes scripts/install-cockpit-hooks.sh for one-shot ~/.zshrc setup.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Cancelled subs were mixed into the active list at 40% opacity, forcing
users to scan past noise. Now hidden behind a "Show N cancelled" toggle
that expands in place.
Also replaced the redundant "CHF /mo" stat card (duplicated info from
"Monthly Burn") with "Unverified" count — more actionable since it
surfaces subscriptions that need attention without requiring a visual
scan of the full list.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Agent selector already let users pin a preferred agent; now model
preference is editable in the same panel — no need to remove+re-add
a project just to change the model. Clicking the default chip clears
the override (null), clicking any other chip persists it via PATCH.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Milestones were append-only — no way to fix a typo or remove
a stale item without clearing the entire goal. Now each row:
- Click the title text to rename in-place (Enter to save, Esc to cancel)
- Hover-reveal X button to delete (recalculates progress automatically)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Projects could be added and deleted but not edited. If a project moved
to a new directory, users had to delete and re-add it. Edit button
(hover-reveal) opens inline form per row; Escape cancels, Enter saves.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The DELETE /api/user-projects/[id] endpoint existed but had no UI.
Users could add projects via bootstrap/new but couldn't remove them.
A two-step confirmation button at the bottom of ProjectProfile calls
the endpoint then triggers a full refresh to drop the project from
the fleet list.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The "mark fulfilled" action was hidden on desktop behind ui-hover-reveal
alongside edit/delete. Users couldn't discover they can complete commitments
without first hovering. Edit and delete remain in the hover-reveal group
since they are secondary/destructive.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
PersonCard action buttons (→ Reached out, + Details) used the default
py-2 giving ~36px, below the WCAG 44px minimum. Other ui-btn-chip usages
already override to py-3 so this is a no-op for them.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
MilestoneRow button: h-11 w-11 (44px) to meet WCAG touch target minimum, inner
circles bumped from h-3.5 to h-4. DateInput: removed ui-hover-reveal from
"Set deadline" so affordance is discoverable without hover on desktop.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Counter in HabitsCard header turns text-status-positive + medium weight when
all habits are done for the day, matching the SummaryBar pill behaviour.
Adds "Open Habits →" footer link (matching GoalsDueCard pattern) so users
can reach the full 30-day heatmap without hunting for the sidebar link.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Add id="habits" to HabitsCard and change the SummaryBar habit pill
from href="/habits" to href="#habits" — clicking the pill now jumps
directly to the inline check-off section instead of navigating away.
Card component gains an optional id prop to support anchor targets.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
SubscriptionsCard now compares nextDue against startOfDay(today) and
applies text-status-negative styling plus "· overdue" label for past-due
items — bills due today or future remain neutral.
HabitRow toggle button grows from p-1 (~24px) to h-11 w-11 (44px) so the
visual circle stays the same size but the tap area meets the 44px minimum.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Goals has a prominent modal CTA in the page header; Habits only had an
inline link at the bottom of the list. Added NewHabitButton using ModalForm
to the Habits page header for discoverability parity.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The badge was counting only root-level goals while the stats panel counted all goals
(including sub-goals) from the DB. Added countGoals() helper to make both consistent.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
HTML5 pattern="[0-9]*" was silently blocking form submission when the
configured PIN is alphabetic (e.g. "cockpit"). The gate would accept
input and show dots, but onSubmit never fired. Removed inputMode="numeric"
and pattern constraint; the API validates against the scrypt hash regardless.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
HabitCard dropped from 306 → 192 lines. Linking/unlinking habits to goals
is a distinct concern and now lives in HabitGoalLinks.tsx.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Each GoalCard now shows a Repeat2 icon row listing habits linked to that goal.
Data fetched server-side via getHabitsByGoalIds and threaded through GoalsGrid
as a plain Record so the full subtree renders correctly without extra fetches.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds putJson() helper; replaces raw fetch() in QuickCaptureButton, use-prompt-queue,
and the beacon page with getJson/putJson/patchJson. FormData call in use-whisper-mic
is correctly kept raw (multipart, not JSON).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds habit_goals junction table so each habit can feed one or more goals.
HabitCard shows linked goal tags with inline picker to add/remove links;
Goals page passes active goals list down so no extra fetches per card.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The /u/[username] page existed but was reachable only by guessing the URL.
Adding "View public profile →" directly below the username input makes the
public surface discoverable from where the user sets their username.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Scores every project by session health (critical=4, needs attention=2),
latest run health (+3/+2), and uncommitted git changes (+1). Top 6 by score
render as a compact bar above the project grid with the reason tag inline.
Answers "which project needs attention most right now?" without opening each card.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>