Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Make user-pills red in replies to you, and remove red from reply text #10533

Conversation

kenwuuu
Copy link
Contributor

@kenwuuu kenwuuu commented Apr 5, 2023

Signed-off-by: Ken Wu kenqiwu@gmail.com

Issues Addressed

Ugly red text in replies to your messages. Delete that, make your user pill red instead to indicate a reply to your message.

Closes: element-hq/element-meta#744

Changes

  • Use Pill.tsx instead of MemberAvatar and SenderProfile
  • Disable red text highlighting for any message that is a reply to one of your messages. This removes highlighting if there is a keyword mention in the reply but here are my arguments for why this is fine:
    1. Keyword highlights function firstly as a method of drawing the user's attention to a message that is important to them. A visual indicator (reply highlight and red user pill) still exists telling users that the message is important to them, covering this function entirely.
    2. Secondly, keywords are a filter to allow for important notifications to pass through, removing red text does not affect that functionality.

How to test

Have someone reply to you

Screenshot of change

Screen Shot 2023-04-05 at 13 01 13

Checklist

  • Tests written for new code (and old code if feasible)
  • Linter and other CI checks pass
  • Sign-off given on the changes (see CONTRIBUTING.md)

This PR currently has none of the required changelog labels.

A reviewer can add one of: T-Deprecation, T-Enhancement, T-Defect, T-Task to indicate what type of change this is, or add Type: [enhancement/defect/task] to the description and I'll add them for you.

@github-actions github-actions bot added the Z-Community-PR Issue is solved by a community member's PR label Apr 5, 2023
@kenwuuu kenwuuu marked this pull request as ready for review April 5, 2023 18:19
@kenwuuu kenwuuu requested a review from a team as a code owner April 5, 2023 18:19
@kenwuuu kenwuuu force-pushed the pr_ready/bugfix/fix_userpills_and_redtext branch from df4c4da to 5c98e93 Compare April 6, 2023 21:21
@kenwuuu kenwuuu force-pushed the pr_ready/bugfix/fix_userpills_and_redtext branch from 5c98e93 to e7da289 Compare April 6, 2023 21:35
@kerryarchibald kerryarchibald requested a review from a team April 14, 2023 00:02
# Conflicts:
#	src/components/views/rooms/EventTile.tsx
@germain-gg
Copy link
Contributor

Hi @kenwuuu ,

Thank you for your contribution, at this stage it is unlikely we will integrate the proposed changes. The red reply text is a mechanic that quite a few users rely on today. And moving away from that would probably require an alternative way to convey the same meaning.

I'd recommend you look at issues labelled with Help Wanted or good first issue if you're interested in contributing to Element Web.

@germain-gg germain-gg closed this May 26, 2023
@kenwuuu
Copy link
Contributor Author

kenwuuu commented Aug 3, 2023

Hey @germain-gg, that's very insightful. I think we should poll users and see how many enjoy the red text when we already have the yellow background and reply blurb that help visually alert users to replies. How can we go about that? If you point me in the right direction, I can get it going.

@kenwuuu
Copy link
Contributor Author

kenwuuu commented Aug 3, 2023

In fact, as an SDK, we shouldn't be dictating the design of UI more than we need to and I'd argue that changing the color of text based off message type or context should be something left to clients to decide. I'm interested to hear any thoughts on this

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Z-Community-PR Issue is solved by a community member's PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

It's confusing that Replies to your own messages (and highlights in general?) are entirely coloured red.
4 participants