implement chat messaging with event proposals

- Add functional chat with server communication and test responses
- Add ProposedEventCard component for confirm/reject actions
- Move Constants (Day, Month) from client to shared package
- Add dateHelpers utility for weekday calculations
- Extend Themes.tsx with button and text colors
- Update CLAUDE.md with current implementation status
- Add *.tsbuildinfo to .gitignore
This commit is contained in:
2026-01-04 00:01:26 +01:00
parent e553103470
commit c33508a227
17 changed files with 456 additions and 295 deletions

View File

@@ -4,26 +4,26 @@ import {
ChatMessage,
ConversationSummary,
GetMessagesOptions,
CalendarEvent,
} from '@caldav/shared';
} from "@caldav/shared";
import { ApiClient } from "./ApiClient";
export const ChatService = {
sendMessage: async (_data: SendMessageDTO): Promise<ChatResponse> => {
throw new Error('Not implemented');
sendMessage: async (data: SendMessageDTO): Promise<ChatResponse> => {
return ApiClient.post<ChatResponse>("/chat/message", data);
},
confirmEvent: async (
_conversationId: string,
_messageId: string
): Promise<CalendarEvent> => {
throw new Error('Not implemented');
conversationId: string,
messageId: string
): Promise<ChatResponse> => {
return ApiClient.post<ChatResponse>(`/chat/confirm/${conversationId}/${messageId}`);
},
rejectEvent: async (
_conversationId: string,
_messageId: string
): Promise<void> => {
throw new Error('Not implemented');
conversationId: string,
messageId: string
): Promise<ChatResponse> => {
return ApiClient.post<ChatResponse>(`/chat/reject/${conversationId}/${messageId}`);
},
getConversations: async (): Promise<ConversationSummary[]> => {