Skip to content

Commit 627ba3f

Browse files
egeozcanclaude
andcommitted
feat(noteType): surface the type's own configuration
A note type's defining configuration was invisible on its detail page. Add the type's config to the info strip alongside the notes count: Schema (Defined/None from MetaSchema), Sections (Custom/Default from SectionConfig), and a "Custom templates" row listing which Custom* slots are populated (Header/Sidebar/Summary/Avatar/MRQL/CSS). Read-only, derived from the already-loaded note type. Verified for both plain and fully-configured types. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 36a3ec5 commit 627ba3f

1 file changed

Lines changed: 16 additions & 2 deletions

File tree

templates/displayNoteType.tpl

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,28 @@
55
{# Name is shown once via the title-bar h1 (mainEntity/mainEntityType set by the provider), matching displayCategory.tpl #}
66
{% include "/partials/description.tpl" with description=noteType.Description descriptionEntity=noteType descriptionEditUrl="/v1/noteType/editDescription" descriptionEditId=noteType.ID %}
77

8-
{% if notes %}
98
<div class="meta-strip">
9+
{% if notes %}
1010
<div class="meta-strip-item">
1111
<span class="meta-strip-label">Notes</span>
1212
<span class="meta-strip-value">{{ notesTotal }}</span>
1313
</div>
14+
{% endif %}
15+
<div class="meta-strip-item">
16+
<span class="meta-strip-label">Schema</span>
17+
<span class="meta-strip-value">{% if noteType.MetaSchema %}Defined{% else %}None{% endif %}</span>
18+
</div>
19+
<div class="meta-strip-item">
20+
<span class="meta-strip-label">Sections</span>
21+
<span class="meta-strip-value">{% if noteType.SectionConfig %}Custom{% else %}Default{% endif %}</span>
22+
</div>
23+
{% if noteType.CustomHeader or noteType.CustomSidebar or noteType.CustomSummary or noteType.CustomAvatar or noteType.CustomMRQLResult or noteType.CustomCSS %}
24+
<div class="meta-strip-item">
25+
<span class="meta-strip-label">Custom templates</span>
26+
<span class="meta-strip-value">{% if noteType.CustomHeader %}Header {% endif %}{% if noteType.CustomSidebar %}Sidebar {% endif %}{% if noteType.CustomSummary %}Summary {% endif %}{% if noteType.CustomAvatar %}Avatar {% endif %}{% if noteType.CustomMRQLResult %}MRQL {% endif %}{% if noteType.CustomCSS %}CSS{% endif %}</span>
27+
</div>
28+
{% endif %}
1429
</div>
15-
{% endif %}
1630

1731
{% include "/partials/seeAll.tpl" with entities=notes subtitle="Notes" formAction="/notes" formID=noteType.ID formParamName="NoteTypeId" templateName="note" %}
1832

0 commit comments

Comments
 (0)