feat(flow): smart default view (3 days + preset buttons)

Change default period from 7 to 3 days. Add quick-select preset
buttons (3 zile / 7 zile / 30 zile) that sync with the dropdown.
Reduces noise for daily operators who only need recent orders.

Cache-bust: style.css?v=22, dashboard.js?v=30

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Claude Agent
2026-03-27 12:38:24 +00:00
parent b52313faf6
commit 4a589aafeb
3 changed files with 52 additions and 3 deletions

View File

@@ -1033,3 +1033,29 @@ tr.mapping-deleted td {
background: var(--warning-light);
color: var(--warning-text);
}
/* ── Period preset buttons ─────────────────────────────────────────── */
.period-presets {
display: flex;
gap: 2px;
align-items: center;
}
.preset-btn {
background: var(--surface);
border: 1px solid var(--border);
color: var(--text-secondary);
padding: 3px 10px;
font-size: 0.78rem;
cursor: pointer;
transition: all 0.15s;
border-radius: 4px;
}
.preset-btn:hover {
background: var(--surface-raised);
}
.preset-btn.active {
background: var(--accent-light);
color: var(--accent-text);
border-color: var(--accent);
font-weight: 500;
}