Text: DND and custom status have datetime in different manners
#27,511 opened on Jul 2, 2024
Repository metrics
- Stars
- (32,880 stars)
- PR merge metrics
- (Avg merge 6d 5h) (318 merged PRs in 30d)
Description
https://github.com/mattermost/mattermost/issues/27492
Summary
DND (https://mattermost.atlassian.net/browse/MM-38745 and #26334 (#19134)) and custom status show datetime in different manners.
Steps to reproduce
- Sets DND with "Clear after:" in 30 mins.
- Sets custom status with "Clear after: " in 30 mins.
- Click my avatar image on the top right to open the status menu to see the difference in both.
Expected behavior
Style in the one should be as same as style in the other.
Observed behavior
With only time (Clear after: 30 mins)
With date time (Clear after: 26 hours)
Possible fixes
ExpiryTimecomponent defined inwebapp/channels/src/components/custom_status/expiry_time.tsxlooks too complicated unlikerenderDndExtraTextinStatusDropdown(webapp/channels/src/components/status_dropdown/status_dropdown.tsx).
If you're interested please comment here and come join our "Contributors" community channel on our daily build server, where you can discuss questions with community members and the Mattermost core team. For technical advice or questions, please join our "Developers" community channel.
New contributors please see our Developer's Guide.