Repository navigation
perf(admin): turn code splitting on so date-fns locales and other dynamic imports load on demand - #938
Merged
rubenvdlinde merged 2 commits intoNov 30, 2026
Conversation
…[skip ci] @nextcloud/vite-config turns code splitting off for a single entry, so the admin page loaded all of @conduction/nextcloud-vue in one 3.3 MB file. With codeSplitting on and the panels of every tab but Apps as async components, the page loads 1.87 MB statically. Assisted-by: ClaudeCode:claude-opus-5-5
…niq-help-admin-shell-split # Conflicts: # src/App.navigation.spec.ts # src/App.vue
Contributor
Quality Report — ConductionNL/versioniq @
|
| Check | PHP | Vue | Security | License | Tests |
|---|---|---|---|---|---|
| lint | ✅ | ||||
| phpcs | ✅ | ||||
| phpmd | ✅ | ||||
| psalm | ❌ | ||||
| phpstan | ✅ | ||||
| phpmetrics | ✅ | ||||
| eslint | ❌ | ||||
| stylelint | ❌ | ||||
| build | ✅ | ||||
| composer | ✅ | ✅ 58/58 | |||
| npm | ✅ | ✅ 529/529 | |||
| app:check-code | ⏭️ | ||||
| info.xml | ✅ | ||||
| REUSE | ❌ | ||||
| lockfile sync | ✅ | ||||
| PHPUnit | ❌ | ||||
| Newman | ⏭️ | ||||
| Playwright | ⏭️ deferred: E2E runs locally and on the promotion path only. This pull request targets development, so the suite is asked once per promotion into beta and main rather than once per push per open pull request. Run it locally with npx playwright test, or from the Actions tab on a branch with no open pull request into development. |
||||
| Hydra gates | ❌ |
Quality workflow — 2026-11-30 13:54 UTC
Download the full PDF report from the workflow artifacts.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Turns code splitting on in
vite.config.ts.@nextcloud/vite-configswitches it off for a single-entry app, so every dynamic import was inlined intojs/versioniq-main.mjs.Why
PERF-HANDOFF item (help-integriq-1, 29 Nov): adopting
CnAdminSettingsShell(#883) grew the admin page's one script from 771 kB to 3.3 MB. Re-measured today on development (@conduction/nextcloud-vue2.270.0), source-map attributed:date-fns579 kB: 531 locale modules.@nextcloud/vue'sNcDateTimePicker(reached throughNcActionInput) loads each locale withimport(), and with splitting off all 531 were inlined.@nextcloud/dialogs290 kB,@nextcloud/vue288 kB, nc-vuenl.json219 kB,webdav147 kB,@vuepic/vue-datepicker135 kB.Numbers (production build, same commit, only this flag differs)
js/*.mjsLazy chunks and their CSS resolve through
window.OC.filePath('versioniq', ...)(vite-config'srenderBuiltUrl), so they load from the app's own path.Scope
Yesterday's branch also turned the tab panels into async components; that part conflicted with the board-name changes on development and is left out, so this PR is the one config flag.
Checks
scripts/diff-check.sh --base origin/development: GREEN, 1 file changednpm run build: OKnpm run lint: 0 new; the 1 error is inherited (intentionally broken fixturetests/unit/Service/Advisory/fixtures/bundled/broken/vendor/composer/installed.json)vitest run: 3523/3523 tests pass;HistoryPanel.sbom.spec.tsfails to load (.cssextension) on development as well (vitest uses its ownvitest.config.ts)composer check:strict: not run.composer installtimed out through the cloud proxy; this PR touches no PHPAssisted-by: ClaudeCode:claude-opus-5-5
Generated by Claude Code