Commit Graph
1545 Commits
Author SHA1 Message Date
g-butandClaude Sonnet 4.6 2172be8c17 perf(today): parallelize getTodaySummary queries with Promise.all
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>
2026-04-22 23:20:58 +02:00
g-butandClaude Sonnet 4.6 dd0d8bbada fix(system): add Escape key handler to JobDetail panel
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>
2026-04-22 23:17:50 +02:00
g-butandClaude Sonnet 4.6 c72e5a8819 fix(people): add Escape key handler to PersonDetail panel
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>
2026-04-22 23:14:48 +02:00
g-butandClaude Sonnet 4.6 b7ad8e0365 fix(api): tighten goals UUID regex to match strict pattern used everywhere else
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>
2026-04-22 23:12:32 +02:00
g-butandClaude Sonnet 4.6 05a8da8b88 feat(goals): separate completed goals into their own section
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>
2026-04-22 23:09:58 +02:00
g-butandClaude Sonnet 4.6 73fc352bd0 fix(mobile): reduce bottom tab bar from 8 to 5 items for usability
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>
2026-04-22 22:59:50 +02:00
g-butandClaude Sonnet 4.6 21a4ca1b82 fix(security): validate cron job id as UUID before shell interpolation
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>
2026-04-22 22:55:43 +02:00
g-butandClaude Sonnet 4.6 b802a98253 perf(projects): fix N+1 query fetching all entities to filter in JS
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>
2026-04-22 22:52:33 +02:00
g-butandClaude Sonnet 4.6 75ed5006fe feat(commitments): add mark-fulfilled button to CommitmentsCard
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>
2026-04-22 22:42:39 +02:00
g-butandClaude Sonnet 4.6 b38d8cb8b5 feat(goals): make goals interactive — toggle milestones, update progress, mark complete
Goals were entirely read-only. Added:
- PATCH /api/goals/[id]: updates status, progress, milestones (validates UUID,
  scopes to user, sets completedAt automatically on status change)
- GoalCard client component: milestone circles are clickable, toggling updates
  progress automatically (done/total * 100); goals without milestones show
  click-to-edit progress number; goal icon is clickable to mark complete/active
- Goals page: now uses GoalCard component, removed inline static version

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-22 22:37:03 +02:00
g-butandClaude Sonnet 4.6 056b0eba1f feat(memory): add recently added entities and recent activity to memory page
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>
2026-04-22 22:31:18 +02:00
g-butandClaude Sonnet 4.6 41d19283f8 fix(ivy): show friendly error message instead of raw shell command on failure
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>
2026-04-22 22:17:14 +02:00
g-butandClaude Sonnet 4.6 416e3768af fix(people): strip e164 prefix from channel values, format attr keys as readable labels
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>
2026-04-22 22:03:47 +02:00
g-butandClaude Sonnet 4.6 de3dd40ebb fix(system): parse memory/disk into structured data instead of raw shell output
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>
2026-04-22 21:49:59 +02:00
g-butandClaude Sonnet 4.6 7122b4a63b feat(ivy): redesign quick prompts as card grid with category colors and descriptions
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>
2026-04-22 21:36:07 +02:00
g-butandClaude Sonnet 4.6 1603df6942 feat(projects): show description+owner from attrs in card and detail panel
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>
2026-04-22 21:11:59 +02:00
g-butandClaude Sonnet 4.6 e203bdddbd fix(ivy): use gateway mode instead of PTY wrapper for agent calls
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>
2026-04-22 20:57:08 +02:00
g-butandClaude Sonnet 4.6 aac6c58b23 feat(ivy): add quick prompts + working voice input to AskIvy modal
- 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>
2026-04-22 15:42:31 +02:00
g-butandClaude Sonnet 4.6 05ffafd0e0 feat(projects): add click-to-edit for existing Intelligence attrs
- 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>
2026-04-22 15:38:49 +02:00
g-butandClaude Sonnet 4.6 c8b63b4cea feat(prompts): redesign library with Quick Access, category sections, and compact rows
- 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>
2026-04-22 15:24:50 +02:00
g-butandClaude Sonnet 4.6 f99eec7f6a feat(projects): redesign ProjectDetail with tabs and add project health badges
- Full rewrite of ProjectDetail: tab nav (Overview/Prompts/Goals) with badge counts
- SUGGESTED_ATTRS (mission, vision, customers, stack, next_step) with inline "Add →" forms
- Issues section shown first; wider panel (max-w-xl)
- Extracted shared MaturityBar/StatusBadge/HealthBadge/getHealthSignals to project-badges.tsx
- ProjectGrid: health summary bar, yellow tint for at-risk cards, prod URL/repo links
- PromptLibraryClient: "View project →" opens ProjectDetail overlay in RunModal

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-22 15:04:48 +02:00
g-butandClaude Sonnet 4.6 da3b56cc19 feat: Prompt Library — 22 categorized templates with Run + Schedule
- New /prompts page (static, server-rendered) with PromptLibraryClient
- 22 prompt templates across 9 categories: engineering, frontend, backend,
  database, devops, design, business, marketing, research, personal
