Skip to content

[stable32] feat(files_versions): Auto-reload versions tab on file#58268

Merged
AndyScherzinger merged 5 commits intostable32from
repair-recovery
Mar 20, 2026
Merged

[stable32] feat(files_versions): Auto-reload versions tab on file#58268
AndyScherzinger merged 5 commits intostable32from
repair-recovery

Conversation

@silverkszlo
Copy link

@silverkszlo silverkszlo commented Feb 11, 2026

Basically a copy/backup from #57841, which got closed due to me messing up my local commit history.

Summary

This PR adds automatic reloading of the versions sidebar tab when documents are saved, eliminating the need for manual refresh to see new versions. The feature listens to files:node:updated events.

Changes

  • Subscribe to files:node:updated events in VersionTab.vue in files_versions
  • Automatically reload versions list when the current file is saved
  • Add 1-second delay before fetching to allow server time to create new version entry

Testing

Tested on stable32 with Collabora Online:

  1. Open a document in Collabora
  2. Open versions sidebar tab
  3. Make changes and save (Ctrl+S)
  4. Versions list automatically updates after ~1 second
  5. New version appears without manual refresh

Checklist

@silverkszlo silverkszlo requested a review from a team as a code owner February 11, 2026 15:00
@silverkszlo silverkszlo requested review from nfebe, sorbaugh and susnux and removed request for a team February 11, 2026 15:00
@silverkszlo silverkszlo requested a review from blizzz February 11, 2026 15:02
@solracsf solracsf added this to the Nextcloud 32.0.6 milestone Feb 11, 2026
@solracsf solracsf added the 3. to review Waiting for reviews label Feb 11, 2026
@blizzz
Copy link
Member

blizzz commented Feb 11, 2026

/compile

@blizzz
Copy link
Member

blizzz commented Feb 11, 2026

The unconventional commit message is actually about the [stable32] in the commit message. There it is to be omitted.

@AndyScherzinger
Copy link
Member

/compile

@blizzz
Copy link
Member

blizzz commented Feb 24, 2026

@silverkszlo there is one tests that keeps constantly failing. Runner 6, Versions naming:

       Name versions of shared file
         with edit permission
           "before all" hook for "Names the versions":

every other single test was at least green once 😅 on stable32 recent commits are marked green. So, might be related?

@skjnldsv skjnldsv mentioned this pull request Mar 18, 2026
@silverkszlo
Copy link
Author

/compile

silverkszlo and others added 5 commits March 20, 2026 10:06
Listen for files:node:updated events and automatically refresh the
versions list when the current file is saved, eliminating the need to
manually close and reopen the sidebar to see new versions.

Signed-off-by: silver <s.szmajduch@posteo.de>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Signed-off-by: silver <s.szmajduch@posteo.de>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
@AndyScherzinger AndyScherzinger merged commit 1b455f4 into stable32 Mar 20, 2026
135 of 137 checks passed
@AndyScherzinger AndyScherzinger deleted the repair-recovery branch March 20, 2026 09:59
@welcome
Copy link

welcome bot commented Mar 20, 2026

Thanks for your first pull request and welcome to the community! Feel free to keep them coming! If you are looking for issues to tackle then have a look at this selection: https://github.com/nextcloud/server/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants