-
Notifications
You must be signed in to change notification settings - Fork 57
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
[MM-57964] General UX improvements #779
Conversation
webapp/package.json
Outdated
@@ -51,7 +51,7 @@ | |||
"@babel/preset-typescript": "7.16.0", | |||
"@formatjs/cli": "5.0.7", | |||
"@mattermost/client": "file:mattermost-webapp/webapp/platform/client", | |||
"@mattermost/desktop-api": "5.7.0-3", | |||
"@mattermost/desktop-api": "https://gitpkg.now.sh/mattermost/desktop/api-types?MM-57964", |
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.
Just temporary to get it to pass.
Mmm, I realized that showing the stop recording modal on Desktop (from widget) will require some more work on both sides. |
Should be good for a first pass now. |
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.
Nice! Looks great in action too.
export const selectRHSPost = (postID: string): ActionFuncAsync => { | ||
return async (dispatch: DispatchFunc) => { | ||
if (window.ProductApi) { | ||
dispatch(window.ProductApi.selectRhsPost(postID)); |
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 guaranteed to be on ProductApi
? If not, we should optionally call 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.
I suppose nothing is guaranteed when it comes to webapp :p But it's been there forever if that's what you are asking.
logDebug('desktopAPI.openStopRecordingModal'); | ||
window.desktopAPI.openStopRecordingModal(this.props.channel.id); | ||
} else { | ||
this.props.stopCallRecording(this.props.channel.id); |
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.
I guess we don't have a confirmation for desktop pre-openStopRecordingModal?
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, I still wanted to give some functionality rather than hide the button. Happy to revisit though.
webapp/src/index.tsx
Outdated
@@ -469,6 +476,28 @@ export default class Plugin { | |||
})); | |||
} | |||
|
|||
if (window.desktopAPI?.onOpenThread) { | |||
logDebug('registering desktopAPI.onOpenThread'); | |||
this.unsubscribers.push(window.desktopAPI.onOpenThread((threadID: 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.
This desktopAPI.on...
is slick, nice work.
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 @streamer45! Just a couple of small requests:
- When you click on
Record call
from the widget, while it takes a few seconds for the recording to actually begin, the menu item stays asRecord call
and clicking on it again triggers an error (even though the recording starts after that). Ideally, it should immediately change toStop recording
even if the recording has not really started. This is how therecord
button in the pop out window works.
Widget.mov
- In the widget, for the
Stop recording
menu item, can we also change the color of the text to the same red as the icon? They shouldn't have different colors.
Also, I didn't see the Show chat thread
menu item on the widget in the desktop app, but I'm assuming that'll be done separately. Do let me know if you need me to review this again. Thanks!
Updated to match the rest of UI.
@abhijit-singh It's implemented, but since it required Desktop changes you'd need to run the app from |
@abhijit-singh Let me know if this is good to go from a UX perspective. |
Yep, good to go from my side @streamer45 |
Summary
PR makes the following usability improvements:
Designs
https://www.figma.com/design/1Pw8BuAVglnKOlQqmDrOUC/MM-57964-Consistent-controls-in-widget-and-pop-out-window?node-id=1-7&m=dev
Ticket Link
https://mattermost.atlassian.net/browse/MM-57964