add setup onboarding page, dashboard launch checklist, provider registry

- new /setup page with three-section onboarding (account, provider, payments)
- dashboard launch checklist with progress bar, go-live, dismiss
- provider registry on Provider module (single source of truth for metadata)
- payments registry for Stripe
- setup context made provider-agnostic (provider_connected, theme_customised, etc.)
- admin provider pages now fully registry-driven (no hardcoded provider names)
- auth flow: fresh installs redirect to /setup, signed_in_path respects setup state
- removed old /admin/setup wizard
- 840 tests, 0 failures

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
jamey
2026-02-20 00:34:06 +00:00
parent 989c5cd4df
commit c2caeed64d
33 changed files with 1927 additions and 1053 deletions

View File

@@ -639,3 +639,330 @@
[data-theme="light"] .theme-toggle-indicator { left: 33.333333%; }
[data-theme="dark"] .theme-toggle-indicator { left: 66.666667%; }
/* ── Dashboard stats grid ── */
.admin-stats-grid {
display: grid;
grid-template-columns: repeat(1, 1fr);
gap: 1rem;
margin-top: 1.5rem;
}
@media (min-width: 640px) {
.admin-stats-grid {
grid-template-columns: repeat(3, 1fr);
}
}
/* ── Setup page ── */
.setup-page {
max-width: 36rem;
margin: 0 auto;
padding: 2rem 1rem;
}
.setup-header {
text-align: center;
margin-bottom: 2rem;
}
.setup-title {
font-size: 1.5rem;
font-weight: 700;
line-height: 1.2;
}
.setup-subtitle {
color: var(--color-base-content-60, rgba(0 0 0 / 0.6));
margin-top: 0.25rem;
font-size: 0.875rem;
}
.setup-sections {
display: flex;
flex-direction: column;
gap: 1rem;
}
.setup-card {
border: 1px solid var(--color-base-300, #d4d4d4);
border-radius: 0.5rem;
padding: 1.25rem;
transition: border-color 150ms;
}
.setup-card-done {
border-color: var(--color-success, #22c55e);
background: color-mix(in oklab, var(--color-success, #22c55e) 5%, transparent);
}
.setup-card-header {
display: flex;
align-items: center;
gap: 0.75rem;
}
.setup-card-number {
display: flex;
align-items: center;
justify-content: center;
width: 1.75rem;
height: 1.75rem;
border-radius: 50%;
font-size: 0.75rem;
font-weight: 600;
flex-shrink: 0;
background: var(--color-base-200, #e5e5e5);
color: var(--color-base-content-60, rgba(0 0 0 / 0.6));
}
.setup-card-number-done {
background: var(--color-success, #22c55e);
color: white;
}
.setup-card-title {
font-size: 0.9375rem;
font-weight: 600;
}
.setup-card-summary {
margin-top: 0.25rem;
padding-left: 2.5rem;
font-size: 0.8125rem;
color: var(--color-base-content-60, rgba(0 0 0 / 0.6));
}
.setup-card-body {
margin-top: 1rem;
padding-left: 2.5rem;
}
.setup-hint {
font-size: 0.8125rem;
color: var(--color-base-content-60, rgba(0 0 0 / 0.6));
margin-bottom: 0.75rem;
}
.setup-link {
color: var(--color-base-content, #171717);
text-decoration: underline;
}
.setup-key-hint {
font-size: 0.75rem;
color: var(--color-base-content-60, rgba(0 0 0 / 0.6));
margin-top: 0.25rem;
}
.setup-actions {
display: flex;
gap: 0.5rem;
margin-top: 0.75rem;
}
.setup-test-result {
margin-top: 0.5rem;
font-size: 0.8125rem;
}
.setup-test-ok {
color: var(--color-success, #22c55e);
display: flex;
align-items: center;
gap: 0.25rem;
}
.setup-test-error {
color: var(--color-error, #dc2626);
display: flex;
align-items: center;
gap: 0.25rem;
}
/* Provider picker grid */
.setup-provider-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 0.5rem;
margin-bottom: 1rem;
}
.setup-provider-card {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 0.125rem;
padding: 0.75rem;
border: 1px solid var(--color-base-300, #d4d4d4);
border-radius: 0.375rem;
text-align: left;
cursor: pointer;
transition: border-color 150ms, background 150ms;
&:hover:not(:disabled) {
border-color: var(--color-base-content, #171717);
}
}
.setup-provider-card-selected {
border-color: var(--color-base-content, #171717);
background: var(--color-base-200, #e5e5e5);
}
.setup-provider-card-disabled {
opacity: 0.5;
cursor: not-allowed;
}
.setup-provider-name {
font-size: 0.875rem;
font-weight: 600;
}
.setup-provider-tagline {
font-size: 0.75rem;
color: var(--color-base-content-60, rgba(0 0 0 / 0.6));
}
.setup-provider-badge {
font-size: 0.6875rem;
padding: 0.125rem 0.375rem;
border-radius: 9999px;
background: var(--color-base-200, #e5e5e5);
color: var(--color-base-content-60, rgba(0 0 0 / 0.6));
}
.setup-provider-form {
margin-top: 0.75rem;
}
/* Setup complete card */
.setup-complete {
text-align: center;
margin-top: 2rem;
padding: 2rem;
border: 1px solid var(--color-success, #22c55e);
border-radius: 0.5rem;
background: color-mix(in oklab, var(--color-success, #22c55e) 5%, transparent);
}
.setup-complete-icon {
width: 3rem;
height: 3rem;
color: var(--color-success, #22c55e);
margin: 0 auto 0.75rem;
}
.setup-complete h2 {
font-size: 1.125rem;
font-weight: 600;
}
.setup-complete p {
font-size: 0.875rem;
color: var(--color-base-content-60, rgba(0 0 0 / 0.6));
margin: 0.25rem 0 1rem;
}
/* ── Dashboard launch checklist ── */
.admin-checklist {
border: 1px solid var(--color-base-300, #d4d4d4);
border-radius: 0.5rem;
padding: 1.25rem;
margin-bottom: 1.5rem;
}
.admin-checklist-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 1rem;
}
.admin-checklist-title {
font-size: 1rem;
font-weight: 600;
}
.admin-checklist-progress {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.8125rem;
color: var(--color-base-content-60, rgba(0 0 0 / 0.6));
}
.admin-checklist-bar {
width: 6rem;
height: 0.375rem;
border-radius: 9999px;
background: var(--color-base-200, #e5e5e5);
overflow: hidden;
}
.admin-checklist-bar-fill {
height: 100%;
border-radius: 9999px;
background: var(--color-success, #22c55e);
transition: width 300ms;
}
.admin-checklist-items {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.admin-checklist-item {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0.5rem 0;
}
.admin-checklist-check {
display: flex;
align-items: center;
justify-content: center;
width: 1.25rem;
height: 1.25rem;
border-radius: 50%;
flex-shrink: 0;
border: 1.5px solid var(--color-base-300, #d4d4d4);
color: transparent;
}
.admin-checklist-check-done {
background: var(--color-success, #22c55e);
border-color: var(--color-success, #22c55e);
color: white;
}
.admin-checklist-label {
flex: 1;
font-size: 0.875rem;
}
.admin-checklist-label-done {
color: var(--color-base-content-60, rgba(0 0 0 / 0.6));
}
.admin-checklist-action {
flex-shrink: 0;
}
.admin-checklist-footer {
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 1rem;
padding-top: 0.75rem;
border-top: 1px solid var(--color-base-200, #e5e5e5);
}