feat: Implement GraphQL mutations for activities and children
Add complete GraphQL mutation support for activity tracking and child management: **Activity Mutations:** - createActivity: Create new activities (feeding, sleep, diaper, medication) - updateActivity: Update existing activities - deleteActivity: Delete activities **Child Mutations:** - createChild: Add new children to families - updateChild: Update child information - deleteChild: Soft delete children **Implementation Details:** - Created GraphQL input types (CreateActivityInput, UpdateActivityInput, CreateChildInput, UpdateChildInput) - Implemented ActivityResolver with full CRUD mutations - Implemented ChildResolver with full CRUD mutations - Registered resolvers in GraphQL module with TrackingService and ChildrenService - Auto-generated GraphQL schema with all mutations - All mutations protected with GqlAuthGuard for authentication - Support for JSON metadata fields and Gender enum 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -3,6 +3,7 @@ import { Inter } from 'next/font/google';
|
||||
import { ThemeRegistry } from '@/components/ThemeRegistry';
|
||||
import { ErrorBoundary } from '@/components/common/ErrorBoundary';
|
||||
import { ReduxProvider } from '@/components/providers/ReduxProvider';
|
||||
import { ApolloProvider } from '@/components/providers/ApolloProvider';
|
||||
import { AxeProvider } from '@/components/providers/AxeProvider';
|
||||
import { SkipNavigation } from '@/components/common/SkipNavigation';
|
||||
import { VoiceFloatingButton } from '@/components/voice/VoiceFloatingButton';
|
||||
@@ -46,16 +47,18 @@ export default function RootLayout({
|
||||
<AxeProvider>
|
||||
<ErrorBoundary>
|
||||
<ReduxProvider>
|
||||
<ThemeRegistry>
|
||||
<FocusManagementProvider>
|
||||
<SkipNavigation />
|
||||
{/* <PerformanceMonitor /> */}
|
||||
<main id="main-content" tabIndex={-1}>
|
||||
{children}
|
||||
</main>
|
||||
<VoiceFloatingButton />
|
||||
</FocusManagementProvider>
|
||||
</ThemeRegistry>
|
||||
<ApolloProvider>
|
||||
<ThemeRegistry>
|
||||
<FocusManagementProvider>
|
||||
<SkipNavigation />
|
||||
{/* <PerformanceMonitor /> */}
|
||||
<main id="main-content" tabIndex={-1}>
|
||||
{children}
|
||||
</main>
|
||||
<VoiceFloatingButton />
|
||||
</FocusManagementProvider>
|
||||
</ThemeRegistry>
|
||||
</ApolloProvider>
|
||||
</ReduxProvider>
|
||||
</ErrorBoundary>
|
||||
</AxeProvider>
|
||||
|
||||
Reference in New Issue
Block a user