|
| 1 | +# Toolbox Role Focused Filtering |
| 2 | + |
| 3 | +Stacked PR: |
| 4 | +- PR_26155_064-toolbox-role-focused-filtering |
| 5 | + |
| 6 | +## Summary |
| 7 | + |
| 8 | +Added dev-mode Toolbox filtering by Project Member Role on top of the existing role simulation. |
| 9 | + |
| 10 | +Existing role simulation remains: |
| 11 | +- `?role=guest` |
| 12 | +- `?role=user` |
| 13 | +- `?role=admin` |
| 14 | + |
| 15 | +New optional member-role filter: |
| 16 | +- `?memberRole=Owner` |
| 17 | +- `?memberRole=Designer` |
| 18 | +- `?memberRole=World%20Builder` |
| 19 | +- `?memberRole=Artist` |
| 20 | +- `?memberRole=Audio%20Creator` |
| 21 | +- `?memberRole=Translator` |
| 22 | +- `?memberRole=Tester` |
| 23 | +- `?memberRole=Publisher` |
| 24 | +- `?memberRole=Viewer` |
| 25 | + |
| 26 | +Default guest/user views remain Owner-style non-admin current-tool views for compatibility with the existing Toolbox surface. Focused member roles narrow visible tiles for review. |
| 27 | + |
| 28 | +Role focus behavior: |
| 29 | +- Owner sees all current non-admin tools allowed by the current wireframe status model. |
| 30 | +- Designer focuses on Project Workspace, Game Design, Game Configuration, Objects, Worlds, Characters, Colors, and Assets. |
| 31 | +- World Builder focuses on Worlds, Objects, Assets, Colors, and Animations. |
| 32 | +- Artist focuses on Assets, Colors, Fonts, Sprites, Characters, Objects, and Animations. |
| 33 | +- Audio Creator focuses on Audio, Music, Voices, MIDI, Audio Effects, Voice Capture, Voice Output, and Assets. |
| 34 | +- Translator focuses on Languages, Voices, Voice Capture, and Voice Output. |
| 35 | +- Tester focuses on Game Testing, Controls, Hitboxes, Debug, Performance, and Events. |
| 36 | +- Publisher focuses on Publish, Marketplace, Community, Cloud, and Languages. |
| 37 | +- Viewer focuses on preview-safe read-only tiles. |
| 38 | +- Admin view still shows planned/admin-capable Toolbox entries. |
| 39 | + |
| 40 | +Focused views include a callout explaining that unavailable tools are hidden by role focus, not by security enforcement. |
| 41 | + |
| 42 | +## Validation |
| 43 | + |
| 44 | +Covered by: |
| 45 | +- `npm run test:lane:project-workspace` |
| 46 | +- `npm run test:workspace-v2` |
| 47 | + |
| 48 | +The targeted lane verifies: |
| 49 | +- Owner/user view still shows the current non-admin surface. |
| 50 | +- Designer view focuses expected tools. |
| 51 | +- Audio Creator view exposes expected media tools, including planned media capabilities. |
| 52 | +- Viewer view is reduced to preview-safe tiles. |
| 53 | +- Admin view still shows planned/admin-capable tools and Project Data controls. |
| 54 | +- No console errors. |
0 commit comments