Skip to content

Conversation

@max-nextcloud
Copy link
Collaborator

@max-nextcloud max-nextcloud commented Jul 14, 2025

fix(richworkspace): load after mounted.

Get file info when hasRichworkspace turns true.

The render function in FilesWorkspaceHeader
runs with hasRichWorkspace false and mounts the Component.
Then the update function runs with hasRichWorkspace true.
Now the component needs to load the workspace.

chore(update): explicitly import l10n where needed

It's the recommended way to handle @nextcloud/l10n these days.

@codecov
Copy link

codecov bot commented Jul 14, 2025

Codecov Report

Attention: Patch coverage is 94.11765% with 4 lines in your changes missing coverage. Please review.

Project coverage is 59.70%. Comparing base (2dc2689) to head (4557bc7).
Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
src/views/RichWorkspace.vue 0.00% 2 Missing ⚠️
src/components/ViewerComponent.vue 0.00% 1 Missing ⚠️
src/nodes/CodeBlock/CodeBlockView.vue 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7447      +/-   ##
==========================================
+ Coverage   52.70%   59.70%   +7.00%     
==========================================
  Files         495      494       -1     
  Lines       42284    37431    -4853     
  Branches     1089     1087       -2     
==========================================
+ Hits        22284    22347      +63     
+ Misses      19893    14978    -4915     
+ Partials      107      106       -1     

☔ View full report in Codecov by Sentry.
📢 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.

Get file info when hasRichworkspace turns true.

The render function in `FilesWorkspaceHeader`
runs with `hasRichWorkspace` false and mounts the Component.
Then the update function runs with `hasRichWorkspace` true.
Now the component needs to load the workspace.

Signed-off-by: Max <[email protected]>
@max-nextcloud max-nextcloud self-assigned this Jul 15, 2025
@max-nextcloud max-nextcloud marked this pull request as ready for review July 15, 2025 10:03
@max-nextcloud max-nextcloud requested a review from mejo- as a code owner July 15, 2025 10:03
Copy link
Member

@mejo- mejo- left a comment

Choose a reason for hiding this comment

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

Cool, thanks for the cleanup. Probably something we should do in Collectives as well.

@max-nextcloud max-nextcloud merged commit ec2baf5 into main Jul 15, 2025
68 checks passed
@max-nextcloud max-nextcloud deleted the chore/import-l10n-t branch July 15, 2025 11:13
@max-nextcloud
Copy link
Collaborator Author

/backport 4557bc7 to stable31

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants