improve setup UX: password field, setup hook, checklist banners, theme tweaks
All checks were successful
deploy / deploy (push) Successful in 1m31s

- add password field and required shop name to setup wizard
- extract SetupHook for DRY redirect to /setup when no admin exists
- add ?from=checklist param to checklist hrefs with contextual banner on
  email settings and theme pages for easy return to dashboard
- remove email warning banner from admin layout (checklist covers it)
- make email a required checklist item (no longer optional)
- add DevReset module for wiping dev data without restart
- rename "Theme Studio" to "Theme", drop subtitle
- lower theme editor side-by-side breakpoint from 64em to 48em
- clean up login/registration pages (remove dead registration_open code)
- fix settings.put_secret to invalidate cache after write

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
jamey
2026-03-03 17:41:08 +00:00
parent 0853b6f528
commit 64f083d271
23 changed files with 309 additions and 118 deletions

View File

@@ -934,6 +934,25 @@
border: 1px solid var(--t-border-default);
}
/* ── Checklist banner (shown when arriving from the launch checklist) ── */
.admin-checklist-banner {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0.75rem 1rem;
margin-bottom: 1.5rem;
font-size: 0.875rem;
line-height: 1.5;
border-radius: 0.5rem;
background-color: color-mix(in oklch, var(--t-status-info) 10%, var(--t-surface-base));
border: 1px solid color-mix(in oklch, var(--t-status-info) 20%, var(--t-surface-base));
& .admin-checklist-banner-icon { color: var(--t-status-info); flex-shrink: 0; }
& .admin-checklist-banner-text { flex: 1; color: var(--t-text-secondary); }
& .admin-checklist-banner-link { font-weight: 500; white-space: nowrap; }
}
/* ── Dashboard stats grid ── */
@@ -3422,7 +3441,7 @@
min-height: 100vh;
background: var(--t-surface-sunken);
@media (min-width: 64em) {
@media (min-width: 48em) {
flex-direction: row;
height: 100vh;
}
@@ -3434,7 +3453,7 @@
flex-shrink: 0;
transition: width 0.3s, padding 0.3s;
@media (min-width: 64em) {
@media (min-width: 48em) {
height: 100vh;
}
}
@@ -3444,7 +3463,7 @@
overflow-y: auto;
padding: 1.5rem;
@media (min-width: 64em) {
@media (min-width: 48em) {
width: 380px;
}
}
@@ -4168,6 +4187,10 @@
display: flex;
flex-direction: column;
gap: 1rem;
&[hidden] {
display: none;
}
}
.admin-adapter-link {

View File

@@ -386,6 +386,18 @@
height: 1.5rem;
}
.hero-clipboard-document-check {
--hero-clipboard-document-check: url('data:image/svg+xml;utf8,<svg%20xmlns="http://www.w3.org/2000/svg"%20fill="none"%20viewBox="0%200%2024%2024"%20stroke-width="1.5"%20stroke="currentColor"%20aria-hidden="true"%20data-slot="icon">%20%20<path%20stroke-linecap="round"%20stroke-linejoin="round"%20d="M11.35%203.836c-.065.21-.1.433-.1.664%200%20.414.336.75.75.75h4.5a.75.75%200%200%200%20.75-.75%202.25%202.25%200%200%200-.1-.664m-5.8%200A2.251%202.251%200%200%201%2013.5%202.25H15c1.012%200%201.867.668%202.15%201.586m-5.8%200c-.376.023-.75.05-1.124.08C9.095%204.01%208.25%204.973%208.25%206.108V8.25m8.9-4.414c.376.023.75.05%201.124.08%201.131.094%201.976%201.057%201.976%202.192V16.5A2.25%202.25%200%200%201%2018%2018.75h-2.25m-7.5-10.5H4.875c-.621%200-1.125.504-1.125%201.125v11.25c0%20.621.504%201.125%201.125%201.125h9.75c.621%200%201.125-.504%201.125-1.125V18.75m-7.5-10.5h6.375c.621%200%201.125.504%201.125%201.125v9.375m-8.25-3%201.5%201.5%203-3.75"/></svg>');
-webkit-mask: var(--hero-clipboard-document-check);
mask: var(--hero-clipboard-document-check);
mask-repeat: no-repeat;
background-color: currentColor;
vertical-align: middle;
display: inline-block;
width: 1.5rem;
height: 1.5rem;
}
.hero-clipboard-document-list {
--hero-clipboard-document-list: url('data:image/svg+xml;utf8,<svg%20xmlns="http://www.w3.org/2000/svg"%20fill="none"%20viewBox="0%200%2024%2024"%20stroke-width="1.5"%20stroke="currentColor"%20aria-hidden="true"%20data-slot="icon">%20%20<path%20stroke-linecap="round"%20stroke-linejoin="round"%20d="M9%2012h3.75M9%2015h3.75M9%2018h3.75m3%20.75H18a2.25%202.25%200%200%200%202.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424%2048.424%200%200%200-1.123-.08m-5.801%200c-.065.21-.1.433-.1.664%200%20.414.336.75.75.75h4.5a.75.75%200%200%200%20.75-.75%202.25%202.25%200%200%200-.1-.664m-5.8%200A2.251%202.251%200%200%201%2013.5%202.25H15c1.012%200%201.867.668%202.15%201.586m-5.8%200c-.376.023-.75.05-1.124.08C9.095%204.01%208.25%204.973%208.25%206.108V8.25m0%200H4.875c-.621%200-1.125.504-1.125%201.125v11.25c0%20.621.504%201.125%201.125%201.125h9.75c.621%200%201.125-.504%201.125-1.125V9.375c0-.621-.504-1.125-1.125-1.125H8.25ZM6.75%2012h.008v.008H6.75V12Zm0%203h.008v.008H6.75V15Zm0%203h.008v.008H6.75V18Z"/></svg>');
-webkit-mask: var(--hero-clipboard-document-list);