feat(settings): add option to hide category names in the notes list - #1929
Open
MiMoHo wants to merge 1 commit into
Open
feat(settings): add option to hide category names in the notes list#1929MiMoHo wants to merge 1 commit into
MiMoHo wants to merge 1 commit into
Conversation
The All notes view shows each note's category as a second line, which reads Uncategorized on every single row for people who do not use categories at all. Add the user setting showCategoryInList with a switch in the app settings. The default keeps the current behavior of showing the category names. Fixes nextcloud#1888 Assisted-by: Claude Code:claude-fable-5 AI-assistant: Claude Code 2.1.187 (Claude Fable 5) Signed-off-by: MiMoHo <37556964+MiMoHo@users.noreply.github.com>
MiMoHo
force-pushed
the
feat/setting-hide-category-names
branch
from
July 6, 2026 16:11
7803f24 to
85316f3
Compare
karlitschek
requested review from
juliusknorr and
max-nextcloud
and
a lite review from Copilot
August 6, 2026 12:14
There was a problem hiding this comment.
Pull request overview
Adds a user-facing setting to control whether category names are displayed in the “All notes” list, reducing noise for users who don’t use categories while keeping existing behavior as the default.
Changes:
- Added an app settings switch to toggle “Show category names in the list of all notes” (
showCategoryInList). - Updated the “All notes” list rendering to conditionally show/hide the category line based on the new setting.
- Added backend support for the new setting with a default value and validation.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/components/NotesView.vue | Gates the category title line in the “All notes” view behind the new setting. |
| src/components/AppSettings.vue | Introduces a settings UI switch and persists the user preference. |
| lib/Service/SettingsService.php | Registers showCategoryInList with a default and validation on the server. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+74
to
+76
| 'validate' => function ($value) { | ||
| return filter_var($value, FILTER_VALIDATE_BOOLEAN); | ||
| }, |
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 "All notes" view shows each note's category as a second line. For people who do not use categories at all, every single row reads Uncategorized, which adds noise without information (see #1888).
This adds a user setting "Show category names in the list of all notes" (
showCategoryInList) with a switch in the app settings.Fixes #1888
Testing
Verified in the browser (Chromium and WebKit): labels are shown by default, the switch hides and restores them live without a reload, and the choice is persisted per user.
🤖 AI (if applicable)
I reviewed and tested the changes myself.