Skip to content
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

Add drawer unified folder support #8155

Merged
merged 5 commits into from
Sep 24, 2024

Conversation

wmontwe
Copy link
Member

@wmontwe wmontwe commented Sep 20, 2024

Added the unified folder support for the drawer. The default selection has not been implemented as it requires state information from the MessageList properly propagated: #8142

drawer with unified folder support

Depends on #8151

Resolves #8121

@wmontwe wmontwe requested a review from cketti as a code owner September 20, 2024 15:49
@wmontwe wmontwe force-pushed the add-drawer-unified-folder-support branch from ca09738 to b5d9a7d Compare September 23, 2024 12:35
@@ -0,0 +1,8 @@
package app.k9mail.feature.navigation.drawer.domain.entity

data class DisplayUnifiedFolder(
Copy link
Member

Choose a reason for hiding this comment

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

Side note: This feels like you're trying to prepare for a future with more unified folders before we've decided on what that should actually look like (both from a UI/UX and code architecture perspective).

A simpler approach, that only models what's currently possible, probably would have been better. E.g.

data class DisplayUnifiedInboxFolder(
    override val unreadMessageCount: Int,
    override val starredMessageCount: Int,
) : DisplayFolder {
    override val id: String = "unified_inbox"
}

Copy link
Member Author

Choose a reason for hiding this comment

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

I know, but I tested how much effort it would be to add more folders and it didn't seem too complicated. Disclaimer if I understood the search query correctly.

@wmontwe wmontwe force-pushed the add-drawer-unified-folder-support branch from b5d9a7d to 2375115 Compare September 24, 2024 08:27
@wmontwe wmontwe force-pushed the add-drawer-unified-folder-support branch from 2375115 to d8d8868 Compare September 24, 2024 09:31
@wmontwe wmontwe merged commit 32cf76e into thunderbird:main Sep 24, 2024
2 checks passed
@wmontwe wmontwe deleted the add-drawer-unified-folder-support branch September 24, 2024 10:13
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.

Add the unified folder list section
2 participants