Skip to content
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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

skjnldsv
Copy link
Member

@skjnldsv skjnldsv commented Dec 5, 2024

Fix weird error messages and improve layout by displaying empty label placeholder
2024-12-05_11-38

Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
@skjnldsv skjnldsv added this to the Nextcloud 31 milestone Dec 5, 2024
@skjnldsv skjnldsv requested review from artonge, come-nc and a team December 5, 2024 10:46
@skjnldsv skjnldsv self-assigned this Dec 5, 2024
@skjnldsv skjnldsv requested review from nfebe and Pytal and removed request for a team December 5, 2024 10:47
@skjnldsv
Copy link
Member Author

skjnldsv commented Dec 5, 2024

/backport to stable30

@skjnldsv
Copy link
Member Author

skjnldsv commented Dec 5, 2024

/backport to stable29

@come-nc
Copy link
Contributor

come-nc commented Dec 5, 2024

Copy link
Member

@Pytal Pytal left a 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?

@skjnldsv
Copy link
Member Author

skjnldsv commented Dec 5, 2024

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.
Especially between Initial version and Current Version
image

@Wendy-Russo
Copy link

i tried your branch using the command and the notification still shows undefined

@nimishavijay
Copy link
Member

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") :)

@come-nc
Copy link
Contributor

come-nc commented Dec 19, 2024

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) .
If this is a blocker we should revert this part of the PR and still merge the rest because the current toast message with undefined is definitely problematic and has been reported by customers.

Copy link
Member

@jancborchardt jancborchardt left a 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.

@skjnldsv skjnldsv added 2. developing Work in progress and removed 3. to review Waiting for reviews labels Dec 22, 2024
@skjnldsv
Copy link
Member Author

"Edited by [account bubble]", but not bold that.

Good alternative, thanks Nimisha and Jan! 👍

@blizzz blizzz mentioned this pull request Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants