Skip to content

fix(mobile): harden notification opt-in onboarding - #8792

Merged
brennanb2025 merged 1 commit into
mainfrom
brennanb2025/mobile-notification-opt-in-followups
Jul 15, 2026
Merged

brennanb2025 merged 1 commit into
mainfrom
brennanb2025/mobile-notification-opt-in-followups

Conversation

@brennanb2025

Copy link
Copy Markdown
Contributor

Summary

  • distinguish Android 12 and earlier's implicit notification grant from an explicit user opt-in
  • keep the notification decision screen scrollable in landscape and with accessibility text scaling
  • allow opt-in buttons to grow with scaled text while retaining their minimum touch target

Why

The initial notification onboarding could treat pre-Android 13's default granted capability as consent and skip the in-app choice. Its fixed-height layout could also make the required actions unreachable on short or heavily text-scaled screens.

Verification

  • pnpm exec vitest run src/notifications/mobile-notifications.test.ts src/notifications/notification-opt-in-gate.test.ts (22 passed)
  • pnpm typecheck
  • pnpm lint
  • pnpm format:check

@brennanb2025
brennanb2025 merged commit d9f7fd0 into main Jul 15, 2026
3 checks passed
@coderabbitai

coderabbitai Bot commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 4f20d7c9-2b15-46a9-b5f9-a709b9ffe220

📥 Commits

Reviewing files that changed from the base of the PR and between 70e16cb and c044294.

📒 Files selected for processing (6)
  • mobile/app/notification-opt-in.tsx
  • mobile/app/notifications.tsx
  • mobile/src/notifications/mobile-notifications.test.ts
  • mobile/src/notifications/mobile-notifications.ts
  • mobile/src/notifications/notification-opt-in-gate.test.ts
  • mobile/src/notifications/notification-opt-in-gate.ts

📝 Walkthrough

Walkthrough

Notification permission state now records whether authorization reflects a user choice, including Android API-version handling. The opt-in gate presents for inherited Android grants while preserving existing explicit grant and denial behavior. Tests cover the new platform/version cases and gate decisions. The opt-in screen layout now uses a scrollable container with flexible spacing and updated button sizing.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant