Skip to content

fix(viewer): mount the elements again when comparing other files - #153

Merged
skjnldsv merged 1 commit into
mainfrom
fix/remount_comparison_elements
Oct 20, 2026
Merged

skjnldsv merged 1 commit into
mainfrom
fix/remount_comparison_elements

Conversation

@mejo-

@mejo- mejo- commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Comparing other files while the viewer was open kept the elements of the first comparison and only handed them the new files. Handlers load once they are mounted, so nothing loaded the new files and the viewer showed its spinner forever.

The elements of a comparison are keyed by both files compared now, and mounted again for every comparison, as they are for every file opened. Comparing the files already compared keeps the elements and does not wait for them to load again, like opening the file already open.

Required to allow switching between different file comparisons from Collectives sidebar version tab.

Assisted-by: ClaudeCode:claude-opus-5-5

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI

Comparing other files while the viewer was open kept the elements of
the first comparison and only handed them the new files. Handlers load
once they are mounted, so nothing loaded the new files and the viewer
showed its spinner forever.

The elements of a comparison are keyed by both files compared now, and
mounted again for every comparison, as they are for every file opened.
Comparing the files already compared keeps the elements and does not
wait for them to load again, like opening the file already open.

Signed-off-by: Jonas <jonas@freesources.org>
Assisted-by: ClaudeCode:claude-opus-5-5
@mejo- mejo- self-assigned this Oct 20, 2026
@mejo-
mejo- requested a review from skjnldsv as a code owner October 20, 2026 07:02
@mejo- mejo- added type: enhancement 🚀 New feature or request 3. to review labels Oct 20, 2026
@codecov

codecov Bot commented Oct 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.54%. Comparing base (e448eed) to head (901f3e5).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #153      +/-   ##
==========================================
+ Coverage   92.53%   92.54%   +0.01%     
==========================================
  Files          51       51              
  Lines        4177     4187      +10     
  Branches      922      928       +6     
==========================================
+ Hits         3865     3875      +10     
  Misses        289      289              
  Partials       23       23              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@skjnldsv
skjnldsv merged commit b2872ea into main Oct 20, 2026
21 checks passed
@skjnldsv
skjnldsv deleted the fix/remount_comparison_elements branch October 20, 2026 07:09
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