mattermost/mattermost

Text: DND and custom status have datetime in different manners

Open

#27511 opened on Jul 2, 2024

View on GitHub
 (2 comments) (0 reactions) (1 assignee)TypeScript (32,880 stars) (7,823 forks)batch import
Help Wanted

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

  1. Sets DND with "Clear after:" in 30 mins.
  2. Sets custom status with "Clear after: " in 30 mins.
  3. 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

  • ExpiryTime component defined in webapp/channels/src/components/custom_status/expiry_time.tsx looks too complicated unlike renderDndExtraText in StatusDropdown (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.

JIRA: https://mattermost.atlassian.net/browse/MM-59268

Contributor guide