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

[IMP] mail: make UI aware of first unread message #165973

Closed

Conversation

tsm-odoo
Copy link
Contributor

@tsm-odoo tsm-odoo commented May 17, 2024

Until now, the new message separator was computed during rendering.
This task aims at allowing the user to scroll to the first unread
message. In order to do so, we need to determine which message is
the target of the new message separator.

This commit introduces this information as part of the thread model
state.

part of task-3551627

@robodoo
Copy link
Contributor

robodoo commented May 17, 2024

@tsm-odoo tsm-odoo force-pushed the master-mail-improve_separator_state-tsm branch 4 times, most recently from 35043d3 to 6e0cbfa Compare May 17, 2024 12:58
@C3POdoo C3POdoo added the RD research & development, internal work label May 17, 2024
@tsm-odoo tsm-odoo force-pushed the master-mail-improve_separator_state-tsm branch 6 times, most recently from 409f713 to 384a028 Compare May 17, 2024 13:24
@tsm-odoo tsm-odoo changed the title tmp [IMP] mail: compute position of the new message separator May 17, 2024
@tsm-odoo tsm-odoo force-pushed the master-mail-improve_separator_state-tsm branch from 384a028 to 8c68468 Compare May 17, 2024 13:24
@tsm-odoo tsm-odoo changed the title [IMP] mail: compute position of the new message separator [IMP] mail: compute new message separator owner May 17, 2024
@tsm-odoo tsm-odoo marked this pull request as ready for review May 17, 2024 13:25
@tsm-odoo tsm-odoo force-pushed the master-mail-improve_separator_state-tsm branch 3 times, most recently from 1cee8fd to b7ee458 Compare May 17, 2024 13:33
@C3POdoo C3POdoo requested review from a team May 17, 2024 13:39
@tsm-odoo tsm-odoo force-pushed the master-mail-improve_separator_state-tsm branch 2 times, most recently from f786d74 to f81109b Compare May 17, 2024 13:52
@tsm-odoo tsm-odoo force-pushed the master-mail-improve_separator_state-tsm branch from f81109b to afc8e54 Compare May 17, 2024 13:55
@tsm-odoo tsm-odoo force-pushed the master-mail-improve_separator_state-tsm branch 2 times, most recently from 9e3c871 to 799c2ce Compare May 17, 2024 14:01
@tsm-odoo tsm-odoo force-pushed the master-mail-improve_separator_state-tsm branch from 799c2ce to 2fb7f14 Compare May 17, 2024 14:02
@alexkuhn alexkuhn force-pushed the master-mail-improve_separator_state-tsm branch from e2131ea to 56ac256 Compare May 17, 2024 15:57
@alexkuhn alexkuhn force-pushed the master-mail-improve_separator_state-tsm branch 6 times, most recently from 1dbdf91 to 2a623f6 Compare May 17, 2024 16:20
Copy link
Contributor

@seb-odoo seb-odoo left a comment

Choose a reason for hiding this comment

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

@robodoo delegate+

Ok for the extra commit now, this needs to be squashed

@alexkuhn alexkuhn force-pushed the master-mail-improve_separator_state-tsm branch from 2a623f6 to c7bfbc9 Compare May 17, 2024 16:22
@alexkuhn alexkuhn changed the title [IMP] mail: compute new message separator owner [IMP] mail: make UI aware of first unread message May 17, 2024
Copy link
Contributor

@seb-odoo seb-odoo left a comment

Choose a reason for hiding this comment

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

@tsm-odoo tsm-odoo force-pushed the master-mail-improve_separator_state-tsm branch 2 times, most recently from 9663bfc to 9862809 Compare May 21, 2024 07:33
@tsm-odoo
Copy link
Contributor Author

Pushed to rebase and to fix an edge case (user didn't read any message). Before, we returned null meaning the new message separator was not displayed. Now, we return the first message.

@tsm-odoo tsm-odoo force-pushed the master-mail-improve_separator_state-tsm branch 3 times, most recently from 63d126c to 8c8eea5 Compare May 21, 2024 09:03
Copy link
Contributor

@alexkuhn alexkuhn left a comment

Choose a reason for hiding this comment

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

@robodoo delegate+

@tsm-odoo
Copy link
Contributor Author

@robodoo r+

This task aims at allowing the user to scroll to the first unread
message. In order to do so, we need to determine which message is the
first unread message.

Until now, this information was only computed as part of the rendering
process. This commit introduces this information as part of the thread
model state instead.

part of task-3551627
@tsm-odoo tsm-odoo force-pushed the master-mail-improve_separator_state-tsm branch from 8c8eea5 to 19b7c2f Compare May 21, 2024 09:33
@tsm-odoo
Copy link
Contributor Author

@robodoo r+

robodoo pushed a commit that referenced this pull request May 21, 2024
This task aims at allowing the user to scroll to the first unread
message. In order to do so, we need to determine which message is the
first unread message.

Until now, this information was only computed as part of the rendering
process. This commit introduces this information as part of the thread
model state instead.

part of task-3551627

closes #165973

Signed-off-by: Matthieu Stockbauer (tsm) <tsm@odoo.com>
@robodoo robodoo closed this May 21, 2024
@robodoo robodoo added the 17.3 label May 21, 2024
zel-odoo pushed a commit to odoo-dev/odoo that referenced this pull request May 24, 2024
This task aims at allowing the user to scroll to the first unread
message. In order to do so, we need to determine which message is the
first unread message.

Until now, this information was only computed as part of the rendering
process. This commit introduces this information as part of the thread
model state instead.

part of task-3551627

closes odoo#165973

Signed-off-by: Matthieu Stockbauer (tsm) <tsm@odoo.com>
@fw-bot fw-bot deleted the master-mail-improve_separator_state-tsm branch June 4, 2024 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
17.3 RD research & development, internal work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants