add client self-service ai activity plans on goals screen

This commit is contained in:
dimitar committed 2026-03-31 18:51:30 +02:00
1 parent 0825bb3d65
commit a65b3cac08
5 files changed
+426 -2

No files matched your search

@@ -20,6 +20,7 @@ interface GoalProgressCardProps {
onPress?: () => void;
onComplete?: () => void;
onDelete?: () => void;
aiAligned?: boolean;
}
export function GoalProgressCard({
@@ -27,6 +28,7 @@ export function GoalProgressCard({
onPress,
onComplete,
onDelete,
aiAligned = false,
}: GoalProgressCardProps) {
const { colors, typography } = useTheme();
const isCompleted = goal.status === "completed";
@@ -277,6 +279,10 @@ export function GoalProgressCard({
</Text>
)}
{aiAligned && !isCompleted && (
<Badge variant="info" label="AI-ALIGNED" size="sm" />
)}
{isCompleted && goal.completedDate && (
<Text style={[typography.caption, { color: colors.success }]}>
Completed {new Date(goal.completedDate).toLocaleDateString()}