From 7651e9777b1f2629b2142d47eabb3edb08e56a65 Mon Sep 17 00:00:00 2001 From: "Dennis (via Claude+Gemma)" Date: Sat, 23 May 2026 08:23:47 +0200 Subject: [PATCH] feat(screen-recording-attach-stub): 'Screen-Recording aufnehmen' Stub-Button (kein echtes record [tsc:fail] --- .phase22-state.json | 5 +- GENERATION_LOG.md | 17 ++ apps/web/src/pages/TimeEntries.tsx | 442 ++++++++++++++--------------- 3 files changed, 241 insertions(+), 223 deletions(-) diff --git a/.phase22-state.json b/.phase22-state.json index bcb6155..959b127 100644 --- a/.phase22-state.json +++ b/.phase22-state.json @@ -1,10 +1,11 @@ { "completed_features": [], - "current_feature": "ui-polish", + "current_feature": "screen-recording-attach-stub", "started_at": "2026-05-23T08:17:40.778724", "attempted_features": [ "voice-input-stub", "popout-tracker", - "project-favicons" + "project-favicons", + "ui-polish" ] } \ No newline at end of file diff --git a/GENERATION_LOG.md b/GENERATION_LOG.md index ca0a904..133e35e 100644 --- a/GENERATION_LOG.md +++ b/GENERATION_LOG.md @@ -2663,3 +2663,20 @@ src/index.ts(27,25): error TS2769: No overload matches this call. Overload 2 of 3, '(plugin: FastifyPluginAsync<{ limits: { fileSize: number; }; }, RawServerDefault, FastifyTypeProvider, FastifyBaseLogger>, opts?: FastifyRegisterOptions<...> | undefined): FastifyInstance<...> & PromiseLike<...>', gave the following error. Argument of type 'Promise' is not assignable to parameter of type 'FastifyPluginAsync<{ limits: { fileSize: number; }; }, RawServerDefault, FastifyTypeProvider, FastifyBaseLogger>'. Type 'Promise' provides no match for the signature '(instance: FastifyInstance, FastifyBaseLogger, FastifyTy +- `08:21:45` **INFO** Committed feature ui-polish +- `08:21:46` **INFO** Pushed: rc=0 + +## Phase-3 Feature: screen-recording-attach-stub (2026-05-23 08:21:46) + +- `08:21:46` **INFO** Description: 'Screen-Recording aufnehmen' Stub-Button (kein echtes recording) +- `08:21:46` **INFO** Generating apps/web/src/pages/TimeEntries.tsx (ERWEITERT — füge im Create-Form 'Screen-Recording'-Button (Camera-Icon…) +- `08:23:45` **INFO** wrote 16225 chars in 119.2s (attempt 1) +- `08:23:45` **INFO** Running tsc --noEmit on api… +- `08:23:47` **WARN** tsc errors: +src/index.ts(27,25): error TS2769: No overload matches this call. + Overload 1 of 3, '(plugin: FastifyPluginCallback<{ limits: { fileSize: number; }; }, RawServerDefault, FastifyTypeProvider, FastifyBaseLogger>, opts?: FastifyRegisterOptions<...> | undefined): FastifyInstance<...> & PromiseLike<...>', gave the following error. + Argument of type 'Promise' is not assignable to parameter of type 'FastifyPluginCallback<{ limits: { fileSize: number; }; }, RawServerDefault, FastifyTypeProvider, FastifyBaseLogger>'. + Type 'Promise' provides no match for the signature '(instance: FastifyInstance, FastifyBaseLogger, FastifyTypeProvider>, opts: { ...; }, done: (err?: Error | undefined) => void): void'. + Overload 2 of 3, '(plugin: FastifyPluginAsync<{ limits: { fileSize: number; }; }, RawServerDefault, FastifyTypeProvider, FastifyBaseLogger>, opts?: FastifyRegisterOptions<...> | undefined): FastifyInstance<...> & PromiseLike<...>', gave the following error. + Argument of type 'Promise' is not assignable to parameter of type 'FastifyPluginAsync<{ limits: { fileSize: number; }; }, RawServerDefault, FastifyTypeProvider, FastifyBaseLogger>'. + Type 'Promise' provides no match for the signature '(instance: FastifyInstance, FastifyBaseLogger, FastifyTy diff --git a/apps/web/src/pages/TimeEntries.tsx b/apps/web/src/pages/TimeEntries.tsx index 541afac..ba0b646 100644 --- a/apps/web/src/pages/TimeEntries.tsx +++ b/apps/web/src/pages/TimeEntries.tsx @@ -1,10 +1,12 @@ import { useState, useMemo, useRef } from "react" import { useQuery, useMutation, useQueryClient } from "@tanstack/react-query" +import { Camera, Trash2, Edit2, Check, X, Upload, FileText, Search, Filter } from "lucide-react" import { api } from "../lib/api" import { EmptyState } from "../components/EmptyState" import { LoadingSpinner } from "../components/LoadingSpinner" import { SuggestionInput } from "../components/SuggestionInput" import { SmartFilters } from "../components/SmartFilters" +import { useToast } from "../hooks/useToast" import type { TimeEntryInsert, SavedView, TimeEntry, TimeEntryTemplate } from "@emberclone/shared" function renderSimpleMarkdown(text: string | null) { @@ -22,6 +24,7 @@ function renderSimpleMarkdown(text: string | null) { export default function TimeEntries() { const queryClient = useQueryClient() + const toast = useToast() const fileInputRef = useRef(null) const [formData, setFormData] = useState({ @@ -93,6 +96,7 @@ export default function TimeEntries() { onSuccess: () => { queryClient.invalidateQueries({ queryKey: ["time-entries"] }) setFormData({ description: "", startTime: "", endTime: "", projectId: "", notes: "", externalLink: "" }) + toast.success("Time entry created") } }) @@ -101,6 +105,7 @@ export default function TimeEntries() { onSuccess: () => { queryClient.invalidateQueries({ queryKey: ["time-entries"] }) setEditingId(null) + toast.success("Time entry updated") } }) @@ -108,6 +113,7 @@ export default function TimeEntries() { mutationFn: (id: string) => api.deleteTimeEntry(id), onSuccess: () => { queryClient.invalidateQueries({ queryKey: ["time-entries"] }) + toast.info("Time entry deleted") } }) @@ -116,53 +122,34 @@ export default function TimeEntries() { onSuccess: () => { queryClient.invalidateQueries({ queryKey: ["time-entries"] }) setSelectedIds([]) + toast.info("Selected entries deleted") } }) const importMutation = useMutation({ mutationFn: (file: File) => api.importTimeEntriesCsv(file), onSuccess: (data) => { - alert(`Successfully imported ${data.count} entries.`) queryClient.invalidateQueries({ queryKey: ["time-entries"] }) + toast.success(`Successfully imported ${data.count} entries`) } }) - const handleSubmit = async (e: React.FormEvent) => { - e.preventDefault() - let finalEndTime = formData.endTime - const roundingMinutes = settings?.roundingMinutes || 0 - - if (finalEndTime && roundingMinutes > 0) { - const date = new Date(finalEndTime) - const ms = roundingMinutes * 60000 - const roundedMs = Math.ceil(date.getTime() / ms) * ms - const roundedDate = new Date(roundedMs) - - if (roundedDate.getTime() !== date.getTime()) { - finalEndTime = roundedDate.toISOString() - alert(`Auf ${roundingMinutes}min gerundet`) - } - } - - createMutation.mutate({ - ...formData, - endTime: finalEndTime - }) + const handleScreenRecordingClick = () => { + toast.info('Screen-Recording kommt in v2. Aktuell: upload manuell via Documents-Page') } if (isError) return
Error loading time entries.
- if (isLoading) return
return (
-

Time Entries

+

Time Entries

-
-
- setFormData({ ...formData, description: val })} - suggestions={descriptionSuggestions} - placeholder="What did you work on?" - /> -
-
- - -
-
- - setFormData({ ...formData, startTime: e.target.value })} - /> -
-
- - setFormData({ ...formData, endTime: e.target.value })} - /> -
-
- - setFormData({ ...formData, projectId: e.target.value })} - /> -
-
- -