Skip to content

Conversation

@wmontwe
Copy link
Member

@wmontwe wmontwe commented Sep 10, 2025

Depends on #9763

Preparation for the new message list item ui #9654

This removes the dependency on the LegacyAccountDto and replaces it with LegacyAccount, which is a data class and allows composables to detect changes.

The MessageListFragment is doing too much in it's current form, but this is a task for another day.

It also adds new factories and resolvers for backend storage, IMAP backend, special folder updating, and remote folder creation. The dependency injection setup is updated to include these new components.

@wmontwe wmontwe requested a review from a team as a code owner September 10, 2025 13:32
@wmontwe wmontwe changed the title Refactor message list fragment refactor: message list fragment Sep 10, 2025
@wmontwe wmontwe force-pushed the refactor-message-list-fragment branch from 7942ac5 to 9e0111f Compare September 11, 2025 07:42
@wmontwe
Copy link
Member Author

wmontwe commented Sep 11, 2025

@rafaeltonholo I fixed some issues by removing the generic class injections which should help koin to inject the right implementation.

But still need to fix the archive folder creation.

@wmontwe wmontwe marked this pull request as draft September 15, 2025 16:50
@wmontwe wmontwe force-pushed the refactor-message-list-fragment branch from 5cd1c54 to 8dee5f7 Compare September 16, 2025 14:13
@wmontwe wmontwe marked this pull request as ready for review September 16, 2025 14:13
@wmontwe
Copy link
Member Author

wmontwe commented Sep 16, 2025

I updated the dependency injection to remove the star-projections as koin is not capable to inject the right dependency at runtime. Neither is the DependencyInjectionTest able to detect those issues.

This required a larger effort and I moved feature specific injections to app-common.

@wmontwe wmontwe force-pushed the refactor-message-list-fragment branch from 8dee5f7 to 5063c39 Compare September 17, 2025 06:40
Copy link
Member

@rafaeltonholo rafaeltonholo left a comment

Choose a reason for hiding this comment

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

Thanks for starting the message list fragment refactor! I already see many improvements after this PR!

There are just a few things that we need to address before merging these changes. Let me know if you have any questions

@wmontwe wmontwe force-pushed the refactor-message-list-fragment branch from 5063c39 to a8caa14 Compare September 17, 2025 13:52
Copy link
Member

@rafaeltonholo rafaeltonholo left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for addressing all the comments!!

@wmontwe wmontwe merged commit 37d047a into thunderbird:main Sep 17, 2025
14 checks passed
@wmontwe wmontwe deleted the refactor-message-list-fragment branch September 17, 2025 17:41
@thunderbird-botmobile thunderbird-botmobile bot added this to the Thunderbird 14 milestone Sep 17, 2025
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.

2 participants