Add inline editing for bucket name, allocation type, and allocation value #18
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Problem
After creating a bucket, users cannot edit its name, allocation type, or allocation value — these are set-once at creation. The backend already supports partial updates for all three fields via
PATCH /buckets/{uuid}, but the UI has no inline editing controls for them.The existing inline editing pattern (
InlineEditInput,InlineEditSelect) is already used forstarting_amount,type,buffer_multiplier, andpriority.Scope
Add inline editing to bucket cards in
Show.tsxfor:InlineEditInput(text, not numeric) or a new text variant. Currently displayed as a static<h3>.InlineEditSelectwith options: Fixed Limit, Percentage. Changing type should trigger a page reload to update dependent fields (buffer_multiplier visibility, allocation_value format). Disabled for overflow buckets.InlineEditInput(numeric). Display format depends on allocation_type:$500.00for fixed_limit,25.00%for percentage. Hidden for unlimited/overflow buckets.Notes
InlineEditInputcurrently only handles numeric values. For the name field, it may need a text mode or a newInlineEditTextcomponent.allocation_typechanges, the backend auto-nullsallocation_valuefor unlimited and resetsbuffer_multiplierto 0 for non-fixed-limit types. The UI should reflect this after reload.sometimesrules — no backend changes needed.Acceptance criteria