-
Notifications
You must be signed in to change notification settings - Fork 91
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
Replace "Saved" indicator with an icon #3572
Conversation
/compile |
Test summaryRun details
View run in Cypress Dashboard ➡️ Flakiness
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
75043a0
to
06fcf14
Compare
src/components/Editor/Status.vue
Outdated
{{ lastSavedStatus }} | ||
<div v-tooltip="lastSavedStatusTooltip" class="save-status" :class="saveStatusClass"> | ||
<CheckIcon v-if="saveStatusClass === 'saved'" /> | ||
<Loading v-else-if="saveStatusClass === 'saving'" /> |
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.
We have a loading icon in the vue-components. It resembles the style of the legacy loading icon used all over Nextcloud. Might be good to use it here, to keep it uniform.
See https://nextcloud-vue-components.netlify.app/#/Components/NcLoadingIcon
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.
Maybe we should then replace also the other usages of the loading icon within text with the icon from nextcloud-vue :)
But probably better on a follow up PR.
This is a great improvement! One suggestion: we can remove the background and make it look visually similar to the formatting options. I'm also thinking instead of the loading indicator we can use the floppy disk symbol, making it look the same as the save indicator on Office. |
I added it to make it look similar to the active user list right to it, but maybe we should remove the background there too?
Used the check icon following this comment by @jancborchardt #2734 (comment) |
06fcf14
to
4ca72f3
Compare
I pushed a commit to unify the look of the menu bar with the status & active user indicators:
It looks now like this: voko.mp4 |
Would be nice to align the saving indicator with the three-dots-button above. |
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.
Code looks good to me. From my point of view this is quite a big improvement.
I'd say this can be merged as is. Aligning the icons would be nice but i don't think it should block this. Using NcLoadingIcon
everywhere was already postponed to a follow up PR.
Looks great, thanks a lot @susnux. Given that sometimes it takes quite some time until the status is saved, I wonder whether the current rotating loading spinner is a bit too annoying for something that should be safe to ignore in most cases. What do you think= |
But I'm also fine with discussing this in a follow-up issue/PR. |
Actually this is a good point. I think right now we only save every now and then to not overwhelm the server. So actually there are three states:
I think |
4ca72f3
to
72ed469
Compare
@mejo- Good point! Fixed this with the latest commit, it now looks like this: vokoscreenNG-2022-12-15_15-20-03.mp4 |
Suggestion: this icon used in Office |
@raimund-schluessler While this is possible, it might be better to exchange the positions of the (Nevertheless I aligned both button with the upper ones in the latest commit) |
c657879
to
7a8cd45
Compare
@nimishavijay Ok I think I misunderstood the comment, I thought we should use a check mark for saved and a dot for unsaved. But it should look like this (?): vokoscreenNG-2022-12-15_16-44-59.mp4 |
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.
That is perfect, super nice! :) 🚀
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
* Set same size as menu bar entries: 44px * Align icons vertically with menu bar * Remove background and add background when hovering like menu bar Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
7a8cd45
to
20825cf
Compare
/compile |
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
📝 Summary
Replaces the saving indicator with an icon, like the "active" users next to it. This also unifies the look on desktop and mobile devices.
🖼️ Screenshots
🏁 Checklist
npm run lint
/npm run stylelint
/composer run cs:check
)