settings price lists - BevvyTech/BrewskiDocs GitHub Wiki
Settings – Price Lists (/settings/price-lists)
Purpose
Manage team pricebooks that downstream clients and public site pricing reference.
Allow owners/admins to create, edit, delete, and set the default price list without leaving the settings area.
Data & Dependencies
Fetches pricebooks via pricebooksService.list(teamId); create/update/delete operations call the corresponding service methods with the active access token.
Requires team membership with appropriate role (owner/admin) for any mutation; missing access token disables actions.
Key Interactions
Table lists existing pricebooks with name, default flag, client usage counts, and per-row action menus.
“New price list” button opens a modal to capture name and default status; edit uses the same modal prefilled.
Setting a new default toggles a checkbox—if no default exists, the dialog auto-selects it; backend enforces only one default.
Overflow menu exposes edit/delete; delete prompts a confirmation dialog and handles in-flight spinners while awaiting API response.
Inline success/error alerts communicate results; linear progress indicator renders during initial load.