Currencies: rate editing works via upsert but is not discoverable (no Edit button) #12

Closed
opened 2026-06-07 12:58:54 +00:00 by sameh-farouk · 1 comment
Member

Editing a currency rate looks impossible, so people delete the rate and add it again.

It actually already works: the "Add / Update" form updates a rate if you re-enter the same code. The problem is there's no Edit button to make that obvious.

Fix: add an Edit button on each rate row that fills the form with that row's values. No backend change needed.

Editing a currency rate looks impossible, so people delete the rate and add it again. It actually already works: the **"Add / Update"** form updates a rate if you re-enter the same code. The problem is there's no **Edit** button to make that obvious. **Fix:** add an Edit button on each rate row that fills the form with that row's values. No backend change needed.
Author
Member

Fixed. Added an Edit (pencil) button on each currency rate row. It pre-fills the Add/Update form with that row's code, name, and rate and focuses the rate field. Submitting calls currency_rate.upsert, which keys on the unchanged code and updates the existing rate — so there is no longer any need to delete and re-create a rate to change it. No backend change required.

Implemented in crates/hero_planner_web/src/index.html (integration @ f8eb177, main @ 5ced595). Visible after the hero_planner_web binary is rebuilt/redeployed.

Fixed. Added an Edit (pencil) button on each currency rate row. It pre-fills the Add/Update form with that row's code, name, and rate and focuses the rate field. Submitting calls `currency_rate.upsert`, which keys on the unchanged code and updates the existing rate — so there is no longer any need to delete and re-create a rate to change it. No backend change required. Implemented in `crates/hero_planner_web/src/index.html` (`integration` @ `f8eb177`, `main` @ `5ced595`). Visible after the `hero_planner_web` binary is rebuilt/redeployed.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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
lhumina_code/hero_planner#12
No description provided.