Fix New plan feeling like a no-op; add plan delete and why-panel collapse
Test and deploy / test-and-deploy (push) Successful in 1m34s

New plan reset the form correctly but left the Plans drawer open over
it, so the reset was invisible until the user closed the drawer
themselves. Now closes it immediately, matching selectPlan().

Also adds a delete button per plan in the Plans drawer (server route
already existed) - deleting the currently open plan resets to a fresh
blank one, matching New plan.

Why-panel teaching callouts ("WHY CULTIVAR SETS THE CLOCK" etc.) now
default collapsed instead of wall-to-wall expanded on first load, with
an "Expand all" button in the header on both the planner and cupping
pages. Persistence flips from tracking collapsed-vs-default-open to
expanded-vs-default-closed to match.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
This commit is contained in:
2026-07-31 15:34:56 -04:00
co-authored by Claude Sonnet 5
parent 2237c199c1
commit 84ce75dc14
5 changed files with 100 additions and 31 deletions
+11 -1
View File
@@ -1706,6 +1706,11 @@ body.show-fids .field[data-fid]::after {
display: grid;
gap: 8px;
}
.plan-list-row {
display: flex;
align-items: stretch;
gap: 6px;
}
.plan-list-item {
width: 100%;
display: grid;
@@ -1719,6 +1724,10 @@ body.show-fids .field[data-fid]::after {
font: inherit;
cursor: pointer;
}
.plan-list-delete {
flex-shrink: 0;
align-self: center;
}
.plan-list-item:hover,
.plan-list-item.active {
border-color: var(--ember);
@@ -2603,7 +2612,8 @@ body.show-fids .field[data-fid]::after {
flex: 1 1 auto;
justify-content: center;
}
.header-actions #btn-print {
.header-actions #btn-print,
.header-actions #btn-expand-why {
flex: 0 0 auto;
min-height: 44px;
padding: 8px 16px;