Skip to content

Commit a4cced7

Browse files
committed
feat: add structured react flow view
1 parent 9f8b2bc commit a4cced7

14 files changed

Lines changed: 852 additions & 60 deletions

AGENTS.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@
99
- Start with `README.md` for setup, scripts, and env vars.
1010
- Read `docs/deployment.md` and `docs/release-checklist.md` before changing CI or release behavior.
1111
- When touching the new layout/mobile flow, read `docs/ux-effects-plan.md`.
12+
- When touching the React Flow renderer or alternate view modes, read `docs/react-flow-structured-view-plan.md`.
1213

1314
## Working Rules
1415
- Read the existing code and docs before changing behavior.
1516
- Prefer minimal, local changes over broad rewrites.
16-
- If a task spans multiple files, the most likely hotspots are `src/App.tsx`, `src/GraphManager.ts`, `src/components/*`, `src/hooks/useGraphState.ts`, and matching tests under `src/`.
17+
- If a task spans multiple files, the most likely hotspots are `src/App.tsx`, `src/GraphManager.ts`, `src/components/*`, `src/features/structured-view/*`, `src/hooks/useGraphState.ts`, and matching tests under `src/`.
1718
- Do not commit generated local artifacts such as `.preview.*` or `.playwright-cli/`.
1819
- If instructions or release steps seem stale, call that out explicitly in the handoff.
1920

@@ -22,6 +23,7 @@
2223
- Core local checks are `npm run lint`, `npm run test`, and `npm run build`.
2324
- Use `npm run check` as the default pre-merge gate.
2425
- If UI, search, or mobile interaction behavior changes, also run `npm run smoke`.
26+
- Local smoke runs need the same Playwright setup that CI uses: `npm install --no-save playwright` and `npx playwright install chromium`.
2527

2628
## Done Means
2729
- The requested behavior is implemented on the intended branch.

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ Live: `https://wikiconnectionsmap.web.app/`
2121
### Test
2222
- `npm run test`
2323

24+
### Smoke Test
25+
- `npm install --no-save playwright`
26+
- `npx playwright install chromium`
27+
- `npm run preview -- --host 127.0.0.1 --port 4173`
28+
- `npm run smoke`
29+
2430
## Environment
2531
- Copy `.env.example` to `.env.local` for local overrides.
2632
- `VITE_WIKI_API_CONTACT_EMAIL` is used for the Wikipedia API identification header.

package-lock.json

Lines changed: 79 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"check": "npm run lint && npm run test && npm run build"
1717
},
1818
"dependencies": {
19+
"@xyflow/react": "^12.10.1",
1920
"d3": "^7.9.0",
2021
"react": "^18.2.0",
2122
"react-dom": "^18.2.0"

0 commit comments

Comments
 (0)