-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
fix(files_versions): fix undefined success message #49664
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
/backport to stable30 |
/backport to stable29 |
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.
iirc it was a design decision to not show a label when not named @artonge @nimishavijay?
It honestly looks weird without. It feels like a bug where some part of the UI is missing. |
i tried your branch using the command and the notification still shows undefined |
It was indeed a deliberate decision! :) most versions are not saved, so if they had a generic name the version list would just have many many duplicated "Unnamed version" labels. For versions that are not saved I'd keep then unnamed but use a more distinct identifier for the toast message, like the date ("Version from 10 days ago restored") :) |
I agree with @skjnldsv that this looks like a bug when looking at the UI like in #49664 (comment) . |
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.
As @nimishavijay saod, it is intentional to only highlight versions with a name, as they likely are important.
Highlighting all versions and naming them "Unnamed version" makes everything important (and thus nothing), makes it seem like you are forced to name every version, and makes it look unfinished.
For unnamed versions, we could say "Edited by [account bubble]", but not bold that. Only bold specifically named versions.
Good alternative, thanks Nimisha and Jan! 👍 |
Fix weird error messages and improve layout by displaying empty label placeholder