molecule-core/canvas/src/store
Molecule AI Frontend Engineer 5d081769e5 feat(canvas): budget_limit input in workspace creation and settings UI (#541)
- Adds optional Budget limit (USD) numeric field to CreateWorkspaceDialog;
  blank = null (unlimited), populated = parsed float sent as budget_limit in
  POST /workspaces body
- Adds budget_limit field to DetailsTab edit form; saves via
  PATCH /workspaces/:id; pre-fills from current WorkspaceNodeData
- Shows 'Budget limit exceeded' warning badge when budgetUsed > budgetLimit
  (forward-compatible — badge hidden when budgetUsed is absent)
- Extends WorkspaceData, WorkspaceNodeData, and buildNodesAndEdges to carry
  budgetLimit / budgetUsed fields ready for backend hydration (issue #541 BE PR)
- Ships 22 new tests across CreateWorkspaceDialog and BudgetLimit.DetailsTab
  suites (575 total, all passing); npm run build clean; 'use client' grep empty

API shape confirmed from workspace.go and CreateWorkspacePayload struct:
  field name: budget_limit | type: number | null | units: USD

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-17 06:06:36 +00:00
..
__tests__ fix(canvas): hydration error UI (#554), radio arrow-key nav (#556), zoom-to-team context menu (#557) (#565) 2026-04-17 00:35:54 +00:00
canvas-capabilities.ts initial commit — Molecule AI platform 2026-04-13 11:55:37 -07:00
canvas-events.ts fix(canvas): replace nodes.length grid index with monotonic sequence counter (#388) 2026-04-16 00:25:33 -07:00
canvas-topology.ts feat(canvas): budget_limit input in workspace creation and settings UI (#541) 2026-04-17 06:06:36 +00:00
canvas.ts feat(canvas): budget_limit input in workspace creation and settings UI (#541) 2026-04-17 06:06:36 +00:00
socket.ts feat(canvas): budget_limit input in workspace creation and settings UI (#541) 2026-04-17 06:06:36 +00:00