Skip to content

feat(settings): add option to hide category names in the notes list - #1929

Open
MiMoHo wants to merge 1 commit into
nextcloud:mainfrom
MiMoHo:feat/setting-hide-category-names
Open

feat(settings): add option to hide category names in the notes list#1929
MiMoHo wants to merge 1 commit into
nextcloud:mainfrom
MiMoHo:feat/setting-hide-category-names

Conversation

@MiMoHo

@MiMoHo MiMoHo commented Jul 6, 2026

Copy link
Copy Markdown

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.

  • The default is on, so nothing changes for existing users.
  • Turning it off hides the category line in the "All notes" view immediately.

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)

  • This pull request was prepared with assistance from Claude Code (Claude Fable 5).
    I reviewed and tested the changes myself.

@MiMoHo
MiMoHo requested review from enjeck and silverkszlo as code owners July 6, 2026 04:04
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
MiMoHo force-pushed the feat/setting-hide-category-names branch from 7803f24 to 85316f3 Compare July 6, 2026 16:11
@karlitschek
karlitschek requested review from juliusknorr and max-nextcloud and a lite review from Copilot August 6, 2026 12:14

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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);
},
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.

Add an option to hide categories in "All notes" view

2 participants