#23
Hide production Google and Gmail CTAs
Summary
- hide Google sign-in and Gmail connect/reconnect calls to action on
redakt.appuntil production verification is approved - skip the unavailable provider chooser while preserving management for existing Gmail accounts
- simplify the Google/Gmail UI copy and give onboarding provider cards Redakt's glass treatment
Validation
pnpm test(81 tests passed)pnpm buildpnpm exec tsc --noEmit- focused ESLint across all changed source files
- rendered desktop and mobile checks with production and staging configuration
Known baseline
- repository-wide
pnpm lintstill reports the existing@typescript-eslint/no-require-importserrors inbabel.config.jsandpostcss.config.js; changed-file lint passes
Activity
46623d56 into main3mo agomikeyreviewed3mo ago
Summary
Reviewed the diff hiding Google/Gmail CTAs on
redakt.appproduction while awaiting OAuth verification, plus the onboarding provider-chooser skip and the glass-treatment restyle of the provider cards.areGoogleCtasEnabled()(lib/env.ts) and its call sites inapp/page.tsx,app/onboarding/page.tsx, andapp/mail/settings/account/page.tsxare consistent, and the newlib/env.test.mjscoverage for the production/staging/local matrix looks correct — verified locally withnode --test lib/env.test.mjs(3/3 passing).Blocking
components/settings/mail-accounts-settings.tsx: hiding the Gmail reconnect button whenevergoogleEnabledis false breaks the reauthorize flow for accounts that already exist in production. See inline comment for the full trace (mail-account-shell.tsx→ settings page → dead end). This contradicts the PR's stated goal of "preserving management for existing Gmail accounts" and needs the reconnect action to stay available independent ofgoogleEnabled.Non-blocking / follow-up
login-screen.tsx's "How Google access works" section,onboarding.tsx'sgmailDisclosureparagraph, and the settings page's "Google OAuth is not configured" fallback) was deleted rather than just hidden behindgoogleEnabled. That's fine for the currently-hidden CTAs, but note it also removes the last inline explanation of Gmail scope/data handling from the sign-in and onboarding flows for staging/local, wheregoogleEnabledis stilltrueand the Gmail button is shown without this context (the privacy-policy link is preserved on the account settings page but not on the login screen or onboarding provider step). Worth confirming that's intentional givenapp/privacystill carries the full explanation.No issues found with the
getAppUrl()/BETTER_AUTH_URLorigin comparison itself, or with the onboarding step-skip logic (step = googleEnabled ? "provider" : "domain", back-navigation redirecting to/when Google is hidden).