diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 4bbc33e..335b07c 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,34 +4,8 @@
-
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -49,6 +23,8 @@
+
+
@@ -56,61 +32,61 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{
@@ -122,29 +98,32 @@
- {
+ "keyToString": {
+ "ModuleVcsDetector.initialDetectionPerformed": "true",
+ "RunOnceActivity.MCP Project settings loaded": "true",
+ "RunOnceActivity.ShowReadmeOnStart": "true",
+ "RunOnceActivity.git.unshallow": "true",
+ "RunOnceActivity.typescript.service.memoryLimit.init": "true",
+ "codeWithMe.voiceChat.enabledByDefault": "false",
+ "com.intellij.ml.llm.matterhorn.ej.ui.settings.DefaultModelSelectionForGA.v1": "true",
+ "git-widget-placeholder": "main",
+ "javascript.preferred.runtime.type.id": "node",
+ "junie.onboarding.icon.badge.shown": "true",
+ "last_opened_file_path": "C:/Users/t.landgraf/GitProjects/work_tracker",
+ "node.js.detected.package.eslint": "true",
+ "node.js.detected.package.jshint": "true",
+ "node.js.detected.package.tslint": "true",
+ "node.js.selected.package.eslint": "(autodetect)",
+ "node.js.selected.package.jshint": "",
+ "node.js.selected.package.tslint": "(autodetect)",
+ "nodejs_package_manager_path": "npm",
+ "npm.dev.executor": "Run",
+ "settings.editor.selected.configurable": "preferences.keymap",
+ "to.speed.mode.migration.done": "true",
+ "ts.external.directory.path": "C:\\Users\\t.landgraf\\AppData\\Local\\Programs\\WebStorm\\plugins\\javascript-plugin\\jsLanguageServicesImpl\\external"
}
-}]]>
+}
@@ -193,7 +172,47 @@
1786644785673
-
+
+
+ 1786687449139
+
+
+
+ 1786687449139
+
+
+
+ 1786688009978
+
+
+
+ 1786688009978
+
+
+
+ 1786689731776
+
+
+
+ 1786689731776
+
+
+
+ 1786706765942
+
+
+
+ 1786706765942
+
+
+
+ 1788174564242
+
+
+
+ 1788174564242
+
+
@@ -201,6 +220,12 @@
-
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/App.tsx b/src/App.tsx
index d5e2cda..b8cb66f 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -53,7 +53,9 @@ const fromMinutes = (mins: number): string => {
};
function App() {
- const [selectedDay, setSelectedDay] = React.useState('Montag');
+ const todayIndex = new Date().getDay(); // 0=Sun,1=Mon,...,5=Fri
+ const defaultDay: Workday = todayIndex >= 1 && todayIndex <= 5 ? WEEKDAYS[todayIndex - 1] : 'Montag';
+ const [selectedDay, setSelectedDay] = React.useState(defaultDay);
const [records, setRecords] = React.useState(loadRecords);
const [carryoverMinutes, setCarryoverMinutes] = React.useState(loadCarryover);