Make Game Cloning Open an Editable Draft Before Publishing #775

Closed
opened 2026-06-28 12:27:28 -05:00 by Veilor · 1 comment
Member

Game DB admins need cloning to create an editable draft or prefilled edit step before the cloned game becomes visible as a live public entry.

The current admin clone flow confirms the source game, immediately replicates it into a live game record, and redirects to the edit page. That makes platform changes, title corrections, boxart changes, and other clone-specific edits race against members seeing an unfinished duplicate.

Scope

  • Admin game clone confirmation and submit flow.
  • Admin\GameController::storeClone behavior after an admin chooses to clone.
  • The edit experience for the newly cloned game.
  • Visibility of cloned records before an admin has reviewed and saved clone-specific changes.
  • Existing game edit form validation, authorization, and audit logging.

Acceptance Criteria

  • Cloning a game does not immediately publish an unfinished live duplicate to members.
  • Admins can review and edit the cloned game before it becomes publicly visible.
  • Admins can change platform, title, boxart, and other normal editable game fields before publication.
  • The source game remains unchanged during the clone preparation flow.
  • Clone authorization remains limited to existing game manager roles.
  • The admin UI clearly communicates whether the clone is still a draft/pre-publication record or has been published.
  • Existing edit validation and success/error feedback continue to work.

Test Coverage Required

  • Add feature coverage for starting a clone without exposing an unfinished live public game.
  • Add feature coverage that the cloned record can be edited before publication.
  • Add regression coverage that clone authorization remains restricted to game manager roles.
  • Preserve existing admin game edit validation coverage.
  • Run focused admin game clone/edit tests before closing the issue.
  • Run vendor/bin/pint --dirty --format agent before implementation closeout if PHP files change.

Progress Checklist

  • Decide the clone draft/pre-publication model or workflow
  • Update clone submission so unfinished clones are not immediately public
  • Route admins into the editable clone flow
  • Preserve source game data during clone preparation
  • Make clone publication state clear in the admin UI
  • Add focused clone workflow coverage
  • Run focused admin game tests
  • Run vendor/bin/pint --dirty --format agent if PHP files changed
  • Move the issue out of Codex review once verification is complete
Game DB admins need cloning to create an editable draft or prefilled edit step before the cloned game becomes visible as a live public entry. The current admin clone flow confirms the source game, immediately replicates it into a live game record, and redirects to the edit page. That makes platform changes, title corrections, boxart changes, and other clone-specific edits race against members seeing an unfinished duplicate. ## Scope - Admin game clone confirmation and submit flow. - `Admin\GameController::storeClone` behavior after an admin chooses to clone. - The edit experience for the newly cloned game. - Visibility of cloned records before an admin has reviewed and saved clone-specific changes. - Existing game edit form validation, authorization, and audit logging. ## Acceptance Criteria - Cloning a game does not immediately publish an unfinished live duplicate to members. - Admins can review and edit the cloned game before it becomes publicly visible. - Admins can change platform, title, boxart, and other normal editable game fields before publication. - The source game remains unchanged during the clone preparation flow. - Clone authorization remains limited to existing game manager roles. - The admin UI clearly communicates whether the clone is still a draft/pre-publication record or has been published. - Existing edit validation and success/error feedback continue to work. ## Test Coverage Required - Add feature coverage for starting a clone without exposing an unfinished live public game. - Add feature coverage that the cloned record can be edited before publication. - Add regression coverage that clone authorization remains restricted to game manager roles. - Preserve existing admin game edit validation coverage. - Run focused admin game clone/edit tests before closing the issue. - Run `vendor/bin/pint --dirty --format agent` before implementation closeout if PHP files change. ## Progress Checklist - [ ] Decide the clone draft/pre-publication model or workflow - [ ] Update clone submission so unfinished clones are not immediately public - [ ] Route admins into the editable clone flow - [ ] Preserve source game data during clone preparation - [ ] Make clone publication state clear in the admin UI - [ ] Add focused clone workflow coverage - [ ] Run focused admin game tests - [ ] Run `vendor/bin/pint --dirty --format agent` if PHP files changed - [ ] Move the issue out of Codex review once verification is complete
Codex changed title from Cloning should lead to edit an entry not instant clone to Make Game Cloning Open an Editable Draft Before Publishing 2026-06-28 16:30:38 -05:00
Codex self-assigned this 2026-07-01 16:56:26 -05:00
Member

