Commit Graph
111 Commits
Author SHA1 Message Date
kyle e4d1ba720a feat(telemetry): session journey view replaces raw events table
- sessions listed from client_events grouped by session id (7d window)
- timeline sheet merges page views, client events, errors, and server-fn
  activities joined by player within the session window
- vitals excluded from timelines; gap markers over 5 minutes
2026-08-25 22:56:09 -07:00
kyle 895737febc style: trim comments to load-bearing invariants only 2026-08-25 22:13:41 -07:00
kyle 5e9d030297 fix(telemetry): enable client tracking in dev 2026-08-25 22:11:09 -07:00
kyle 06fe1f4ed7 feat(telemetry): rollups, alerts, scheduler, health checks, admin server fns
- pure rollup accumulators with tests; daily upserts keyed date/metric/dim
- alert checks with db-backed cooldown and push to admin players
- in-process scheduler started from health probes
- health endpoint checks pb + supertokens, stale-while-revalidate, always 200
- sse connection counter moved to emitter
- telemetry feature server fns: events/errors/groups/rollups/alerts/status
2026-08-25 21:38:08 -07:00
kyle e2863c1f6c feat(telemetry): collections, universal server-fn coverage, beacon, client tracker
- activities indexes + client_events/client_errors/rollups/alerts collections
- global function middleware via createStart; reads skipped on success
- actor stash, denial dedup, control-flow error guards
- api route logging, auth event overrides, beacon endpoint, web vitals
- centralized admin role checks, shared skeletons, award-badges fix
- extracted deriveRunState with tests
2026-08-25 21:33:25 -07:00
kyle 8a894e8365 Merge branch 'deep-ketch' into development
CI/CD Pipeline / i18n Catalog Check (push) Successful in 38s
CI/CD Pipeline / Build and Push App Docker Image (push) Successful in 3m11s
CI/CD Pipeline / Build and Push PocketBase Docker Image (push) Successful in 14s
CI/CD Pipeline / Deploy to Kubernetes (push) Successful in 8m31s
2026-08-23 20:31:49 -07:00
kyle e3fea18ab2 badges improvements 2026-08-23 20:31:44 -07:00
kyle 58702da156 style: trim narration comments from recent changes 2026-08-23 20:06:05 -07:00
kyle 792425a83e fix(i18n): hydrate in the SSR locale instead of regressing to en
The client's message cache held only en at hydration, so a non-en user
rendered English until the locale's catalog chunk loaded — and stayed
English if that import failed or lost a race. __root beforeLoad now
dehydrates the active locale's compiled catalog with the page and the
provider primes its cache from that payload, so first paint is already in
the user's locale with no dependency on a client-side chunk load.
ensureMessages dedupes concurrent loads and drops rejected ones so a
retry can succeed, and the provider's fallback loader retries instead of
silently stranding the UI in en.
2026-08-23 19:47:31 -07:00
kyle 9fc79dfc07 fix(audit): readable names, single writer, denial rows, redacted args
The activity log recorded Start's hashed function id (a sha256 URL
segment) as the name; the middleware now reads compile-time
serverFnMeta.name with the path segment as fallback. toServerResult
resolves { success:false } instead of throwing, so the middleware logged
failures as successes while toServerResult wrote a duplicate row with its
own dead name parser — the middleware is now the single writer and reads
the envelope's success flag. Admin denials, which threw before the logging
middleware ran, get their own audit row. Arguments are redacted
(phone/otp/token keys) and truncated at 2KB. The admin activities search
binds its filter parameters (likePattern escaping) instead of
interpolating raw input. Adds vitest with node-env tests for the
middleware, redaction, and filter utils, and extends logging coverage to
mutating fns that lacked it.
2026-08-23 18:27:53 -07:00
kyle 60e91d1371 fix(pocketbase): self-heal admin auth instead of stranding requests
beforeSend now skips its gate for the auth endpoints (no self-await
deadlock), swallows a rejected authPromise and re-authenticates when the
store is invalid, re-stamps Authorization after the gate so requests built
mid-auth carry the fresh token, and guards startTokenRefresh against
stacking intervals. A failed boot auth logs a diagnostic instead of
crashing the process; recovery happens on the next request.
2026-08-23 18:27:45 -07:00
kyle 6f575d6a23 themes lol 2026-08-23 17:17:04 -07:00
kyle 0a7b5fa00f i18n
CI/CD Pipeline / Build and Push PocketBase Docker Image (push) Successful in 8s
CI/CD Pipeline / i18n Catalog Check (push) Failing after 10s
CI/CD Pipeline / Build and Push App Docker Image (push) Skipped
CI/CD Pipeline / Deploy to Kubernetes (push) Skipped
2026-08-08 15:29:40 -07:00
kyle 86cda294f9 social overhaul 2026-07-22 15:47:34 -07:00
kyle 6565714ee4 Merge branch 'predictions' into development
CI/CD Pipeline / Build and Push App Docker Image (push) Successful in 1m36s
CI/CD Pipeline / Build and Push PocketBase Docker Image (push) Successful in 25s
CI/CD Pipeline / Deploy to Kubernetes (push) Successful in 8m23s
2026-07-14 14:22:50 -07:00
kyle 1783f0e6bc predictions 2026-07-14 14:15:34 -07:00
kyle 3b087850e7 Merge branch 'perf' into development 2026-07-13 23:56:30 -07:00
kyle 19f61ac454 SSE 2026-07-13 23:56:19 -07:00
kyle e6c72a5789 more styles
CI/CD Pipeline / Build and Push App Docker Image (push) Successful in 1m36s
CI/CD Pipeline / Build and Push PocketBase Docker Image (push) Successful in 8s
CI/CD Pipeline / Deploy to Kubernetes (push) Successful in 8m23s
2026-07-12 23:23:14 -07:00
kyle 3cc16bdeb2 Merge branch 'style' into development 2026-07-12 21:30:02 -07:00
kyle 4f81f3c0ca style upgrades 2026-07-12 21:26:39 -07:00
kyle 778f0f7994 perf upgrade 2026-07-12 21:26:16 -07:00
kyle ec334bbed4 auth fix?
CI/CD Pipeline / Build and Push App Docker Image (push) Successful in 2m55s
CI/CD Pipeline / Build and Push PocketBase Docker Image (push) Successful in 8s
CI/CD Pipeline / Deploy to Kubernetes (push) Failing after 2m36s
2026-07-11 13:11:45 -07:00
kyle c5b3ad50ca fixed b2b 2026-03-01 18:04:45 -06:00
kyle 938418cec5 fixed b2b 2026-03-01 17:52:47 -06:00
kyle 5d6136a445 new badges 2026-03-01 17:04:06 -06:00
kyle 9a64f316b9 b2b 2026-03-01 16:30:49 -06:00
kyle 6199afc687 regionals 2026-03-01 16:21:27 -06:00
kyle f83a7d69c8 groups init 2026-02-25 19:54:51 -06:00
kyle b9e16e2b64 regionals enrollments 2026-02-21 23:12:21 -06:00
kyle 6e9e014fcc cookie and pwa stuff 2026-02-14 12:59:01 -06:00
kyle 236fcda671 session fixes
CI/CD Pipeline / Build and Push App Docker Image (push) Successful in 2m52s
CI/CD Pipeline / Build and Push PocketBase Docker Image (push) Successful in 11s
CI/CD Pipeline / Deploy to Kubernetes (push) Successful in 44s
2026-02-09 23:53:54 -06:00
kyle 63853f22de regional teams 2026-02-09 23:36:04 -06:00
kyle f069ba3827 include supertokens api key
CI/CD Pipeline / Build and Push App Docker Image (push) Successful in 2m5s
CI/CD Pipeline / Build and Push PocketBase Docker Image (push) Successful in 7s
CI/CD Pipeline / Deploy to Kubernetes (push) Successful in 49s
2026-02-09 12:14:38 -06:00
kyle 70a032db20 more env stuff
CI/CD Pipeline / Build and Push App Docker Image (push) Successful in 1m18s
CI/CD Pipeline / Build and Push PocketBase Docker Image (push) Successful in 7s
CI/CD Pipeline / Deploy to Kubernetes (push) Successful in 41s
2026-02-09 12:07:45 -06:00
kyle 243fb094e1 env
CI/CD Pipeline / Build and Push App Docker Image (push) Successful in 1m19s
CI/CD Pipeline / Build and Push PocketBase Docker Image (push) Successful in 7s
CI/CD Pipeline / Deploy to Kubernetes (push) Successful in 44s
2026-02-09 01:03:30 -06:00
kyle dce31905fc fixes 2025-10-18 23:09:57 -05:00
kyle e58ed86d3b fixes 2025-10-17 19:22:07 -05:00
thecaroline225 4b66a4bd13 found a little typo? 2025-10-16 13:00:42 -04:00
thecaroline225 a04a78fbf8 Merge branch 'main' into caro/badges-stats 2025-10-16 11:51:12 -05:00
thecaroline225 fa98634402 working but sheet styling is ugly 2025-10-16 12:32:26 -04:00
kyle 470b4ef99c regionals 2025-10-16 09:12:11 -05:00
kyle 612f1f28bf skeleton for h2h 2025-10-13 14:18:54 -05:00
kyle d3379e54a4 player h2h 2025-10-11 14:47:03 -05:00
kyle 43972b6a06 match h2h 2025-10-11 13:40:12 -05:00
kyle f96f92c7c9 last activity for players 2025-10-10 16:03:51 -05:00
kyle 97427718e8 activity for server result errors 2025-10-08 09:20:26 -05:00
kyle 15bbca8b90 fix stats breaking new player profiles 2025-10-08 09:03:29 -05:00
kyle 49bbd1611c quick fixes 2025-10-06 13:33:25 -05:00
kyle 42bd2542f3 quick fix noop context 2025-10-06 12:34:58 -05:00