chore: Add zod/type deps and tighten TimeTracker types

This commit is contained in:
Gregor Vostrak
2026-03-24 17:41:26 +01:00
parent d07294ae7c
commit 797fddf638
2 changed files with 6 additions and 3 deletions

View File

@@ -48,7 +48,10 @@
"author": "solidtime",
"license": "AGPL-3.0",
"devDependencies": {
"vite-plugin-dts": "^4.0.3"
"@types/chroma-js": "^3.1.0",
"@zodios/core": "^10.9.6",
"vite-plugin-dts": "^4.0.3",
"zod": "^3.23.8"
},
"peerDependencies": {
"@floating-ui/vue": "^1.1.4",

View File

@@ -74,10 +74,10 @@ const props = withDefaults(
}
);
const filteredResults = ref([] as ClientsWithProjectsWithTasks);
const filteredResults = ref<ClientsWithProjectsWithTasks>([]);
// computed filterProjects that flattens the first layer of filteredResults and combines all the projects
const filteredProjects = computed(() => {
const filteredProjects = computed<ProjectWithTasks[]>(() => {
return filteredResults.value.map((client) => client.projects).flat();
});