fix(rate-cards): wire /rate-cards/new to create form and explain disabled Add Rate #223
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/mapps-217-rate-card-create-route-disabled-styling"
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?
Hitting
/rate-cards/newpreviously matched the/rate-cards/:iddetail route with id "new", which loaded nothing and rendered "Could not load rate card." Add a static/rate-cards/newroute (declared before:idso it is not parsed as an id) that renders the list page with the create modal open via a newopen_createprop, giving the URL a working create form. The route maps to the Rate Cards nav section so the sidebar stays highlighted.The "Add Rate" button is disabled when there are no work types left to add, but nothing told the user why. Add an optional
titletooltip prop to the shared Button component and set it on the disabled Add Rate button, explaining whether no work types are defined or every work type already has a rate. The Button base class already carriesdisabled:opacity-50 disabled:cursor-not-allowed, so the greyed-out look plus the tooltip now read as disabled rather than broken.The create entry point on the list ("New Rate Card") and the disabled styling already existed; this fills the remaining navigation and affordance gaps from the issue.
#MAPPS-217
Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com
Hitting `/rate-cards/new` previously matched the `/rate-cards/:id` detail route with id "new", which loaded nothing and rendered "Could not load rate card." Add a static `/rate-cards/new` route (declared before `:id` so it is not parsed as an id) that renders the list page with the create modal open via a new `open_create` prop, giving the URL a working create form. The route maps to the Rate Cards nav section so the sidebar stays highlighted. The "Add Rate" button is disabled when there are no work types left to add, but nothing told the user why. Add an optional `title` tooltip prop to the shared Button component and set it on the disabled Add Rate button, explaining whether no work types are defined or every work type already has a rate. The Button base class already carries `disabled:opacity-50 disabled:cursor-not-allowed`, so the greyed-out look plus the tooltip now read as disabled rather than broken. The create entry point on the list ("New Rate Card") and the disabled styling already existed; this fills the remaining navigation and affordance gaps from the issue. #MAPPS-217 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>