- Templates marked as project-scoped (with {{project_name}} placeholder)
  or global; schedulable ones have suggestedSchedule cron expression
- PromptLibraryClient: search, category filter pills, scope filter
- Each card: preview prompt, "Run now" (streams result from Ivy),
  "Schedule" (creates cron job with project linkage)
- Added "Commit → Push → Deploy → Verify" and "Project Status Report"
  templates per request
- Navigation: Prompts added between Projects and System

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-22 14:45:54 +02:00
g-butandClaude Sonnet 4.6 b6b6aa13ba feat: project-specific prompts + goals linkage
- 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>
2026-04-22 14:30:35 +02:00
g-butandClaude Sonnet 4.6 1a3374d48c chore: GitHub + Vercel/Neon deployment setup
- 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>
2026-04-22 14:08:40 +02:00
g-butandClaude Sonnet 4.6 0122f4e6d3 feat(projects): connected project command center
- 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>
2026-04-22 14:01:54 +02:00
g-butandClaude Sonnet 4.6 b7cb30785b feat: AskIvy — live chat modal connected to Ivy agent
- 🌿 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>
2026-04-22 13:51:14 +02:00
g-butandClaude Sonnet 4.6 0c875f01d0 feat: project detail popup + Run Now for autopilot jobs
- 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>
2026-04-22 13:37:59 +02:00
g-butandClaude Sonnet 4.6 cdd1d52211 feat: Autopilot view + responsive design pass
- 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>
2026-04-22 13:23:03 +02:00
g-butandClaude Opus 4.6 4e3d659a43 feat: subscription management — cancel links, free alternatives, mark cancelled
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>
2026-04-07 22:26:04 +02:00
g-butandClaude Opus 4.6 c855ef6117 feat: Money view shows all subscriptions with verified/unverified/cancelled status
- Status badges: green (active), amber (unverified), gray (cancelled)
- Cancelled items shown with strikethrough and reduced opacity
- Verify links for all 10 subscriptions
- Notes show billing evidence (receipt dates, amounts, payment methods)
- Footer explains verification methodology

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-07 22:01:13 +02:00
g-butandClaude Opus 4.6 5fa9f9c454 fix: subscription data verified against email receipts
Old data was wrong in 6 places:
- Claude Max: $200 → $216.20 (tax included, confirmed receipt Apr 7)
- ChatGPT Plus: marked cancelled (paused since May 2025, payment issue)
- YouTube Premium: marked cancelled (no billing since Sept 2024)
- NEW: Grok xAI $30/mo (confirmed receipt Mar 28)
- NEW: SoundCloud Go+ $13.99/mo (confirmed Apple receipt Jan 21)
- Google Cloud: $0 → $16.92/mo (still billing despite "deleted" VM)
- 3 subscriptions marked unverified (Cursor, iCloud, Algoriddim)

Principle: never trust seeded data. Verify against actual billing evidence.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-07 21:54:19 +02:00
g-butandClaude Opus 4.6 c2a6833cd8 feat: source attribution, verify links, relation indicators
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>
2026-04-07 16:50:55 +02:00
g-butandClaude Opus 4.6 729c2292d2 fix: Today UX — info hierarchy, grouped actions, goals query, first names
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>
2026-04-07 16:38:04 +02:00
g-butandClaude Opus 4.6 1afac0feb0 fix: calendar API parsing + hydration mismatch on Today
- Calendar API: gog returns {events: [...]} not [...] — unwrap correctly
- Greeting: move Date-dependent rendering to client component (fixes SSR/client timezone mismatch)
- Removes hydration error and events.map crash

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-07 11:24:10 +02:00
g-butandClaude Opus 4.6 45a7957fdf feat: relationship health, smart summary bar, sort, systemd service
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>
2026-04-07 11:04:00 +02:00
g-butandClaude Opus 4.6 719bcbf516 feat: dismiss alerts from UI + perception engine creates drafts
- 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>
2026-04-05 19:02:36 +02:00
g-butandClaude Opus 4.6 75c1eb88b9 feat: interaction tracking from Telegram message history
- 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>
2026-04-05 02:01:48 +02:00
g-butandClaude Opus 4.6 d6eb0883a2 feat: action queue — draft → review → approve/reject workflow
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>
2026-04-05 01:44:16 +02:00
g-butandClaude Opus 4.6 7b47b6f026 feat: perception engine, alerts system, data sync, backups
Perception Engine (runs every 30min):
- Detects overdue commitments, bills due, stale relationships, stalled goals, system issues
- Writes alerts to Postgres (deduped within 24h)
- Surfaces on Today view with severity-colored cards (urgent/warning/info)

Data Infrastructure:
- sqlite → Postgres incremental sync (every 10min, non-destructive upserts)
- Daily backup at 3 AM: knowledge.sqlite, cockpit PG, messages.sqlite, contacts, config
- 30-day retention, first backup already taken (21MB)

Alerts table (10th table):
- type, severity, title, description, entity link, dismiss support
- AlertsCard on Today view spans full width, ordered by severity

Cron fixes:
- Daily brief timeout: 60s → 180s
- Friday preview timeout: 120s → 180s
- Error counters reset

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-05 01:33:50 +02:00
g-butandClaude Opus 4.6 afcc318468 feat: CLAUDE.md, real goals, zellij tab mapping
- 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>
2026-04-05 00:36:24 +02:00
g-butandClaude Opus 4.6 9af09c7113 refactor: fix remaining SSOT violations
- Extract fetchAttributesByEntityIds to db/queries/utils.ts (was duplicated in people.ts + projects.ts)
- Replace hardcoded hex colors (#0f1117, #0a0b0f) with shadcn theme tokens (bg-background, bg-sidebar, border-border)
- Move gateway URL to constants (OPENCLAW_GATEWAY_URL) with env var override

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-05 00:05:30 +02:00
g-butandClaude Opus 4.6 1a5364121c feat: Goals view with hierarchical tree, progress bars, milestones
- 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>
2026-04-04 23:57:50 +02:00
g-butandClaude Opus 4.6 7d123e9e37 refactor: fix SSOT, DRY, security, and error handling
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>
2026-04-04 23:56:00 +02:00
g-butandClaude Opus 4.6 102c35c3e3 feat: Cockpit Phase 1 — full app with 6 active views
- Next.js 16 + Tailwind 4 + shadcn/ui + Drizzle ORM + PostgreSQL 17
- 9-table knowledge graph schema with UUIDs, JSONB, multi-user prep
- Seed script: knowledge.sqlite (33 entities) + contacts (1,278 people)
- Today: calendar (gog), weather, commitments, upcoming bills
- People: searchable grid of 1,286 contacts, detail panel
- Money: subscription tracker, monthly burn calculation
- Projects: project list + GitHub CI status
- System: gateway health, memory, disk, uptime
- Memory: knowledge graph stats and entity distribution
- Goals: placeholder (Phase 2)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-04 23:31:14 +02:00
g-but 0e0852330a feat: initial commit 2026-04-04 22:47:22 +02:00