Skip to content

Conversation

@konstantiniiv
Copy link
Collaborator

@konstantiniiv konstantiniiv commented Nov 17, 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 marked this pull request as ready for review November 17, 2025 17:05
Copilot finished reviewing on behalf of konstantiniiv November 17, 2025 17:07
Copy link
Contributor

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 implements per-chat object notification customization, allowing users to set notification preferences for individual chats that differ from the space-wide default. Users can view chats with custom notification states and reset them to use the space default setting.

Key changes:

  • Added ChatNotificationItem data model and OnResetChatNotification event for managing chat-specific notification states
  • Implemented subscription logic in SpaceSettingsViewModel to track and filter chats with custom notification settings
  • Enhanced the notification preferences bottom sheet to display and manage chat-specific notification overrides
  • Updated notification string resources for clearer messaging ("All new messages" vs "All activity", "Nothing" vs "Disable notifications")

Reviewed Changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
presentation/src/main/java/com/anytypeio/anytype/presentation/spaces/UiState.kt Added ChatNotificationItem data class to represent chats with custom notification states
presentation/src/main/java/com/anytypeio/anytype/presentation/spaces/UiEvent.kt Added OnResetChatNotification event for resetting chat notifications to space defaults
presentation/src/main/java/com/anytypeio/anytype/presentation/spaces/SpaceSettingsViewModel.kt Implemented subscription logic for chats with custom notifications, added lifecycle methods, and reset functionality; removed unused dependencies
localization/src/main/res/values/strings.xml Updated notification preference strings for clarity and added new strings for chat-specific notifications section
feature-ui-settings/src/main/java/com/anytypeio/anytype/ui_settings/space/new_settings/NotificationsPreferenceSheet.kt Converted to LazyColumn layout and added chat-specific notifications section with reset functionality
feature-ui-settings/src/main/java/com/anytypeio/anytype/ui_settings/space/new_settings/NewSettings.kt Added chatsWithCustomNotifications parameter and updated event handling for notification sheet
feature-ui-settings/src/main/java/com/anytypeio/anytype/ui_settings/space/new_settings/Previews.kt Updated preview with empty chat notifications list
core-ui/src/main/res/drawable/ic_notification_status_clear_24.xml Added new icon drawable for clearing/resetting notification settings
app/src/main/java/com/anytypeio/anytype/ui/settings/space/SpaceSettingsFragment.kt Integrated lifecycle methods and passed chat notifications state to UI

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@konstantiniiv konstantiniiv self-assigned this Nov 17, 2025
@konstantiniiv konstantiniiv changed the title Droid 4148 per chat object notifications mute 2 DROID-4148 Space Settings | Per-chat object notification customization Nov 17, 2025
@konstantiniiv konstantiniiv merged commit 89750c0 into main Nov 17, 2025
3 checks passed
@konstantiniiv konstantiniiv deleted the droid-4148-per-chat-object-notifications-mute-2 branch November 17, 2025 17:18
@github-actions github-actions bot locked and limited conversation to collaborators Nov 17, 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