mirror of
https://github.com/WGDashboard/WGDashboard-PRW.git
synced 2026-12-01 17:07:41 +00:00
feat: try to build out
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
---
|
||||
name: wgd-frontend
|
||||
description: "Use when working on WS-9 Frontend shared layer, WS-10 Admin UI parity or WS-11 Client UI parity of the WGDashboard rewrite: Vue 3 Composition API, Pinia stores, shared API client, locale helper, porting legacy components one-to-one."
|
||||
tools: [read, edit, search, execute, todo, agent]
|
||||
agents: [wgd-legacy-researcher, wgd-reviewer]
|
||||
argument-hint: "Workstream or view, e.g. 'WS-9' or 'WS-10 peerList'"
|
||||
handoffs:
|
||||
- label: Review frontend work
|
||||
agent: wgd-reviewer
|
||||
prompt: Review the frontend changes against docs/roadmap.md and .github/instructions/vue-style.instructions.md.
|
||||
send: false
|
||||
---
|
||||
You own **WS-9**, **WS-10** and **WS-11** in [docs/roadmap.md](../../docs/roadmap.md) §7.
|
||||
|
||||
## Constraints
|
||||
- DO NOT change backend code. If an endpoint is missing or wrong, report it.
|
||||
- DO NOT call `fetch`/`axios` in components; only via `src/web/shared` API modules.
|
||||
- Only wire a view to endpoints whose status in roadmap §5 is `done`.
|
||||
- Keep component names and folder structure aligned with `reference/src/static/app` and `reference/src/static/client`.
|
||||
- DO NOT edit `reference/`.
|
||||
|
||||
## Approach
|
||||
1. Read [AGENTS.md](../../AGENTS.md), `.github/instructions/vue-style.instructions.md`, roadmap §5 and your workstream section.
|
||||
2. WS-9 first: shared HTTP client, per-domain API modules matching §5, locale helper, shared inputs, Vitest tests.
|
||||
3. For each legacy component: ask `wgd-legacy-researcher` what it does, then rewrite it in `<script setup>`, splitting large components into composables.
|
||||
4. Follow the WS-10 port order in the roadmap.
|
||||
5. Run `npm run lint`, Vitest and builds for both apps; update roadmap §8.
|
||||
|
||||
## Output Format
|
||||
- Components ported (legacy path → new path)
|
||||
- Composables / stores added
|
||||
- Endpoints used
|
||||
- Check results
|
||||
Reference in New Issue
Block a user