Skip to content

Commit 4a9dd95

Browse files
committed
feat: 'Review and check your Statuses' report now includes sample task lines
1 parent 92410da commit 4a9dd95

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

src/Statuses/StatusRegistryReport.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { StatusSettings } from '../Config/StatusSettings';
22
import { i18n } from '../i18n/i18n';
33
import type { StatusRegistry } from './StatusRegistry';
4-
import { tabulateStatusSettings } from './StatusSettingsReport';
4+
import { sampleTaskLinesForValidStatuses, tabulateStatusSettings } from './StatusSettingsReport';
55

66
export function createStatusRegistryReport(
77
statusSettings: StatusSettings,
@@ -17,6 +17,7 @@ export function createStatusRegistryReport(
1717
const detailed = true;
1818
const settingsTable = tabulateStatusSettings(statusSettings);
1919
const mermaidText = statusRegistry.mermaidDiagram(detailed);
20+
const sampleTasksText = sampleTaskLinesForValidStatuses(statusSettings);
2021
return `# ${buttonName}
2122
2223
## ${i18n.t('reports.statusRegistry.about.title')}
@@ -46,5 +47,12 @@ ${settingsTable}
4647
<!-- ${i18n.t('reports.statusRegistry.loadedSettings.switchToLivePreview')} -->
4748
4849
${i18n.t('reports.statusRegistry.loadedSettings.settingsActuallyUsed')}
49-
${mermaidText}`;
50+
${mermaidText}
51+
52+
## Sample Tasks
53+
54+
Here is one example task line for each of the statuses actually used by tasks, for you to experiment with.
55+
56+
${sampleTasksText.join('\n')}
57+
`;
5058
}

tests/Statuses/StatusRegistryReport.test.StatusRegistryReport_should_create_a_report.approved.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,15 @@ classDef NON_TASK stroke:#99e,stroke-width:3px;
6161
6262
linkStyle default stroke:gray
6363
```
64+
65+
66+
## Sample Tasks
67+
68+
Here is one example task line for each of the statuses actually used by tasks, for you to experiment with.
69+
70+
- [ ] Sample task 1: status symbol=`space` status name='Todo'
71+
- [x] Sample task 2: status symbol=`x` status name='Done'
72+
- [/] Sample task 3: status symbol=`/` status name='In Progress'
73+
- [-] Sample task 4: status symbol=`-` status name='Cancelled'
74+
- [Q] Sample task 5: status symbol=`Q` status name='Question'
75+
- [A] Sample task 6: status symbol=`A` status name='Answer'

0 commit comments

Comments
 (0)