feat(FN-5622): add goals REST API with store accessor and route handlers
Introduces a Goals REST API (`GET/POST/PUT /api/goals` and `GET/PUT /api/goals/:id`) backed by a new `@fusion/core` goal store and typed goal types, including comprehensive route and store test coverage. Documentation on architecture and storage is updated to reflect the new domain, and a changeset Fusion-Task-Id: FN-5622 Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai> Fusion-Task-Id: FN-5622
This commit is contained in:
6
.changeset/FN-5622-goals-rest-api.md
Normal file
6
.changeset/FN-5622-goals-rest-api.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
"@runfusion/fusion": minor
|
||||
---
|
||||
|
||||
Add Goals REST API (`/api/goals`) with list/create/update/archive/unarchive endpoints.
|
||||
Creating a 6th active goal or unarchiving when already at 5 active now returns HTTP 409 with `ACTIVE_GOAL_LIMIT_EXCEEDED` details.
|
||||
6
.changeset/fn-5620-goals-schema.md
Normal file
6
.changeset/fn-5620-goals-schema.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
"@runfusion/fusion": patch
|
||||
---
|
||||
|
||||
Add a new project-level `goals` table to the core schema and fresh database DDL.
|
||||
Bump `SCHEMA_VERSION` from 91 to 92 with an idempotent migration that creates `goals` and `idxGoalsStatus`.
|
||||
Reference in New Issue
Block a user