From 93ab4dd1e8e625b88f1b54aa21efe03550bb799c Mon Sep 17 00:00:00 2001 From: chrabia Date: Mon, 29 May 2023 14:29:58 +0200 Subject: [PATCH] feat: Add new priorities: highest and lowest (#1943) * feat: added new priorities: highest and lowest * fixed suggestor unit tests * review changes: fixed priority numbers, changed highest icon * fixed highest priority emoji to a star in a box * fixed edit task modal styling * fixed highest priority emoji to final one * added documentation * review changes: fixed css snippet * review changes: fixed | symbol disappearing in quick reference docs * review changes: fixed edit task view --- docs/Advanced/Quickadd.md | 2 +- docs/Advanced/Styling.md | 22 +++++++- docs/Advanced/Urgency.md | 10 +++- docs/Getting Started/Auto-Suggest.md | 2 + docs/Getting Started/Priority.md | 12 +++-- docs/Queries/Filters.md | 12 +++-- docs/Queries/Grouping.md | 2 + docs/Quick Reference.md | 2 +- .../Reference/Task Formats/Dataview Format.md | 2 + .../Task Formats/Tasks Emoji Format.md | 2 + ...asks-plugin-priority-as-checkbox-color.css | 11 +++- src/Query/Filter/PriorityField.ts | 15 +++++- src/Suggestor/Suggestor.ts | 8 +++ src/Task.ts | 2 + src/TaskLineRenderer.ts | 4 +- src/TaskSerializer/DataviewTaskSerializer.ts | 8 ++- src/TaskSerializer/DefaultTaskSerializer.ts | 16 +++++- src/Urgency.ts | 9 ++++ src/ui/EditTask.svelte | 52 +++++++++++++++---- styles.css | 13 +++-- tests/Query/Filter/PriorityField.test.ts | 39 ++++++++++++++ tests/Query/Urgency.test.ts | 3 ++ ...ymbols_show_all_suggested_text.approved.md | 2 + ...ymbols_show_all_suggested_text.approved.md | 2 + tests/Suggestor/Suggestor.test.ts | 2 +- .../DataviewTaskSerializer.test.ts | 6 +-- .../DefaultTaskSerializer.test.ts | 6 +-- tests/TaskSerializer/TaskSerializer.test.ts | 4 +- 28 files changed, 226 insertions(+), 44 deletions(-) diff --git a/docs/Advanced/Quickadd.md b/docs/Advanced/Quickadd.md index dafa0c55e0..fa01bb5fc0 100644 --- a/docs/Advanced/Quickadd.md +++ b/docs/Advanced/Quickadd.md @@ -31,7 +31,7 @@ Task with due date only: Task with priority and reminder date and due date: -`#task {{VALUE:task name}} ⏰ {{VDATE:reminder date and time,YYYY-MM-DD HH:mm}} {{VALUE:⏫,πŸ”Ό,πŸ”½, }} πŸ“… {{VDATE:due date,YYYY-MM-DD}}` +`#task {{VALUE:task name}} ⏰ {{VDATE:reminder date and time,YYYY-MM-DD HH:mm}} {{VALUE:πŸ”Ί,⏫,πŸ”Ό,πŸ”½,⏬️, }} πŸ“… {{VDATE:due date,YYYY-MM-DD}}`