Re-review after the agreed scope change to a prefilled clone form:

The branch codex/issue-775-prefilled-clone-form meets the revised intent of this issue. The clone flow no longer creates a live duplicate on the initial Clone click. Admins land on a prefilled manual-create form, can change title, platform, metadata, and boxart before saving, and the new game record is inserted only when that reviewed form is submitted. After submit, the admin is redirected to the edit page for the newly created cloned game.

Checklist mapping:

  • Decide the clone draft/pre-publication model or workflow
  • Update clone submission so unfinished clones are not immediately public
  • Route admins into the editable clone flow
  • Preserve source game data during clone preparation
  • Make clone publication state clear in the admin UI
  • Add focused clone workflow coverage
  • Run focused admin game tests
  • Run vendor/bin/pint --dirty --format agent if PHP files changed
  • Move the issue out of Codex review once verification is complete

Notes on changed scope:

  • There is no database draft state now. The pre-publication state is the prefilled form before insert, which exceeds the original visibility requirement because members never get a chance to see an unfinished clone record.
  • The separate clone-confirmation page was removed in favor of reusing the create form with clone defaults.
  • The final status/closeout checkbox remains unchecked until the branch is committed/PR-reviewed and the tracker is moved by the usual workflow.

Verification run:

  • php artisan test --compact tests/Feature/AdminGameCloneTest.php
  • php artisan test --compact tests/Feature/AdminGameIgdbCreateTest.php tests/Feature/AdminGameGenreTest.php tests/Feature/AdminGameRegionalOrderingTest.php tests/Feature/AdminGameUploadSecurityTest.php
  • vendor/bin/pint --dirty --format agent
Re-review after the agreed scope change to a prefilled clone form: The branch codex/issue-775-prefilled-clone-form meets the revised intent of this issue. The clone flow no longer creates a live duplicate on the initial Clone click. Admins land on a prefilled manual-create form, can change title, platform, metadata, and boxart before saving, and the new game record is inserted only when that reviewed form is submitted. After submit, the admin is redirected to the edit page for the newly created cloned game. Checklist mapping: - [x] Decide the clone draft/pre-publication model or workflow - [x] Update clone submission so unfinished clones are not immediately public - [x] Route admins into the editable clone flow - [x] Preserve source game data during clone preparation - [x] Make clone publication state clear in the admin UI - [x] Add focused clone workflow coverage - [x] Run focused admin game tests - [x] Run vendor/bin/pint --dirty --format agent if PHP files changed - [ ] Move the issue out of Codex review once verification is complete Notes on changed scope: - There is no database draft state now. The pre-publication state is the prefilled form before insert, which exceeds the original visibility requirement because members never get a chance to see an unfinished clone record. - The separate clone-confirmation page was removed in favor of reusing the create form with clone defaults. - The final status/closeout checkbox remains unchecked until the branch is committed/PR-reviewed and the tracker is moved by the usual workflow. Verification run: - php artisan test --compact tests/Feature/AdminGameCloneTest.php - php artisan test --compact tests/Feature/AdminGameIgdbCreateTest.php tests/Feature/AdminGameGenreTest.php tests/Feature/AdminGameRegionalOrderingTest.php tests/Feature/AdminGameUploadSecurityTest.php - vendor/bin/pint --dirty --format agent
jimmyb 2026-07-01 17:41:24 -05:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MyVideoGameList/myvideogamelist.com#775
No description provided.