Skip to content

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

@skjnldsv skjnldsv added this to the Nextcloud 31 milestone Dec 5, 2024
@skjnldsv skjnldsv requested review from a team, artonge and come-nc December 5, 2024 10:46
@skjnldsv skjnldsv self-assigned this Dec 5, 2024
@skjnldsv skjnldsv requested review from Pytal and nfebe 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
This was referenced Jan 14, 2025
This was referenced Jan 21, 2025
@blizzz blizzz mentioned this pull request Jan 29, 2025
1 task
@blizzz blizzz modified the milestones: Nextcloud 31, Nextcloud 32 Jan 29, 2025
@skjnldsv skjnldsv closed this May 29, 2025
@skjnldsv skjnldsv modified the milestones: Nextcloud 32, Nextcloud 33 Sep 28, 2025
@susnux susnux deleted the fix/restore-sucess branch November 1, 2025 11:24
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.

8 participants