Add reorder buttons for Stage objects in admin#259
Conversation
Co-authored-by: goodtune <286798+goodtune@users.noreply.github.com>
Added E2E test in commit 08659b2 that validates Stage reorder buttons exist in the admin UI. The test:
Screenshots captured:
The E2E test passes successfully using Playwright with Chromium browser. The reorder buttons are present in the HTML with correct chevron icons and URL patterns matching the existing StageGroup implementation. |
Co-authored-by: goodtune <286798+goodtune@users.noreply.github.com>
08659b2 to
c279828
Compare
|
@claude review this pull request and provide your opinion on the quality. |
|
Claude finished @goodtune's task —— View job PR Quality ReviewTodo List:
Overall Assessment: Excellent ⭐This is a high-quality implementation that follows Django best practices and project conventions consistently. The code demonstrates strong adherence to the repository's established patterns and testing guidelines. ✅ StrengthsTemplate Implementation (
|
Stage implements OrderedSitemapNode but lacked admin UI for reordering. Backend
reorder()logic already existed.Changes
stage/list.inc.htmlfollowing SitemapNode patterntest_stage_reorder_upandtest_stage_reorder_downvalidating reorder behavior within division scopetest_stage_reorder_buttons_visibleintests/e2e/test_stage_reordering.pythat validates reorder buttons exist in the admin UI DOMImplementation
Stages reorder within their division using URL pattern:
The
stage:divisionparameter filters by parent division, matching the existing StageGroup implementation. Buttons appear after Build/Undo actions with responsive labels.Testing
Fixes #3