Skip to content

Conversation

@susnux
Copy link
Contributor

@susnux susnux commented Feb 11, 2026

Summary

This includes various fixes for the files navigation and folder tree:

  • Files navigation:
    • Only compute views needed for current navigation entry - prevent heavy recomputing trees when new views are registeres
    • Load child views only when needed (shown)
  • Folder tree:
    • If possible load nodes from files store to prevent API calls
    • Register views in batches
    • Do not keep random folders open but default to current path (this reduces API calls on page load)
    • Initialize all shown folders in one API call.
      This reduces API calls from N to 1 when you are in some nested folder because you need not only the children of the root but all siblings of the parents.
      Now this is included in one initial API call.

Checklist

@susnux susnux requested review from a team and skjnldsv as code owners February 11, 2026 22:38
@susnux susnux requested review from a team, CarlSchwan, artonge, icewind1991, leftybournes, nfebe and sorbaugh and removed request for a team February 11, 2026 22:38
@susnux susnux added this to the Nextcloud 34 milestone Feb 11, 2026
@susnux
Copy link
Contributor Author

susnux commented Feb 11, 2026

/backport to stable33

@susnux susnux removed request for a team and skjnldsv February 11, 2026 22:42
@susnux susnux mentioned this pull request Feb 11, 2026
@susnux
Copy link
Contributor Author

susnux commented Feb 12, 2026

/compile

susnux and others added 5 commits February 12, 2026 03:31
Initialize the folder tree based on the current directory.
Also only include views needed.

If possible reuse nodes from files store to prevent API call.

Signed-off-by: Ferdinand Thiessen <[email protected]>
Signed-off-by: nextcloud-command <[email protected]>
@AndyScherzinger AndyScherzinger merged commit 3d4774e into master Feb 12, 2026
204 of 206 checks passed
@AndyScherzinger AndyScherzinger deleted the fix/folder-tree-2 branch February 12, 2026 06:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tree view improvements

4 participants