feat: Implement dynamic dashboard with tabs/cards for multi-child families
- Create DynamicChildDashboard component with tab view (1-3 children) and card view (4+) - Integrate with Redux viewMode selector for automatic layout switching - Update GraphQL dashboard query to include displayColor, sortOrder, nickname - Replace static summary with dynamic multi-child dashboard - Add child selection handling with Redux state sync - Implement compact metrics display for card view - Build and test successfully
This commit is contained in:
@@ -9,6 +9,9 @@ export const GET_DASHBOARD = gql`
|
||||
birthDate
|
||||
gender
|
||||
photoUrl
|
||||
displayColor
|
||||
sortOrder
|
||||
nickname
|
||||
}
|
||||
selectedChild {
|
||||
id
|
||||
@@ -16,6 +19,9 @@ export const GET_DASHBOARD = gql`
|
||||
birthDate
|
||||
gender
|
||||
photoUrl
|
||||
displayColor
|
||||
sortOrder
|
||||
nickname
|
||||
}
|
||||
recentActivities {
|
||||
id
|
||||
|
||||
Reference in New Issue
Block a user