compose: Show banner to explain interleaved view messages fading.

In an interleaved view when composing a message we fade messages
which the user is not replying to, to reduce the chance they send
a message to a recipient they didn't intend to.
Also, it reduces the visual/cognitive processing required
to figure out where their message is going to go.

But, it's not necessarily clear to users that what the
fading means, so this commit adds a one-time compose banner
to explain what's going on the first time this comes up.

Fixes part of #29076.
This commit is contained in:
Prakhar Pratyush
2024-04-23 12:34:05 +05:30
committed by Tim Abbott
parent 35380b095f
commit df7ed437c2
9 changed files with 86 additions and 3 deletions

View File

@@ -796,6 +796,7 @@ test_ui("on_events", ({override, override_rewire}) => {
};
override_rewire(compose_recipient, "update_placeholder_text", noop);
override(narrow_state, "narrowed_by_reply", () => true);
override(
compose_notifications,
"maybe_show_one_time_non_interleaved_view_messages_fading_banner",