Commit 36a3ec5
feat(noteType): surface the notes that use a note type
The note type detail page was nearly empty — it showed only the name and
description, even though the type's whole purpose is classifying notes.
Add a "Notes" count meta-strip and a seeAll panel listing the notes of this
type, mirroring displayCategory.tpl. The notes are fetched with a bounded
query (GetNotes limited to MaxResultsPerPage) plus a real GetNoteCount total,
rather than rendering the unbounded preloaded association — safe on types
that classify very large numbers of notes. The panel's "See All" links to
/notes?NoteTypeId=<id>. Verified: filtering is correct (no cross-type leak)
and the count reflects the true total.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 7d56c00 commit 36a3ec5
2 files changed
Lines changed: 29 additions & 3 deletions
File tree
- server/template_handlers/template_context_providers
- templates
Lines changed: 18 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
398 | 398 | | |
399 | 399 | | |
400 | 400 | | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
401 | 414 | | |
402 | | - | |
403 | | - | |
404 | | - | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
405 | 420 | | |
406 | 421 | | |
407 | 422 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
8 | 19 | | |
9 | 20 | | |
10 | 21 | | |
| |||
0 commit comments