fix(files_versions): fix undefined success message#49664
fix(files_versions): fix undefined success message#49664
Conversation
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
|
/backport to stable30 |
|
/backport to stable29 |
Pytal
left a comment
There was a problem hiding this comment.
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) . |
jancborchardt
left a comment
There was a problem hiding this comment.
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
