You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
message: `You report ${behaviorLabel}${pct}% of the time ${top.label.toLowerCase()}.`,
147
+
recommendation: `If possible, schedule or expect ${behaviorLabel}${top.label.toLowerCase()}.`,
148
+
});
149
+
}
150
+
151
+
// Average-based guidance
152
+
if(avg!==null){
153
+
if(avg>=8){
154
+
guidance.push({message: `Your average ${behaviorLabel} is high (${avg.toFixed(1)}).`,recommendation: 'Consider whether this reflects a sustained pattern and adjust planning accordingly.'});
155
+
}elseif(avg<=3){
156
+
guidance.push({message: `Your average ${behaviorLabel} is low (${avg.toFixed(1)}).`,recommendation: 'Consider small, consistent actions to raise this metric if desired.'});
157
+
}
158
+
}
159
+
160
+
if(trend==='upward'||trend==='downward'){
161
+
guidance.push({message: `Your recent ${behaviorLabel} trend is ${trend}.`,recommendation: trend==='upward' ? 'Leverage this momentum.' : 'Consider interventions to reverse the decline.'});
0 commit comments