Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
refactor(client): remove the old layout's labels
Elian Doran05e85ab3967e
diff --git a/apps/client/src/translations/en/translation.json b/apps/client/src/translations/en/translation.jsonindex 99e2f89840..d273eff873 100644--- a/apps/client/src/translations/en/translation.json+++ b/apps/client/src/translations/en/translation.json@@ -678,7 +678,6 @@"color_type": "Color","relation_type": "Relation","versioning_limit": "Limits how many revisions this note keeps, overriding the global setting.",- "similar_notes_widget_disabled": "Disables the Similar Notes ribbon tab for this note. Old layout only.","llm_chat_home": "New AI chats are created as children of this note.","workspace_llm_chat_home": "New AI chats are created as children of this note while hoisted to an ancestor of this workspace.","date_pattern": "Pattern for the titles of the day notes generated under this calendar root, e.g. <code>{dateNumberPadded} - {weekDay}</code>.",diff --git a/apps/client/src/widgets/attribute_widgets/attr_help.ts b/apps/client/src/widgets/attribute_widgets/attr_help.tsindex 7cdfeb60b3..f316b28df3 100644--- a/apps/client/src/widgets/attribute_widgets/attr_help.ts+++ b/apps/client/src/widgets/attribute_widgets/attr_help.ts@@ -71,7 +71,6 @@ export const ATTR_HELP: AttrHelpMap = {printScale: t("attribute_detail.print_scale"),printMargins: t("attribute_detail.print_margins"),versioningLimit: t("attribute_detail.versioning_limit"),- similarNotesWidgetDisabled: t("attribute_detail.similar_notes_widget_disabled"),llmChatHome: t("attribute_detail.llm_chat_home"),workspaceLlmChatHome: t("attribute_detail.workspace_llm_chat_home"),datePattern: t("attribute_detail.date_pattern"),diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Advanced Usage/Attributes/Labels.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Advanced Usage/Attributes/Labels.htmlindex 05a5a00de7..59349e1c3e 100644--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Advanced Usage/Attributes/Labels.html+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Advanced Usage/Attributes/Labels.html@@ -256,13 +256,6 @@new note. See <a class="reference-link" href="#root/_help_KC1HB96bqqHX">Templates</a> formore information.</td></tr>- <tr>- <td><code>toc</code>- </td>- <td>Controls the display of the <a class="reference-link" href="#root/_help_BFvAtE74rbP6">Table of contents</a> for- a given note. <code>#toc</code> or <code>#toc=show</code> to always display- the table of contents, <code>#toc=false</code> to always hide it.</td>- </tr><tr><td><code>color</code></td>@@ -306,11 +299,6 @@</td><td>New notes will be created at the top of the parent note, not on the bottom.</td></tr>- <tr>- <td><code>hideHighlightWidget</code>- </td>- <td>Hides the <a class="reference-link" href="#root/_help_AxshuNRegLAv">Highlights list</a> widget</td>- </tr><tr><td><code>hideChildrenOverview</code></td>@@ -411,12 +399,6 @@<td>Overrides the default location where the Web Clipper saves clippings (defaultsto the day note). See <a class="reference-link" href="#root/_help_MtPxeAWVAzMg">Web Clipper</a>.</td></tr>- <tr>- <td><code>similarNotesWidgetDisabled</code>- </td>- <td>Disables the <a class="reference-link" href="#root/_help_xWtq5NUHOwql">Similar Notes</a> ribbon- tab (old layout only)</td>- </tr><tr><td><code>docName</code> , <code>docUrl</code></td>diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/UI Elements/Right Sidebar/Outline tab.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/UI Elements/Right Sidebar/Outline tab.htmlindex a7b76e0e04..ff32883d5d 100644--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/UI Elements/Right Sidebar/Outline tab.html+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/UI Elements/Right Sidebar/Outline tab.html@@ -29,33 +29,6 @@<li>Pressing the close button will dismiss the table of contents but it canbe shown again from the <a class="reference-link" href="#root/_help_XpOYSgsLkTJy">Floating buttons</a> section.</li></ul>-<h3>Configuration</h3>-<aside class="admonition note">- <p>This section is relevant only for the old layout, the <a class="reference-link"- href="#root/_help_IjZS7iK5EXtb">New Layout</a> shows the table of- contents regardless of the number of headings.</p>-</aside>-<ul>- <li>To change the option globally, go to <a class="reference-link" href="#root/_hidden/_options/_optionsTextNotes">Text Notes</a> options,- look for the <em>Table of Contents</em> section and configure the minimum- amount of headings that need to be present in the current note in order- for the table of contents to show:- <ul>- <li>To always hide it, set the value to a really large number (e.g. 10000).</li>- <li>To always display it if there's at least a single heading, set the value- to 1.</li>- </ul>- </li>- <li>Use <a class="reference-link" href="#root/_help_zEY4DaJG4YT5">Attributes</a> to- configure the table of contents for a particular note:- <ul>- <li><code>#toc=show</code> will show the table of contents for that note regardless- of the global settings.</li>- <li>Similarly, <code>#toc=hide</code> will always hide the table of contents- for that note.</li>- </ul>- </li>-</ul><h2>Highlights</h2><figure class="image image-style-align-right image_resized" style="width:46.04%;"><img style="aspect-ratio:489/240;" src="Outline tab_image.png" width="489"@@ -93,9 +66,6 @@and looking for the <em>Highlights List</em> section.</li></ul></li>- <li>For the old layout only, to suppress the display of highlighted text for- one specific note, use <a class="reference-link" href="#root/_help_zEY4DaJG4YT5">Attributes</a> to- add the <code>#hideHighlightWidget</code> label.</li></ul><h2>PDF-specific outline</h2><p>When <a class="reference-link" href="#root/_help_XJGJrpu7F9sh">PDFs</a> arediff --git a/docs/User Guide/User Guide/Advanced Usage/Attributes/Labels.md b/docs/User Guide/User Guide/Advanced Usage/Attributes/Labels.mdindex 84e28ecc8f..b9f5966c9c 100644--- a/docs/User Guide/User Guide/Advanced Usage/Attributes/Labels.md+++ b/docs/User Guide/User Guide/Advanced Usage/Attributes/Labels.md@@ -72,7 +72,6 @@ This is a list of labels that Trilium natively supports.| `displayRelations`, `hideRelations` | Comma delimited names of relations which should be displayed/hidden in a <a class="reference-link" href="../../Note%20Types/Relation%20Map.md">Relation Map</a> (both the note type and the <a class="reference-link" href="../Note%20Map%20(Link%20map%2C%20Tree%20map).md">Note Map (Link map, Tree map)</a> general functionality). || `titleTemplate` | Default title of notes created as children of this note. This value is evaluated as a JavaScript string and thus can be enriched with dynamic content via the injected `now` and `parentNote` variables. <br> <br>See <a class="reference-link" href="../Default%20Note%20Title.md">Default Note Title</a> for more info. || `template` | This note will appear in the selection of available template when creating new note. See <a class="reference-link" href="../Templates.md">Templates</a> for more information. |-| `toc` | Controls the display of the <a class="reference-link" href="../../Note%20Types/Text/Table%20of%20contents.md">Table of contents</a> for a given note. `#toc` or `#toc=show` to always display the table of contents, `#toc=false` to always hide it. || `color` | defines color of the note in note tree, links etc. Use any valid CSS color value like 'red' or #a13d5f <br>Note: this color may be automatically adjusted when displayed to ensure sufficient contrast with the background. || `keyboardShortcut` | Defines a keyboard shortcut which will immediately jump to this note. Example: 'ctrl+alt+e'. Requires frontend reload for the change to take effect. || `keepCurrentHoisting` | Opening this link won't change hoisting even if the note is not displayable in the current hoisted subtree. |@@ -80,7 +79,6 @@ This is a list of labels that Trilium natively supports.| `executeDescription` | Longer description of the current code note displayed together with the execute button || `excludeFromNoteMap` | Notes with this label will be hidden from the <a class="reference-link" href="../../Note%20Types/Note%20Map.md">Note Map</a>. || `newNotesOnTop` | New notes will be created at the top of the parent note, not on the bottom. |-| `hideHighlightWidget` | Hides the <a class="reference-link" href="../../Note%20Types/Text/Highlights%20list.md">Highlights list</a> widget || `hideChildrenOverview` | Hides the <a class="reference-link" href="../../Basic%20Concepts%20and%20Features/Notes/Note%20List.md">Note List</a> for that particular note. || `subtreeHidden` | Hides all child notes of this note from the tree, displaying a badge with the count of hidden children. Children remain accessible via search or direct links. || `printLandscape` | When exporting to PDF, changes the orientation of the page to landscape instead of portrait. |@@ -98,6 +96,5 @@ This is a list of labels that Trilium natively supports.| `fullContentWidth` | Expands the note to the full editor width, ignoring the configured content width (useful for wide tables). See <a class="reference-link" href="../../Basic%20Concepts%20and%20Features/UI%20Elements/Content%20width.md">Content width</a>. || `iconPack` | Identifies a custom icon pack by its prefix. See <a class="reference-link" href="../../Theme%20development/Creating%20an%20icon%20pack.md">Creating an icon pack</a>. || `clipperInbox` | Overrides the default location where the Web Clipper saves clippings (defaults to the day note). See <a class="reference-link" href="../../Installation%20%26%20Setup/Web%20Clipper.md">Web Clipper</a>. |-| `similarNotesWidgetDisabled` | Disables the <a class="reference-link" href="../../Basic%20Concepts%20and%20Features/Navigation/Similar%20Notes.md">Similar Notes</a> ribbon tab (old layout only) || `docName` , `docUrl` | Used internally for the in-app help. || `aiQuickAction` | Defines a custom prompt to be used for the <a class="reference-link" href="../../Note%20Types/Text/In-editor%20AI%20assistant.md">In-editor AI assistant</a>'s quick actions. |\ No newline at end of filediff --git a/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Right Sidebar/Outline tab.md b/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Right Sidebar/Outline tab.mdindex d2e8116271..44e51f756e 100644--- a/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Right Sidebar/Outline tab.md+++ b/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Right Sidebar/Outline tab.md@@ -21,18 +21,6 @@ The following note types are supported:* As the document is scrolled, the heading being read is highlighted and the list scrolls to keep it in view. If that heading is hidden inside a collapsed section, the collapsed heading is highlighted instead.* Pressing the close button will dismiss the table of contents but it can be shown again from the <a class="reference-link" href="../Floating%20buttons.md">Floating buttons</a> section.-### Configuration--> [!NOTE]-> This section is relevant only for the old layout, the <a class="reference-link" href="../New%20Layout.md">New Layout</a> shows the table of contents regardless of the number of headings.--* To change the option globally, go to <a class="reference-link" href="#root/_hidden/_options/_optionsTextNotes">Text Notes</a> options, look for the _Table of Contents_ section and configure the minimum amount of headings that need to be present in the current note in order for the table of contents to show:- * To always hide it, set the value to a really large number (e.g. 10000).- * To always display it if there's at least a single heading, set the value to 1.-* Use <a class="reference-link" href="../../../Advanced%20Usage/Attributes.md">Attributes</a> to configure the table of contents for a particular note:- * `#toc=show` will show the table of contents for that note regardless of the global settings.- * Similarly, `#toc=hide` will always hide the table of contents for that note.-## Highlights<figure class="image image-style-align-right image_resized" style="width:46.04%;"><img style="aspect-ratio:489/240;" src="Outline tab_image.png" width="489" height="240"></figure>@@ -59,7 +47,6 @@ Highlighted text is defined as:* Globally, it's possible to toggle the display of each category of highlighted text (as defined above)* For the new layout, pressing the gear button in the top-right part of the section will reveal a menu to toggle between the highlight categories.* Alternatively, they can be changed by going to <a class="reference-link" href="#root/_hidden/_options/_optionsTextNotes">Text Notes</a> settings and looking for the _Highlights List_ section.-* For the old layout only, to suppress the display of highlighted text for one specific note, use <a class="reference-link" href="../../../Advanced%20Usage/Attributes.md">Attributes</a> to add the `#hideHighlightWidget` label.## PDF-specific outlinediff --git a/packages/commons/src/lib/builtin_attributes.ts b/packages/commons/src/lib/builtin_attributes.tsindex ce28afccd3..1ebdbd0cd7 100644--- a/packages/commons/src/lib/builtin_attributes.ts+++ b/packages/commons/src/lib/builtin_attributes.ts@@ -103,7 +103,6 @@ const BUILTIN_ATTRIBUTES = [{ type: "label", name: "customRequestHandler", valueType: "text", isDangerous: true },{ type: "label", name: "customResourceProvider", valueType: "text", isDangerous: true },{ type: "label", name: "widget", valueType: "boolean", isDangerous: true },- { type: "label", name: "similarNotesWidgetDisabled", valueType: "boolean" },{ type: "label", name: "workspace", valueType: "boolean" },{ type: "label", name: "workspaceIconClass", valueType: "text" },{ type: "label", name: "workspaceTabBackgroundColor", valueType: "color" },