Skip to content

Commit 9be6bf7

Browse files
committed
feat(timer): add timer statistics panel and Working On view
- Add TimerStatisticsPanel component for displaying active and completed timers - Implement completed timer history with configurable max records - Add timer controls (start/pause/resume/stop) to task list and tree views - Integrate timer auto-start option in quick capture settings - Add Working On navigation item for viewing active timers - Refactor timer manager with unified storage abstraction - Add i18n translations for timer features (en/zh-cn) - Add timer statistics CSS styles
1 parent 14ca05a commit 9be6bf7

File tree

21 files changed

+3138
-623
lines changed

21 files changed

+3138
-623
lines changed

packages/calendar

src/common/setting-definition.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,8 @@ export interface QuickCaptureSettings {
428428
templateFile: string; // Template file path
429429
writeContentTagsToFrontmatter?: boolean; // When true, write #tags from content into frontmatter.tags (merged, deduped)
430430
};
431+
// Timer integration settings
432+
autoStartTimer?: boolean; // Whether to auto-start timer when creating task (default false)
431433
}
432434

433435
/** Define the structure for task gutter settings */
@@ -1192,6 +1194,8 @@ export const DEFAULT_SETTINGS: TaskProgressBarSettings = {
11921194
templateFile: "",
11931195
writeContentTagsToFrontmatter: false,
11941196
},
1197+
// Timer integration
1198+
autoStartTimer: false,
11951199
},
11961200

11971201
// Workflow Defaults
@@ -1370,6 +1374,16 @@ export const DEFAULT_SETTINGS: TaskProgressBarSettings = {
13701374
filterRules: {},
13711375
filterBlanks: false,
13721376
},
1377+
{
1378+
id: "working-on",
1379+
name: t("Working On"),
1380+
icon: "timer",
1381+
type: "default",
1382+
visible: true,
1383+
hideCompletedAndAbandonedTasks: true,
1384+
filterRules: {},
1385+
filterBlanks: false,
1386+
},
13731387
{
13741388
id: "forecast",
13751389
name: t("Forecast"),

0 commit comments

Comments
 (0)