Skip to content

fix: keep open context menus when a file in the list changes - #3785

Merged
AlexAndBear merged 2 commits into
mainfrom
fix/e2e-yjs-public-editor
Oct 14, 2026
Merged

AlexAndBear merged 2 commits into
mainfrom
fix/e2e-yjs-public-editor

Conversation

@AlexAndBear

@AlexAndBear AlexAndBear commented Oct 13, 2026 •

Copy link
Copy Markdown
Member

Description

This also makes the e2e-tests-yjs-chromium CI job green again. In "public editor opens a text file", the anonymous user saves example.md and Alice opens it via the context menu right after. The save triggers a postprocessing-finished event for Alice, the file gets a new etag, and the row is re-rendered while Alice's context menu is open, so the "Open with" item disappears and the test times out.

Related Issue

How Has This Been Tested?

  • test environment: unit tests (Vitest), browser tests (Playwright) against a local OpenCloud
  • test case 1: unit: rows and tiles stay mounted on an etag change and itemVisible is emitted
  • test case 2: browser: context menu and "Open with" stay open while the file is changed over WebDAV (list and tiles); replacing an image updates size and thumbnail; footer count after uploads; search, trash and shared-with-me lists with previews

Types of changes

  • Bugfix
  • Enhancement (a change that doesn't break existing code or deployments)
  • Breaking change (a modification that affects current functionality)
  • Technical debt (addressing code that needs refactoring or improvements)
  • Tests (adding or improving tests)
  • Documentation (updates or additions to documentation)
  • Maintenance (like dependency updates or tooling adjustments)

…enus stay open

Since #3587 rows and tiles were keyed by etag to reload the preview of a changed resource. An etag change (e.g. postprocessing-finished SSE after someone else saved the file) remounted the row and destroyed an open context menu. Keep the rows mounted and emit itemVisible for changed resources instead, so the preview still gets reloaded.

@tammi-23 tammi-23 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 LGTM

@AlexAndBear
AlexAndBear merged commit 6a0ab5e into main Oct 14, 2026
28 checks passed
@AlexAndBear
AlexAndBear deleted the fix/e2e-yjs-public-editor branch October 14, 2026 06:55
@openclouders openclouders mentioned this pull request Oct 14, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants