Skip to content

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

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>
@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

Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
@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.

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.

5 participants