+
+
+
+
+ {isCreatingClient ? 'New coaching client' : 'Client file'}
+
+
+ {isCreatingClient
+ ? 'Create client record'
+ : selectedClient?.name || 'Client record'}
+
+
+
+ {isSavingClient ? 'Saving...' : 'Save client'}
+
+
-
-
-
-
- Goals
-
-
- {selectedClient.goals}
-
-
-
-
-
- Private coach notes
-
-
- {selectedClient.notes}
-
-
-
-
+
+
+
+ updateClientForm('name', event.target.value)
+ }
+ className={inputClass()}
+ />
+
+
+
+ updateClientForm('email', event.target.value)
+ }
+ className={inputClass()}
+ />
+
+
+
+ updateClientForm('status', event.target.value)
+ }
+ className={inputClass()}
+ >
+ Lead
+ Active
+ Paused
+ Completed
+
+
+
+
+ updateClientForm('next_session_at', event.target.value)
+ }
+ className={inputClass()}
+ />
+
+
+
+ updateClientForm('company', event.target.value)
+ }
+ className={inputClass()}
+ />
+
+
+
+ updateClientForm('role_title', event.target.value)
+ }
+ className={inputClass()}
+ />
+
+
+
+ updateClientForm('tags', event.target.value)
+ }
+ className={inputClass()}
+ placeholder='executive, founder, delegation'
+ />
+
+
-
-
-
-
-
- Next-session prep
-
-
- Coach prep brief
+
+
+
+
+
+
+
+
+ {selectedClient && !isCreatingClient && (
+ <>
+
+
+
+
+
+ Next-session prep
+
+
+ Coach prep brief
+
+
+
+
+ {displayDateTime(selectedClient.next_session_at)}
+
+
+
+ {latestPrepBrief ? (
+
+
+
+ Client reflection
+
+
+
+
+
+ Open commitments
+
+
+
+
+
+ Suggested questions
+
+
+
+
+
+ ) : (
+
+
+
+ )}
+
+
+
+
+
+
+ Open commitments
-
- Ready
-
-
-
- {latestPrepBrief ? (
-
-
-
- Client reflection
-
-
-
-
-
- Open commitments
-
-
-
-
-
- Suggested questions
-
-
-
-
-
- Previous summary
-
-
-
-
- ) : (
-
-
-
- )}
-
-
-
-
-
-
- Session timeline
-
-
-
- {(selectedClient.sessions || []).length > 0 ? (
- (selectedClient.sessions || []).map((session) => (
-
-
- {session.title}
-
-
- {session.ai_summary}
-
-
- ))
- ) : (
-
- )}
-
-
-
-
-
-
- Pre-session reflection
-
-
-
- {latestReflection ? (
-
-
- {latestReflection.client_reflection}
-
+
+ Add
+
- ) : (
-
- )}
-
-
-
+
+
+ {(selectedClient.action_items || []).length > 0 ? (
+ (selectedClient.action_items || []).map((item) => (
+
+
+
+
+
+
+ {item.title}
+
+
+ {item.status.replace('_', ' ')}
+
+
+
+ ))
+ ) : (
+
+ )}
+
+
-
-
-
-
- Open commitments
-
-
-
- {(selectedClient.action_items || []).length > 0 ? (
- (selectedClient.action_items || []).map((item) => (
-
-
-
-
-
+
+
+
+
+
+ Session timeline
+
+
+
+ {(selectedClient.sessions || []).length > 0 ? (
+ (selectedClient.sessions || []).map((session) => (
+
- {item.title}
+ {session.title}
-
- {item.status.replace('_', ' ')}
+
+ {session.ai_summary}
+ ))
+ ) : (
+
+ )}
+
+
+
+
+
+
+ Pre-session reflection
+
+
+
+ {latestReflection ? (
+
+
+ {latestReflection.client_reflection}
+
- ))
- ) : (
-
- )}
-
-
-
-
- )}
+ ) : (
+
+ )}
+
+
+
+ >
+ )}
+