5 independent DB queries were running sequentially. Now concurrent —
SummaryBar on the Today page loads ~4x faster.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
All three slide-over panels (PersonDetail, ProjectDetail, JobDetail) now
close consistently on Escape. JobDetail was the last one missing it.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
ProjectDetail already had this — PersonDetail was missing it, making
keyboard close inconsistent between the two slide-over panels.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The loose `/^[0-9a-f-]{36}$/` allowed hyphens in any position.
Replaced with the same strict pattern used in all other API routes.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Active goals stay at the top; completed top-level goals move to a
"Completed · N" section below so the working list stays uncluttered
as goals get checked off.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
8 equal-width tabs on a 390px phone = ~48px each — too narrow to tap
or read. Added mobile: boolean to NavItem in navigation.ts (SSOT) and
filtered MobileNav to only the 5 primary destinations: Today, People,
Goals, Projects, Money. System, Memory, Prompts remain in the desktop
sidebar and are reachable from any screen size.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The run-now endpoint accepted any string id from the request body and
interpolated it directly into a shell command without format validation.
All job ids are UUIDs (created via crypto.randomUUID() in the POST handler),
so a UUID regex guard is both correct and sufficient. Consistent with the
validation pattern used in every other API route that handles external input.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The project detail API fetched all user entities (1300+) from the DB and
then called .filter() in JavaScript to keep only the related ones. Replaced
with inArray(entities.id, relatedIds) so the DB returns only the needed rows.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Commitments were the only Today item with no actionable control. Added:
- fulfillCommitment() query in today.ts (sets status='fulfilled')
- handleFulfillCommitment server action with revalidatePath('/today')
- FulfillCommitmentButton client component (spinner while pending,
green checkmark hover, same pattern as DismissAlertButton)
- Wired into CommitmentsCard next to each commitment row
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Knowledge graph has 1,300+ entities but the page only showed raw totals.
Added two new parallel sections: Recently Added (12 most recently created
entities with type badge + timestamp) and Recent Activity (10 latest
interactions with direction, channel, entity name, summary). Also added
TypeBadge component with per-type colors to entity distribution list.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Internal exec errors like "Command failed: openclaw agent..." were leaking
to the UI. Now logs the real error server-side and returns a human-readable
message. Timeout errors distinguished from general unavailability.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Channel values stored as "e164:+41763..." now display as "+41763..."
Attribute keys like "relationship_to_george" now display as "Relationship to george"
Both are display-layer transforms — raw storage format should never leak to UI.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Replace free -h raw text in <pre> tags (German locale headers, unformatted)
with structured parsing: LC_ALL=C forces English, awk extracts numeric MiB
values, API returns typed {mem,swap,disk} objects. Component now renders
labeled progress bars with GiB values and color thresholds (green/yellow/red).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Replace flat gray pill chips with a 2-column card grid. Each card shows
name, one-line description, colored category badge (from CATEGORY_META),
and a scope icon (globe=global sends immediately, folder=project goes to
input for editing). Raises 5 featured prompts from a single visual tier
to clearly differentiated cards with scannable context.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
attrs.description used as fallback when entity.description is null —
fixes 12 projects showing no subtitle in the grid. Owner shown as a
small badge in the detail panel header. description and owner excluded
from the generic attr rows (already surfaced in header).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
openclaw agent --json (without --local) connects to the running gateway
service which has API keys loaded — no PTY needed. Previous --local
approach forked to background and returned 0 bytes.
Also: redesign ProjectDetail OverviewTab to show actual attrs as rows
instead of empty placeholder grid; add elapsed timer to Ivy loading
state (0s counter + contextual status messages during 30s wait);
clean up tools.ts stderr in error output.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Quick Prompts row shows all featured prompts as one-click chips
- Global prompts run instantly; project-scoped load into textarea for review
- "show all (N)" expands to every global-scope prompt
- Web Speech API mic: click to start, auto-appends transcript to input
mic button pulses red when listening; Esc/click again stops
- Input border glows green while listening
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Hovering a filled attr (mission/vision/stack) reveals pencil icon
- Clicking pencil opens same inline form pre-filled with current value
- Input autofocuses; Escape cancels; Enter saves
- Cancel (×) button added to all inline attr forms
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add featured flag to 6 key templates (Deploy, Status Report, Security, Daily Plan, Feature Gap, UX Audit)
- Default view: starred Quick Access cards + all category sections with compact prompt rows
- Filtered view: groups results by category with section headers
- Category tab bar replaces flat filter pills — colored, clearly labeled, full keyboard of areas
- FeaturedCard for large-format featured prompts; PromptRow for compact list items
- Also: fix GH_TOKEN in .env.local so CI/GitHub card loads in Next.js child process
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Goals linked to project entities (Cockpit, OrangeCat) via entity_id
- Cockpit project entity created with attrs (stack, maturity, repo, etc.)
- GET /api/projects/[id]: now returns linkedGoals with milestones
- ProjectDetail: Goals section shows progress bar + milestone checklist
- CronJob type: projectId + projectName fields for project-scoped jobs
- POST /api/crons: accepts projectId/projectName, tags new jobs to project
- PATCH /api/crons: allows updating projectId on existing jobs
- getLinkedJobs: uses exact projectId match first, falls back to fuzzy name
- NewJobForm in ProjectDetail: passes projectId when creating jobs
- AutopilotCard: groups jobs by project (project groups first, global below)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Created private GitHub repo g-but/cockpit and pushed all commits
- Added vercel.json for Next.js deployment config
- Added .env.example documenting required env vars
- Created Neon (cloud Postgres) project 'cockpit' in eu-central-1
- Ran drizzle-kit push to deploy schema to Neon
- Neon connection string stored in .env.local (gitignored)
- Next step: run 'vercel login' then 'vercel --prod' to complete Vercel deploy
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- ProjectDetail rebuilt as a full command center with structured sections:
- Issues panel (security vulnerabilities, broken features, deployment issues)
- Intelligence section with maturity bar, status badge, all key attrs
- Inline "Add attribute" form (upsert via POST /api/projects/[id]/attrs)
- Autopilot section showing linked jobs + "New Job" form for project-scoped crons
- People section for related person entities
- Recent activity log
- POST /api/crons: create new cron jobs from UI
- POST /api/projects/[id]/attrs: upsert attributes inline
- GET /api/projects/[id]: now includes linkedJobs (fuzzy-matched by project name)
- CronJob type extended with agentId field
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- 🌿 floating button opens a full chat modal (works from any page)
- Sends message to POST /api/ivy which shells out to
openclaw agent --agent main --json (60s timeout)
- Shows conversation history, "Ivy is thinking…" spinner,
response time + model in footer of each message
- Error state with red bubble on failure
- Enter to send, Shift+Enter new line, Escape to close
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Projects: click any card to open a slide-in detail panel showing
all attributes, quick links (production URL, repo), relations, and
recent interactions; ExternalLink click still opens URL without
triggering the popup (stopPropagation)
- Autopilot jobs: "Run now" button in job detail popup triggers
openclaw cron run <id> via new POST /api/crons/run endpoint;
shows green/red output inline in the panel
- Extracted ProjectGrid client component so projects page stays a
server component while supporting interactive popups
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- System page: Autopilot card shows all 9 OpenClaw cron jobs with
status dots, inline error excerpts, schedule times, and enable/disable
toggles — reads directly from ~/.openclaw/cron/jobs.json
- Job detail popup: slide-in panel with last run / status / next run
stats, full error detail, model config grid, and editable prompt
textarea with save-to-disk support via PATCH /api/crons
- Extracted SystemStats into a client component so System page can be
a server component (reads cron jobs at request time)
- Responsive design pass across all views: md: text-size breakpoints,
larger touch targets, bigger icons on desktop
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Each subscription now has action buttons:
- "Cancel at [provider]" — direct link to the service's cancellation page
- "Mark cancelled" — updates status in DB with confirmation dialog
- "Free alternatives" — expandable list of replacements (only for non-essential subs)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Money view:
- Verify links (external arrow icon) next to each subscription
(YouTube Premium → youtube.com/paid_memberships, Claude → claude.ai/settings/billing, etc.)
- Source attribution: "Data seeded from knowledge.sqlite" with explanation
- Notes field shown for subscriptions that have them (e.g., GCP waste explanation)
People view:
- Relation count shown on PersonCard (purple link icon + count)
- People with knowledge graph relations are visually distinct from plain contacts
- Query now includes relation_count subquery
Principle: every data point should be inspectable and verifiable.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
UX improvements:
- Reorder Today page: actions + alerts first, then calendar/weather, then commitments/bills
- Group similar "Check in" actions into one card with compact approve/reject per person
- ActionButtons: compact mode (icon-only), done state (checkmark/x after action)
- Use first names in draft messages ("Hey Manuel" not "Hey Manuel Riegner")
Bug fixes:
- Goals summary showing 0: replaced Drizzle filter(where) with explicit where clauses
- Separate sections with clear labels: "what needs your decision" / "what's happening" / "what's pending"
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
People view:
- Health indicators: green (active <14d), yellow (fading <30d), red (stale), gray (unknown)
- Sort toggle: Recent / A-Z / Needs attention
- Last interaction time + message count on each card
- Query joins interactions table for health derivation
Today view:
- SummaryBar below greeting: active goals + avg progress, pending drafts, overdue count, urgent alerts
- getTodaySummary() aggregates across goals, alerts, actions, commitments
Infrastructure:
- cockpit.service for systemd (needs sudo to install)
- Production build for npm start
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- dismissAlert query + handleDismissAlert server action
- DismissAlertButton (X icon) on each alert row
- AlertsCard now has flex-1 wrapper for proper spacing
Perception engine (in .openclaw/scripts) now creates draft actions
for overdue commitments and stale relationships. Drafts appear in
the ActionQueueCard for George to approve/reject.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Sync script indexes messages.sqlite into interactions table
- Fuzzy name matching: exact, first-name prefix, alias search
- 2,244 interactions across 103 people synced from 16,442 messages
- Incremental sync (only processes new messages since last run)
- Scheduled every 30 minutes via cron
- Person detail view now shows Recent Activity (last 10 interactions)
- Perception engine stale relationship detection now uses real data
- Result: 5 people flagged as stale (have relations but no recent contact)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Iron rule: nothing executes without George's explicit approval.
- actions table: type, status (draft/approved/executed/rejected/expired), payload JSONB, reasoning
- ActionQueueCard on Today view: shows pending drafts with full content preview
- ActionButtons: approve (green) / reject (outline) with server actions
- approve/reject server actions with path revalidation
- Sample draft seeded: follow-up with Roli about PrintCraft
Status flow: Ivy drafts → George reviews content → approve or reject → only then execute
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- CLAUDE.md with full project conventions, architecture, SSOT rules
- Seed 10 real goals: God Mode, Financial Independence, Civilizational Stack, Health, Relationships + 5 sub-goals with milestones
- Add Cockpit to ~/.config/claude-projects.conf for zellij auto-detect
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- GoalCard renders nested goal hierarchy with indentation
- Progress bars with emerald accent for active goals
- Milestone checklist with done/pending states
- Stats: active count, completion rate, average progress
- Empty state with guidance to ask Ivy
- All 7 Cockpit views now active
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
SSOT:
- Centralize DEFAULT_USER_ID and DEFAULT_USER_NAME in lib/constants
- Extract CHANNEL_CONFIG to config/channels.ts (was duplicated in PersonCard + PersonDetail)
- Use DEFAULT_USER_NAME in greeting instead of hardcoded "George"
DRY:
- Extract shared Card, CardHeader, CardSkeleton, StatCard to components/ui/card
- Extract PageLayout to components/ui/page-layout
- Extract useFetch hook to hooks/use-fetch
- Refactor all 6 pages + 5 components to use shared primitives
Security:
- Escape LIKE wildcards in people search (prevent pattern injection)
- Validate UUID format on /api/people/[id] (prevent Postgres errors)
- Add input length + range validation on /api/people search params
- Fail fast with clear error if DATABASE_URL is unset
Error handling:
- Add global error.tsx boundary with retry button
- Add loading.tsx skeleton for route transitions
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>