Skip to content

Dashboard: remove the removed product's state model #26

Done

Description

@blitzcrieg1

The dashboard still carries the state model of the email/LangGraph runtime that was cut from this project. It is dead weight, and it makes the "Agentmetry-only scope" claim untrue for anyone who reads the code.

Evidence

apps/dashboard/lib/graph-utils.ts has 9 references to workflow node labels from the removed product:

inbox_fetch: "Fetch Inbox"      escalate_draft: "Escalate"
load_client_sop: "Client SOP"   replan_fetch: "Re-fetch"
draft: "Draft Reply"            deliver: "File Draft"

apps/dashboard/lib/store.ts has 17 references to graphNodes, approvalDraft, approvalConfidence, memoryHeatmap, and a Skill type. None of it belongs to a flight recorder.

Task

Delete the dead state and its types. Work outward from lib/store.ts and lib/graph-utils.ts, removing anything no component reads.

Take it in small steps and let the compiler lead: npx tsc --noEmit will name every consumer. Some of it is still referenced by process-tree.tsx, which is used, so read before deleting rather than removing by name.

Acceptance criteria

  • No references to inbox_fetch, escalate_draft, load_client_sop, replan_fetch as workflow node labels
  • Skill, approvalDraft, approvalConfidence, memoryHeatmap gone from the store if nothing reads them
  • npx tsc --noEmit clean
  • npm run lint and npm run build clean
  • npm run test green (93 tests)

Why this is a good first issue

It is mechanical, the compiler tells you when you are wrong, and the test suite catches anything you break. It is also a genuinely useful way to learn the dashboard before touching something that matters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementgood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions