feat(goals): the core Goals page leaves for the goals plugin's board #11

Closed
gabrielvidal wants to merge 0 commits from goals-plugin-only into main
pull from: goals-plugin-only
Owner

Summary

The Goals board has been the goals live plugin's since 2026-11-25 (/plugins/goals/board), but the core /goals page was never retired, so the app had two Goals boards. This removes the core page. /goals and Files → Goals now open the plugin's board. Move B of the six "core → ai-agent-plugins" moves picked in form ai-agent-moves-to-ai-agent-plugins_o2qxmd.

Key changes

  • Removed frontend/src/business/goals (the Goals page, GoalCard, GoalProgress, lazy: 703 lines), plus useGoals / QK.goals, fetchGoals / spawnGoalWork in api.ts, and the two QK.goals invalidations in lib/sseBus.ts.
  • root.tsx: /goals → <Navigate to="/plugins/goals/board" replace />, like /plans and /memories.
  • nav.ts:
    • The files/goals sub-link keeps its key and now opens /plugins/goals/board (match /plugins/goals, /goals).
    • New in sectionOf: a plugin page that a core sub-link points at belongs to that sub-link's section. On the board, the bar lights Files → Goals instead of Dashboards.
  • BottomBar.tsx:
    • A sub-link to a /plugins/… page shows only while that page is in the caller's /api/plugins/ui.
    • Reordering a drawer keeps such hidden links in place in the saved order, the same way it keeps permission-hidden ones.
  • FilesPanel.tsx / FilesHome.tsx:
    • The Goals shortcut and card keep their /goals key, which redirects to the board.
    • Both show only while the caller has the plugin's page. The panel row lights on the board.
  • lib/telemetry/features.ts: page.goals now counts /plugins/goals/board.
  • CLAUDE.md: a note under goals/goalmd.py that the board is the plugin's, and why backend/goals stays.

Key decisions

  • Keep the core sub-link rather than moving the plugin page to nav: "files".
    • The nav-sub saved order is keyed by files/goals, so the owner's drawer keeps its Goals slot.
    • The plugin's ui block is part of its approval fingerprint (capability_fingerprint). Changing nav would have sent goals (which holds goals.read / goals.work) back for re-approval.
    • So the plugin needs no change and has no companion ai-agent-plugins PR.
    • The board also stays listed in the Dashboards panel, as it is today.
  • Hide instead of dead-linking. The Plans move dropped its sub-link. Here the slot is kept, but it disappears on a hub without the plugin (the standalone North Star), so nobody lands on a missing plugin page.
  • backend/goals stays. The plugin's goals.read / goals.work bridges (plugins/proxyroutes.py) import goals_list and goal_work.
  • Follow-up, not done here: the HTTP routes GET /api/goals and POST /api/goal-work now have no client. The core ai-agent goals CLI left on 2026-11-26, and this PR removes the page. They could go later, with their schemas, the generated client and the authz golden lines. Touching those shared files here would collide with the sibling PRs.

Changelog

  • Changed: Goals opens the Goals plugin's board, from Files → Goals, the Files page and old /goals links.
  • Removed: the app's built-in Goals page, replaced by the Goals plugin's board.
  • Fixed: Files → Goals, the Files page and the Files drawer no longer offer Goals on a hub without the Goals plugin.

Test notes

  • Backend: no backend file changes.
  • Frontend:
    • npx tsc --noEmit: clean.
    • Full npx vitest run: 1064 passed, 3 failed. The 3 failures (useShareTarget ×2, FreshContext › CacheExpiredNotice) are in files this branch doesn't touch and already fail on main.
    • BottomBar.test.tsx + nav.test.ts + business/files: 78/78. New cases:
      • Files → Goals opens and lights the board.
      • Goals is left out without the plugin.
      • /plugins/goals/board sits in Files.
    • npm run build and npm run build:mock: both OK.
  • Live local hub (bwrap with a throwaway /data, port 8132, the built app served by the backend), with the goals plugin installed from ai-agent-plugins main:
    • /goals lands on the plugin's board with Files lit (screenshot 1).
    • The Files drawer lights Goals (screenshot 2).
    • With the plugin disabled, Goals is gone from both the drawer and the Files page (screenshot 3).
  • Not deployed from the EVOX2. Deploy from the Homelab after review (ai-agent-deploy). There is no plugin change, so nothing to install.
  • Merge order: this PR is independent and the smallest of the six moves, so it can go first.
    • It can collide trivially with the Skills + Agents move (D) in nav.ts (SUB_SECTIONS.files), FilesPanel.tsx, FilesHome.tsx and root.tsx.
    • The other sibling moves only share root.tsx and CLAUDE.md with it.
    • Whichever merges second rebases.

🤖 Generated with Claude Code

Screenshots

goals-redirect-board.png
files-drawer-goals.png
files-drawer-no-plugin.png

## Summary The Goals board has been the `goals` live plugin's since 2026-11-25 (`/plugins/goals/board`), but the core `/goals` page was never retired, so the app had two Goals boards. This removes the core page. `/goals` and Files → Goals now open the plugin's board. Move **B** of the six "core → ai-agent-plugins" moves picked in form `ai-agent-moves-to-ai-agent-plugins_o2qxmd`. ## Key changes - **Removed** `frontend/src/business/goals` (the Goals page, `GoalCard`, `GoalProgress`, `lazy`: 703 lines), plus `useGoals` / `QK.goals`, `fetchGoals` / `spawnGoalWork` in `api.ts`, and the two `QK.goals` invalidations in `lib/sseBus.ts`. - `root.tsx`: `/goals` → `<Navigate to="/plugins/goals/board" replace />`, like `/plans` and `/memories`. - `nav.ts`: - The `files/goals` sub-link keeps its key and now opens `/plugins/goals/board` (match `/plugins/goals`, `/goals`). - New in `sectionOf`: a plugin page that a core sub-link points at belongs to that sub-link's section. On the board, the bar lights **Files → Goals** instead of Dashboards. - `BottomBar.tsx`: - A sub-link to a `/plugins/…` page shows only while that page is in the caller's `/api/plugins/ui`. - Reordering a drawer keeps such hidden links in place in the saved order, the same way it keeps permission-hidden ones. - `FilesPanel.tsx` / `FilesHome.tsx`: - The Goals shortcut and card keep their `/goals` key, which redirects to the board. - Both show only while the caller has the plugin's page. The panel row lights on the board. - `lib/telemetry/features.ts`: `page.goals` now counts `/plugins/goals/board`. - `CLAUDE.md`: a note under `goals/goalmd.py` that the board is the plugin's, and why `backend/goals` stays. ## Key decisions - **Keep the core sub-link rather than moving the plugin page to `nav: "files"`.** - The `nav-sub` saved order is keyed by `files/goals`, so the owner's drawer keeps its Goals slot. - The plugin's `ui` block is part of its approval fingerprint (`capability_fingerprint`). Changing `nav` would have sent `goals` (which holds `goals.read` / `goals.work`) back for re-approval. - So the plugin needs no change and has no companion ai-agent-plugins PR. - The board also stays listed in the Dashboards panel, as it is today. - **Hide instead of dead-linking.** The Plans move dropped its sub-link. Here the slot is kept, but it disappears on a hub without the plugin (the standalone North Star), so nobody lands on a missing plugin page. - **`backend/goals` stays.** The plugin's `goals.read` / `goals.work` bridges (`plugins/proxyroutes.py`) import `goals_list` and `goal_work`. - **Follow-up, not done here:** the HTTP routes `GET /api/goals` and `POST /api/goal-work` now have no client. The core `ai-agent goals` CLI left on 2026-11-26, and this PR removes the page. They could go later, with their schemas, the generated client and the authz golden lines. Touching those shared files here would collide with the sibling PRs. ## Changelog - Changed: Goals opens the Goals plugin's board, from Files → Goals, the Files page and old `/goals` links. - Removed: the app's built-in Goals page, replaced by the Goals plugin's board. - Fixed: Files → Goals, the Files page and the Files drawer no longer offer Goals on a hub without the Goals plugin. ## Test notes - **Backend:** no backend file changes. - **Frontend:** - `npx tsc --noEmit`: clean. - Full `npx vitest run`: 1064 passed, 3 failed. The 3 failures (`useShareTarget` ×2, `FreshContext` › `CacheExpiredNotice`) are in files this branch doesn't touch and already fail on main. - `BottomBar.test.tsx` + `nav.test.ts` + `business/files`: 78/78. New cases: - Files → Goals opens and lights the board. - Goals is left out without the plugin. - `/plugins/goals/board` sits in Files. - `npm run build` and `npm run build:mock`: both OK. - **Live local hub** (bwrap with a throwaway `/data`, port 8132, the built app served by the backend), with the `goals` plugin installed from ai-agent-plugins main: - `/goals` lands on the plugin's board with Files lit (screenshot 1). - The Files drawer lights Goals (screenshot 2). - With the plugin disabled, Goals is gone from both the drawer and the Files page (screenshot 3). - **Not deployed from the EVOX2.** Deploy from the Homelab after review (ai-agent-deploy). There is no plugin change, so nothing to install. - **Merge order:** this PR is independent and the smallest of the six moves, so it can go first. - It can collide trivially with the Skills + Agents move (D) in `nav.ts` (`SUB_SECTIONS.files`), `FilesPanel.tsx`, `FilesHome.tsx` and `root.tsx`. - The other sibling moves only share `root.tsx` and `CLAUDE.md` with it. - Whichever merges second rebases. 🤖 Generated with [Claude Code](https://claude.com/claude-code) ## Screenshots ![goals-redirect-board.png](https://git.gabvdl.xyz/attachments/ab209681-1bf1-4480-8723-06a61318beb8) ![files-drawer-goals.png](https://git.gabvdl.xyz/attachments/a5a28e2f-92ca-403a-8c42-76d6df38500c) ![files-drawer-no-plugin.png](https://git.gabvdl.xyz/attachments/6a5844ed-e567-4ebd-a959-bf69c089397f)
gabrielvidal self-assigned this 2026-11-26 23:50:18 +01:00
gabrielvidal added 1 commit 2026-11-26 23:50:18 +01:00
The `goals` live plugin (ai-agent-plugins, 2026-11-25) draws the Goals board
at /plugins/goals/board. The core copy of that board stayed behind, so two
Goals boards existed. This removes the core one.

- frontend/src/business/goals (Goals page, GoalCard, GoalProgress, lazy;
  703 lines), useGoals / QK.goals, fetchGoals / spawnGoalWork and the SSE
  bus's goals invalidations are gone
- /goals redirects to /plugins/goals/board, like /plans and /memories
- Files → Goals in the bottom bar keeps its key (`files/goals`), so a saved
  drawer slot keeps working, and now opens the plugin's board. A core
  sub-link that points at a plugin page puts that page in its own section
  (`sectionOf`), so the board lights Files → Goals rather than Dashboards.
- The sub-link, the Files panel's shortcut and the Files home card show
  only while the caller has the goals plugin's page. A hub without the
  plugin gets no dead link.
- The plugin's manifest is untouched (page `nav: "dashboards"`), so its
  approval fingerprint, and the approval itself, hold.
- backend/goals stays: the plugin's goals.read / goals.work bridges call
  goals_list and goal_work
- telemetry: page.goals counts the plugin's board

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Author
Owner

Merged into main as 1d287796 (batch merge of the EVOX2 plugin moves on top of main 0797e454, all ai-agent suites green) and deployed: ai-agent @ 7c397fbc live since 2026-11-27 00:57.

Merged into `main` as 1d287796 (batch merge of the EVOX2 plugin moves on top of main 0797e454, all ai-agent suites green) and deployed: ai-agent @ 7c397fbc live since 2026-11-27 00:57.
gabrielvidal closed this pull request 2026-11-27 00:58:14 +01:00

Pull request closed

Please reopen this pull request to perform a merge.
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: gabrielvidal/ai-agent#11