templates, handlers, CSS, JS: special cakes UI, HTMX nav, dashboard overhaul

Special cakes UI: overlay drawer, basket integration, catalogue tag
filter, form parsing, JS save/edit/remove.
HTMX navigation: MainContent component, nav links with hx-get,
handlers return partial on HX-Request.
Dashboard: metrics grid, CakeBreakdown, OrderRow with status select,
CakeCounts/OrderCounts, torty filter, tort badge, results-pane.
Collapsible sidebar: toggle button, localStorage, CSS transitions.
Location field: dropdown replaced with pill toggle.
Inline style cleanup: moved to CSS classes (tag-grid, grow, icon.sm,
header-actions, toggle-group, success-icon, etc.).
Dead CSS removal: pagination, status-chip, badge-pill, login-page.
Helpers: exported CakeTitle/OrderTitle, added tagNames, tagIDsComma,
orderItemsDesc, specialCakeDetail, removed unused helpers.
This commit is contained in:
bronkuu 2026-06-15 18:50:21 +02:00
parent 17b92a706a
commit 5a5372b831
18 changed files with 1153 additions and 422 deletions

View file

@ -81,6 +81,40 @@ form {
}
}
/* ========== TOGGLE GROUP ========== */
.toggle-group {
display: flex;
height: 2rem;
border-radius: var(--border-radius-sm);
border: 1px solid var(--outline-variant);
overflow: hidden;
}
.toggle-btn {
flex: 1;
border: none;
background: var(--surface-container-lowest);
color: var(--on-surface-variant);
font-size: 0.75rem;
font-weight: 600;
cursor: pointer;
transition: all var(--transition);
padding: 0 0.5rem;
}
.toggle-btn:not(:last-child) {
border-right: 1px solid var(--outline-variant);
}
.toggle-btn.active {
background: var(--primary);
color: var(--on-primary);
}
.toggle-btn:not(.active):hover {
background: var(--surface-container-high);
}
.form-actions {
display: flex;
justify-content: flex-end;