|
| 1 | +# PR_26179_ALFA_011 Objects Manager MVP Report |
| 2 | + |
| 3 | +## Product Owner Testable Outcome |
| 4 | + |
| 5 | +The Objects tool now saves and reloads object rows through the server API/database contract. A signed-in Creator can add, edit, delete, seed starter objects, validate setup, reload the page, and see persisted Objects data for the current Game Hub game. |
| 6 | + |
| 7 | +## Implementation Summary |
| 8 | + |
| 9 | +- Added a DB-backed Objects API service for `object_definition_records`. |
| 10 | +- Routed the active Objects tool repository away from the mock repository and into the shared API service path. |
| 11 | +- Preserved the browser as an API client only; the server owns record keys, game scoping, and audit fields. |
| 12 | +- Added guest write protection so create/update/delete actions redirect to `account/sign-in.html`. |
| 13 | +- Kept the existing Theme V2 Objects UI and table workflow intact. |
| 14 | + |
| 15 | +## What Can The Product Owner Test After Applying This ZIP? |
| 16 | + |
| 17 | +Open `toolbox/objects/index.html`, sign in as a Creator, add an object, save it, refresh the page, edit it, delete it, seed starter objects, and confirm the rows persist through the API/database path. As a guest, attempt to save a row and confirm the browser redirects to sign-in. |
| 18 | + |
| 19 | +## Playwright Coverage |
| 20 | + |
| 21 | +- `dev/tests/playwright/tools/ObjectsTool.spec.mjs` |
| 22 | +- Covers production copy, object table workflow, guest redirect, persisted add/edit/delete, sprite-linked rows, catalog prefills, and Toolbox beta routing. |
| 23 | + |
| 24 | +## Manual Validation |
| 25 | + |
| 26 | +- Open Objects from Toolbox. |
| 27 | +- Confirm the Object Builder table loads without console errors. |
| 28 | +- Add a Hero object and save. |
| 29 | +- Refresh and confirm the Hero remains. |
| 30 | +- Edit the object name/state and save. |
| 31 | +- Refresh and confirm edits remain. |
| 32 | +- Delete the object and refresh. |
| 33 | +- Sign out, try to save, and confirm redirect to `account/sign-in.html`. |
| 34 | + |
| 35 | +## Stack Context |
| 36 | + |
| 37 | +- Part of stacked MVP sequence: yes. |
| 38 | +- Previous PR dependency: `PR_26179_ALFA_010-objects-inventory-audit`. |
| 39 | +- Next PR dependency: `PR_26179_ALFA_012-objects-properties-mvp`. |
0 commit comments