fix(admin): expose API-editable application fields and reorder in the edit/list UI #159

Merged
vas2000-work merged 1 commit from fix/BUNYIP-121-application-edit-fields into main 2026-06-18 02:40:03 +02:00
Owner

The admin Application create/edit form rendered only the distribution coordinates and is_hosted, even though the API (UpdateApplication / CreateApplication) accepts description, icon_url, subdomain, version, source_code_url, and maintenance_message. These were unreachable from the web admin and could only be set via DB seed; maintenance mode could be toggled on but the message users see could never be edited. Applications also had no reorder control despite the existing PUT /admin/applications/{id}/swap-order endpoint.

Add a shared "Details" section (DetailsView + details_fields) to the create and edit forms covering all six descriptive fields, wired through CreateAppForm / DistributionForm and the create_app_body / distribution_update_body builders. Blank inputs are omitted so the backend COALESCE keeps the current value, matching the existing distribution-field contract. Add Up/Down reorder buttons to the applications list that swap an app's sort_order with its adjacent neighbour via a new application_swap_order handler, admin_api::swap_application_order client, and /admin/applications/{id}/swap-order route.

#BUNYIP-121

Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com

The admin Application create/edit form rendered only the distribution coordinates and is_hosted, even though the API (UpdateApplication / CreateApplication) accepts description, icon_url, subdomain, version, source_code_url, and maintenance_message. These were unreachable from the web admin and could only be set via DB seed; maintenance mode could be toggled on but the message users see could never be edited. Applications also had no reorder control despite the existing PUT /admin/applications/{id}/swap-order endpoint. Add a shared "Details" section (DetailsView + details_fields) to the create and edit forms covering all six descriptive fields, wired through CreateAppForm / DistributionForm and the create_app_body / distribution_update_body builders. Blank inputs are omitted so the backend COALESCE keeps the current value, matching the existing distribution-field contract. Add Up/Down reorder buttons to the applications list that swap an app's sort_order with its adjacent neighbour via a new application_swap_order handler, admin_api::swap_application_order client, and /admin/applications/{id}/swap-order route. #BUNYIP-121 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
vas2000-work force-pushed fix/BUNYIP-121-application-edit-fields from 8ed2719ebd
All checks were successful
Check / fmt / clippy / build / test (pull_request) Successful in 1m30s
to 907882e004
All checks were successful
Check / fmt / clippy / build / test (pull_request) Successful in 2m0s
Create release / Create release from merged PR (pull_request) Has been skipped
2026-06-18 02:37:04 +02:00
Compare
Sign in to join this conversation.
No reviewers
No labels
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
psa-systems/bunyip!159
No description provided.