fix(admin): expose API-editable application fields and reorder in the edit/list UI #159
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/BUNYIP-121-application-edit-fields"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
8ed2719ebd907882e004