Sub-category caption is missing when a category has only one sub-group
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 88/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- javascript
- Ambito
- frontend
Direzione di ricerca
Inizia in src/components/NotesView.vue, concentrandoti sul ramo per il singolo gruppo e sul rendering di NotesCaption nel ramo raggruppato. Riproduci il caso con una nota in Personal/Work, quindi verifica che l’elenco delle note mostri la didascalia Work sia con una nota annidata sia dopo aver aggiunto una nota diretta in Personal.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
When a user selects a category and all its visible notes belong to a single sub-category, the sub-category caption isn't being shown in the notes list. The notes appear directly under the selected category in the list and don't represent where they actually are in the hierarchy.
Since the navigation only lists top-level categories, that caption is the only place in the notes list that shows which category a note is in when it's nested. Without the sub-category in the notes list, it's not possible to know where in the hierarchy the note is without looking at the note's Details tab UI on the note (or switch to "All notes").
Steps to reproduce
- Create a note in the category
Personal/Work, so it's the only note underPersonal - Select
Personalin the navigation - Observe the note list. The note shows in the notes list but with no sub-category (
Work) caption - Create a second note directly in
Personal - Observe the note list again. Now a "Work" caption appears above the first note
Expected behaviour
The sub-category caption should show in both cases. Step 3 should already display a "Work" caption above the note.
Actual behaviour
After step 3, the list shows no caption so the note looks as though it lives directly in Personal. The caption only appears once a second group exists.
Cause
In src/components/NotesView.vue, the single-group case takes a separate branch that renders NotesList on its own:
<NotesList v-if="groupedNotes.length === 1"
:notes="groupedNotes[0].notes"
:showCategoryTitle="category === null"
/>
<template v-for="(group, idx) in groupedNotes" v-else :key="idx">
<NotesCaption v-if="group.category && category !== group.category" … />
NotesCaption only exists in the v-else branch, so it is skipped whenever there is exactly one group.
The note items do not carry the load. .NoteItem's subname would show the full category but its gated on showCategoryTitle (which is category === null). So it also is off when any category is selected. Both signals are suppressed at once.
Server
- Notes app version: 6.1.0
- Nextcloud version: 35.0.0
- Browser: Edge 153
Related
Related to #879 (category tree). The flattened navigation makes this caption the only indication of nested placement, so losing it is more confusing than it would be otherwise.
Investigated with the help of Claude Code.
- Lingua principale
- JavaScript
- Stelle
- 738
- Fork
- 162
- Merge medio
- 2h 40m
- PR unite (30g)
- 39
Preparare l'ambiente
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di nextcloud/notes
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
I maintainer di solito rispondono entro 1 giorno
-
bug need to reproduce
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
feature request needs discussion
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 62/100
nextcloud/notes#1344 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Tag or categorize notesApertafeature request needs discussion
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
nextcloud/notes#2046 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di nextcloud/notes
Issue simili
-
Complexity: Small P-Feature: Projects page ready for merge team role: back end/devOps role: front end size: 0.25pt
Difficoltà 1/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 67/100
bellingcat/toolkit#905 ·
-
self-care self-care:docs-build-time-investigator
Difficoltà 2/5 Mezza giornata Idoneità per principianti 76/100
githubnext/gh-aw-cao#14191 ·
I maintainer di solito rispondono entro 1 giorno
-
effort:low impact:medium RAG status: auto-triaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
mastra-ai/mastra#25229 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
sugarlabs/musicblocks#8984 ·
I maintainer di solito rispondono entro 1 giorno