Skip to content

refactor(message-item): update MessageItem Composable API to support configurable layout and interactions#10695

Merged
rafaeltonholo merged 2 commits into
thunderbird:mainfrom
rafaeltonholo:refactor/10554/message-item-composable-api-changes
Mar 24, 2026
Merged

refactor(message-item): update MessageItem Composable API to support configurable layout and interactions#10695
rafaeltonholo merged 2 commits into
thunderbird:mainfrom
rafaeltonholo:refactor/10554/message-item-composable-api-changes

Conversation

@rafaeltonholo
Copy link
Copy Markdown
Member

@rafaeltonholo rafaeltonholo commented Mar 16, 2026

Part of #10554.

Depends on #10685.
Split of #10680.

  • Remove ActiveMessageItem and JunkMessageItem in favour of a unified, configurable MessageItem organism.
  • Update the Message Item Composable API

@dani-zilla
Copy link
Copy Markdown
Contributor

Could you rebase this with main? Unless I'm mistaken, looks like there are some duplicates form the other PR and it might help see what changed here, specifically, better.

…em` in favour of a unified, configurable `MessageItem` organism.
@rafaeltonholo rafaeltonholo force-pushed the refactor/10554/message-item-composable-api-changes branch from db4cb0a to 451e87e Compare March 23, 2026 21:51
@github-actions
Copy link
Copy Markdown
Contributor

Missing report label. Set exactly one of: report: include, report: exclude OR report: highlight.

@rafaeltonholo
Copy link
Copy Markdown
Member Author

Could you rebase this with main? Unless I'm mistaken, looks like there are some duplicates form the other PR and it might help see what changed here, specifically, better.

Done

@github-actions
Copy link
Copy Markdown
Contributor

Missing report label. Set exactly one of: report: include, report: exclude OR report: highlight.

@rafaeltonholo rafaeltonholo added the report: exclude Exclude changes from user-facing reports (internal, minor, or not relevant to users). label Mar 23, 2026
@dani-zilla
Copy link
Copy Markdown
Contributor

It seems like the leading items have been deleted from the message item view. Was this intentional?

onAvatarClick: () -> Unit = {},
onTrailingClick: (MessageItemTrailingElement) -> Unit = {},
) {
// NOTE: The current implementation changes are just to fix the compilation errors the API changes have caused.
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

On one hand, I do hate the idea of merging something into main that breaks it. On the other hand, I get where this is coming from and I assume that one of the other PRs adds it back?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

On one hand, I do hate the idea of merging something into main that breaks it. On the other hand, I get where this is coming from and I assume that one of the other PRs adds it back?

This Composable is guarded by a feature flag, and users won't see any difference when merging this, but I understand your point.

The Leading items composable was reworked in the PR #10680, which was split by this one, making it more self-contained. For that reason, on this one, it was required to remove it temporarily.

Copy link
Copy Markdown
Member Author

@rafaeltonholo rafaeltonholo Mar 24, 2026

Choose a reason for hiding this comment

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

You can see it back here:

Usage

Definition

@rafaeltonholo
Copy link
Copy Markdown
Member Author

It seems like the leading items have been deleted from the message item view. Was this intentional?

Yes. The correct implementation of the Leading items is on #10680

@rafaeltonholo rafaeltonholo merged commit bb80749 into thunderbird:main Mar 24, 2026
15 of 17 checks passed
@rafaeltonholo rafaeltonholo deleted the refactor/10554/message-item-composable-api-changes branch March 24, 2026 20:56
@thunderbird-botmobile thunderbird-botmobile Bot added this to the Thunderbird 19 milestone Mar 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

report: exclude Exclude changes from user-facing reports (internal, minor, or not relevant to users). tb-team Tasks and features handled by project maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants