Skip to content

DROID-3746 Notifications | In-app settings + notifications permissions flow #2586

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

konstantiniiv
Copy link
Collaborator

@konstantiniiv konstantiniiv commented Jun 27, 2025


  • I understand that contributing to this repository will require me to agree with the CLA

Description

What type of PR is this? (check all applicable)

  • 🍕 Feature
  • 🐛 Bug Fix
  • 📝 Documentation Update
  • 🎨 Style
  • 🧑‍💻 Code Refactor
  • 🔥 Performance Improvements
  • ✅ Test
  • 🤖 Build
  • 🔁 CI

Related Tickets & Documents

Mobile & Desktop Screenshots/Recordings

Added tests?

  • 👍 yes
  • 🙅 no, because they aren't needed
  • 🙋 no, because I need help

Added to documentation?

  • 📜 README.md
  • 📓 tech-docs
  • 🙅 no documentation needed

[optional] Are there any post-deployment tasks we need to perform?

@konstantiniiv konstantiniiv changed the title Droid 3746 epic release 12 ios notifications in app settings DROID-3746 Notifications | In-app settings + notifications permissions flow Jun 30, 2025
@konstantiniiv konstantiniiv self-assigned this Jun 30, 2025
@konstantiniiv konstantiniiv requested a review from Copilot June 30, 2025 13:21
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds and integrates in-app notification permissions and notifications settings features while deprecating older vault introduction screens. Key changes include updates to the NotificationPermissionManager and its tests, integration of notification badge state into view models and UI components (such as the ProfileSettingsScreen and VaultScreen), and corresponding resource and dependency injection updates.

Reviewed Changes

Copilot reviewed 23 out of 23 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
NotificationPermissionManagerImplTest.kt Updated tests to validate new dialog flag logic and permission state changes.
VaultViewModel.kt Added notification permission monitoring logic to update badge state in the profile icon.
NotificationPermissionManager.kt Revised permission dialog logic and added new methods for refreshing and checking notification state.
strings.xml, colors.xml, & Drawable Assets Added new resources to support notification settings UI.
ProfileSettingsViewModel.kt & ProfileSettingsFragment.kt Integrated notification permission manager to drive badge display and settings navigation.
VaultScreen.kt & VaultFragment.kt Updated UI components to incorporate the notification badge based on permission status.
DI Files (VaultDI.kt, ProfileDI.kt) Injected NotificationPermissionManager for new notifications flows.
Removal of IntroduceVaultScreen/Fragment Deprecated screens related to vault introduction.
Comments suppressed due to low confidence (1)

presentation/src/main/java/com/anytypeio/anytype/presentation/notifications/NotificationPermissionManager.kt:49

  • It would be helpful to add a brief comment here explaining why the dialog is shown only if it has not been shown or dismissed, especially in light of previous count-based logic.
        return when {

@konstantiniiv konstantiniiv marked this pull request as ready for review June 30, 2025 13:33
@konstantiniiv konstantiniiv requested a review from uburoiubu as a code owner June 30, 2025 13:33
@konstantiniiv konstantiniiv merged commit 2b4b5d1 into main Jun 30, 2025
3 checks passed
@konstantiniiv konstantiniiv deleted the droid-3746-epic-release-12-ios-notifications-in-app-settings branch June 30, 2025 14:46
@github-actions github-actions bot locked and limited conversation to collaborators Jun 30, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants