Implement stores and refills, improve testing

This commit is contained in:
Aerilyn Weber 2026-04-18 12:36:29 +09:00
parent 9f416903ef
commit 5536acd67d
137 changed files with 21218 additions and 221 deletions

View file

@ -0,0 +1,152 @@
/* Dashboard */
.dash-hero {
display: flex;
justify-content: space-between;
align-items: center;
gap: 24px;
padding: 4px 4px 24px;
border-bottom: 1px solid var(--border);
margin-bottom: 20px;
}
.dash-hero__day {
font-size: 11px;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--ink-muted);
font-weight: 500;
margin-bottom: 6px;
}
.dash-hero__title {
font-family: var(--font-display);
font-size: 34px;
font-weight: 400;
letter-spacing: -0.02em;
color: var(--ink-strong);
line-height: 1.05;
}
.dash-hero__sub {
font-size: 14px;
color: var(--ink-muted);
margin-top: 8px;
max-width: 520px;
}
.dash-grid {
display: grid;
grid-template-columns: repeat(12, 1fr);
gap: 16px;
}
.dash-panel { overflow: hidden; }
/* Schedule */
.dash-schedule { padding: 4px 18px 18px; }
.dash-sched__slot {
display: grid;
grid-template-columns: 80px 1fr;
gap: 16px;
padding: 14px 0;
border-bottom: 1px dashed var(--border);
align-items: flex-start;
}
.dash-sched__slot:last-child { border-bottom: 0; }
.dash-sched__slot.is-done { opacity: 0.55; }
.dash-sched__time { padding-top: 4px; }
.dash-sched__items {
display: flex;
flex-wrap: wrap;
gap: 6px;
}
.dash-sched__pill {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 6px 12px 6px 8px;
background: var(--bg-inset);
border: 1px solid var(--border);
border-radius: 999px;
font-size: 12px;
transition: all 0.12s;
}
.dash-sched__pill:hover { border-color: var(--border-strong); }
.dash-sched__pill.is-taken { background: var(--ok-soft); border-color: transparent; }
.dash-sched__pill.is-taken .dash-sched__name { text-decoration: line-through; color: var(--ink-muted); }
.dash-sched__check {
width: 16px; height: 16px;
border-radius: 50%;
border: 1.5px solid var(--border-strong);
display: grid; place-items: center;
color: transparent;
transition: all 0.15s;
}
.dash-sched__check.is-taken { background: var(--ok); border-color: var(--ok); color: white; }
.dash-sched__name { font-weight: 500; color: var(--ink-strong); }
.dash-sched__dose { color: var(--ink-muted); font-size: 11px; }
/* Low */
.dash-low { padding: 4px 18px 16px; display: flex; flex-direction: column; gap: 4px; }
.dash-low__item {
display: flex;
gap: 10px;
align-items: center;
padding: 8px 0;
border-bottom: 1px dashed var(--border);
}
.dash-low__item:last-child { border-bottom: 0; }
/* Spend */
.dash-spend { padding: 12px 18px 18px; }
/* Supply */
.dash-supply { padding: 4px 18px 16px; display: flex; flex-direction: column; gap: 6px; }
.dash-supply__row {
display: grid;
grid-template-columns: 140px 1fr 48px;
gap: 12px;
align-items: center;
font-size: 12px;
padding: 4px 0;
}
.dash-supply__name { font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-supply__bar {
height: 8px;
background: var(--bg-inset);
border-radius: 2px;
overflow: hidden;
position: relative;
}
.dash-supply__fill { height: 100%; border-radius: 2px; transition: width 0.3s; }
.dash-supply__fill--ok { background: var(--brand); }
.dash-supply__fill--low { background: var(--warn); }
.dash-supply__fill--critical { background: var(--danger); }
.dash-supply__days { font-weight: 600; text-align: right; }
.dash-supply__days span { color: var(--ink-faint); font-weight: 400; margin-left: 1px; font-size: 10px; }
/* Orders */
.dash-orders { padding: 4px 18px 16px; display: flex; flex-direction: column; gap: 4px; }
.dash-order {
display: flex;
align-items: center;
gap: 12px;
padding: 10px 0;
border-bottom: 1px dashed var(--border);
}
.dash-order:last-child { border-bottom: 0; }
.dash-order__icon {
width: 28px; height: 28px;
border-radius: 50%;
background: var(--brand-soft);
color: var(--brand-soft-ink);
display: grid; place-items: center;
}
.dash-order.is-past .dash-order__icon { background: var(--bg-inset); color: var(--ink-muted); }
/* Activity */
.dash-activity { padding: 4px 18px 16px; }
.dash-act {
display: flex;
gap: 10px;
align-items: center;
padding: 8px 0;
border-bottom: 1px dashed var(--border);
}
.dash-act:last-child { border-bottom: 0; }