Open kleneway opened 1 month ago
JACoB here...
You mentioned me on this issue and I am busy taking a look at it.
I'll continue to comment on this issue with status as I make progress.
JACoB here...
You mentioned me on this issue and I am busy taking a look at it.
I'll continue to comment on this issue with status as I make progress.
I've completed my initial work on this issue and have created a pull request: JACoB PR for Issue Update Dashboard to use new Plan from events.
The changes currently result in an error, so I'll be making some additional changes before it is ready to merge.
Update Dashboard to use new Plan from events
Description
The current Dashboard has a "Plan" tab in the workspace that displays an array of plan steps to the user. Currently, the dashboard uses a hardcoded set of plan steps using an outdated Plan type. We recently added Plan and PlanStep types in the
agent/plan.ts
file and new events for those Plan and PlanStep objects that are emitted when the Planning agent creates a new plan. We need to update the dashboard to use these new events from the database from the existing "events" router.Requirements
Remove outdated Plan types and functions:
router/events.ts
anddata/plans.ts
.getPlanForTaskSubType
function.Update Task type:
router/events.ts
to use the new Plan instead of the old Plan.router/events.ts
to add the plan and plan steps from the events.Update Dashboard's onAdd functionality:
onAdd
functionality inDashboard.tsx
to add the Plan and plan steps when new ones are created.Update Workspace components:
workspace/index.tsx
andworkspace/Plan.tsx
to account for the new Plan type.Files to Update:
src/app/dashboard/[org]/[repo]/[developer]/Dashboard.tsx
src/server/api/routers/events.ts
src/app/dashboard/[org]/[repo]/[developer]/components/workspace/index.tsx
src/app/dashboard/[org]/[repo]/[developer]/components/workspace/Plan.tsx
src/data/plans.ts
Acceptance Criteria:
@jacob-ai-bot
Steps to Address Issue: 1. Remove outdated Plan types and functions from router/events.ts and data/plans.ts
Files to Update: src/app/dashboard/[org]/[repo]/[developer]/Dashboard.tsx, src/server/api/routers/events.ts, src/app/dashboard/[org]/[repo]/[developer]/components/workspace/index.tsx, src/app/dashboard/[org]/[repo]/[developer]/components/workspace/Plan.tsx, src/data/plans.ts
task assigned to: @jacob-ai-bot