Commit Graph
133 Commits
Author SHA1 Message Date
ZacharyZhang-NY 03c4b5376d Harden the renderer CSP (sec #2)
The policy fell back to default-src for scripts and allowed
'unsafe-inline', so any future injection sink would run with the
renderer's full contextBridge authority. The page has no inline scripts
(one external module), so split the directives: script-src 'self' with
no inline, style-src keeps 'unsafe-inline' for React inline styles, and
add object-src/base-uri/frame-src 'none'. localhost stays only on
script/connect for the dev server. Verified the production build still
loads and renders end to end.
2026-06-26 18:05:58 -04:00
ZacharyZhang-NY 6367512052 Render light markdown in chat messages
Bodies were printed verbatim, so an agent's **bold**, `code`, or
[link](https://...) showed as literal punctuation — the opposite of
people talking. Render the inline markdown agents and humans actually
use in chat into React nodes, composed around the existing @mention
highlighting.

Links are restricted to http(s) and nothing is ever set as raw HTML
(no dangerouslySetInnerHTML), so a message body can never inject markup
or a javascript: URL. A plain message still comes back as one string.
2026-06-26 18:00:10 -04:00
ZacharyZhang-NY 287c072c9f Take the audit log and file checksums out of the chat surface
The thread panel rendered an "Audit" feed — "Chat message sent", "Task
run completed", "Approval requested" rows with monospace timestamps —
a server log sitting inside a conversation. Attachments showed an eight-
character SHA-256 fragment next to the file type. Neither belongs in a
surface a non-technical operator reads as people talking.

Remove the audit replay from the chat thread (and its now-dead
replayEventsForThread/auditPayload plumbing) and drop the checksum from
the attachment card. The audit trail itself is unchanged — it is still
recorded and still shown on the task activity tab. The e2e thread check
now asserts the reply box, not the log.
2026-06-26 17:56:15 -04:00
ZacharyZhang-NYandClaude Opus 4.8 fa01aa682f Align page typography to the unified scale
Sweep the remaining inline type across every page onto the system scale:
oversized metric numbers (22/24px) down to the 18px title step, body text
13px → 14px, captions/meta 11px and 12.5px → 12px, and small control icons
13/11px → 16/14px. No structural or layout changes — the foundation
already gridded spacing, radius, and color; this finishes the type so the
whole app reads from one ramp. Full interactive e2e and the overflow
guards stay green.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-10 20:31:24 -04:00
ZacharyZhang-NYandClaude Opus 4.8 f5aab15920 Give cascading menus hover intent with a safe triangle
Add CascadeMenu/CascadeRow: a menu whose rows reveal a side submenu on
hover with an open delay, a forgiving close delay, and a cursor→submenu
safe triangle — while the cursor sweeps toward an open submenu, hovers
over sibling rows are ignored, so a natural diagonal move never snaps the
target shut. The triangle geometry (pointInTriangle) is unit-tested.

Apply it to the org switcher: each organization reveals its actions
(switch / delete) on hover instead of a hidden hover-only "x", while the
destructive delete keeps its deliberate, non-hover-dismissible confirm.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-10 20:26:35 -04:00
ZacharyZhang-NYandClaude Opus 4.8 e58d23bfdc Bring onboarding typography onto the unified scale
The first-run flow still carried its own sizes: a 34px hero, 13/12.5px
intros and helper text, 13px control icons. Restrain the hero to the 24px
display step and move intros/errors to 14px, helper text to 13px, and the
provider/workspace icons to the 16–18px standard. Structure was already
clean (two-pane, single cards) — this is purely scale alignment.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-10 20:15:22 -04:00
ZacharyZhang-NYandClaude Opus 4.8 08f39b4f3a Make the Files tree show real file counts, not agent counts
The "Spaces" section badged each department with its agent count, so an
org with one CEO and zero files showed "Executive 1". Clicking it filtered
to that department's files and revealed nothing — the tree advertised a
folder that opened empty. collectDepartments now counts files per
department and omits departments with none, so every badge equals what the
section contains. Unit-tested for file-based counting and empty omission.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-10 19:58:56 -04:00
ZacharyZhang-NYandClaude Opus 4.8 edb6dded74 Stop the Runs list from overflowing its pane
The run rows used a .nav-row class that was never defined, so the button
had no width or flex constraint: long run titles pushed the row past the
340px pane and forced a horizontal scrollbar with the title clipped.
Define .nav-row as a constrained selectable row (width:100%, min-width:0)
so the inner title ellipsizes in place. Align the pane and detail
typography to the 14/12 scale while here.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-10 19:55:26 -04:00
ZacharyZhang-NYandClaude Opus 4.8 8b6b8ba4b7 Refocus the Home dashboard and make metric tiles interactive
The home page was 13 cards deep with empty roll-ups (Today, In progress,
Team duplicated other pages) and a stark full-black goal card that fought
the rest of the surface. Now:
- Three intent cards lead — Quarter goal (light, integrated), Monthly
  budget, and Waiting-on-you with a real "all caught up" empty state.
- A four-up metric strip (workload, run activity, success rate, token
  usage) replaces the redundant budget chart. Each tile lifts on hover
  and its header shows a live readout of the hovered datum.
- Activity (agent runs, recent messages) closes the page.
No data wiring or approval logic changed; HomePage drops 500 → 344 lines.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-10 19:51:25 -04:00
ZacharyZhang-NYandClaude Opus 4.8 ea9f27916e Simplify the sidebar into a led primary group + demoted rest
The flat 13-item list read as clutter and reused icons (Team/Meetings,
Work/Sprints, Inbox/Approvals all shared a glyph). Now:
- Primary group leads with the core loop: Home, Work, Team, Messages,
  Runs, Files, Approvals.
- A divider demotes the occasional surfaces: Inbox, Documents,
  Knowledge, Meetings, Sprints, Social — still one click away, nothing
  orphaned (search can't route to several of them).
- Distinct calendar/target/inbox/folder icons end the collisions.
- Every nav glyph is the 18px icon bound in a 24px box; the collapsed
  rail centers icons instead of hiding them.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-10 19:44:59 -04:00
ZacharyZhang-NYandClaude Opus 4.8 02c9da6fe9 Unify the design system: Geist, 4px grid, restrained scale
Establish one token system across the shell and primitives:
- Typography: vendor Geist (variable woff2, self-hosted, CSP-clean);
  body 14/16px, title 18px, captions 12px; drop oversized headings.
- Color: primary #181818, secondary #6A6A6A over a pure-neutral ramp.
- Spacing: strict 4px grid via --sp-* tokens.
- Radius: 8 → 40 scale (--r-sm..--r-2xl, --r-full).
- Icons: 18px glyph, 1.5 stroke, 24px bound by default.

Sweeps tokens through styles.css, components.css, and overlays.css so
buttons, inputs, cards, pills, menus, the sidebar, topbar, and page
titles all read from the same scale. No page logic touched.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-10 19:39:23 -04:00
ZacharyZhang-NY d8e9779678 Add a motion system: feedback, overlays, and view transitions
Every interactive control now acknowledges input: buttons and icon
buttons press down (scale on :active) and ease their hover states, nav
items, menu rows, segmented controls, cards, table rows, and inputs
transition over shared motion tokens (120/200/280ms, ease-out curves).
Dialogs and popovers enter with a short rise + fade over a fading
backdrop; switching routes and onboarding steps plays a quiet view
entrance keyed on the route/step. State pills cross-fade their tones
as runs progress. All motion collapses under prefers-reduced-motion.
PRODUCT.md captures the register and design principles guiding this.
2026-06-09 21:57:47 -04:00
ZacharyZhang-NY 4e47da4d6b Route goal kickoffs through task policy and revive waiting goals on hire
Adversarial review of the kickoff feature surfaced two gaps. First, the
kickoff task was inserted with raw SQL, so a workspace-bound kickoff
carried requires_filesystem without the execution approval every other
task receives - manual runs failed and review-mode orgs had no approval
trail. Kickoffs (in-app and onboarding) now go through createTask and
its policy gates. Second, a goal created before any agent existed
stayed inert forever; creating an agent now operationalizes every
active goal that has no task yet. Goal owners must be active agents:
an archived owner falls back to the top-level agent and the owner
dropdown only offers active agents.
2026-06-09 20:38:35 -04:00
ZacharyZhang-NY f964d052e2 Fix all renderer lint errors
Remove dead imports and unused values across pages; replace the
MentionTextarea index-reset effect with an event-time reset; compute
budget chart segment offsets in a pure helper instead of mutating a
render-scope variable; drop the manual memoization the compiler could
not preserve in BillingPanel.
2026-06-09 20:11:47 -04:00
ZacharyZhang-NY a65347b91f Cut governance bureaucracy from settings and sidebar
Settings shrinks from 14 tabs to the five that serve the product:
Workspace, Billing, Providers, Skills, Migration. The deleted panels
(Members/IAM, Models, Policies, Operations, SDLC, Compliance, Profile,
Notifications, Security) were read-only governance tables and raw
audit-log dumps with no old-app counterpart. The Automation page goes
too: its rules stored empty conditions and no engine ever executed
them. Sidebar reordered to match the old app hierarchy (Home, Inbox,
Work, Approvals first). Backend services and schema are untouched.
2026-06-09 20:07:28 -04:00
ZacharyZhang-NY bd9807ca8d Add Inbox page with standup and performance views
Inbox page has three tabs: Inbox (filterable by approvals, failures,
blocked, messages — shows chronological items with agent attribution),
Standup (per-agent daily summary with tasks/runs counts), and
Performance (company metrics with success rate, throughput, and
per-agent breakdown table).
2026-06-07 18:13:22 -04:00
ZacharyZhang-NY 157a677a31 Expand billing panel with cost breakdown and budget utilization
BillingPanel now shows: stat tiles (allocation, cap, requests, failures),
token usage summary (input/output chars), budget utilization progress
bar, per-agent cost breakdown table (budget, requests, I/O chars), and
per-provider activity table. Replaced the minimal single-table view.
2026-06-07 18:11:00 -04:00
ZacharyZhang-NY 55842d12a1 Add hiring pipeline with four-stage board view
HiringPipeline component shows agents across stages: Pending Approval,
Approved, Active, and Rejected. Each stage column shows agent cards
with role, department, and approval timing. Stage assignment is derived
from the agent's lifecycle and associated hire approval state.
2026-06-07 18:08:48 -04:00
ZacharyZhang-NY 2c12f68b4e Add five SVG dashboard charts to homepage
AgentWorkloadChart (bar), BudgetUtilizationChart (stacked bar),
RunActivityChart (7-day bar), SuccessRateChart (ring gauge), and
CostTrendChart (7-day line). Pure SVG, no external charting library.
Charts render from snapshot data in the DashboardCharts module.
2026-06-07 18:07:13 -04:00
ZacharyZhang-NY dfc45f5fde Add dedicated Run Center with queue, detail, and log viewer
Two-pane RunsPage: left pane shows searchable, filterable run queue
(by status: queued/running/completed/failed). Right pane shows full
run detail: agent, provider, trigger, timing, duration, execution
context, error messages for failures, and provider request response
text as a scrollable log viewer.
2026-06-07 18:04:35 -04:00
ZacharyZhang-NY ed9b3a3dd1 Add meetings, sprints, and approval decision notes
Migration 042 creates meetings and sprints tables, adds decision_notes
to approvals. Full-stack: MeetingService, SprintService, IPC channels,
preload bridge, domain types. UI: MeetingsPage with scheduling and
type filtering, SprintsPage with progress tracking, ApprovalDetailDialog
with decision notes textarea.
2026-06-07 18:01:58 -04:00
ZacharyZhang-NY 75e5d17a86 Implement full task inspector with subtasks, activity, and inline edit
Migration 041 adds parent_task_id to tasks for subtask hierarchy.
TaskDetailDialog now has three tabs: Overview (description, assignee,
project, goal, workspace, runs with error messages), Subtasks (child
tasks with status), and Activity (audit events and approval history).
Inline edit overlay covers title, description, assignee, risk, priority,
and parent task. Task delete is available from the dialog footer.
2026-06-07 17:55:59 -04:00
ZacharyZhang-NY d50f0d8d1f Add Documents, Knowledge Base, and Automation pages
Three new pages in the sidebar navigation: Documents (CRUD with type
filtering, inline editing, status lifecycle), Knowledge Base (card grid
with category/importance filters, create/delete), and Automation (rule
table with trigger/action/priority/enable toggle, create/edit/delete).
Each page connects to the corresponding backend service from the
previous commit.
2026-06-07 17:49:39 -04:00
ZacharyZhang-NY 3b115e8bec Show projects under goals in timeline view
The timeline view now displays project pills under each goal with their
task completion counts, plus a section for unlinked tasks.
2026-06-07 17:41:18 -04:00
ZacharyZhang-NY a7fff3a122 Extend agent editor with department and budget fields
UpdateAgentInput now includes department and budgetCents. The edit dialog
on the Team page shows department and monthly budget alongside the
existing role, title, seniority, provider, and model fields.
2026-06-07 17:39:47 -04:00
ZacharyZhang-NY 22568866e8 Add workspace creation to settings panel
The workspace settings panel now includes an Add button that opens a
dialog with name, local path (with directory picker), and optional
project binding. Supports creating secondary workspaces beyond the
initial bootstrap workspace.
2026-06-07 17:38:09 -04:00
ZacharyZhang-NY 5f92cd0d75 Add goal, project, and workspace CRUD
Full-stack: IPC channels, command types, OrganizationService methods,
IPC handlers, preload bridge, desktop-api types, and UI dialogs on the
Work page. Users can now create goals and projects directly instead of
relying on the onboarding bootstrap.
2026-06-07 17:36:25 -04:00
ZacharyZhang-NY 2ef721774f Add agent run activity and recent messages to homepage
The homepage now shows two activity cards: recent agent runs (with
state, trigger, and timing) and recent chat messages (with sender,
channel, and message preview). Gives the operator real-time visibility
into what agents are doing.
2026-06-07 17:32:55 -04:00
ZacharyZhang-NY 8f4ccc1b7a Extract MentionTextarea and add @mention to thread replies
Shared MentionTextarea component provides @mention autocomplete in both
the channel composer and the thread reply composer. Type @ to see agents
and employees, arrow-navigate, Enter to select.
2026-06-07 17:29:51 -04:00
ZacharyZhang-NY 1997b4aea5 Add manager select to hire dialog
The hire dialog now shows a manager dropdown so new agents can be placed
under an existing agent in the org hierarchy.
2026-06-07 17:25:51 -04:00
ZacharyZhang-NY 3799f73069 Add @mention autocomplete to chat composer
Type @ in the message composer to see a dropdown of agents and employees.
Arrow keys navigate, Enter/Tab selects, Escape dismisses. The selected
handle is inserted at the cursor position.
2026-06-07 17:24:40 -04:00
ZacharyZhang-NY abe578b1a0 Harden provider security and build dependencies 2026-06-07 14:04:32 -04:00
ZacharyZhang-NY 67d2cf5649 Split oversized renderer components 2026-06-07 13:52:42 -04:00
ZacharyZhang-NY 91d9b76281 Enable thread file attachments 2026-06-07 13:45:45 -04:00
ZacharyZhang-NY d5a7665893 Create project collaboration surface 2026-06-07 13:41:53 -04:00
ZacharyZhang-NY 3f34d1cf65 Create runnable agents from hire form 2026-06-07 13:37:36 -04:00
ZacharyZhang-NY 87dfa9345b Add zoom controls and Ctrl/Cmd-wheel zoom to the org chart 2026-05-30 16:27:22 -04:00
ZacharyZhang-NY afd96fe42c Rebuild the org chart with a real tidy-tree layout and centered connectors 2026-05-30 15:52:49 -04:00
ZacharyZhang-NY dd0bb5dc58 Render the team org chart as a hierarchical reporting tree 2026-05-30 10:42:37 -04:00
ZacharyZhang-NY 7dfe652eda Always show the model id field for custom providers 2026-05-30 02:12:58 -04:00
ZacharyZhang-NY 35e1097041 Let custom OpenAI/Anthropic-compatible providers take a hand-entered model id 2026-05-30 02:06:04 -04:00
ZacharyZhang-NY 1b0d766c0c Add GPT-5.5 to the curated lists and show curated providers as a dropdown 2026-05-30 01:42:07 -04:00
ZacharyZhang-NY 2dbab2c1fe Use a free-text model id for providers without an enumerable model list 2026-05-30 01:27:38 -04:00
ZacharyZhang-NY d4ace283d1 Gate the model picker behind credentials: fetch on Get models or after OAuth login 2026-05-30 01:05:14 -04:00
ZacharyZhang-NY ddd8663ecc Add live model refresh to the settings provider model picker 2026-05-30 00:53:50 -04:00
ZacharyZhang-NY cc876e6e16 Fetch live provider model lists instead of the hardcoded catalog 2026-05-30 00:51:42 -04:00
ZacharyZhang-NY 5737f76d6b Stop clipping the top provider card and drop the inline-form accent bar 2026-05-30 00:30:17 -04:00
ZacharyZhang-NY 5388165016 Show the provider credential form inline under the selected provider 2026-05-30 00:27:00 -04:00
ZacharyZhang-NY b9fa049494 Redesign the organization delete confirmation card 2026-05-30 00:13:25 -04:00
ZacharyZhang-NY 9996b89f72 Show custom OpenAI/Anthropic-compatible providers in onboarding and settings 2026-05-29 22:56:01 -04:00