1
0
Fork 0
polaris-task-force/src/components/admin/tech-tree
Z8MB1E 89482798f4 feat(tech-tree): add admin tech tree editor view
Add a custom admin view over the technologies collection so staff can model
prerequisites as a left-to-right tree instead of a flat list.

- React Flow v12 canvas with category bands, OR-prerequisite edges, a
  lite side-panel editor, and a quick-create dialog.
- Propagating layout: a technology with prerequisites lands one column right
  of its parents at their average row; uncategorized roots fill a catalog
  grid keyed by each tech's rank among all uncategorized technologies, so
  promoting one into the tree leaves an empty slot instead of re-shuffling
  the grid.
- Stability contract: connecting or removing edges never moves a card (the
  connected node is pinned to its current spot), and a "Save positions"
  control commits every on-screen node so the arrangement survives reload;
  "Auto-arrange" clears manual positions and restores the ordered layout.
- Progression-path edge colors and per-source lanes keep overlapping edges
  readable. Wire the view and its nav entry into payload.config.ts and add
  dark React Flow / scrollbar styling.
2026-10-01 10:03:58 -04:00
..
CategoryBand.tsx feat(tech-tree): add admin tech tree editor view 2026-10-01 10:03:58 -04:00
CategoryPicker.tsx feat(tech-tree): add admin tech tree editor view 2026-10-01 10:03:58 -04:00
edgeVisuals.ts feat(tech-tree): add admin tech tree editor view 2026-10-01 10:03:58 -04:00
freeze.ts feat(tech-tree): add admin tech tree editor view 2026-10-01 10:03:58 -04:00
layout.ts feat(tech-tree): add admin tech tree editor view 2026-10-01 10:03:58 -04:00
mappers.ts feat(tech-tree): add admin tech tree editor view 2026-10-01 10:03:58 -04:00
PanelSelect.tsx feat(tech-tree): add admin tech tree editor view 2026-10-01 10:03:58 -04:00
prereqEdits.ts feat(tech-tree): add admin tech tree editor view 2026-10-01 10:03:58 -04:00
QuickCreateDialog.tsx feat(tech-tree): add admin tech tree editor view 2026-10-01 10:03:58 -04:00
TechNode.tsx feat(tech-tree): add admin tech tree editor view 2026-10-01 10:03:58 -04:00
TechPreviewPanel.tsx feat(tech-tree): add admin tech tree editor view 2026-10-01 10:03:58 -04:00
TechTreeCanvas.tsx feat(tech-tree): add admin tech tree editor view 2026-10-01 10:03:58 -04:00
TechTreeNav.tsx feat(tech-tree): add admin tech tree editor view 2026-10-01 10:03:58 -04:00
TechTreeNavClient.tsx feat(tech-tree): add admin tech tree editor view 2026-10-01 10:03:58 -04:00
TechTreeView.tsx feat(tech-tree): add admin tech tree editor view 2026-10-01 10:03:58 -04:00
types.ts feat(tech-tree): add admin tech tree editor view 2026-10-01 10:03:58 -04:00