mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-18 08:02:12 +00:00
fix(onboarding): shorten the AI pitch on the last setup screen
Every new account finished setup on a full AI panel: a gradient badge, a sample briefing, three ways to connect a provider, a one-tap offer for the operator's key and a disclaimer, the most prominent block on the screen. It is now one muted line with a link to Settings, AI, shown under the same rule as the Insights hint (could be set up here, nothing configured yet, not opted out). That hint and the consent request on Insights and Settings, AI stay the places that invite. The sample briefing card, the `onboarding.ai.*` strings in ten locales and the end-to-end spec for the removed offer go with it. The consent-grant guard's floor drops to the two callers left.
This commit is contained in:
1 parent
1d5236a326
commit
b793be3f84
20 files changed
+135
-1379
No files matched your search
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"$comment": "Production functions over 200 lines, keyed \"file :: name\", and their length. Maintained by src/__tests__/source-size-ratchet.test.ts.",
|
||||
"count": 343,
|
||||
"total": 111236,
|
||||
"count": 342,
|
||||
"total": 110828,
|
||||
"entries": {
|
||||
"app/achievements/page.tsx :: AchievementsPage": 206,
|
||||
"app/api/admin/backups/upload/route.ts :: apiHandler(arg)": 275,
|
||||
@@ -177,7 +177,6 @@
|
||||
"components/mood/mood-list.tsx :: MoodList": 1109,
|
||||
"components/mood/mood-tag-picker.tsx :: MoodTagPicker": 257,
|
||||
"components/onboarding/confirm-screen.tsx :: ConfirmScreen": 255,
|
||||
"components/onboarding/done-screen.tsx :: DoneScreen": 408,
|
||||
"components/onboarding/getting-started-checklist.tsx :: GettingStartedChecklist": 423,
|
||||
"components/onboarding/tour.tsx :: OnboardingTour": 544,
|
||||
"components/practitioners/practitioner-list.tsx :: PractitionerList": 230,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"$comment": "Comment lines that open with a release version, per file under src/. Maintained by src/__tests__/version-stamp-ratchet.test.ts.",
|
||||
"count": 2892,
|
||||
"total": 9217,
|
||||
"count": 2891,
|
||||
"total": 9215,
|
||||
"entries": {
|
||||
"__tests__/account-payload-consumer-guard.test.ts": 2,
|
||||
"__tests__/acting-account-boundary-guard.test.ts": 7,
|
||||
@@ -1257,7 +1257,6 @@
|
||||
"components/onboarding/__tests__/anamnesis-card.test.tsx": 1,
|
||||
"components/onboarding/__tests__/confirm-failure-recovery.test.ts": 1,
|
||||
"components/onboarding/__tests__/confirm-screen.test.tsx": 1,
|
||||
"components/onboarding/__tests__/done-screen.test.tsx": 1,
|
||||
"components/onboarding/__tests__/first-result-screen.test.tsx": 2,
|
||||
"components/onboarding/__tests__/getting-started-checklist.test.tsx": 1,
|
||||
"components/onboarding/__tests__/question-screen.test.tsx": 1,
|
||||
@@ -1268,7 +1267,7 @@
|
||||
"components/onboarding/baseline-fields.tsx": 1,
|
||||
"components/onboarding/baseline-form.tsx": 3,
|
||||
"components/onboarding/confirm-screen.tsx": 5,
|
||||
"components/onboarding/done-screen.tsx": 2,
|
||||
"components/onboarding/done-screen.tsx": 1,
|
||||
"components/onboarding/first-result-screen.tsx": 3,
|
||||
"components/onboarding/getting-started-checklist.tsx": 13,
|
||||
"components/onboarding/onboarding-shell.tsx": 1,
|
||||
|
||||
@@ -154,9 +154,10 @@ describe("AI consent is granted only by the person's own tap", () => {
|
||||
}
|
||||
}
|
||||
}
|
||||
// Non-zero floors: a matcher that stops matching is red, not green.
|
||||
expect(callers).toBeGreaterThanOrEqual(3);
|
||||
expect(sites).toBeGreaterThanOrEqual(3);
|
||||
// Non-zero floors: a matcher that stops matching is red, not green. Two
|
||||
// callers today: the consent request and the document-reading prompt.
|
||||
expect(callers).toBeGreaterThanOrEqual(2);
|
||||
expect(sites).toBeGreaterThanOrEqual(2);
|
||||
});
|
||||
|
||||
it("keeps both grant routes refusing a request without the confirmation", () => {
|
||||
|
||||
Reference in new issue
Block a user