-
Notifications
You must be signed in to change notification settings - Fork 22
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
Improve ui-ux on the stored videos modal #874
Improve ui-ux on the stored videos modal #874
Conversation
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 interface! Loved it!
One thing that was not very clear to me was the confirmation button for deleting. I've tried deleting a few times, thinking it was not working, and then I realized I had to click the checkmark to continue. Could we make it more clear? Maybe instead of just the confirmation button, adding also a Cancel button, and having the actions named, would make it more clear.
More from the meeting:
- Selecting multiple files today is not so intuitive
- Selecting a third file is also requiring holding the file, which is different from the usual mobile approach
- We are missing the "select all" button
- Using "control" on Mac to select multiple is opening the context menu
- Clicking the X on the snackbar to discard it is causing the video menu to close
- When my CPU got hotter from using Cockpit and making the video call at the same time, trying to open the video menu caused a buggy situation where the whole menu was broken with a null video running
- The placeholder images are coming from the internet, so they will be broken on offline situations
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.
The UI looks great, I believe that is good at it's and we can continue improving it.
The CTRL+SHIFT does not look a common shortcut to me, maybe only shift is enough.
The Holding in each item is weird was well, I expect to hold only once and select as many videos as I want.
src/components/VideoLibraryModal.vue
Outdated
</div> | ||
<v-divider vertical class="h-[92%] mt-4 opacity-[0.08]"></v-divider> | ||
<!---------------------------> | ||
<!-- TAB for Video 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.
I'm not a huge fan of such comments where the comment information is clearly a duplicated of the information bellow it.
In this case:
<!-- TAB for Video Button -->
<template v-if="currentTab === 'videos'">
src/components/VideoLibraryModal.vue
Outdated
:class="[ | ||
selectedVideos.find((v) => v.filename === video.filename) | ||
? 'border-opacity-[0.4]' | ||
: 'border-opacity-[0.1]', | ||
selectedVideos.find((v) => v.filename === video.filename) ? 'w-[220px]' : 'w-[190px]', | ||
]" |
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.
Couldn't we use something like ?
:class="[ | |
selectedVideos.find((v) => v.filename === video.filename) | |
? 'border-opacity-[0.4]' | |
: 'border-opacity-[0.1]', | |
selectedVideos.find((v) => v.filename === video.filename) ? 'w-[220px]' : 'w-[190px]', | |
]" | |
:class="selectedVideos.find((v) => v.filename === video.filename) | |
? ['border-opacity-[0.4]', 'w-[220px]'] | |
: ['border-opacity-[0.1]', 'w-[190px]'] | |
" |
} | ||
|
||
const parseDateFromTitle = (title: string): string => { | ||
const dateRegex = /\(([^)]+)\)/ |
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.
Can we have a comment here explaining what this magic regex is doing/parsing/extracting ?
src/components/VideoLibraryModal.vue
Outdated
}, 500) | ||
} | ||
|
||
// Selects video on long press |
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 is another example where the comment is an duplication of the code.
For comments, I usually recommend this: https://www.youtube.com/watch?v=NLebZ3XT92E a must watch
src/components/VideoLibraryModal.vue
Outdated
const index = selectedVideos.value.findIndex((v) => v.filename === video.filename) | ||
if (index > -1 && selectedVideos.value.length === 1) { | ||
return | ||
} else if (index > -1) { |
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.
else is unnecessary after return
src/components/VideoLibraryModal.vue
Outdated
const index = selectedVideos.value.findIndex((v) => v.filename === video.filename) | ||
if (index > -1 && selectedVideos.value.length === 1) { | ||
return | ||
} else if (index > -1) { |
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.
else is unnecessary after return
Signed-off-by: Arturo Manzoli <[email protected]>
… videos on storage Signed-off-by: Arturo Manzoli <[email protected]>
fd84245
to
85a9d92
Compare
On last update:
|
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 is getting very good!
The only "bug" I found was that when you select more than one video, you can't unselect the last one by clicking it, like usual. One needs to click the "unselect all" button.
Screen.Recording.2024-04-11.at.15.01.49.mov
About the overall behavior, I still have my doubts around the "hold to select". It is intuitive on mobile, but not at all in desktop (which are our main customers).
Maybe we can have a "select" button, like in iOS, or show radio buttons on the left of the thumbnails, like in most UI? We can also discuss that on the meeting today.
And also.. Each icon seems to have a different size. Is this on purpose? |
85a9d92
to
9552048
Compare
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.
Everything looks very good! Nice change!
9552048
to
33d3295
Compare
Signed-off-by: Arturo Manzoli <[email protected]>
Signed-off-by: Arturo Manzoli <[email protected]>
Signed-off-by: Arturo Manzoli <[email protected]>
33d3295
to
4bd5d3d
Compare
Actions for multi-file selection:
FIX #824