caelum0x ea6437d619 fix(ritgram): RIT-ONB icon-only GitHub connect, dedupe public-path gate
Onboarding welcome screen showed a text "Continue with GitHub" button
even though NEXT_PUBLIC_GITHUB_CLIENT_ID is unset in prod (nothing to
connect to) -- now hidden entirely when unconfigured, icon-only when it
is (Apple-design icon-only-chrome rule). Also hoisted the public-path
allowlist (middleware's auth gate + the API client's 401-redirect) into
one shared apps/ritgram/web/lib/publicPaths.ts so the two definitions
can't drift: the 401 interceptor previously hard-redirected any
cookie-less visitor on a public page (e.g. /explore's best-effort
"recommended for you" call) straight to /login before the page's own
try/catch ever ran. ContentComposer's submit button is icon-only too,
same rule, with an aria-label/title carrying the real action text for
accessibility. tsc --noEmit clean.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 21:27:14 +03:00
..