-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Fix outstanding UX issues with replies/mentions/keyword notifs #28270
Fix outstanding UX issues with replies/mentions/keyword notifs #28270
Conversation
I foresee this change being made across the codebase shortly and want to proactively prevent my PR from falling behind
It is clear that it would be best for me to address this piece in a separate PR.
@dbkr's comparison with EX:
|
@t3chguy will take this to the design team for guidance |
I have requested input from @element-hq/design but did not get anywhere. |
Hey @taffyko - I managed to get some review from the @element-hq/design team. They are happy to land this but would like the font colour for pills to also be updated to |
On it! |
@t3chguy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks very much @taffyko
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks sane to me, thanks!
private regExpForKeywordPattern(pattern: string): RegExp { | ||
// Reflects the push notification pattern-matching implementation at | ||
// https://github.com/matrix-org/matrix-js-sdk/blob/dbd7d26968b94700827bac525c39afff2c198e61/src/pushprocessor.ts#L570 | ||
return new RegExp("(^|\\W)(" + globToRegexp(pattern) + ")(\\W|$)", "i"); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It'd be nice to reuse the cache in the js-sdk for these regexes but not going to block this change on that
Very excited to see this! Thanks for taking the time to do it! |
This is a continuation of PR #85 from the now-incorporated matrix-react-sdk, see the discussion there.
Checklist
public
/exported
symbols have accurate TSDoc documentation.Purpose
When following a link to a message with keyword notifications, there would no longer be any visual indication that the message triggered a notification.
For the "Modern" layout, a bright stripe has been added to the left edge of the highlighted-message background to make mentions/notifications more visible, in the spirit of element-hq/element-meta#1476.EDIT: This addition has been dropped from this PR, as it needs additional work to adhere to the Compound design system guidelines — I believe it would be best for me to address it in a follow-up PR instead.
For now, disregard the highlighted left edge that appears in the "After" screenshots below.
Fixes element-hq/element-meta#744
Fixes #8821