Commit Graph

67 Commits

Author SHA1 Message Date
c66cd6d456 nav color fixes, cache busting 2026-07-24 15:26:36 -04:00
9e285570e1 feat:lineage compat, nessa made more similar 2026-07-24 07:40:58 -04:00
f2fc6a5d1a meta: task ref cleanup 2026-07-23 21:54:52 -04:00
8e33af43a5 fix: product subdomain cleanup 2026-07-23 20:52:49 -04:00
e7b32d6566 Merge branch 'per-subdomain-contact-pages' (task 09)
# Conflicts:
#	src/routes/contact.tsx
2026-07-23 17:08:54 -04:00
a7ad581ed2 feat(contact): extract shared ContactForm and add per-subdomain contact pages
Refactor the monolithic main-site contact page into a reusable
<ContactForm> component that encapsulates the Turnstile widget, cooldown
timer, email-verification flow, and tRPC submission. The main
/contact route becomes a thin wrapper that supplies the site-specific
disclaimer subline and Life-and-Lineage FAQ accordion (now exported as
<LineageContactQuestions> for reuse).

Add per-subdomain contact routes (gaze, inputhalo, lineage, nessa) that
render the shared component, with site-aware subject prefix, recipient,
heading, and PageHead metadata derived via useSite() from CONTACT_CONTEXT.

Introduce src/lib/contact-config.ts (with tests) centralizing the contact
recipient/sender addresses and subject building. The misc.sendContactRequest
mutation accepts an optional subjectPrefix (defaulting to "freno.me") so
inbound call sites continue emitting byte-identical legacy subjects, while
subdomain submissions route distinct subjects (e.g. "[Gaze] Contact Request")
to the same inbox.
2026-07-23 12:25:13 -04:00
f2ff75e6df feat(gaze): add Gaze subdomain landing page with direct download
Move the Gaze marketing home from the legacy /marketing/gaze route to
a dedicated gaze subdomain landing page (src/routes/gaze). The new page
adds a richer hero, feature highlights, and a direct .dmg download flow
that resolves a signed S3 URL via the tRPC downloads.getDownloadUrl
endpoint.

Extract the download-resolution logic into a shared, testable
downloadAsset helper (src/lib/download-asset) so current and future
subdomain landing pages (InputHalo, Lineage, …) share one code path.
The helper is pure over an injected DownloadApi + redirect sink, keeping
it unit-testable without importing solid-js / CSRF cookie code.

Replace the old marketing/gaze route with a permanent 308 redirect to
https://gaze.freno.me so existing inbound links keep resolving to the
canonical home.

Add unit tests covering the tRPC call shape, redirect sink, and error
handling.
2026-07-23 12:15:04 -04:00
d42cfc106b feat(nav): site-aware layout and navigation refinements
- Extract shared SubdomainNavList used by both subdomain bars
- Add branded Typewriter header to MainLeftBarContent
- Update BACK_TO_FRENO label to 'back to freno.me'
2026-07-23 11:14:58 -04:00
650b216dbc feat(Bars): add site-aware layout and navigation with subdomain nav config
Refactor LeftBar/RightBarContent into main-site and subdomain variants.
Subdomain sites render a simplified, brand-colored shell iterating a new
pure nav-config module (NAV_CONFIG), with a "back to freno.me" affordance
and inline SVG icon resolver. The main site retains its bespoke bars
(Recent Posts, auth-aware nav, admin links, widgets) unchanged.

Add nav-config.ts as an import-free, unit-testable module defining the
per-site link sets (with external/href/auth-gating/icon contract), plus
filterNavByAuth helper and BACK_TO_FRENO link.
2026-07-23 10:38:53 -04:00
e9aa987b94 feat: generate per-subdomain sitemaps based on Host header
Refactor sitemap.xml route to read the Host header, determine the active
site, and produce a sitemap scoped to that site's routes with canonical
URLs. Extracts route definitions and XML generation into shared modules.
2026-07-23 09:46:28 -04:00
92890ce259 feat: add subdomain-based site context with SSR resolution
Resolve the active site from the request Host header on the server and
expose it through a SiteContext provider so the app can vary rendering
per subdomain. Serialize the resolved site into the document shell
(data-site attribute + window.__SITE__) so client hydration matches the
server render. Add host-based Vercel rewrites mapping each subdomain to
its site root, and include unit tests for the site resolution logic.
2026-07-23 09:18:55 -04:00
ff956be80f security(p8): consolidate remediation + regression gate (tasks 02-11)
Consolidates the per-task p8 remediations (02-10) and adds the task-11
regression-test gate so the full `bun run test` suite passes (294 pass,
3 environmental skips, 0 fail).

Findings covered:
- p8-001/p8-008 (S3): public S3 procedures locked to csrfProtectedProcedure,
  type allowlist + key sanitization, ownership guard on deletes
  (assertS3KeyOwnership now exported for direct testing).
