* feat(marketplace): pass from_instance origin when opening marketplace
BrowseLink in PluginsTab now appends ?from_instance=<origin> so the
marketplace can silently capture the instance URL into localStorage,
skipping the manual InstanceConfig modal for users arriving from the app.
* test(e2e): add marketplace instance auto-discovery E2E tests
- playwright.marketplace.config.ts: standalone config that starts only
the marketplace on port 3002, no Docker/Postgres required
- tests/marketplace-from-instance.spec.ts: 4 marketplace-side tests
(capture valid URL, reject javascript: protocol, reject self-origin,
skip when no param) + 1 full-flow test (worldwideview -> marketplace,
auto-skipped when running under marketplace-only config)
- NEXT_PUBLIC_MARKETPLACE_URL env var in BrowseLink lets tests point
to localhost:3002 instead of the production marketplace
- data-testid="browse-plugins-btn" for stable Playwright selector
- playwright.config.ts updated with both webServers for full E2E
Run marketplace tests (no Docker): pnpm exec playwright test --config=playwright.marketplace.config.ts
Run full E2E (Docker required): pnpm test:e2e
* feat: implement Phase 2 install auth gate (ADR-003 closeout)
Closes the three foundational auth gaps that blocked a proper install gate:
2A - SSR session persistence:
- Add @supabase/ssr; create src/lib/supabase/{cookieOptions,server,client}.ts
mirroring the marketplace recipe so both repos issue the same cookie type
- Migrate login/actions.ts from @supabase/supabase-js to createServerClient
(previously the Supabase session was discarded; no cookie was ever set)
- Fix getSafeRedirect to allow trusted subdomain callbacks via
NEXT_PUBLIC_WWV_COOKIE_DOMAIN so marketplace ?callbackUrl= round-trips work
- Add NEXT_PUBLIC_WWV_COOKIE_DOMAIN and NEXT_PUBLIC_AUTH_HOST_URL to .env.example
2B - Signup route at auth host:
- Add /signup page and server action (supabase.auth.signUp with emailRedirectTo)
- Add /auth/callback route to handle Supabase PKCE email verification exchange
- Add "Sign up" link to login page preserving ?callbackUrl=
2C - Install auth gate:
- Swap NextAuth auth() for Supabase getSupabaseUser() in install-redirect route
(local/demo edition still uses NextAuth)
2D - Sweep:
- httpOnly: true added to buildCookieOptions()
- cloud-auth-architecture.md superseded section collapsed to forward-pointer
- ADR-003 status updated to Accepted with implementation notes
* chore: exclude .planning from git (moved to private repo)
* chore(05-01): add Playwright config and E2E specs for worldwideview-web auth UI
- playwright.web.config.ts: targets https://wwv.local:3001 with ignoreHTTPSErrors
- tests/web-auth.spec.ts: 4 describe groups covering reset-password form, /accounts redirect, /auth/verify no-code error, /auth/reset-password/confirm no-hash timeout
- bump version 2.20.0 -> 2.20.1
* fix(gc): narrow mdc-ref detector to eliminate false positives
Pattern now requires a quoted string context (['\"].*\.mdc['\"]) and
only scans .ts/.tsx files, excluding scripts/. Prevents the scanner
from flagging its own source code and rule documentation that explain
the anti-pattern rather than violating it.
120 lines
2.4 KiB
CSS
120 lines
2.4 KiB
CSS
.container {
|
|
min-height: 100vh;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: var(--bg-primary, #0a0a0f);
|
|
padding: 1rem;
|
|
}
|
|
|
|
.card {
|
|
width: 100%;
|
|
max-width: 420px;
|
|
background: var(--bg-secondary, #13131a);
|
|
border: 1px solid var(--border-primary, rgba(255, 255, 255, 0.08));
|
|
border-radius: 0px;
|
|
padding: 2.5rem 2rem;
|
|
text-align: center;
|
|
}
|
|
|
|
.logo {
|
|
width: 48px;
|
|
height: 48px;
|
|
margin: 0 auto 1rem;
|
|
border-radius: 0px;
|
|
/*
|
|
* Setup page is pre-auth and pre-theme — `--accent-rgb` defaults
|
|
* to `255, 255, 255` (white) in theme-tokens.css, which makes
|
|
* `rgb(255, 255, 255)` + `color: #fff` render invisible. Use an
|
|
* explicit brand color so the logo is visible before any theme
|
|
* applies.
|
|
*/
|
|
background: rgb(200, 30, 30);
|
|
color: #fff;
|
|
font-weight: 700;
|
|
font-size: 1.25rem;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.title {
|
|
font-size: 1.25rem;
|
|
font-weight: 600;
|
|
color: var(--text-primary, #e5e5e5);
|
|
margin: 0 0 0.25rem;
|
|
}
|
|
|
|
.subtitle {
|
|
font-size: 0.85rem;
|
|
color: var(--text-secondary, #888);
|
|
margin: 0 0 1.5rem;
|
|
}
|
|
|
|
.form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
text-align: left;
|
|
}
|
|
|
|
.label {
|
|
font-size: 0.8rem;
|
|
font-weight: 500;
|
|
color: var(--text-secondary, #888);
|
|
margin-top: 0.25rem;
|
|
}
|
|
|
|
.input {
|
|
width: 100%;
|
|
padding: 0.6rem 0.75rem;
|
|
background: var(--bg-primary, #0a0a0f);
|
|
border: 1px solid var(--border-primary, rgba(255, 255, 255, 0.08));
|
|
border-radius: 0px;
|
|
color: var(--text-primary, #e5e5e5);
|
|
font-size: 0.9rem;
|
|
outline: none;
|
|
transition: border-color 0.2s;
|
|
}
|
|
|
|
.input:focus {
|
|
border-color: rgb(200, 30, 30);
|
|
}
|
|
|
|
.error {
|
|
color: #ef4444;
|
|
font-size: 0.8rem;
|
|
margin: 0.25rem 0;
|
|
}
|
|
|
|
.button {
|
|
margin-top: 0.75rem;
|
|
padding: 0.7rem;
|
|
background: rgb(200, 30, 30);
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 0px;
|
|
font-size: 0.9rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: opacity 0.2s;
|
|
}
|
|
|
|
.button:hover { opacity: 0.9; }
|
|
.button:disabled { opacity: 0.5; cursor: not-allowed; }
|
|
|
|
.footer {
|
|
margin-top: 1.25rem;
|
|
font-size: 0.8rem;
|
|
color: var(--text-secondary, #888);
|
|
text-align: center;
|
|
}
|
|
|
|
.link {
|
|
color: rgb(200, 30, 30);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.link:hover { text-decoration: underline; }
|
|
|