Add commands for manual timesheets and notes

- Manuelles Timesheet: create a timesheet with date, begin, end, break,
  activity (search, favorites/recent first), description and tags
- Notiz hinzufügen: append notes to a running activity without stopping
- Extract the activity choice dropdown shared with Tätigkeit starten

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Jannik MeierandClaude Opus 5.5 committed 2026-11-05 15:00:16 +01:00
1 parent 358fe5b9c6
commit 9fe73950fd
11 files changed
+518 -39

No files matched your search

+18 -1
View File
@@ -72,8 +72,25 @@ export default function MenuBar() {
title={`${ts.activity.name} ${formatDuration(elapsedSeconds(ts, now))}`}
>
<MenuBarExtra.Item title={timesheetSubtitle(ts)} subtitle={`seit ${formatTime(ts.begin)}`} />
{ts.description ? <MenuBarExtra.Item title={truncate(ts.description, 60)} icon={Icon.Text} /> : null}
{(ts.description ?? "")
.split("\n")
.filter((line) => line.trim())
.slice(-8)
.map((line, i) => (
<MenuBarExtra.Item key={i} title={truncate(line.trim(), 60)} icon={Icon.Text} />
))}
<MenuBarExtra.Separator />
<MenuBarExtra.Item
title="Notiz hinzufügen…"
icon={Icon.Pencil}
onAction={() =>
launchCommand({
name: "add-note",
type: LaunchType.UserInitiated,
context: { timesheetId: ts.id },
})
}
/>
<MenuBarExtra.Item
title="Stoppen…"
icon={Icon.Stop}