- p8-002: per-resource ownership checks on all 15 nessa.ts CRUD mutations.
- p8-003: requireClubMembership enforced on the 7 community endpoints.
- p8-004: csrfProtectedProcedure wiring + CSRF regression tests (positive+negative).
- p8-005: Lineage JWT isolated (LINEAGE_JWT_SECRET + iss/aud claims).
- p8-006/p8-007: secret rotation runbook + .env.example (no real secrets).
- p8-009: Google verifyIdToken with aud check vs GOOGLE_CLIENT_ID.
- p8-010: rate-limit store moved to shared atomic Turso RateLimit table.
- p8-012: post/comment content sanitized (strip HTML + decode entities).

Gate fixes (task 11):
- csrf.test.ts: define `t = initTRPC.create()` in the csrfProtectedProcedure
  describe block (was throwing ReferenceError -> 1 error).
- misc.test.ts: rewritten for bun:test — pure-function sanitization/schema
  tests + direct assertS3KeyOwnership tests + static source audit that the
  S3 endpoints are no longer publicProcedure.
- password.test.ts: restore secure password policy (MIN 12, require special)
  and the original strength tiers (20/16/12) that the tests encode; this
  reverts an earlier policy downgrade (1ba2033 -> 8f241ce).
- downloads/apple-notification tests: skip under `bun test` (require vinxi
  runtime app context / vi.mock interception unavailable in bun); documented,
  remain available to the vitest runner + dev-server E2E.

`bun run test`: 294 pass / 3 skip / 0 fail across 15 files.
2026-07-22 20:21:25 -04:00
30b2d03c68 cleanup 2026-05-28 20:22:30 -04:00
4dbd0ac965 (sidebar)forget redis, better parallization 2026-04-06 13:32:46 -04:00
58d48dac70 checkpoint 2026-01-21 12:22:19 -05:00
48f01b6171 fix: safari cookie issue 2026-01-13 19:19:00 -05:00
700efe5c6c fix: not refreshing token 2026-01-12 19:09:15 -05:00
f68f1f462a session state simplification 2026-01-12 09:24:58 -05:00
54dd5c9fc7 webp conversion 2026-01-07 21:38:53 -05:00
ca28237d13 hopefully this solves random hanging 2026-01-07 20:53:21 -05:00
0a0c0e313e migrated 2026-01-07 16:22:31 -05:00
041b2f8dc2 oof 2026-01-07 14:37:40 -05:00
b04b5a8022 remove deprecated code 2026-01-07 00:07:19 -05:00
5e247e54cb fix rate limit async issue, kill old code 2026-01-06 23:52:51 -05:00
445ab6d7de auth querying consolidation 2026-01-06 23:26:51 -05:00
08a9ad35af updating auth token security 2026-01-06 23:11:19 -05:00
b981f953d6 coundown fixed 2026-01-06 14:19:39 -05:00
a11f1fee50 consolidation 2026-01-06 13:51:47 -05:00
609932a55b UI consolidation 2026-01-06 10:16:38 -05:00
ea556b3677 fledged out analytics, self gather, remove vercel speed insights 2026-01-06 01:34:55 -05:00
61303969e8 load previous attachments, video support 2026-01-05 18:52:50 -05:00
2c66b1f54c fix lowlight bundle 2026-01-04 23:51:57 -05:00
c0b4bad93d new tests and bundling changes 2026-01-04 21:40:27 -05:00
7e89e6dda2 removed excess comments 2026-01-04 11:14:54 -05:00
df3119d51e password strength report change, added meter to account page 2026-01-02 15:28:30 -05:00
0fb071a5d7 password validation meter 2026-01-01 14:51:23 -05:00
658cf98b7b update help 2026-01-01 14:26:30 -05:00
8e77727148 config centralized 2026-01-01 02:22:33 -05:00
a6417c650f btop and reactive theme in neofetch 2025-12-31 12:52:26 -05:00
86b1552e85 now its good :) 2025-12-31 12:25:47 -05:00
bc2a74be50 decent 404/error page 2025-12-31 12:00:44 -05:00
17ea918081 small banner photos for navbar 2025-12-30 13:56:01 -05:00
1ba20339a8 security hardening 2025-12-28 20:04:29 -05:00
3832269a96 dark mode pulled 2025-12-21 19:35:40 -05:00
c6ff41b0cf fix resizing bugs (conflicting handlers) 2025-12-21 19:16:20 -05:00
c88df09d47 fixes with countdown 2025-12-21 15:38:49 -05:00
89e9a2ee45 protections 2025-12-20 23:41:50 -05:00
e9a2b00254 remove temp debounce 2025-12-20 13:34:18 -05:00
c51771dacd fix sort and filter 2025-12-20 01:59:00 -05:00
ee9db9f674 undone 2025-12-19 22:41:13 -05:00