Skip to content

feat(dashboard): usage cost display + create-sequence template picker#63

Merged
ovasylenko merged 1 commit into
mainfrom
feat/dashboard-cost-templates
Jun 10, 2026
Merged

feat(dashboard): usage cost display + create-sequence template picker#63
ovasylenko merged 1 commit into
mainfrom
feat/dashboard-cost-templates

Conversation

@ovasylenko

Copy link
Copy Markdown
Contributor

Summary

The dashboard halves of the cost (#56) and template-gallery (#57) features. Neither a Usage view nor a sequence-creation flow existed in the dashboard — both built fresh following the house conventions (PageHeader/Section/Metric/Table kit, usePolling + api.ts helpers, node:test suites).

  • /usage page: "Estimated spend" headline (total_cost_usd, labeled "USD · est." with list-price tooltip), token/event totals, per-(kind, model) table with right-aligned estimated-cost column; unknown models show an em-dash with an explanatory tooltip. New fmtUsd helper (2 decimals ≥ $1, 4 below).
  • Create-from-template picker: "New sequence" flow on the Sequences page with a template card grid — blank + the 5 CLI templates (default scaffold mirrored from orch8-cli/src/templates.rs, pattern JSONs inlined from docs/agent-patterns/), pre-filling the JSON editor with tenant/namespace adaptation. A drift-guard test deep-equals each embedded template against the actual docs/agent-patterns/*.json files.
  • Added typecheck and test scripts to dashboard/package.json.

Tests

74/74 pass (node --test), tsc -b clean, production vite build compiles.

Notes

  • CI has no dashboard job today — the new scripts are ready for one (follow-up).
  • Dashboard's package-lock.json is stale (predates this change); pnpm with the workspace lockfile is the working install path.

🤖 Generated with Claude Code

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@ovasylenko ovasylenko merged commit e1a8584 into main Jun 10, 2026
5 checks passed
ovasylenko added a commit that referenced this pull request Jun 10, 2026
… 16 features shipped

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
ovasylenko added a commit that referenced this pull request Jun 10, 2026
… timeline+fork, streaming, AP triggers, OTLP, dashboard (#63-#70)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@ovasylenko ovasylenko deleted the feat/dashboard-cost-templates branch June 10, 2026 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant