-
Notifications
You must be signed in to change notification settings - Fork 2.7k
[MM-45850]: Migrate dot menu to MUI menu and post reminders #12007
Conversation
@M-ZubairAhmed, I think the only thing left is this new badge |
ebb350b
to
329a179
Compare
leadingElement={<ClockOutlineIcon size={18}/>} | ||
trailingElements={<ChevronRightIcon size={16}/>} | ||
menuId={`remind_post_${props.post.id}-menu`} | ||
forceOpenOnLeft={true} |
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.
is the force necessary here?
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.
Yeah, Not necessary earlier. When I was testing it, It wasn't working without it.
Maybe after your changes, it has started working without force left. Thanks for flagging.
<h5 className={'postReminderMenuHeader'}> | ||
{formatMessage( | ||
{id: 'post_info.post_reminder.sub_menu.header', | ||
defaultMessage: 'Set a reminder for:'}, | ||
)} | ||
</h5> |
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.
should we make Menu.Header
component? can be used in other menus as well
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.
Seems like one-off case to me
|
||
type Props = { | ||
onExited: () => void; | ||
userId: string; |
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.
addPostReminder , userId and isMilitaryTime can be directly derived from PropsFromRedux
JOIN_LEAVE: 'system_join_leave' as const, | ||
JOIN_CHANNEL: 'system_join_channel' as const, |
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.
not sure why we did like this in first place
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.
@M-ZubairAhmed I would guess that PostTypes.JOIN_LEAVE
would be a const
and could not be written over
@@ -2138,6 +2138,15 @@ export default class Client4 { | |||
); | |||
} | |||
|
|||
addPostReminder = (userId: string, postId: string, timestamp: number) => { | |||
this.trackEvent('api', 'api_post_set_reminder'); |
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.
is this new telemetry key made aware to Telemetry team?
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.
@sri-byte Please let me know, do I need to change anything here
<button | ||
className='PostReminderModal__input' | ||
type='button' |
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.
curious if we can use the new menu here as well or is that not prepared for it?
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.
few comments
@matthewbirtch This is a known issue. @M-ZubairAhmed will add changes tomorrow |
7de2a00
to
af9628f
Compare
Adding @asaadmahmood for UX review given Matt's transition |
Successfully triggered E2E testing! |
New commit detected. SpinWick will upgrade if the updated docker image is available. |
Mattermost test server updated with git commit Access here: https://mattermost-webapp-pr-12007.test.mattermost.cloud |
Test server destroyed |
Test server destroyed |
* Create message-reminders.rst Docs for: mattermost/mattermost-webapp#12007 * Update message-reminders.rst * Update channels.rst * Update message-reminders.rst * Update message-reminders.rst
* Update conf.py * Update deprecated-configuration-settings.rst (#6318) Doc update for: mattermost/mattermost#22422 * Create message-reminders.rst (#6322) * Create message-reminders.rst Docs for: mattermost/mattermost-webapp#12007 * Update message-reminders.rst * Update channels.rst * Update message-reminders.rst * Update message-reminders.rst * Update boards content for 7.10 (#6320) * boards update * Update source/boards/getting-started.rst Co-authored-by: Winson Wu <[email protected]> * Update source/boards/getting-started.rst Co-authored-by: Winson Wu <[email protected]> * Update share-and-collaborate.rst * Update share-and-collaborate.rst * Update get-started-with-boards.rst * Update source/boards/getting-started.rst Co-authored-by: Winson Wu <[email protected]> * Update source/boards/share-and-collaborate.rst Co-authored-by: Winson Wu <[email protected]> --------- Co-authored-by: Winson Wu <[email protected]> * Added enable board sharing configs and others (#6326) * Update cloud-subscriptions.rst * Update editions-and-offerings.rst * Update create-channels.rst * Update search-for-messages.rst * Update set-channel-preferences.rst * Update share-files-in-messages.rst * Create product-configuration-settings.rst * Update administration.rst * Update advanced-permissions.rst * Update shared-channels.rst * Update sso-gitlab.rst * Update sso-gitlab.rst * Update sso-office.rst * Update plugins-configuration-settings.rst * Update plugins-configuration-settings.rst * Update product-configuration-settings.rst * v7.10 Changelog (#6311) * Update self-managed-changelog.md * Update self-managed-changelog.md * Update self-managed-changelog.md * Update open-source-components.rst * Update release-lifecycle.rst * Update self-managed-changelog.md * Update self-managed-changelog.md * Update important-upgrade-notes.rst * Update self-managed-changelog.md * Update source/install/self-managed-changelog.md Co-authored-by: Maria A Nunez <[email protected]> * Update source/install/self-managed-changelog.md Co-authored-by: Winson Wu <[email protected]> * Apply suggestions from code review Co-authored-by: Carrie Warner (Mattermost) <[email protected]> * Update self-managed-changelog.md * Update self-managed-changelog.md * Update self-managed-changelog.md * Update self-managed-changelog.md * Update self-managed-changelog.md * Update self-managed-changelog.md * Update self-managed-changelog.md --------- Co-authored-by: Maria A Nunez <[email protected]> Co-authored-by: Winson Wu <[email protected]> Co-authored-by: Carrie Warner (Mattermost) <[email protected]> --------- Co-authored-by: Justine Geffen <[email protected]> Co-authored-by: Winson Wu <[email protected]> Co-authored-by: Maria A Nunez <[email protected]> Co-authored-by: Carrie Warner (Mattermost) <[email protected]>
Summary
Migrate the post dot menu to the MUI menu
Note: Opening up for early review, I May add a post reminder in this or another pr. Work is done.
Ticket Link
Fixes https://mattermost.atlassian.net/browse/MM-45850
Related Pull Requests
NA
Screenshots
Release Note