feat: per-user board ordering in the navigation#8150
Open
Lightshadow02 wants to merge 4 commits into
Open
Conversation
Signed-off-by: HUGO LOUREIRO <149155946+Lightshadow02@users.noreply.github.com> Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Signed-off-by: HUGO LOUREIRO <149155946+Lightshadow02@users.noreply.github.com> Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
- AppNavigationBoardCategory.vue: add non-drag-area-selector="input, .app-navigation-entry__actions" to the boards Container, mirroring the labels-Container fix. Verified against the installed @nextcloud/vue source that NcAppNavigationItem renders its actions slot inside an element with the app-navigation-entry__actions class, and that AppNavigationBoard's rename field (NcTextField -> NcInputField) renders a plain <input>, so board rename and the actions menu no longer start a drag. - tests/unit/Service/ConfigServiceTest.php: replace the copy-pasted 2016 Julius Härtl header with the current SPDX header, matching the style already used by other 2026 test files in this app (e.g. tests/unit/Event/WebhookCompatibleEventsTest.php). - docs/API.md: document the boardOrder config key in the Config section's key table. Signed-off-by: HUGO LOUREIRO <149155946+Lightshadow02@users.noreply.github.com> Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Signed-off-by: HUGO LOUREIRO <149155946+Lightshadow02@users.noreply.github.com> Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.
Summary
The left navigation sorts boards alphabetically (hard-coded), which does not match how people prioritise their boards. This adds per-user manual ordering:
boardOrder(JSON array of board ids) through the existingConfigServiceuser-config plumbing and the existing OCSPOST /config/{key}route — no schema migration, no shared state: each user has their own order and boards themselves are untouchedgetAll()exposesboardOrderto the frontend initial state; value is validated (list of ints) and cleaned on write; documented in docs/API.mdsortBoards()helper — user order first, boards not in the list appended alphabetically (new/newly shared boards), stale ids ignoredHow to test
Checklist
🤖 Generated with Claude Code