diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/1_Kanban Board_image.png b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/1_Kanban Board_image.png new file mode 100644 index 000000000..be4b027d2 Binary files /dev/null and b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/1_Kanban Board_image.png differ 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.html index e4a92ba49..86dc4e408 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 @@ -1,5 +1,5 @@
-

The Board view presents sub-notes in columns for a Kanban-like experience. @@ -15,83 +15,115 @@

Interaction

Working with columns

Working with notes

-

Keyboard interaction

+

Keyboard interaction

The board view has mild support for keyboard-based navigation:

Configuration

-

Grouping by another attribute

+

Grouping by another label

By default, the label used to group the notes is #status. It is possible to use a different label if needed by defining a label named #board:groupBy with - the value being the attribute to use (without # attribute prefix).

- -

Limitations

- \ No newline at end of file + the value being the attribute to use (with or without # attribute + prefix).

+

Grouping by relations

+
+ +
+

A more advanced use-case is grouping by Relations.

+

During this mode:

+ +

Using relations instead of labels has some benefits:

+ +

To do so:

+
    +
  1. First, create a Kanban board from scratch and not a template:
  2. +
  3. Assign #viewType=board #hidePromotedAttributes to emulate the + default template.
  4. +
  5. Set #board:groupBy to the name of a relation to group by, including the ~ prefix (e.g. ~status).
  6. +
  7. +

    Optionally, use Promoted Attributes for + easy status change within the note:

    #relation:status(inheritable)="promoted,alias=Status,single"
    +
  8. +
\ No newline at end of file diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/Kanban Board_image.png b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/Kanban Board_image.png index be4b027d2..1ccb0a3cc 100644 Binary files a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/Kanban Board_image.png and b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Collections/Kanban Board_image.png differ diff --git a/docs/Developer Guide/!!!meta.json b/docs/Developer Guide/!!!meta.json index 5d95a894c..cdf47264f 100644 --- a/docs/Developer Guide/!!!meta.json +++ b/docs/Developer Guide/!!!meta.json @@ -1,6 +1,6 @@ { "formatVersion": 2, - "appVersion": "0.99.4", + "appVersion": "0.99.5", "files": [ { "isClone": false, @@ -110,6 +110,13 @@ "type": "text", "mime": "text/html", "attributes": [ + { + "type": "relation", + "name": "internalLink", + "value": "4nwtTJyjNDKd", + "isInheritable": false, + "position": 10 + }, { "type": "label", "name": "iconClass", @@ -117,13 +124,6 @@ "isInheritable": false, "position": 20 }, - { - "type": "relation", - "name": "internalLink", - "value": "4nwtTJyjNDKd", - "isInheritable": false, - "position": 30 - }, { "type": "label", "name": "shareAlias", @@ -1263,10 +1263,17 @@ { "type": "relation", "name": "internalLink", - "value": "zdQzavvHDl1k", + "value": "ccIoz7nqgDRK", "isInheritable": false, "position": 10 }, + { + "type": "relation", + "name": "internalLink", + "value": "zdQzavvHDl1k", + "isInheritable": false, + "position": 20 + }, { "type": "label", "name": "iconClass", @@ -1280,13 +1287,6 @@ "value": "releasing", "isInheritable": false, "position": 40 - }, - { - "type": "relation", - "name": "internalLink", - "value": "ccIoz7nqgDRK", - "isInheritable": false, - "position": 50 } ], "format": "markdown", diff --git a/docs/Developer Guide/Developer Guide/Documentation.md b/docs/Developer Guide/Developer Guide/Documentation.md index 63cfdc33e..5f9f17e5f 100644 --- a/docs/Developer Guide/Developer Guide/Documentation.md +++ b/docs/Developer Guide/Developer Guide/Documentation.md @@ -1,5 +1,5 @@ # Documentation -There are multiple types of documentation for Trilium: +There are multiple types of documentation for Trilium: * The _User Guide_ represents the user-facing documentation. This documentation can be browsed by users directly from within Trilium, by pressing F1. * The _Developer's Guide_ represents a set of Markdown documents that present the internals of Trilium, for developers. diff --git a/docs/Release Notes/!!!meta.json b/docs/Release Notes/!!!meta.json index c2c0b02ba..a2210f04e 100644 --- a/docs/Release Notes/!!!meta.json +++ b/docs/Release Notes/!!!meta.json @@ -1,6 +1,6 @@ { "formatVersion": 2, - "appVersion": "0.99.4", + "appVersion": "0.99.5", "files": [ { "isClone": false, diff --git a/docs/User Guide/!!!meta.json b/docs/User Guide/!!!meta.json index bb262ac18..de161c37d 100644 --- a/docs/User Guide/!!!meta.json +++ b/docs/User Guide/!!!meta.json @@ -1,6 +1,6 @@ { "formatVersion": 2, - "appVersion": "0.99.4", + "appVersion": "0.99.5", "files": [ { "isClone": false, @@ -9884,18 +9884,47 @@ "value": "kanban-board", "isInheritable": false, "position": 20 + }, + { + "type": "relation", + "name": "internalLink", + "value": "Cq5X6iKQop6R", + "isInheritable": false, + "position": 30 + }, + { + "type": "relation", + "name": "internalLink", + "value": "OFXdgB2nNk1F", + "isInheritable": false, + "position": 40 + }, + { + "type": "relation", + "name": "internalLink", + "value": "bdUJEHsAPYQR", + "isInheritable": false, + "position": 50 } ], "format": "markdown", "dataFileName": "Kanban Board.md", "attachments": [ { - "attachmentId": "usSSa0WI6dDK", + "attachmentId": "IrIeh59VGjHq", "title": "image.png", "role": "image", "mime": "image/png", "position": 10, "dataFileName": "Kanban Board_image.png" + }, + { + "attachmentId": "usSSa0WI6dDK", + "title": "image.png", + "role": "image", + "mime": "image/png", + "position": 10, + "dataFileName": "1_Kanban Board_image.png" } ] }, diff --git a/docs/User Guide/User Guide/Collections/1_Kanban Board_image.png b/docs/User Guide/User Guide/Collections/1_Kanban Board_image.png new file mode 100644 index 000000000..be4b027d2 Binary files /dev/null and b/docs/User Guide/User Guide/Collections/1_Kanban Board_image.png differ diff --git a/docs/User Guide/User Guide/Collections/Kanban Board.md b/docs/User Guide/User Guide/Collections/Kanban Board.md index e4efcdc26..c9b022537 100644 --- a/docs/User Guide/User Guide/Collections/Kanban Board.md +++ b/docs/User Guide/User Guide/Collections/Kanban Board.md @@ -1,5 +1,5 @@ # Kanban Board -
+
The Board view presents sub-notes in columns for a Kanban-like experience. Each column represents a possible value for a status label, which can be adjusted. @@ -41,7 +41,7 @@ Notes are displayed recursively, so even the child notes of the child notes will * Delete the current note. * If there are many notes within the column, move the mouse over the column and use the mouse wheel to scroll. -## Keyboard interaction +### Keyboard interaction The board view has mild support for keyboard-based navigation: @@ -52,13 +52,37 @@ The board view has mild support for keyboard-based navigation: ## Configuration -### Grouping by another attribute +### Grouping by another label -By default, the label used to group the notes is `#status`. It is possible to use a different label if needed by defining a label named `#board:groupBy` with the value being the attribute to use (without `#` attribute prefix). +By default, the label used to group the notes is `#status`. It is possible to use a different label if needed by defining a label named `#board:groupBy` with the value being the attribute to use (with or without `#` attribute prefix). -> [!NOTE] -> It's currently not possible to set a relation as the grouping criteria. There are plans to add support for it. +### Grouping by relations -## Limitations +
-* It is not possible yet to use group by a relation, only by label. \ No newline at end of file +A more advanced use-case is grouping by [Relations](../Advanced%20Usage/Attributes/Relations.md). + +During this mode: + +* The columns represent the _target notes_ of a relation. +* When creating a new column, a note is selected instead of a column name. +* The column icon will match the target note. +* Moving notes between columns will change its relation. +* Renaming an existing column will change the target note of all the notes in that column. + +Using relations instead of labels has some benefits: + +* The status/grouping of the notes is visible outside the Kanban board, for example on the Note Map. +* Columns can have icons. +* Renaming columns is less intensive since it simply involves changing the note title of the target note instead of having to do a bulk rename. + +To do so: + +1. First, create a Kanban board from scratch and not a template: +2. Assign `#viewType=board #hidePromotedAttributes` to emulate the default template. +3. Set `#board:groupBy` to the name of a relation to group by, **including the** `**~**` **prefix** (e.g. `~status`). +4. Optionally, use Promoted Attributes for easy status change within the note: + + ``` + #relation:status(inheritable)="promoted,alias=Status,single" + ``` \ No newline at end of file diff --git a/docs/User Guide/User Guide/Collections/Kanban Board_image.png b/docs/User Guide/User Guide/Collections/Kanban Board_image.png index be4b027d2..1ccb0a3cc 100644 Binary files a/docs/User Guide/User Guide/Collections/Kanban Board_image.png and b/docs/User Guide/User Guide/Collections/Kanban Board_image.png differ