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
feat(attributes): rename "Boolean" label type to "Checkbox" (closes #11738)
Elian Doranec7a896fe132
diff --git a/apps/client/src/translations/en/translation.json b/apps/client/src/translations/en/translation.jsonindex e8e97c0192..942fac232f 100644--- a/apps/client/src/translations/en/translation.json+++ b/apps/client/src/translations/en/translation.json@@ -542,7 +542,7 @@"text": "Text","textarea": "Multi-line Text","number": "Number",- "boolean": "Boolean",+ "boolean": "Checkbox","date": "Date","date_time": "Date & Time","time": "Time",diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Advanced Usage/Attributes/Promoted Attributes.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Advanced Usage/Attributes/Promoted Attributes.htmlindex c6c6ab71c0..c9c6d71c8e 100644--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Advanced Usage/Attributes/Promoted Attributes.html+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Advanced Usage/Attributes/Promoted Attributes.html@@ -41,7 +41,8 @@by and is displayed with.</li></ul></li>- <li><em>Boolean</em>, which renders as a checkbox for a true/false value.</li>+ <li><em>Checkbox</em>, which renders as a checkbox for a true/false value.+ In the label definition, this type is written as <code>boolean</code>.</li><li><em>Select,</em> which provides a list of user-defined options when editing.<ul><li>The list is not fixed, meaning that new options can be easily added fromdiff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/UI Elements/Right Sidebar/Attributes tab.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/UI Elements/Right Sidebar/Attributes tab.htmlindex 18912f1479..5e077083e0 100644--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/UI Elements/Right Sidebar/Attributes tab.html+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/UI Elements/Right Sidebar/Attributes tab.html@@ -47,7 +47,7 @@a newline.</li></ul></li>- <li>For boolean values, clicking on the checkbox will toggle its state.</li>+ <li>For checkbox attributes, clicking on the checkbox will toggle its state.</li><li>For labels without a value, a value can be added by clicking on the <em>No value</em> textwhich appears while the mouse is hovered on the item.</li><li>For relations, there is a dedicated pencil button instead.</li>diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/Kanban Board.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/Kanban Board.htmlindex 0b29ef8361..2793192d81 100644--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/Kanban Board.html+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/Kanban Board.html@@ -158,7 +158,7 @@<td>earliest hour (closest to 0) → latest hour (closest to 24)</td></tr><tr>- <td>Boolean</td>+ <td>Checkbox</td><td>unchecked → checked</td></tr><tr>@@ -491,7 +491,7 @@ class="admonition warning">class="tn-icon bx bx-plus"></span> <strong>Create a new attribute</strong> button.</li><li>Enter a name for the attribute. This is the internal name used by Trilium,so do not use spaces or special characters.</li>- <li>Select a type (text, number, boolean, and so on).</li>+ <li>Select a type (text, number, checkbox, and so on).</li><li>Set the display name. This is the name shown on the card.</li><li>Press <strong>Save & close</strong>.</li></ol>@@ -525,7 +525,7 @@ class="admonition warning"></tr><tr><td>done</td>- <td>Boolean</td>+ <td>Checkbox</td><td>Done</td></tr></tbody>@@ -534,7 +534,7 @@ class="admonition warning"><h4>Modifying the values of custom attributes</h4><p>To set the value of a custom attribute, click or tap the card, and thenenter or select the desired value in the dialog header.</p>-<p>For attributes of the “select” or “boolean” type, you can quickly change+<p>For attributes of the “select” or “checkbox” type, you can quickly changethe value by using the card's context menu under the <strong>Attributes</strong> section.</p><h4>Reordering, hiding, redefining, and deleting custom attributes</h4><p>Go to <strong>Note menu</strong> → <strong>Board properties</strong>. Underdiff --git a/docs/User Guide/User Guide/Advanced Usage/Attributes/Promoted Attributes.md b/docs/User Guide/User Guide/Advanced Usage/Attributes/Promoted Attributes.mdindex 6e3d9d1bb0..2c4a5f6114 100644--- a/docs/User Guide/User Guide/Advanced Usage/Attributes/Promoted Attributes.md+++ b/docs/User Guide/User Guide/Advanced Usage/Attributes/Promoted Attributes.md@@ -31,7 +31,7 @@ The following types are supported:* _Multi-line text_, similar to a normal text field, but rendered in a bigger text box that also supports writing on multiple lines.* _Number_, will display as a number input field with up/down arrows.* Optionally a _precision_ which sets how many decimals the value steps by and is displayed with.-* _Boolean_, which renders as a checkbox for a true/false value.+* _Checkbox_, which renders as a checkbox for a true/false value. In the label definition, this type is written as `boolean`.* _Select,_ which provides a list of user-defined options when editing.* The list is not fixed, meaning that new options can be easily added from the promoted attribute.* Renaming an option does not change the existing values since the value is stored as text. Consider a [bulk rename](../Bulk%20Actions.md).diff --git a/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Right Sidebar/Attributes tab.md b/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Right Sidebar/Attributes tab.mdindex cd853e2103..88d66e5ac4 100644--- a/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Right Sidebar/Attributes tab.md+++ b/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Right Sidebar/Attributes tab.md@@ -30,7 +30,7 @@ Interaction:* For labels, clicking on the value edits its in-place.* Press <kbd>Enter</kbd> to confirm or click outside the input box, or <kbd>Esc</kbd> to dismiss.* For multi-line text, <kbd>Ctrl</kbd>+<kbd>Enter</kbd> confirms whereas <kbd>Enter</kbd> creates a newline.- * For boolean values, clicking on the checkbox will toggle its state.+ * For checkbox attributes, clicking on the checkbox will toggle its state.* For labels without a value, a value can be added by clicking on the _No value_ text which appears while the mouse is hovered on the item.* For relations, there is a dedicated pencil button instead.* An attribute can be deleted by pressing the X button to its right, which only appears while hovered. A confirmation screen is displayed first to ensure the attribute is not accidentally deleted.diff --git a/docs/User Guide/User Guide/Collections/Kanban Board.md b/docs/User Guide/User Guide/Collections/Kanban Board.mdindex 11983669be..6519cb1c9f 100644--- a/docs/User Guide/User Guide/Collections/Kanban Board.md+++ b/docs/User Guide/User Guide/Collections/Kanban Board.md@@ -102,7 +102,7 @@ When cards are sorted by an attribute, they are ordered according to the followi| Number | lowest → greatest || Date, Date & time | oldest → newest || Time | earliest hour (closest to 0) → latest hour (closest to 24) |-| Boolean | unchecked → checked |+| Checkbox | unchecked → checked || Select | The order in which the options are declared. <br>For example, a select attribute declared with “Low”, “Medium”, and “High” options will be sorted as follows: Low → Medium → High. || Color | Grays → colors. Colors are ordered by their color-wheel [hue](https://en.wikipedia.org/wiki/Hue) angle (from 0° to 360°). |@@ -310,7 +310,7 @@ To create a new attribute, follow these steps:1. Go to **Note menu** → **Board properties**, find the **Card attributes** section, and then press the <span class="tn-icon bx bx-plus"></span> **Create a new attribute** button.2. Enter a name for the attribute. This is the internal name used by Trilium, so do not use spaces or special characters.-3. Select a type (text, number, boolean, and so on).+3. Select a type (text, number, checkbox, and so on).4. Set the display name. This is the name shown on the card.5. Press **Save & close**.@@ -323,13 +323,13 @@ Here is an example of the attributes you can define for a typical Kanban board u| --- | --- | --- || dueDate | Date & Time | Due date || priority | Select (options: Low, Medium, High, Urgent) | Priority |-| done | Boolean | Done |+| done | Checkbox | Done |#### Modifying the values of custom attributesTo set the value of a custom attribute, click or tap the card, and then enter or select the desired value in the dialog header.-For attributes of the “select” or “boolean” type, you can quickly change the value by using the card's context menu under the **Attributes** section.+For attributes of the “select” or “checkbox” type, you can quickly change the value by using the card's context menu under the **Attributes** section.#### Reordering, hiding, redefining, and deleting custom attributes