diff --git a/.claude/manifests/surfaces.json b/.claude/manifests/surfaces.json index 3925f34488..5288254e69 100644 --- a/.claude/manifests/surfaces.json +++ b/.claude/manifests/surfaces.json @@ -1,5 +1,5 @@ { - "generatedFrom": "c0c0cfd470c9c95b968cc897e4f19872511950ad", + "generatedFrom": "3a0bce13da9c8a2c5272d52786f8af96cbf570e8", "baselineRef": "7d7c42c3", "baselineSha": "7d7c42c355d330606972e4ce68986462254f91ed", "themes": [ @@ -89,7 +89,7 @@ "apps/web/app/(app)/achievements/_components/achievements-locked-state.tsx", "apps/web/app/(app)/achievements/page.tsx" ], - "closureSize": 168, + "closureSize": 166, "state": "default", "theme": "light", "locale": "en", @@ -107,7 +107,7 @@ "apps/web/app/(app)/achievements/_components/achievements-locked-state.tsx", "apps/web/app/(app)/achievements/page.tsx" ], - "closureSize": 168, + "closureSize": 166, "state": "default", "theme": "light", "locale": "pt-BR", @@ -125,7 +125,7 @@ "apps/web/app/(app)/achievements/_components/achievements-locked-state.tsx", "apps/web/app/(app)/achievements/page.tsx" ], - "closureSize": 168, + "closureSize": 166, "state": "default", "theme": "dark", "locale": "en", @@ -143,7 +143,7 @@ "apps/web/app/(app)/achievements/_components/achievements-locked-state.tsx", "apps/web/app/(app)/achievements/page.tsx" ], - "closureSize": 168, + "closureSize": 166, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -160,7 +160,7 @@ "apps/web/app/actions/api-keys.ts", "apps/web/hooks/use-api-key-management.ts" ], - "closureSize": 164, + "closureSize": 162, "state": "default", "theme": "light", "locale": "en", @@ -177,7 +177,7 @@ "apps/web/app/actions/api-keys.ts", "apps/web/hooks/use-api-key-management.ts" ], - "closureSize": 164, + "closureSize": 162, "state": "default", "theme": "light", "locale": "pt-BR", @@ -194,7 +194,7 @@ "apps/web/app/actions/api-keys.ts", "apps/web/hooks/use-api-key-management.ts" ], - "closureSize": 164, + "closureSize": 162, "state": "default", "theme": "dark", "locale": "en", @@ -211,7 +211,7 @@ "apps/web/app/actions/api-keys.ts", "apps/web/hooks/use-api-key-management.ts" ], - "closureSize": 164, + "closureSize": 162, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -225,16 +225,9 @@ "href": "/ai-settings", "ownedFiles": [ "apps/web/app/(app)/ai-settings/_components/ai-feature-toggles.tsx", - "apps/web/app/(app)/ai-settings/_components/fact-item.tsx", - "apps/web/app/(app)/ai-settings/_components/facts-pagination.tsx", - "apps/web/app/(app)/ai-settings/_components/facts-select-bar.tsx", - "apps/web/app/(app)/ai-settings/_components/pro-upgrade-link.tsx", - "apps/web/app/(app)/ai-settings/_components/use-user-facts.ts", - "apps/web/app/(app)/ai-settings/_components/user-facts-list.tsx", - "apps/web/app/(app)/ai-settings/page.tsx", - "apps/web/app/actions/user-facts.ts" + "apps/web/app/(app)/ai-settings/page.tsx" ], - "closureSize": 155, + "closureSize": 141, "state": "default", "theme": "light", "locale": "en", @@ -248,16 +241,9 @@ "href": "/ai-settings", "ownedFiles": [ "apps/web/app/(app)/ai-settings/_components/ai-feature-toggles.tsx", - "apps/web/app/(app)/ai-settings/_components/fact-item.tsx", - "apps/web/app/(app)/ai-settings/_components/facts-pagination.tsx", - "apps/web/app/(app)/ai-settings/_components/facts-select-bar.tsx", - "apps/web/app/(app)/ai-settings/_components/pro-upgrade-link.tsx", - "apps/web/app/(app)/ai-settings/_components/use-user-facts.ts", - "apps/web/app/(app)/ai-settings/_components/user-facts-list.tsx", - "apps/web/app/(app)/ai-settings/page.tsx", - "apps/web/app/actions/user-facts.ts" + "apps/web/app/(app)/ai-settings/page.tsx" ], - "closureSize": 155, + "closureSize": 141, "state": "default", "theme": "light", "locale": "pt-BR", @@ -271,16 +257,9 @@ "href": "/ai-settings", "ownedFiles": [ "apps/web/app/(app)/ai-settings/_components/ai-feature-toggles.tsx", - "apps/web/app/(app)/ai-settings/_components/fact-item.tsx", - "apps/web/app/(app)/ai-settings/_components/facts-pagination.tsx", - "apps/web/app/(app)/ai-settings/_components/facts-select-bar.tsx", - "apps/web/app/(app)/ai-settings/_components/pro-upgrade-link.tsx", - "apps/web/app/(app)/ai-settings/_components/use-user-facts.ts", - "apps/web/app/(app)/ai-settings/_components/user-facts-list.tsx", - "apps/web/app/(app)/ai-settings/page.tsx", - "apps/web/app/actions/user-facts.ts" + "apps/web/app/(app)/ai-settings/page.tsx" ], - "closureSize": 155, + "closureSize": 141, "state": "default", "theme": "dark", "locale": "en", @@ -294,16 +273,9 @@ "href": "/ai-settings", "ownedFiles": [ "apps/web/app/(app)/ai-settings/_components/ai-feature-toggles.tsx", - "apps/web/app/(app)/ai-settings/_components/fact-item.tsx", - "apps/web/app/(app)/ai-settings/_components/facts-pagination.tsx", - "apps/web/app/(app)/ai-settings/_components/facts-select-bar.tsx", - "apps/web/app/(app)/ai-settings/_components/pro-upgrade-link.tsx", - "apps/web/app/(app)/ai-settings/_components/use-user-facts.ts", - "apps/web/app/(app)/ai-settings/_components/user-facts-list.tsx", - "apps/web/app/(app)/ai-settings/page.tsx", - "apps/web/app/actions/user-facts.ts" + "apps/web/app/(app)/ai-settings/page.tsx" ], - "closureSize": 155, + "closureSize": 141, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -328,7 +300,7 @@ "apps/web/hooks/use-calendars.ts", "apps/web/lib/calendar-sync-state.ts" ], - "closureSize": 169, + "closureSize": 168, "state": "default", "theme": "light", "locale": "en", @@ -353,7 +325,7 @@ "apps/web/hooks/use-calendars.ts", "apps/web/lib/calendar-sync-state.ts" ], - "closureSize": 169, + "closureSize": 168, "state": "default", "theme": "light", "locale": "pt-BR", @@ -378,7 +350,7 @@ "apps/web/hooks/use-calendars.ts", "apps/web/lib/calendar-sync-state.ts" ], - "closureSize": 169, + "closureSize": 168, "state": "default", "theme": "dark", "locale": "en", @@ -403,7 +375,7 @@ "apps/web/hooks/use-calendars.ts", "apps/web/lib/calendar-sync-state.ts" ], - "closureSize": 169, + "closureSize": 168, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -428,7 +400,7 @@ "apps/web/hooks/use-calendars.ts", "apps/web/lib/calendar-sync-state.ts" ], - "closureSize": 169, + "closureSize": 168, "state": "empty", "theme": "light", "locale": "en", @@ -453,7 +425,7 @@ "apps/web/hooks/use-calendars.ts", "apps/web/lib/calendar-sync-state.ts" ], - "closureSize": 169, + "closureSize": 168, "state": "empty", "theme": "light", "locale": "pt-BR", @@ -478,7 +450,7 @@ "apps/web/hooks/use-calendars.ts", "apps/web/lib/calendar-sync-state.ts" ], - "closureSize": 169, + "closureSize": 168, "state": "empty", "theme": "dark", "locale": "en", @@ -503,7 +475,7 @@ "apps/web/hooks/use-calendars.ts", "apps/web/lib/calendar-sync-state.ts" ], - "closureSize": 169, + "closureSize": 168, "state": "empty", "theme": "dark", "locale": "pt-BR", @@ -530,7 +502,7 @@ "apps/web/components/calendar/use-agenda-day.ts", "apps/web/lib/calendar-month-model.ts" ], - "closureSize": 189, + "closureSize": 187, "state": "default", "theme": "light", "locale": "en", @@ -557,7 +529,7 @@ "apps/web/components/calendar/use-agenda-day.ts", "apps/web/lib/calendar-month-model.ts" ], - "closureSize": 189, + "closureSize": 187, "state": "default", "theme": "light", "locale": "pt-BR", @@ -584,7 +556,7 @@ "apps/web/components/calendar/use-agenda-day.ts", "apps/web/lib/calendar-month-model.ts" ], - "closureSize": 189, + "closureSize": 187, "state": "default", "theme": "dark", "locale": "en", @@ -611,7 +583,7 @@ "apps/web/components/calendar/use-agenda-day.ts", "apps/web/lib/calendar-month-model.ts" ], - "closureSize": 189, + "closureSize": 187, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -638,7 +610,7 @@ "apps/web/components/calendar/use-agenda-day.ts", "apps/web/lib/calendar-month-model.ts" ], - "closureSize": 189, + "closureSize": 187, "state": "empty", "theme": "light", "locale": "en", @@ -665,7 +637,7 @@ "apps/web/components/calendar/use-agenda-day.ts", "apps/web/lib/calendar-month-model.ts" ], - "closureSize": 189, + "closureSize": 187, "state": "empty", "theme": "light", "locale": "pt-BR", @@ -692,7 +664,7 @@ "apps/web/components/calendar/use-agenda-day.ts", "apps/web/lib/calendar-month-model.ts" ], - "closureSize": 189, + "closureSize": 187, "state": "empty", "theme": "dark", "locale": "en", @@ -719,7 +691,7 @@ "apps/web/components/calendar/use-agenda-day.ts", "apps/web/lib/calendar-month-model.ts" ], - "closureSize": 189, + "closureSize": 187, "state": "empty", "theme": "dark", "locale": "pt-BR", @@ -738,7 +710,7 @@ "ownedFiles": [ "apps/web/app/(app)/explore/page.tsx" ], - "closureSize": 157, + "closureSize": 155, "state": "default", "theme": "light", "locale": "en", @@ -757,7 +729,7 @@ "ownedFiles": [ "apps/web/app/(app)/explore/page.tsx" ], - "closureSize": 157, + "closureSize": 155, "state": "default", "theme": "light", "locale": "pt-BR", @@ -776,7 +748,7 @@ "ownedFiles": [ "apps/web/app/(app)/explore/page.tsx" ], - "closureSize": 157, + "closureSize": 155, "state": "default", "theme": "dark", "locale": "en", @@ -795,7 +767,7 @@ "ownedFiles": [ "apps/web/app/(app)/explore/page.tsx" ], - "closureSize": 157, + "closureSize": 155, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -836,7 +808,7 @@ "apps/web/hooks/use-streak-history.ts", "apps/web/hooks/use-xp-history.ts" ], - "closureSize": 196, + "closureSize": 194, "state": "default", "theme": "light", "locale": "en", @@ -877,7 +849,7 @@ "apps/web/hooks/use-streak-history.ts", "apps/web/hooks/use-xp-history.ts" ], - "closureSize": 196, + "closureSize": 194, "state": "default", "theme": "light", "locale": "pt-BR", @@ -918,7 +890,7 @@ "apps/web/hooks/use-streak-history.ts", "apps/web/hooks/use-xp-history.ts" ], - "closureSize": 196, + "closureSize": 194, "state": "default", "theme": "dark", "locale": "en", @@ -959,7 +931,7 @@ "apps/web/hooks/use-streak-history.ts", "apps/web/hooks/use-xp-history.ts" ], - "closureSize": 196, + "closureSize": 194, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -974,7 +946,7 @@ "ownedFiles": [ "apps/web/app/(app)/page.tsx" ], - "closureSize": 314, + "closureSize": 312, "state": "default", "theme": "light", "locale": "en", @@ -989,7 +961,7 @@ "ownedFiles": [ "apps/web/app/(app)/page.tsx" ], - "closureSize": 314, + "closureSize": 312, "state": "default", "theme": "light", "locale": "pt-BR", @@ -1004,7 +976,7 @@ "ownedFiles": [ "apps/web/app/(app)/page.tsx" ], - "closureSize": 314, + "closureSize": 312, "state": "default", "theme": "dark", "locale": "en", @@ -1019,7 +991,7 @@ "ownedFiles": [ "apps/web/app/(app)/page.tsx" ], - "closureSize": 314, + "closureSize": 312, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -1034,7 +1006,7 @@ "ownedFiles": [ "apps/web/app/(app)/page.tsx" ], - "closureSize": 314, + "closureSize": 312, "state": "empty", "theme": "light", "locale": "en", @@ -1049,7 +1021,7 @@ "ownedFiles": [ "apps/web/app/(app)/page.tsx" ], - "closureSize": 314, + "closureSize": 312, "state": "empty", "theme": "light", "locale": "pt-BR", @@ -1064,7 +1036,7 @@ "ownedFiles": [ "apps/web/app/(app)/page.tsx" ], - "closureSize": 314, + "closureSize": 312, "state": "empty", "theme": "dark", "locale": "en", @@ -1079,7 +1051,7 @@ "ownedFiles": [ "apps/web/app/(app)/page.tsx" ], - "closureSize": 314, + "closureSize": 312, "state": "empty", "theme": "dark", "locale": "pt-BR", @@ -1094,7 +1066,7 @@ "ownedFiles": [ "apps/web/app/(app)/page.tsx" ], - "closureSize": 314, + "closureSize": 312, "state": "default", "theme": "light", "locale": "en", @@ -1109,7 +1081,7 @@ "ownedFiles": [ "apps/web/app/(app)/page.tsx" ], - "closureSize": 314, + "closureSize": 312, "state": "default", "theme": "light", "locale": "pt-BR", @@ -1124,7 +1096,7 @@ "ownedFiles": [ "apps/web/app/(app)/page.tsx" ], - "closureSize": 314, + "closureSize": 312, "state": "default", "theme": "dark", "locale": "en", @@ -1139,7 +1111,7 @@ "ownedFiles": [ "apps/web/app/(app)/page.tsx" ], - "closureSize": 314, + "closureSize": 312, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -1154,7 +1126,7 @@ "ownedFiles": [ "apps/web/app/(app)/page.tsx" ], - "closureSize": 314, + "closureSize": 312, "state": "empty", "theme": "light", "locale": "en", @@ -1169,7 +1141,7 @@ "ownedFiles": [ "apps/web/app/(app)/page.tsx" ], - "closureSize": 314, + "closureSize": 312, "state": "empty", "theme": "light", "locale": "pt-BR", @@ -1184,7 +1156,7 @@ "ownedFiles": [ "apps/web/app/(app)/page.tsx" ], - "closureSize": 314, + "closureSize": 312, "state": "empty", "theme": "dark", "locale": "en", @@ -1199,7 +1171,7 @@ "ownedFiles": [ "apps/web/app/(app)/page.tsx" ], - "closureSize": 314, + "closureSize": 312, "state": "empty", "theme": "dark", "locale": "pt-BR", @@ -1214,7 +1186,7 @@ "ownedFiles": [ "apps/web/app/(app)/page.tsx" ], - "closureSize": 314, + "closureSize": 312, "state": "default", "theme": "light", "locale": "en", @@ -1229,7 +1201,7 @@ "ownedFiles": [ "apps/web/app/(app)/page.tsx" ], - "closureSize": 314, + "closureSize": 312, "state": "default", "theme": "light", "locale": "pt-BR", @@ -1244,7 +1216,7 @@ "ownedFiles": [ "apps/web/app/(app)/page.tsx" ], - "closureSize": 314, + "closureSize": 312, "state": "default", "theme": "dark", "locale": "en", @@ -1259,7 +1231,7 @@ "ownedFiles": [ "apps/web/app/(app)/page.tsx" ], - "closureSize": 314, + "closureSize": 312, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -1274,7 +1246,7 @@ "ownedFiles": [ "apps/web/app/(app)/page.tsx" ], - "closureSize": 314, + "closureSize": 312, "state": "empty", "theme": "light", "locale": "en", @@ -1289,7 +1261,7 @@ "ownedFiles": [ "apps/web/app/(app)/page.tsx" ], - "closureSize": 314, + "closureSize": 312, "state": "empty", "theme": "light", "locale": "pt-BR", @@ -1304,7 +1276,7 @@ "ownedFiles": [ "apps/web/app/(app)/page.tsx" ], - "closureSize": 314, + "closureSize": 312, "state": "empty", "theme": "dark", "locale": "en", @@ -1319,7 +1291,7 @@ "ownedFiles": [ "apps/web/app/(app)/page.tsx" ], - "closureSize": 314, + "closureSize": 312, "state": "empty", "theme": "dark", "locale": "pt-BR", @@ -1334,7 +1306,7 @@ "ownedFiles": [ "apps/web/app/(app)/page.tsx" ], - "closureSize": 314, + "closureSize": 312, "state": "default", "theme": "light", "locale": "en", @@ -1349,7 +1321,7 @@ "ownedFiles": [ "apps/web/app/(app)/page.tsx" ], - "closureSize": 314, + "closureSize": 312, "state": "default", "theme": "light", "locale": "pt-BR", @@ -1364,7 +1336,7 @@ "ownedFiles": [ "apps/web/app/(app)/page.tsx" ], - "closureSize": 314, + "closureSize": 312, "state": "default", "theme": "dark", "locale": "en", @@ -1379,7 +1351,7 @@ "ownedFiles": [ "apps/web/app/(app)/page.tsx" ], - "closureSize": 314, + "closureSize": 312, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -1394,7 +1366,7 @@ "ownedFiles": [ "apps/web/app/(app)/page.tsx" ], - "closureSize": 314, + "closureSize": 312, "state": "empty", "theme": "light", "locale": "en", @@ -1409,7 +1381,7 @@ "ownedFiles": [ "apps/web/app/(app)/page.tsx" ], - "closureSize": 314, + "closureSize": 312, "state": "empty", "theme": "light", "locale": "pt-BR", @@ -1424,7 +1396,7 @@ "ownedFiles": [ "apps/web/app/(app)/page.tsx" ], - "closureSize": 314, + "closureSize": 312, "state": "empty", "theme": "dark", "locale": "en", @@ -1439,7 +1411,7 @@ "ownedFiles": [ "apps/web/app/(app)/page.tsx" ], - "closureSize": 314, + "closureSize": 312, "state": "empty", "theme": "dark", "locale": "pt-BR", @@ -1460,7 +1432,7 @@ "apps/web/app/(app)/preferences/page.tsx", "apps/web/hooks/use-push-notification-preferences.ts" ], - "closureSize": 154, + "closureSize": 153, "state": "default", "theme": "light", "locale": "en", @@ -1481,7 +1453,7 @@ "apps/web/app/(app)/preferences/page.tsx", "apps/web/hooks/use-push-notification-preferences.ts" ], - "closureSize": 154, + "closureSize": 153, "state": "default", "theme": "light", "locale": "pt-BR", @@ -1502,7 +1474,7 @@ "apps/web/app/(app)/preferences/page.tsx", "apps/web/hooks/use-push-notification-preferences.ts" ], - "closureSize": 154, + "closureSize": 153, "state": "default", "theme": "dark", "locale": "en", @@ -1523,7 +1495,7 @@ "apps/web/app/(app)/preferences/page.tsx", "apps/web/hooks/use-push-notification-preferences.ts" ], - "closureSize": 154, + "closureSize": 153, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -1549,7 +1521,7 @@ "apps/web/app/(app)/profile/_components/use-profile-screen.ts", "apps/web/app/(app)/profile/page.tsx" ], - "closureSize": 217, + "closureSize": 215, "state": "default", "theme": "light", "locale": "en", @@ -1575,7 +1547,7 @@ "apps/web/app/(app)/profile/_components/use-profile-screen.ts", "apps/web/app/(app)/profile/page.tsx" ], - "closureSize": 217, + "closureSize": 215, "state": "default", "theme": "light", "locale": "pt-BR", @@ -1601,7 +1573,7 @@ "apps/web/app/(app)/profile/_components/use-profile-screen.ts", "apps/web/app/(app)/profile/page.tsx" ], - "closureSize": 217, + "closureSize": 215, "state": "default", "theme": "dark", "locale": "en", @@ -1627,7 +1599,7 @@ "apps/web/app/(app)/profile/_components/use-profile-screen.ts", "apps/web/app/(app)/profile/page.tsx" ], - "closureSize": 217, + "closureSize": 215, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -1650,7 +1622,7 @@ "apps/web/components/wrapped/wrapped-entry-button.tsx", "apps/web/hooks/use-retrospective.ts" ], - "closureSize": 165, + "closureSize": 164, "state": "default", "theme": "light", "locale": "en", @@ -1673,7 +1645,7 @@ "apps/web/components/wrapped/wrapped-entry-button.tsx", "apps/web/hooks/use-retrospective.ts" ], - "closureSize": 165, + "closureSize": 164, "state": "default", "theme": "light", "locale": "pt-BR", @@ -1696,7 +1668,7 @@ "apps/web/components/wrapped/wrapped-entry-button.tsx", "apps/web/hooks/use-retrospective.ts" ], - "closureSize": 165, + "closureSize": 164, "state": "default", "theme": "dark", "locale": "en", @@ -1719,7 +1691,7 @@ "apps/web/components/wrapped/wrapped-entry-button.tsx", "apps/web/hooks/use-retrospective.ts" ], - "closureSize": 165, + "closureSize": 164, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -1742,7 +1714,7 @@ "apps/web/components/wrapped/wrapped-entry-button.tsx", "apps/web/hooks/use-retrospective.ts" ], - "closureSize": 165, + "closureSize": 164, "state": "empty", "theme": "light", "locale": "en", @@ -1765,7 +1737,7 @@ "apps/web/components/wrapped/wrapped-entry-button.tsx", "apps/web/hooks/use-retrospective.ts" ], - "closureSize": 165, + "closureSize": 164, "state": "empty", "theme": "light", "locale": "pt-BR", @@ -1788,7 +1760,7 @@ "apps/web/components/wrapped/wrapped-entry-button.tsx", "apps/web/hooks/use-retrospective.ts" ], - "closureSize": 165, + "closureSize": 164, "state": "empty", "theme": "dark", "locale": "en", @@ -1811,7 +1783,7 @@ "apps/web/components/wrapped/wrapped-entry-button.tsx", "apps/web/hooks/use-retrospective.ts" ], - "closureSize": 165, + "closureSize": 164, "state": "empty", "theme": "dark", "locale": "pt-BR", @@ -1829,7 +1801,7 @@ "apps/web/app/(app)/streak/_components/streak-sections.tsx", "apps/web/app/(app)/streak/page.tsx" ], - "closureSize": 171, + "closureSize": 169, "state": "default", "theme": "light", "locale": "en", @@ -1847,7 +1819,7 @@ "apps/web/app/(app)/streak/_components/streak-sections.tsx", "apps/web/app/(app)/streak/page.tsx" ], - "closureSize": 171, + "closureSize": 169, "state": "default", "theme": "light", "locale": "pt-BR", @@ -1865,7 +1837,7 @@ "apps/web/app/(app)/streak/_components/streak-sections.tsx", "apps/web/app/(app)/streak/page.tsx" ], - "closureSize": 171, + "closureSize": 169, "state": "default", "theme": "dark", "locale": "en", @@ -1883,7 +1855,7 @@ "apps/web/app/(app)/streak/_components/streak-sections.tsx", "apps/web/app/(app)/streak/page.tsx" ], - "closureSize": 171, + "closureSize": 169, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -1902,7 +1874,7 @@ "apps/web/app/(app)/support/page.tsx", "apps/web/app/actions/support.ts" ], - "closureSize": 144, + "closureSize": 143, "state": "default", "theme": "light", "locale": "en", @@ -1921,7 +1893,7 @@ "apps/web/app/(app)/support/page.tsx", "apps/web/app/actions/support.ts" ], - "closureSize": 144, + "closureSize": 143, "state": "default", "theme": "light", "locale": "pt-BR", @@ -1940,7 +1912,7 @@ "apps/web/app/(app)/support/page.tsx", "apps/web/app/actions/support.ts" ], - "closureSize": 144, + "closureSize": 143, "state": "default", "theme": "dark", "locale": "en", @@ -1959,7 +1931,7 @@ "apps/web/app/(app)/support/page.tsx", "apps/web/app/actions/support.ts" ], - "closureSize": 144, + "closureSize": 143, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -1984,7 +1956,7 @@ "apps/web/hooks/use-billing.ts", "apps/web/hooks/use-subscription-plans.ts" ], - "closureSize": 155, + "closureSize": 154, "state": "default", "theme": "light", "locale": "en", @@ -2009,7 +1981,7 @@ "apps/web/hooks/use-billing.ts", "apps/web/hooks/use-subscription-plans.ts" ], - "closureSize": 155, + "closureSize": 154, "state": "default", "theme": "light", "locale": "pt-BR", @@ -2034,7 +2006,7 @@ "apps/web/hooks/use-billing.ts", "apps/web/hooks/use-subscription-plans.ts" ], - "closureSize": 155, + "closureSize": 154, "state": "default", "theme": "dark", "locale": "en", @@ -2059,7 +2031,7 @@ "apps/web/hooks/use-billing.ts", "apps/web/hooks/use-subscription-plans.ts" ], - "closureSize": 155, + "closureSize": 154, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -2079,7 +2051,7 @@ "apps/web/app/(app)/wrapped/page.tsx", "apps/web/hooks/use-wrapped.ts" ], - "closureSize": 153, + "closureSize": 152, "state": "default", "theme": "light", "locale": "en", @@ -2099,7 +2071,7 @@ "apps/web/app/(app)/wrapped/page.tsx", "apps/web/hooks/use-wrapped.ts" ], - "closureSize": 153, + "closureSize": 152, "state": "default", "theme": "light", "locale": "pt-BR", @@ -2119,7 +2091,7 @@ "apps/web/app/(app)/wrapped/page.tsx", "apps/web/hooks/use-wrapped.ts" ], - "closureSize": 153, + "closureSize": 152, "state": "default", "theme": "dark", "locale": "en", @@ -2139,7 +2111,7 @@ "apps/web/app/(app)/wrapped/page.tsx", "apps/web/hooks/use-wrapped.ts" ], - "closureSize": 153, + "closureSize": 152, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -2154,7 +2126,7 @@ "ownedFiles": [ "apps/web/app/(auth)/auth-callback/page.tsx" ], - "closureSize": 123, + "closureSize": 122, "state": "default", "theme": "light", "locale": "en", @@ -2169,7 +2141,7 @@ "ownedFiles": [ "apps/web/app/(auth)/auth-callback/page.tsx" ], - "closureSize": 123, + "closureSize": 122, "state": "default", "theme": "light", "locale": "pt-BR", @@ -2184,7 +2156,7 @@ "ownedFiles": [ "apps/web/app/(auth)/auth-callback/page.tsx" ], - "closureSize": 123, + "closureSize": 122, "state": "default", "theme": "dark", "locale": "en", @@ -2199,7 +2171,7 @@ "ownedFiles": [ "apps/web/app/(auth)/auth-callback/page.tsx" ], - "closureSize": 123, + "closureSize": 122, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -2221,7 +2193,7 @@ "apps/web/app/(auth)/login/use-login-flow.ts", "apps/web/hooks/use-login-code-entry.ts" ], - "closureSize": 138, + "closureSize": 137, "state": "default", "theme": "light", "locale": "en", @@ -2243,7 +2215,7 @@ "apps/web/app/(auth)/login/use-login-flow.ts", "apps/web/hooks/use-login-code-entry.ts" ], - "closureSize": 138, + "closureSize": 137, "state": "default", "theme": "light", "locale": "pt-BR", @@ -2265,7 +2237,7 @@ "apps/web/app/(auth)/login/use-login-flow.ts", "apps/web/hooks/use-login-code-entry.ts" ], - "closureSize": 138, + "closureSize": 137, "state": "default", "theme": "dark", "locale": "en", @@ -2287,7 +2259,7 @@ "apps/web/app/(auth)/login/use-login-flow.ts", "apps/web/hooks/use-login-code-entry.ts" ], - "closureSize": 138, + "closureSize": 137, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -2302,7 +2274,7 @@ "ownedFiles": [ "apps/web/app/(chat)/chat/page.tsx" ], - "closureSize": 245, + "closureSize": 243, "state": "default", "theme": "light", "locale": "en", @@ -2317,7 +2289,7 @@ "ownedFiles": [ "apps/web/app/(chat)/chat/page.tsx" ], - "closureSize": 245, + "closureSize": 243, "state": "default", "theme": "light", "locale": "pt-BR", @@ -2332,7 +2304,7 @@ "ownedFiles": [ "apps/web/app/(chat)/chat/page.tsx" ], - "closureSize": 245, + "closureSize": 243, "state": "default", "theme": "dark", "locale": "en", @@ -2347,7 +2319,7 @@ "ownedFiles": [ "apps/web/app/(chat)/chat/page.tsx" ], - "closureSize": 245, + "closureSize": 243, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -2362,7 +2334,7 @@ "ownedFiles": [ "apps/web/app/(chat)/chat/page.tsx" ], - "closureSize": 245, + "closureSize": 243, "state": "empty", "theme": "light", "locale": "en", @@ -2377,7 +2349,7 @@ "ownedFiles": [ "apps/web/app/(chat)/chat/page.tsx" ], - "closureSize": 245, + "closureSize": 243, "state": "empty", "theme": "light", "locale": "pt-BR", @@ -2392,7 +2364,7 @@ "ownedFiles": [ "apps/web/app/(chat)/chat/page.tsx" ], - "closureSize": 245, + "closureSize": 243, "state": "empty", "theme": "dark", "locale": "en", @@ -2407,7 +2379,7 @@ "ownedFiles": [ "apps/web/app/(chat)/chat/page.tsx" ], - "closureSize": 245, + "closureSize": 243, "state": "empty", "theme": "dark", "locale": "pt-BR", @@ -2422,7 +2394,7 @@ "ownedFiles": [ "apps/web/app/(onboarding)/onboarding/page.tsx" ], - "closureSize": 183, + "closureSize": 181, "state": "default", "theme": "light", "locale": "en", @@ -2437,7 +2409,7 @@ "ownedFiles": [ "apps/web/app/(onboarding)/onboarding/page.tsx" ], - "closureSize": 183, + "closureSize": 181, "state": "default", "theme": "light", "locale": "pt-BR", @@ -2452,7 +2424,7 @@ "ownedFiles": [ "apps/web/app/(onboarding)/onboarding/page.tsx" ], - "closureSize": 183, + "closureSize": 181, "state": "default", "theme": "dark", "locale": "en", @@ -2467,7 +2439,7 @@ "ownedFiles": [ "apps/web/app/(onboarding)/onboarding/page.tsx" ], - "closureSize": 183, + "closureSize": 181, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -2662,7 +2634,7 @@ "ownedFiles": [ "apps/web/app/r/[code]/page.tsx" ], - "closureSize": 103, + "closureSize": 102, "state": "default", "theme": "light", "locale": "en", @@ -2677,7 +2649,7 @@ "ownedFiles": [ "apps/web/app/r/[code]/page.tsx" ], - "closureSize": 103, + "closureSize": 102, "state": "default", "theme": "light", "locale": "pt-BR", @@ -2692,7 +2664,7 @@ "ownedFiles": [ "apps/web/app/r/[code]/page.tsx" ], - "closureSize": 103, + "closureSize": 102, "state": "default", "theme": "dark", "locale": "en", @@ -2707,7 +2679,7 @@ "ownedFiles": [ "apps/web/app/r/[code]/page.tsx" ], - "closureSize": 103, + "closureSize": 102, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -3343,7 +3315,7 @@ "ownedFiles": [ "apps/web/components/chat/breakdown-habit-row.tsx" ], - "closureSize": 103, + "closureSize": 102, "state": "default", "theme": "light", "locale": "en", @@ -3359,7 +3331,7 @@ "ownedFiles": [ "apps/web/components/chat/breakdown-habit-row.tsx" ], - "closureSize": 103, + "closureSize": 102, "state": "default", "theme": "light", "locale": "pt-BR", @@ -3375,7 +3347,7 @@ "ownedFiles": [ "apps/web/components/chat/breakdown-habit-row.tsx" ], - "closureSize": 103, + "closureSize": 102, "state": "default", "theme": "dark", "locale": "en", @@ -3391,7 +3363,7 @@ "ownedFiles": [ "apps/web/components/chat/breakdown-habit-row.tsx" ], - "closureSize": 103, + "closureSize": 102, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -3407,7 +3379,7 @@ "ownedFiles": [ "apps/web/components/chat/breakdown-suggestion.tsx" ], - "closureSize": 138, + "closureSize": 137, "state": "default", "theme": "light", "locale": "en", @@ -3423,7 +3395,7 @@ "ownedFiles": [ "apps/web/components/chat/breakdown-suggestion.tsx" ], - "closureSize": 138, + "closureSize": 137, "state": "default", "theme": "light", "locale": "pt-BR", @@ -3439,7 +3411,7 @@ "ownedFiles": [ "apps/web/components/chat/breakdown-suggestion.tsx" ], - "closureSize": 138, + "closureSize": 137, "state": "default", "theme": "dark", "locale": "en", @@ -3455,7 +3427,7 @@ "ownedFiles": [ "apps/web/components/chat/breakdown-suggestion.tsx" ], - "closureSize": 138, + "closureSize": 137, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -3471,7 +3443,7 @@ "ownedFiles": [ "apps/web/components/chat/clarification-card.tsx" ], - "closureSize": 127, + "closureSize": 125, "state": "default", "theme": "light", "locale": "en", @@ -3487,7 +3459,7 @@ "ownedFiles": [ "apps/web/components/chat/clarification-card.tsx" ], - "closureSize": 127, + "closureSize": 125, "state": "default", "theme": "light", "locale": "pt-BR", @@ -3503,7 +3475,7 @@ "ownedFiles": [ "apps/web/components/chat/clarification-card.tsx" ], - "closureSize": 127, + "closureSize": 125, "state": "default", "theme": "dark", "locale": "en", @@ -3519,7 +3491,7 @@ "ownedFiles": [ "apps/web/components/chat/clarification-card.tsx" ], - "closureSize": 127, + "closureSize": 125, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -3599,7 +3571,7 @@ "ownedFiles": [ "apps/web/components/chat/goal-list-card.tsx" ], - "closureSize": 102, + "closureSize": 101, "state": "default", "theme": "light", "locale": "en", @@ -3615,7 +3587,7 @@ "ownedFiles": [ "apps/web/components/chat/goal-list-card.tsx" ], - "closureSize": 102, + "closureSize": 101, "state": "default", "theme": "light", "locale": "pt-BR", @@ -3631,7 +3603,7 @@ "ownedFiles": [ "apps/web/components/chat/goal-list-card.tsx" ], - "closureSize": 102, + "closureSize": 101, "state": "default", "theme": "dark", "locale": "en", @@ -3647,7 +3619,7 @@ "ownedFiles": [ "apps/web/components/chat/goal-list-card.tsx" ], - "closureSize": 102, + "closureSize": 101, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -3727,7 +3699,7 @@ "ownedFiles": [ "apps/web/components/chat/message-bubble.tsx" ], - "closureSize": 168, + "closureSize": 166, "state": "default", "theme": "light", "locale": "en", @@ -3743,7 +3715,7 @@ "ownedFiles": [ "apps/web/components/chat/message-bubble.tsx" ], - "closureSize": 168, + "closureSize": 166, "state": "default", "theme": "light", "locale": "pt-BR", @@ -3759,7 +3731,7 @@ "ownedFiles": [ "apps/web/components/chat/message-bubble.tsx" ], - "closureSize": 168, + "closureSize": 166, "state": "default", "theme": "dark", "locale": "en", @@ -3775,7 +3747,7 @@ "ownedFiles": [ "apps/web/components/chat/message-bubble.tsx" ], - "closureSize": 168, + "closureSize": 166, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -3791,7 +3763,7 @@ "ownedFiles": [ "apps/web/components/chat/pending-operation-card.tsx" ], - "closureSize": 104, + "closureSize": 103, "state": "default", "theme": "light", "locale": "en", @@ -3807,7 +3779,7 @@ "ownedFiles": [ "apps/web/components/chat/pending-operation-card.tsx" ], - "closureSize": 104, + "closureSize": 103, "state": "default", "theme": "light", "locale": "pt-BR", @@ -3823,7 +3795,7 @@ "ownedFiles": [ "apps/web/components/chat/pending-operation-card.tsx" ], - "closureSize": 104, + "closureSize": 103, "state": "default", "theme": "dark", "locale": "en", @@ -3839,7 +3811,7 @@ "ownedFiles": [ "apps/web/components/chat/pending-operation-card.tsx" ], - "closureSize": 104, + "closureSize": 103, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -3982,7 +3954,7 @@ "ownedFiles": [ "apps/web/app/(app)/calendar/_components/calendar-shell.tsx" ], - "closureSize": 108, + "closureSize": 107, "state": "default", "theme": "light", "locale": "en", @@ -3997,7 +3969,7 @@ "ownedFiles": [ "apps/web/app/(app)/calendar/_components/calendar-shell.tsx" ], - "closureSize": 108, + "closureSize": 107, "state": "default", "theme": "light", "locale": "pt-BR", @@ -4012,7 +3984,7 @@ "ownedFiles": [ "apps/web/app/(app)/calendar/_components/calendar-shell.tsx" ], - "closureSize": 108, + "closureSize": 107, "state": "default", "theme": "dark", "locale": "en", @@ -4027,7 +3999,7 @@ "ownedFiles": [ "apps/web/app/(app)/calendar/_components/calendar-shell.tsx" ], - "closureSize": 108, + "closureSize": 107, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -4071,7 +4043,7 @@ "apps/web/lib/providers.tsx", "apps/web/lib/query-client.ts" ], - "closureSize": 364, + "closureSize": 362, "state": "default", "theme": "light", "locale": "en", @@ -4115,7 +4087,7 @@ "apps/web/lib/providers.tsx", "apps/web/lib/query-client.ts" ], - "closureSize": 364, + "closureSize": 362, "state": "default", "theme": "light", "locale": "pt-BR", @@ -4159,7 +4131,7 @@ "apps/web/lib/providers.tsx", "apps/web/lib/query-client.ts" ], - "closureSize": 364, + "closureSize": 362, "state": "default", "theme": "dark", "locale": "en", @@ -4203,7 +4175,7 @@ "apps/web/lib/providers.tsx", "apps/web/lib/query-client.ts" ], - "closureSize": 364, + "closureSize": 362, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -4218,7 +4190,7 @@ "ownedFiles": [ "apps/web/app/(app)/preferences/_components/preference-picker-sheet.tsx" ], - "closureSize": 107, + "closureSize": 106, "state": "default", "theme": "light", "locale": "en", @@ -4233,7 +4205,7 @@ "ownedFiles": [ "apps/web/app/(app)/preferences/_components/preference-picker-sheet.tsx" ], - "closureSize": 107, + "closureSize": 106, "state": "default", "theme": "light", "locale": "pt-BR", @@ -4248,7 +4220,7 @@ "ownedFiles": [ "apps/web/app/(app)/preferences/_components/preference-picker-sheet.tsx" ], - "closureSize": 107, + "closureSize": 106, "state": "default", "theme": "dark", "locale": "en", @@ -4263,7 +4235,7 @@ "ownedFiles": [ "apps/web/app/(app)/preferences/_components/preference-picker-sheet.tsx" ], - "closureSize": 107, + "closureSize": 106, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -4278,7 +4250,7 @@ "ownedFiles": [ "apps/web/app/(app)/profile/_components/delete-account-modal.tsx" ], - "closureSize": 146, + "closureSize": 144, "state": "default", "theme": "light", "locale": "en", @@ -4293,7 +4265,7 @@ "ownedFiles": [ "apps/web/app/(app)/profile/_components/delete-account-modal.tsx" ], - "closureSize": 146, + "closureSize": 144, "state": "default", "theme": "light", "locale": "pt-BR", @@ -4308,7 +4280,7 @@ "ownedFiles": [ "apps/web/app/(app)/profile/_components/delete-account-modal.tsx" ], - "closureSize": 146, + "closureSize": 144, "state": "default", "theme": "dark", "locale": "en", @@ -4323,7 +4295,7 @@ "ownedFiles": [ "apps/web/app/(app)/profile/_components/delete-account-modal.tsx" ], - "closureSize": 146, + "closureSize": 144, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -4338,7 +4310,7 @@ "ownedFiles": [ "apps/web/app/(app)/profile/_components/edit-name-sheet.tsx" ], - "closureSize": 134, + "closureSize": 133, "state": "default", "theme": "light", "locale": "en", @@ -4353,7 +4325,7 @@ "ownedFiles": [ "apps/web/app/(app)/profile/_components/edit-name-sheet.tsx" ], - "closureSize": 134, + "closureSize": 133, "state": "default", "theme": "light", "locale": "pt-BR", @@ -4368,7 +4340,7 @@ "ownedFiles": [ "apps/web/app/(app)/profile/_components/edit-name-sheet.tsx" ], - "closureSize": 134, + "closureSize": 133, "state": "default", "theme": "dark", "locale": "en", @@ -4383,7 +4355,7 @@ "ownedFiles": [ "apps/web/app/(app)/profile/_components/edit-name-sheet.tsx" ], - "closureSize": 134, + "closureSize": 133, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -4398,7 +4370,7 @@ "ownedFiles": [ "apps/web/app/(app)/profile/_components/fresh-start-modal.tsx" ], - "closureSize": 113, + "closureSize": 112, "state": "default", "theme": "light", "locale": "en", @@ -4413,7 +4385,7 @@ "ownedFiles": [ "apps/web/app/(app)/profile/_components/fresh-start-modal.tsx" ], - "closureSize": 113, + "closureSize": 112, "state": "default", "theme": "light", "locale": "pt-BR", @@ -4428,7 +4400,7 @@ "ownedFiles": [ "apps/web/app/(app)/profile/_components/fresh-start-modal.tsx" ], - "closureSize": 113, + "closureSize": 112, "state": "default", "theme": "dark", "locale": "en", @@ -4443,7 +4415,7 @@ "ownedFiles": [ "apps/web/app/(app)/profile/_components/fresh-start-modal.tsx" ], - "closureSize": 113, + "closureSize": 112, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -4458,7 +4430,7 @@ "ownedFiles": [ "apps/web/app/(app)/today-page-view.tsx" ], - "closureSize": 313, + "closureSize": 311, "state": "default", "theme": "light", "locale": "en", @@ -4473,7 +4445,7 @@ "ownedFiles": [ "apps/web/app/(app)/today-page-view.tsx" ], - "closureSize": 313, + "closureSize": 311, "state": "default", "theme": "light", "locale": "pt-BR", @@ -4488,7 +4460,7 @@ "ownedFiles": [ "apps/web/app/(app)/today-page-view.tsx" ], - "closureSize": 313, + "closureSize": 311, "state": "default", "theme": "dark", "locale": "en", @@ -4503,7 +4475,7 @@ "ownedFiles": [ "apps/web/app/(app)/today-page-view.tsx" ], - "closureSize": 313, + "closureSize": 311, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -4518,7 +4490,7 @@ "ownedFiles": [ "apps/web/app/(app)/today-page-view.tsx" ], - "closureSize": 313, + "closureSize": 311, "state": "empty", "theme": "light", "locale": "en", @@ -4533,7 +4505,7 @@ "ownedFiles": [ "apps/web/app/(app)/today-page-view.tsx" ], - "closureSize": 313, + "closureSize": 311, "state": "empty", "theme": "light", "locale": "pt-BR", @@ -4548,7 +4520,7 @@ "ownedFiles": [ "apps/web/app/(app)/today-page-view.tsx" ], - "closureSize": 313, + "closureSize": 311, "state": "empty", "theme": "dark", "locale": "en", @@ -4563,7 +4535,7 @@ "ownedFiles": [ "apps/web/app/(app)/today-page-view.tsx" ], - "closureSize": 313, + "closureSize": 311, "state": "empty", "theme": "dark", "locale": "pt-BR", @@ -4578,7 +4550,7 @@ "ownedFiles": [ "apps/web/app/(app)/today-shell.tsx" ], - "closureSize": 157, + "closureSize": 156, "state": "default", "theme": "light", "locale": "en", @@ -4593,7 +4565,7 @@ "ownedFiles": [ "apps/web/app/(app)/today-shell.tsx" ], - "closureSize": 157, + "closureSize": 156, "state": "default", "theme": "light", "locale": "pt-BR", @@ -4608,7 +4580,7 @@ "ownedFiles": [ "apps/web/app/(app)/today-shell.tsx" ], - "closureSize": 157, + "closureSize": 156, "state": "default", "theme": "dark", "locale": "en", @@ -4623,7 +4595,7 @@ "ownedFiles": [ "apps/web/app/(app)/today-shell.tsx" ], - "closureSize": 157, + "closureSize": 156, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -4638,7 +4610,7 @@ "ownedFiles": [ "apps/web/components/advanced/advanced-sections.tsx" ], - "closureSize": 41, + "closureSize": 40, "state": "default", "theme": "light", "locale": "en", @@ -4653,7 +4625,7 @@ "ownedFiles": [ "apps/web/components/advanced/advanced-sections.tsx" ], - "closureSize": 41, + "closureSize": 40, "state": "default", "theme": "light", "locale": "pt-BR", @@ -4668,7 +4640,7 @@ "ownedFiles": [ "apps/web/components/advanced/advanced-sections.tsx" ], - "closureSize": 41, + "closureSize": 40, "state": "default", "theme": "dark", "locale": "en", @@ -4683,7 +4655,7 @@ "ownedFiles": [ "apps/web/components/advanced/advanced-sections.tsx" ], - "closureSize": 41, + "closureSize": 40, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -4698,7 +4670,7 @@ "ownedFiles": [ "apps/web/components/command/command-palette.tsx" ], - "closureSize": 147, + "closureSize": 146, "state": "default", "theme": "light", "locale": "en", @@ -4713,7 +4685,7 @@ "ownedFiles": [ "apps/web/components/command/command-palette.tsx" ], - "closureSize": 147, + "closureSize": 146, "state": "default", "theme": "light", "locale": "pt-BR", @@ -4728,7 +4700,7 @@ "ownedFiles": [ "apps/web/components/command/command-palette.tsx" ], - "closureSize": 147, + "closureSize": 146, "state": "default", "theme": "dark", "locale": "en", @@ -4743,7 +4715,7 @@ "ownedFiles": [ "apps/web/components/command/command-palette.tsx" ], - "closureSize": 147, + "closureSize": 146, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -4758,7 +4730,7 @@ "ownedFiles": [ "apps/web/components/gamification/achievement-toast.tsx" ], - "closureSize": 129, + "closureSize": 128, "state": "default", "theme": "light", "locale": "en", @@ -4773,7 +4745,7 @@ "ownedFiles": [ "apps/web/components/gamification/achievement-toast.tsx" ], - "closureSize": 129, + "closureSize": 128, "state": "default", "theme": "light", "locale": "pt-BR", @@ -4788,7 +4760,7 @@ "ownedFiles": [ "apps/web/components/gamification/achievement-toast.tsx" ], - "closureSize": 129, + "closureSize": 128, "state": "default", "theme": "dark", "locale": "en", @@ -4803,7 +4775,7 @@ "ownedFiles": [ "apps/web/components/gamification/achievement-toast.tsx" ], - "closureSize": 129, + "closureSize": 128, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -5058,7 +5030,7 @@ "ownedFiles": [ "apps/web/components/gamification/streak-freeze-celebration.tsx" ], - "closureSize": 150, + "closureSize": 148, "state": "default", "theme": "light", "locale": "en", @@ -5073,7 +5045,7 @@ "ownedFiles": [ "apps/web/components/gamification/streak-freeze-celebration.tsx" ], - "closureSize": 150, + "closureSize": 148, "state": "default", "theme": "light", "locale": "pt-BR", @@ -5088,7 +5060,7 @@ "ownedFiles": [ "apps/web/components/gamification/streak-freeze-celebration.tsx" ], - "closureSize": 150, + "closureSize": 148, "state": "default", "theme": "dark", "locale": "en", @@ -5103,7 +5075,7 @@ "ownedFiles": [ "apps/web/components/gamification/streak-freeze-celebration.tsx" ], - "closureSize": 150, + "closureSize": 148, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -5118,7 +5090,7 @@ "ownedFiles": [ "apps/web/components/gamification/welcome-back-toast.tsx" ], - "closureSize": 130, + "closureSize": 129, "state": "default", "theme": "light", "locale": "en", @@ -5133,7 +5105,7 @@ "ownedFiles": [ "apps/web/components/gamification/welcome-back-toast.tsx" ], - "closureSize": 130, + "closureSize": 129, "state": "default", "theme": "light", "locale": "pt-BR", @@ -5148,7 +5120,7 @@ "ownedFiles": [ "apps/web/components/gamification/welcome-back-toast.tsx" ], - "closureSize": 130, + "closureSize": 129, "state": "default", "theme": "dark", "locale": "en", @@ -5163,7 +5135,7 @@ "ownedFiles": [ "apps/web/components/gamification/welcome-back-toast.tsx" ], - "closureSize": 130, + "closureSize": 129, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -5178,7 +5150,7 @@ "ownedFiles": [ "apps/web/components/goals/create-goal-modal.tsx" ], - "closureSize": 169, + "closureSize": 167, "state": "default", "theme": "light", "locale": "en", @@ -5193,7 +5165,7 @@ "ownedFiles": [ "apps/web/components/goals/create-goal-modal.tsx" ], - "closureSize": 169, + "closureSize": 167, "state": "default", "theme": "light", "locale": "pt-BR", @@ -5208,7 +5180,7 @@ "ownedFiles": [ "apps/web/components/goals/create-goal-modal.tsx" ], - "closureSize": 169, + "closureSize": 167, "state": "default", "theme": "dark", "locale": "en", @@ -5223,7 +5195,7 @@ "ownedFiles": [ "apps/web/components/goals/create-goal-modal.tsx" ], - "closureSize": 169, + "closureSize": 167, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -5238,7 +5210,7 @@ "ownedFiles": [ "apps/web/components/goals/edit-goal-modal.tsx" ], - "closureSize": 168, + "closureSize": 166, "state": "default", "theme": "light", "locale": "en", @@ -5253,7 +5225,7 @@ "ownedFiles": [ "apps/web/components/goals/edit-goal-modal.tsx" ], - "closureSize": 168, + "closureSize": 166, "state": "default", "theme": "light", "locale": "pt-BR", @@ -5268,7 +5240,7 @@ "ownedFiles": [ "apps/web/components/goals/edit-goal-modal.tsx" ], - "closureSize": 168, + "closureSize": 166, "state": "default", "theme": "dark", "locale": "en", @@ -5283,7 +5255,7 @@ "ownedFiles": [ "apps/web/components/goals/edit-goal-modal.tsx" ], - "closureSize": 168, + "closureSize": 166, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -5298,7 +5270,7 @@ "ownedFiles": [ "apps/web/components/goals/goal-card.tsx" ], - "closureSize": 192, + "closureSize": 190, "state": "default", "theme": "light", "locale": "en", @@ -5313,7 +5285,7 @@ "ownedFiles": [ "apps/web/components/goals/goal-card.tsx" ], - "closureSize": 192, + "closureSize": 190, "state": "default", "theme": "light", "locale": "pt-BR", @@ -5328,7 +5300,7 @@ "ownedFiles": [ "apps/web/components/goals/goal-card.tsx" ], - "closureSize": 192, + "closureSize": 190, "state": "default", "theme": "dark", "locale": "en", @@ -5343,7 +5315,7 @@ "ownedFiles": [ "apps/web/components/goals/goal-card.tsx" ], - "closureSize": 192, + "closureSize": 190, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -5358,7 +5330,7 @@ "ownedFiles": [ "apps/web/components/goals/goal-detail-drawer.tsx" ], - "closureSize": 186, + "closureSize": 184, "state": "default", "theme": "light", "locale": "en", @@ -5373,7 +5345,7 @@ "ownedFiles": [ "apps/web/components/goals/goal-detail-drawer.tsx" ], - "closureSize": 186, + "closureSize": 184, "state": "default", "theme": "light", "locale": "pt-BR", @@ -5388,7 +5360,7 @@ "ownedFiles": [ "apps/web/components/goals/goal-detail-drawer.tsx" ], - "closureSize": 186, + "closureSize": 184, "state": "default", "theme": "dark", "locale": "en", @@ -5403,7 +5375,7 @@ "ownedFiles": [ "apps/web/components/goals/goal-detail-drawer.tsx" ], - "closureSize": 186, + "closureSize": 184, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -5418,7 +5390,7 @@ "ownedFiles": [ "apps/web/components/goals/goals-view.tsx" ], - "closureSize": 198, + "closureSize": 196, "state": "default", "theme": "light", "locale": "en", @@ -5433,7 +5405,7 @@ "ownedFiles": [ "apps/web/components/goals/goals-view.tsx" ], - "closureSize": 198, + "closureSize": 196, "state": "default", "theme": "light", "locale": "pt-BR", @@ -5448,7 +5420,7 @@ "ownedFiles": [ "apps/web/components/goals/goals-view.tsx" ], - "closureSize": 198, + "closureSize": 196, "state": "default", "theme": "dark", "locale": "en", @@ -5463,7 +5435,7 @@ "ownedFiles": [ "apps/web/components/goals/goals-view.tsx" ], - "closureSize": 198, + "closureSize": 196, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -5478,7 +5450,7 @@ "ownedFiles": [ "apps/web/components/goals/goals-view.tsx" ], - "closureSize": 198, + "closureSize": 196, "state": "empty", "theme": "light", "locale": "en", @@ -5493,7 +5465,7 @@ "ownedFiles": [ "apps/web/components/goals/goals-view.tsx" ], - "closureSize": 198, + "closureSize": 196, "state": "empty", "theme": "light", "locale": "pt-BR", @@ -5508,7 +5480,7 @@ "ownedFiles": [ "apps/web/components/goals/goals-view.tsx" ], - "closureSize": 198, + "closureSize": 196, "state": "empty", "theme": "dark", "locale": "en", @@ -5523,7 +5495,7 @@ "ownedFiles": [ "apps/web/components/goals/goals-view.tsx" ], - "closureSize": 198, + "closureSize": 196, "state": "empty", "theme": "dark", "locale": "pt-BR", @@ -5658,7 +5630,7 @@ "ownedFiles": [ "apps/web/components/habits/create-habit-modal.tsx" ], - "closureSize": 198, + "closureSize": 196, "state": "default", "theme": "light", "locale": "en", @@ -5673,7 +5645,7 @@ "ownedFiles": [ "apps/web/components/habits/create-habit-modal.tsx" ], - "closureSize": 198, + "closureSize": 196, "state": "default", "theme": "light", "locale": "pt-BR", @@ -5688,7 +5660,7 @@ "ownedFiles": [ "apps/web/components/habits/create-habit-modal.tsx" ], - "closureSize": 198, + "closureSize": 196, "state": "default", "theme": "dark", "locale": "en", @@ -5703,7 +5675,7 @@ "ownedFiles": [ "apps/web/components/habits/create-habit-modal.tsx" ], - "closureSize": 198, + "closureSize": 196, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -5778,7 +5750,7 @@ "ownedFiles": [ "apps/web/components/habits/edit-habit-modal.tsx" ], - "closureSize": 196, + "closureSize": 194, "state": "default", "theme": "light", "locale": "en", @@ -5793,7 +5765,7 @@ "ownedFiles": [ "apps/web/components/habits/edit-habit-modal.tsx" ], - "closureSize": 196, + "closureSize": 194, "state": "default", "theme": "light", "locale": "pt-BR", @@ -5808,7 +5780,7 @@ "ownedFiles": [ "apps/web/components/habits/edit-habit-modal.tsx" ], - "closureSize": 196, + "closureSize": 194, "state": "default", "theme": "dark", "locale": "en", @@ -5823,7 +5795,7 @@ "ownedFiles": [ "apps/web/components/habits/edit-habit-modal.tsx" ], - "closureSize": 196, + "closureSize": 194, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -5838,7 +5810,7 @@ "ownedFiles": [ "apps/web/components/habits/habit-detail-drawer.tsx" ], - "closureSize": 174, + "closureSize": 172, "state": "default", "theme": "light", "locale": "en", @@ -5853,7 +5825,7 @@ "ownedFiles": [ "apps/web/components/habits/habit-detail-drawer.tsx" ], - "closureSize": 174, + "closureSize": 172, "state": "default", "theme": "light", "locale": "pt-BR", @@ -5868,7 +5840,7 @@ "ownedFiles": [ "apps/web/components/habits/habit-detail-drawer.tsx" ], - "closureSize": 174, + "closureSize": 172, "state": "default", "theme": "dark", "locale": "en", @@ -5883,7 +5855,7 @@ "ownedFiles": [ "apps/web/components/habits/habit-detail-drawer.tsx" ], - "closureSize": 174, + "closureSize": 172, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -5898,7 +5870,7 @@ "ownedFiles": [ "apps/web/components/habits/habit-form-fields/habit-emoji-selector.tsx" ], - "closureSize": 107, + "closureSize": 106, "state": "default", "theme": "light", "locale": "en", @@ -5913,7 +5885,7 @@ "ownedFiles": [ "apps/web/components/habits/habit-form-fields/habit-emoji-selector.tsx" ], - "closureSize": 107, + "closureSize": 106, "state": "default", "theme": "light", "locale": "pt-BR", @@ -5928,7 +5900,7 @@ "ownedFiles": [ "apps/web/components/habits/habit-form-fields/habit-emoji-selector.tsx" ], - "closureSize": 107, + "closureSize": 106, "state": "default", "theme": "dark", "locale": "en", @@ -5943,7 +5915,7 @@ "ownedFiles": [ "apps/web/components/habits/habit-form-fields/habit-emoji-selector.tsx" ], - "closureSize": 107, + "closureSize": 106, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -6018,7 +5990,7 @@ "ownedFiles": [ "apps/web/components/habits/habit-list/move-parent-overlay.tsx" ], - "closureSize": 108, + "closureSize": 107, "state": "default", "theme": "light", "locale": "en", @@ -6033,7 +6005,7 @@ "ownedFiles": [ "apps/web/components/habits/habit-list/move-parent-overlay.tsx" ], - "closureSize": 108, + "closureSize": 107, "state": "default", "theme": "light", "locale": "pt-BR", @@ -6048,7 +6020,7 @@ "ownedFiles": [ "apps/web/components/habits/habit-list/move-parent-overlay.tsx" ], - "closureSize": 108, + "closureSize": 107, "state": "default", "theme": "dark", "locale": "en", @@ -6063,7 +6035,7 @@ "ownedFiles": [ "apps/web/components/habits/habit-list/move-parent-overlay.tsx" ], - "closureSize": 108, + "closureSize": 107, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -6078,7 +6050,7 @@ "ownedFiles": [ "apps/web/components/habits/habit-row-trailing.tsx" ], - "closureSize": 116, + "closureSize": 115, "state": "default", "theme": "light", "locale": "en", @@ -6093,7 +6065,7 @@ "ownedFiles": [ "apps/web/components/habits/habit-row-trailing.tsx" ], - "closureSize": 116, + "closureSize": 115, "state": "default", "theme": "light", "locale": "pt-BR", @@ -6108,7 +6080,7 @@ "ownedFiles": [ "apps/web/components/habits/habit-row-trailing.tsx" ], - "closureSize": 116, + "closureSize": 115, "state": "default", "theme": "dark", "locale": "en", @@ -6123,7 +6095,7 @@ "ownedFiles": [ "apps/web/components/habits/habit-row-trailing.tsx" ], - "closureSize": 116, + "closureSize": 115, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -6138,7 +6110,7 @@ "ownedFiles": [ "apps/web/components/habits/habit-row.tsx" ], - "closureSize": 116, + "closureSize": 115, "state": "default", "theme": "light", "locale": "en", @@ -6153,7 +6125,7 @@ "ownedFiles": [ "apps/web/components/habits/habit-row.tsx" ], - "closureSize": 116, + "closureSize": 115, "state": "default", "theme": "light", "locale": "pt-BR", @@ -6168,7 +6140,7 @@ "ownedFiles": [ "apps/web/components/habits/habit-row.tsx" ], - "closureSize": 116, + "closureSize": 115, "state": "default", "theme": "dark", "locale": "en", @@ -6183,7 +6155,7 @@ "ownedFiles": [ "apps/web/components/habits/habit-row.tsx" ], - "closureSize": 116, + "closureSize": 115, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -6198,7 +6170,7 @@ "ownedFiles": [ "apps/web/components/habits/reschedule-sheet.tsx" ], - "closureSize": 145, + "closureSize": 144, "state": "default", "theme": "light", "locale": "en", @@ -6213,7 +6185,7 @@ "ownedFiles": [ "apps/web/components/habits/reschedule-sheet.tsx" ], - "closureSize": 145, + "closureSize": 144, "state": "default", "theme": "light", "locale": "pt-BR", @@ -6228,7 +6200,7 @@ "ownedFiles": [ "apps/web/components/habits/reschedule-sheet.tsx" ], - "closureSize": 145, + "closureSize": 144, "state": "default", "theme": "dark", "locale": "en", @@ -6243,7 +6215,7 @@ "ownedFiles": [ "apps/web/components/habits/reschedule-sheet.tsx" ], - "closureSize": 145, + "closureSize": 144, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -6258,7 +6230,7 @@ "ownedFiles": [ "apps/web/components/marketing-consent/marketing-consent-prompt.tsx" ], - "closureSize": 135, + "closureSize": 134, "state": "default", "theme": "light", "locale": "en", @@ -6273,7 +6245,7 @@ "ownedFiles": [ "apps/web/components/marketing-consent/marketing-consent-prompt.tsx" ], - "closureSize": 135, + "closureSize": 134, "state": "default", "theme": "light", "locale": "pt-BR", @@ -6288,7 +6260,7 @@ "ownedFiles": [ "apps/web/components/marketing-consent/marketing-consent-prompt.tsx" ], - "closureSize": 135, + "closureSize": 134, "state": "default", "theme": "dark", "locale": "en", @@ -6303,7 +6275,7 @@ "ownedFiles": [ "apps/web/components/marketing-consent/marketing-consent-prompt.tsx" ], - "closureSize": 135, + "closureSize": 134, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -6318,7 +6290,7 @@ "ownedFiles": [ "apps/web/components/milestone-share/milestone-share-prompt.tsx" ], - "closureSize": 137, + "closureSize": 136, "state": "default", "theme": "light", "locale": "en", @@ -6333,7 +6305,7 @@ "ownedFiles": [ "apps/web/components/milestone-share/milestone-share-prompt.tsx" ], - "closureSize": 137, + "closureSize": 136, "state": "default", "theme": "light", "locale": "pt-BR", @@ -6348,7 +6320,7 @@ "ownedFiles": [ "apps/web/components/milestone-share/milestone-share-prompt.tsx" ], - "closureSize": 137, + "closureSize": 136, "state": "default", "theme": "dark", "locale": "en", @@ -6363,7 +6335,7 @@ "ownedFiles": [ "apps/web/components/milestone-share/milestone-share-prompt.tsx" ], - "closureSize": 137, + "closureSize": 136, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -6378,7 +6350,7 @@ "ownedFiles": [ "apps/web/components/navigation/notification-bell.tsx" ], - "closureSize": 139, + "closureSize": 138, "state": "default", "theme": "light", "locale": "en", @@ -6393,7 +6365,7 @@ "ownedFiles": [ "apps/web/components/navigation/notification-bell.tsx" ], - "closureSize": 139, + "closureSize": 138, "state": "default", "theme": "light", "locale": "pt-BR", @@ -6408,7 +6380,7 @@ "ownedFiles": [ "apps/web/components/navigation/notification-bell.tsx" ], - "closureSize": 139, + "closureSize": 138, "state": "default", "theme": "dark", "locale": "en", @@ -6423,7 +6395,7 @@ "ownedFiles": [ "apps/web/components/navigation/notification-bell.tsx" ], - "closureSize": 139, + "closureSize": 138, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -6438,7 +6410,7 @@ "ownedFiles": [ "apps/web/components/navigation/notification-detail-modal.tsx" ], - "closureSize": 105, + "closureSize": 104, "state": "default", "theme": "light", "locale": "en", @@ -6453,7 +6425,7 @@ "ownedFiles": [ "apps/web/components/navigation/notification-detail-modal.tsx" ], - "closureSize": 105, + "closureSize": 104, "state": "default", "theme": "light", "locale": "pt-BR", @@ -6468,7 +6440,7 @@ "ownedFiles": [ "apps/web/components/navigation/notification-detail-modal.tsx" ], - "closureSize": 105, + "closureSize": 104, "state": "default", "theme": "dark", "locale": "en", @@ -6483,7 +6455,7 @@ "ownedFiles": [ "apps/web/components/navigation/notification-detail-modal.tsx" ], - "closureSize": 105, + "closureSize": 104, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -6558,7 +6530,7 @@ "ownedFiles": [ "apps/web/components/onboarding/onboarding-flow.tsx" ], - "closureSize": 182, + "closureSize": 180, "state": "default", "theme": "light", "locale": "en", @@ -6573,7 +6545,7 @@ "ownedFiles": [ "apps/web/components/onboarding/onboarding-flow.tsx" ], - "closureSize": 182, + "closureSize": 180, "state": "default", "theme": "light", "locale": "pt-BR", @@ -6588,7 +6560,7 @@ "ownedFiles": [ "apps/web/components/onboarding/onboarding-flow.tsx" ], - "closureSize": 182, + "closureSize": 180, "state": "default", "theme": "dark", "locale": "en", @@ -6603,7 +6575,7 @@ "ownedFiles": [ "apps/web/components/onboarding/onboarding-flow.tsx" ], - "closureSize": 182, + "closureSize": 180, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -6618,7 +6590,7 @@ "ownedFiles": [ "apps/web/components/referral/referral-drawer.tsx" ], - "closureSize": 133, + "closureSize": 132, "state": "default", "theme": "light", "locale": "en", @@ -6633,7 +6605,7 @@ "ownedFiles": [ "apps/web/components/referral/referral-drawer.tsx" ], - "closureSize": 133, + "closureSize": 132, "state": "default", "theme": "light", "locale": "pt-BR", @@ -6648,7 +6620,7 @@ "ownedFiles": [ "apps/web/components/referral/referral-drawer.tsx" ], - "closureSize": 133, + "closureSize": 132, "state": "default", "theme": "dark", "locale": "en", @@ -6663,7 +6635,7 @@ "ownedFiles": [ "apps/web/components/referral/referral-drawer.tsx" ], - "closureSize": 133, + "closureSize": 132, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -6678,7 +6650,7 @@ "ownedFiles": [ "apps/web/components/referral/referral-prompt.tsx" ], - "closureSize": 136, + "closureSize": 135, "state": "default", "theme": "light", "locale": "en", @@ -6693,7 +6665,7 @@ "ownedFiles": [ "apps/web/components/referral/referral-prompt.tsx" ], - "closureSize": 136, + "closureSize": 135, "state": "default", "theme": "light", "locale": "pt-BR", @@ -6708,7 +6680,7 @@ "ownedFiles": [ "apps/web/components/referral/referral-prompt.tsx" ], - "closureSize": 136, + "closureSize": 135, "state": "default", "theme": "dark", "locale": "en", @@ -6723,7 +6695,7 @@ "ownedFiles": [ "apps/web/components/referral/referral-prompt.tsx" ], - "closureSize": 136, + "closureSize": 135, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -6738,7 +6710,7 @@ "ownedFiles": [ "apps/web/components/share/share-card-sheet.tsx" ], - "closureSize": 139, + "closureSize": 138, "state": "default", "theme": "light", "locale": "en", @@ -6753,7 +6725,7 @@ "ownedFiles": [ "apps/web/components/share/share-card-sheet.tsx" ], - "closureSize": 139, + "closureSize": 138, "state": "default", "theme": "light", "locale": "pt-BR", @@ -6768,7 +6740,7 @@ "ownedFiles": [ "apps/web/components/share/share-card-sheet.tsx" ], - "closureSize": 139, + "closureSize": 138, "state": "default", "theme": "dark", "locale": "en", @@ -6783,7 +6755,7 @@ "ownedFiles": [ "apps/web/components/share/share-card-sheet.tsx" ], - "closureSize": 139, + "closureSize": 138, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -6858,7 +6830,7 @@ "ownedFiles": [ "apps/web/components/tour/tour-replay-modal.tsx" ], - "closureSize": 149, + "closureSize": 147, "state": "default", "theme": "light", "locale": "en", @@ -6873,7 +6845,7 @@ "ownedFiles": [ "apps/web/components/tour/tour-replay-modal.tsx" ], - "closureSize": 149, + "closureSize": 147, "state": "default", "theme": "light", "locale": "pt-BR", @@ -6888,7 +6860,7 @@ "ownedFiles": [ "apps/web/components/tour/tour-replay-modal.tsx" ], - "closureSize": 149, + "closureSize": 147, "state": "default", "theme": "dark", "locale": "en", @@ -6903,7 +6875,7 @@ "ownedFiles": [ "apps/web/components/tour/tour-replay-modal.tsx" ], - "closureSize": 149, + "closureSize": 147, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -6978,7 +6950,7 @@ "ownedFiles": [ "apps/web/components/tour/tour-tooltip.tsx" ], - "closureSize": 144, + "closureSize": 142, "state": "default", "theme": "light", "locale": "en", @@ -6993,7 +6965,7 @@ "ownedFiles": [ "apps/web/components/tour/tour-tooltip.tsx" ], - "closureSize": 144, + "closureSize": 142, "state": "default", "theme": "light", "locale": "pt-BR", @@ -7008,7 +6980,7 @@ "ownedFiles": [ "apps/web/components/tour/tour-tooltip.tsx" ], - "closureSize": 144, + "closureSize": 142, "state": "default", "theme": "dark", "locale": "en", @@ -7023,7 +6995,7 @@ "ownedFiles": [ "apps/web/components/tour/tour-tooltip.tsx" ], - "closureSize": 144, + "closureSize": 142, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -7038,7 +7010,7 @@ "ownedFiles": [ "apps/web/components/ui/app-date-picker.tsx" ], - "closureSize": 135, + "closureSize": 134, "state": "default", "theme": "light", "locale": "en", @@ -7053,7 +7025,7 @@ "ownedFiles": [ "apps/web/components/ui/app-date-picker.tsx" ], - "closureSize": 135, + "closureSize": 134, "state": "default", "theme": "light", "locale": "pt-BR", @@ -7068,7 +7040,7 @@ "ownedFiles": [ "apps/web/components/ui/app-date-picker.tsx" ], - "closureSize": 135, + "closureSize": 134, "state": "default", "theme": "dark", "locale": "en", @@ -7083,7 +7055,7 @@ "ownedFiles": [ "apps/web/components/ui/app-date-picker.tsx" ], - "closureSize": 135, + "closureSize": 134, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -7158,7 +7130,7 @@ "ownedFiles": [ "apps/web/components/ui/app-time-picker.tsx" ], - "closureSize": 134, + "closureSize": 133, "state": "default", "theme": "light", "locale": "en", @@ -7173,7 +7145,7 @@ "ownedFiles": [ "apps/web/components/ui/app-time-picker.tsx" ], - "closureSize": 134, + "closureSize": 133, "state": "default", "theme": "light", "locale": "pt-BR", @@ -7188,7 +7160,7 @@ "ownedFiles": [ "apps/web/components/ui/app-time-picker.tsx" ], - "closureSize": 134, + "closureSize": 133, "state": "default", "theme": "dark", "locale": "en", @@ -7203,7 +7175,7 @@ "ownedFiles": [ "apps/web/components/ui/app-time-picker.tsx" ], - "closureSize": 134, + "closureSize": 133, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -7398,7 +7370,7 @@ "ownedFiles": [ "apps/web/components/ui/create-api-key-modal.tsx" ], - "closureSize": 110, + "closureSize": 109, "state": "default", "theme": "light", "locale": "en", @@ -7413,7 +7385,7 @@ "ownedFiles": [ "apps/web/components/ui/create-api-key-modal.tsx" ], - "closureSize": 110, + "closureSize": 109, "state": "default", "theme": "light", "locale": "pt-BR", @@ -7428,7 +7400,7 @@ "ownedFiles": [ "apps/web/components/ui/create-api-key-modal.tsx" ], - "closureSize": 110, + "closureSize": 109, "state": "default", "theme": "dark", "locale": "en", @@ -7443,7 +7415,7 @@ "ownedFiles": [ "apps/web/components/ui/create-api-key-modal.tsx" ], - "closureSize": 110, + "closureSize": 109, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -7578,7 +7550,7 @@ "ownedFiles": [ "apps/web/components/ui/trial-expired-modal.tsx" ], - "closureSize": 133, + "closureSize": 132, "state": "default", "theme": "light", "locale": "en", @@ -7593,7 +7565,7 @@ "ownedFiles": [ "apps/web/components/ui/trial-expired-modal.tsx" ], - "closureSize": 133, + "closureSize": 132, "state": "default", "theme": "light", "locale": "pt-BR", @@ -7608,7 +7580,7 @@ "ownedFiles": [ "apps/web/components/ui/trial-expired-modal.tsx" ], - "closureSize": 133, + "closureSize": 132, "state": "default", "theme": "dark", "locale": "en", @@ -7623,7 +7595,7 @@ "ownedFiles": [ "apps/web/components/ui/trial-expired-modal.tsx" ], - "closureSize": 133, + "closureSize": 132, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -7638,7 +7610,7 @@ "ownedFiles": [ "apps/mobile/app/(onboarding)/index.tsx" ], - "closureSize": 207, + "closureSize": 205, "state": "default", "theme": "light", "locale": "en", @@ -7653,7 +7625,7 @@ "ownedFiles": [ "apps/mobile/app/(onboarding)/index.tsx" ], - "closureSize": 207, + "closureSize": 205, "state": "default", "theme": "light", "locale": "pt-BR", @@ -7668,7 +7640,7 @@ "ownedFiles": [ "apps/mobile/app/(onboarding)/index.tsx" ], - "closureSize": 207, + "closureSize": 205, "state": "default", "theme": "dark", "locale": "en", @@ -7683,7 +7655,7 @@ "ownedFiles": [ "apps/mobile/app/(onboarding)/index.tsx" ], - "closureSize": 207, + "closureSize": 205, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -7708,7 +7680,7 @@ "apps/mobile/app/(tabs)/calendar/_components/show-recurring-toggle.tsx", "apps/mobile/lib/calendar-month-model.ts" ], - "closureSize": 191, + "closureSize": 190, "state": "default", "theme": "light", "locale": "en", @@ -7733,7 +7705,7 @@ "apps/mobile/app/(tabs)/calendar/_components/show-recurring-toggle.tsx", "apps/mobile/lib/calendar-month-model.ts" ], - "closureSize": 191, + "closureSize": 190, "state": "default", "theme": "light", "locale": "pt-BR", @@ -7758,7 +7730,7 @@ "apps/mobile/app/(tabs)/calendar/_components/show-recurring-toggle.tsx", "apps/mobile/lib/calendar-month-model.ts" ], - "closureSize": 191, + "closureSize": 190, "state": "default", "theme": "dark", "locale": "en", @@ -7783,7 +7755,7 @@ "apps/mobile/app/(tabs)/calendar/_components/show-recurring-toggle.tsx", "apps/mobile/lib/calendar-month-model.ts" ], - "closureSize": 191, + "closureSize": 190, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -7808,7 +7780,7 @@ "apps/mobile/app/(tabs)/calendar/_components/show-recurring-toggle.tsx", "apps/mobile/lib/calendar-month-model.ts" ], - "closureSize": 191, + "closureSize": 190, "state": "empty", "theme": "light", "locale": "en", @@ -7833,7 +7805,7 @@ "apps/mobile/app/(tabs)/calendar/_components/show-recurring-toggle.tsx", "apps/mobile/lib/calendar-month-model.ts" ], - "closureSize": 191, + "closureSize": 190, "state": "empty", "theme": "light", "locale": "pt-BR", @@ -7858,7 +7830,7 @@ "apps/mobile/app/(tabs)/calendar/_components/show-recurring-toggle.tsx", "apps/mobile/lib/calendar-month-model.ts" ], - "closureSize": 191, + "closureSize": 190, "state": "empty", "theme": "dark", "locale": "en", @@ -7883,7 +7855,7 @@ "apps/mobile/app/(tabs)/calendar/_components/show-recurring-toggle.tsx", "apps/mobile/lib/calendar-month-model.ts" ], - "closureSize": 191, + "closureSize": 190, "state": "empty", "theme": "dark", "locale": "pt-BR", @@ -7937,7 +7909,7 @@ "apps/mobile/hooks/use-habit-visibility.ts", "apps/mobile/lib/habit-selection-state.ts" ], - "closureSize": 347, + "closureSize": 345, "state": "default", "theme": "light", "locale": "en", @@ -7991,7 +7963,7 @@ "apps/mobile/hooks/use-habit-visibility.ts", "apps/mobile/lib/habit-selection-state.ts" ], - "closureSize": 347, + "closureSize": 345, "state": "default", "theme": "light", "locale": "pt-BR", @@ -8045,7 +8017,7 @@ "apps/mobile/hooks/use-habit-visibility.ts", "apps/mobile/lib/habit-selection-state.ts" ], - "closureSize": 347, + "closureSize": 345, "state": "default", "theme": "dark", "locale": "en", @@ -8099,7 +8071,7 @@ "apps/mobile/hooks/use-habit-visibility.ts", "apps/mobile/lib/habit-selection-state.ts" ], - "closureSize": 347, + "closureSize": 345, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -8153,7 +8125,7 @@ "apps/mobile/hooks/use-habit-visibility.ts", "apps/mobile/lib/habit-selection-state.ts" ], - "closureSize": 347, + "closureSize": 345, "state": "empty", "theme": "light", "locale": "en", @@ -8207,7 +8179,7 @@ "apps/mobile/hooks/use-habit-visibility.ts", "apps/mobile/lib/habit-selection-state.ts" ], - "closureSize": 347, + "closureSize": 345, "state": "empty", "theme": "light", "locale": "pt-BR", @@ -8261,7 +8233,7 @@ "apps/mobile/hooks/use-habit-visibility.ts", "apps/mobile/lib/habit-selection-state.ts" ], - "closureSize": 347, + "closureSize": 345, "state": "empty", "theme": "dark", "locale": "en", @@ -8315,7 +8287,7 @@ "apps/mobile/hooks/use-habit-visibility.ts", "apps/mobile/lib/habit-selection-state.ts" ], - "closureSize": 347, + "closureSize": 345, "state": "empty", "theme": "dark", "locale": "pt-BR", @@ -8340,7 +8312,7 @@ "apps/mobile/components/profile/profile-nav-icon.tsx", "apps/mobile/components/ui/settings-group.tsx" ], - "closureSize": 238, + "closureSize": 236, "state": "default", "theme": "light", "locale": "en", @@ -8365,7 +8337,7 @@ "apps/mobile/components/profile/profile-nav-icon.tsx", "apps/mobile/components/ui/settings-group.tsx" ], - "closureSize": 238, + "closureSize": 236, "state": "default", "theme": "light", "locale": "pt-BR", @@ -8390,7 +8362,7 @@ "apps/mobile/components/profile/profile-nav-icon.tsx", "apps/mobile/components/ui/settings-group.tsx" ], - "closureSize": 238, + "closureSize": 236, "state": "default", "theme": "dark", "locale": "en", @@ -8415,7 +8387,7 @@ "apps/mobile/components/profile/profile-nav-icon.tsx", "apps/mobile/components/ui/settings-group.tsx" ], - "closureSize": 238, + "closureSize": 236, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -8430,7 +8402,7 @@ "ownedFiles": [ "apps/mobile/app/about.tsx" ], - "closureSize": 160, + "closureSize": 159, "state": "default", "theme": "light", "locale": "en", @@ -8445,7 +8417,7 @@ "ownedFiles": [ "apps/mobile/app/about.tsx" ], - "closureSize": 160, + "closureSize": 159, "state": "default", "theme": "light", "locale": "pt-BR", @@ -8460,7 +8432,7 @@ "ownedFiles": [ "apps/mobile/app/about.tsx" ], - "closureSize": 160, + "closureSize": 159, "state": "default", "theme": "dark", "locale": "en", @@ -8475,7 +8447,7 @@ "ownedFiles": [ "apps/mobile/app/about.tsx" ], - "closureSize": 160, + "closureSize": 159, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -8491,7 +8463,7 @@ "apps/mobile/app/achievements-sections.tsx", "apps/mobile/app/achievements.tsx" ], - "closureSize": 181, + "closureSize": 179, "state": "default", "theme": "light", "locale": "en", @@ -8507,7 +8479,7 @@ "apps/mobile/app/achievements-sections.tsx", "apps/mobile/app/achievements.tsx" ], - "closureSize": 181, + "closureSize": 179, "state": "default", "theme": "light", "locale": "pt-BR", @@ -8523,7 +8495,7 @@ "apps/mobile/app/achievements-sections.tsx", "apps/mobile/app/achievements.tsx" ], - "closureSize": 181, + "closureSize": 179, "state": "default", "theme": "dark", "locale": "en", @@ -8539,7 +8511,7 @@ "apps/mobile/app/achievements-sections.tsx", "apps/mobile/app/achievements.tsx" ], - "closureSize": 181, + "closureSize": 179, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -8555,7 +8527,7 @@ "apps/mobile/app/advanced-api-keys.ts", "apps/mobile/app/advanced.tsx" ], - "closureSize": 183, + "closureSize": 181, "state": "default", "theme": "light", "locale": "en", @@ -8571,7 +8543,7 @@ "apps/mobile/app/advanced-api-keys.ts", "apps/mobile/app/advanced.tsx" ], - "closureSize": 183, + "closureSize": 181, "state": "default", "theme": "light", "locale": "pt-BR", @@ -8587,7 +8559,7 @@ "apps/mobile/app/advanced-api-keys.ts", "apps/mobile/app/advanced.tsx" ], - "closureSize": 183, + "closureSize": 181, "state": "default", "theme": "dark", "locale": "en", @@ -8603,7 +8575,7 @@ "apps/mobile/app/advanced-api-keys.ts", "apps/mobile/app/advanced.tsx" ], - "closureSize": 183, + "closureSize": 181, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -8618,10 +8590,9 @@ "ownedFiles": [ "apps/mobile/app/ai-settings-sections.tsx", "apps/mobile/app/ai-settings-styles.ts", - "apps/mobile/app/ai-settings.tsx", - "apps/mobile/app/use-user-facts.ts" + "apps/mobile/app/ai-settings.tsx" ], - "closureSize": 167, + "closureSize": 159, "state": "default", "theme": "light", "locale": "en", @@ -8636,10 +8607,9 @@ "ownedFiles": [ "apps/mobile/app/ai-settings-sections.tsx", "apps/mobile/app/ai-settings-styles.ts", - "apps/mobile/app/ai-settings.tsx", - "apps/mobile/app/use-user-facts.ts" + "apps/mobile/app/ai-settings.tsx" ], - "closureSize": 167, + "closureSize": 159, "state": "default", "theme": "light", "locale": "pt-BR", @@ -8654,10 +8624,9 @@ "ownedFiles": [ "apps/mobile/app/ai-settings-sections.tsx", "apps/mobile/app/ai-settings-styles.ts", - "apps/mobile/app/ai-settings.tsx", - "apps/mobile/app/use-user-facts.ts" + "apps/mobile/app/ai-settings.tsx" ], - "closureSize": 167, + "closureSize": 159, "state": "default", "theme": "dark", "locale": "en", @@ -8672,10 +8641,9 @@ "ownedFiles": [ "apps/mobile/app/ai-settings-sections.tsx", "apps/mobile/app/ai-settings-styles.ts", - "apps/mobile/app/ai-settings.tsx", - "apps/mobile/app/use-user-facts.ts" + "apps/mobile/app/ai-settings.tsx" ], - "closureSize": 167, + "closureSize": 159, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -8690,7 +8658,7 @@ "ownedFiles": [ "apps/mobile/app/auth-callback.tsx" ], - "closureSize": 154, + "closureSize": 153, "state": "default", "theme": "light", "locale": "en", @@ -8705,7 +8673,7 @@ "ownedFiles": [ "apps/mobile/app/auth-callback.tsx" ], - "closureSize": 154, + "closureSize": 153, "state": "default", "theme": "light", "locale": "pt-BR", @@ -8720,7 +8688,7 @@ "ownedFiles": [ "apps/mobile/app/auth-callback.tsx" ], - "closureSize": 154, + "closureSize": 153, "state": "default", "theme": "dark", "locale": "en", @@ -8735,7 +8703,7 @@ "ownedFiles": [ "apps/mobile/app/auth-callback.tsx" ], - "closureSize": 154, + "closureSize": 153, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -8760,7 +8728,7 @@ "apps/mobile/hooks/use-calendars.ts", "apps/mobile/lib/calendar-sync-state.ts" ], - "closureSize": 200, + "closureSize": 198, "state": "default", "theme": "light", "locale": "en", @@ -8785,7 +8753,7 @@ "apps/mobile/hooks/use-calendars.ts", "apps/mobile/lib/calendar-sync-state.ts" ], - "closureSize": 200, + "closureSize": 198, "state": "default", "theme": "light", "locale": "pt-BR", @@ -8810,7 +8778,7 @@ "apps/mobile/hooks/use-calendars.ts", "apps/mobile/lib/calendar-sync-state.ts" ], - "closureSize": 200, + "closureSize": 198, "state": "default", "theme": "dark", "locale": "en", @@ -8835,7 +8803,7 @@ "apps/mobile/hooks/use-calendars.ts", "apps/mobile/lib/calendar-sync-state.ts" ], - "closureSize": 200, + "closureSize": 198, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -8860,7 +8828,7 @@ "apps/mobile/hooks/use-calendars.ts", "apps/mobile/lib/calendar-sync-state.ts" ], - "closureSize": 200, + "closureSize": 198, "state": "empty", "theme": "light", "locale": "en", @@ -8885,7 +8853,7 @@ "apps/mobile/hooks/use-calendars.ts", "apps/mobile/lib/calendar-sync-state.ts" ], - "closureSize": 200, + "closureSize": 198, "state": "empty", "theme": "light", "locale": "pt-BR", @@ -8910,7 +8878,7 @@ "apps/mobile/hooks/use-calendars.ts", "apps/mobile/lib/calendar-sync-state.ts" ], - "closureSize": 200, + "closureSize": 198, "state": "empty", "theme": "dark", "locale": "en", @@ -8935,7 +8903,7 @@ "apps/mobile/hooks/use-calendars.ts", "apps/mobile/lib/calendar-sync-state.ts" ], - "closureSize": 200, + "closureSize": 198, "state": "empty", "theme": "dark", "locale": "pt-BR", @@ -8955,7 +8923,7 @@ "apps/mobile/hooks/use-speech-to-text.ts", "apps/mobile/lib/chat-stream.ts" ], - "closureSize": 268, + "closureSize": 266, "state": "default", "theme": "light", "locale": "en", @@ -8975,7 +8943,7 @@ "apps/mobile/hooks/use-speech-to-text.ts", "apps/mobile/lib/chat-stream.ts" ], - "closureSize": 268, + "closureSize": 266, "state": "default", "theme": "light", "locale": "pt-BR", @@ -8995,7 +8963,7 @@ "apps/mobile/hooks/use-speech-to-text.ts", "apps/mobile/lib/chat-stream.ts" ], - "closureSize": 268, + "closureSize": 266, "state": "default", "theme": "dark", "locale": "en", @@ -9015,7 +8983,7 @@ "apps/mobile/hooks/use-speech-to-text.ts", "apps/mobile/lib/chat-stream.ts" ], - "closureSize": 268, + "closureSize": 266, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -9035,7 +9003,7 @@ "apps/mobile/hooks/use-speech-to-text.ts", "apps/mobile/lib/chat-stream.ts" ], - "closureSize": 268, + "closureSize": 266, "state": "empty", "theme": "light", "locale": "en", @@ -9055,7 +9023,7 @@ "apps/mobile/hooks/use-speech-to-text.ts", "apps/mobile/lib/chat-stream.ts" ], - "closureSize": 268, + "closureSize": 266, "state": "empty", "theme": "light", "locale": "pt-BR", @@ -9075,7 +9043,7 @@ "apps/mobile/hooks/use-speech-to-text.ts", "apps/mobile/lib/chat-stream.ts" ], - "closureSize": 268, + "closureSize": 266, "state": "empty", "theme": "dark", "locale": "en", @@ -9095,7 +9063,7 @@ "apps/mobile/hooks/use-speech-to-text.ts", "apps/mobile/lib/chat-stream.ts" ], - "closureSize": 268, + "closureSize": 266, "state": "empty", "theme": "dark", "locale": "pt-BR", @@ -9117,7 +9085,7 @@ "apps/mobile/app/use-login-flow.ts", "apps/mobile/hooks/use-login-code-entry.ts" ], - "closureSize": 171, + "closureSize": 170, "state": "default", "theme": "light", "locale": "en", @@ -9139,7 +9107,7 @@ "apps/mobile/app/use-login-flow.ts", "apps/mobile/hooks/use-login-code-entry.ts" ], - "closureSize": 171, + "closureSize": 170, "state": "default", "theme": "light", "locale": "pt-BR", @@ -9161,7 +9129,7 @@ "apps/mobile/app/use-login-flow.ts", "apps/mobile/hooks/use-login-code-entry.ts" ], - "closureSize": 171, + "closureSize": 170, "state": "default", "theme": "dark", "locale": "en", @@ -9183,7 +9151,7 @@ "apps/mobile/app/use-login-flow.ts", "apps/mobile/hooks/use-login-code-entry.ts" ], - "closureSize": 171, + "closureSize": 170, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -9201,7 +9169,7 @@ "apps/mobile/app/use-preference-controls.ts", "apps/mobile/hooks/use-persistent-reminder.ts" ], - "closureSize": 171, + "closureSize": 170, "state": "default", "theme": "light", "locale": "en", @@ -9219,7 +9187,7 @@ "apps/mobile/app/use-preference-controls.ts", "apps/mobile/hooks/use-persistent-reminder.ts" ], - "closureSize": 171, + "closureSize": 170, "state": "default", "theme": "light", "locale": "pt-BR", @@ -9237,7 +9205,7 @@ "apps/mobile/app/use-preference-controls.ts", "apps/mobile/hooks/use-persistent-reminder.ts" ], - "closureSize": 171, + "closureSize": 170, "state": "default", "theme": "dark", "locale": "en", @@ -9255,7 +9223,7 @@ "apps/mobile/app/use-preference-controls.ts", "apps/mobile/hooks/use-persistent-reminder.ts" ], - "closureSize": 171, + "closureSize": 170, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -9270,7 +9238,7 @@ "ownedFiles": [ "apps/mobile/app/privacy.tsx" ], - "closureSize": 155, + "closureSize": 154, "state": "default", "theme": "light", "locale": "en", @@ -9285,7 +9253,7 @@ "ownedFiles": [ "apps/mobile/app/privacy.tsx" ], - "closureSize": 155, + "closureSize": 154, "state": "default", "theme": "light", "locale": "pt-BR", @@ -9300,7 +9268,7 @@ "ownedFiles": [ "apps/mobile/app/privacy.tsx" ], - "closureSize": 155, + "closureSize": 154, "state": "default", "theme": "dark", "locale": "en", @@ -9315,7 +9283,7 @@ "ownedFiles": [ "apps/mobile/app/privacy.tsx" ], - "closureSize": 155, + "closureSize": 154, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -9330,7 +9298,7 @@ "ownedFiles": [ "apps/mobile/app/r/[code].tsx" ], - "closureSize": 143, + "closureSize": 142, "state": "default", "theme": "light", "locale": "en", @@ -9345,7 +9313,7 @@ "ownedFiles": [ "apps/mobile/app/r/[code].tsx" ], - "closureSize": 143, + "closureSize": 142, "state": "default", "theme": "light", "locale": "pt-BR", @@ -9360,7 +9328,7 @@ "ownedFiles": [ "apps/mobile/app/r/[code].tsx" ], - "closureSize": 143, + "closureSize": 142, "state": "default", "theme": "dark", "locale": "en", @@ -9375,7 +9343,7 @@ "ownedFiles": [ "apps/mobile/app/r/[code].tsx" ], - "closureSize": 143, + "closureSize": 142, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -9398,7 +9366,7 @@ "apps/mobile/components/wrapped/wrapped-entry-button.tsx", "apps/mobile/hooks/use-retrospective.ts" ], - "closureSize": 179, + "closureSize": 178, "state": "default", "theme": "light", "locale": "en", @@ -9421,7 +9389,7 @@ "apps/mobile/components/wrapped/wrapped-entry-button.tsx", "apps/mobile/hooks/use-retrospective.ts" ], - "closureSize": 179, + "closureSize": 178, "state": "default", "theme": "light", "locale": "pt-BR", @@ -9444,7 +9412,7 @@ "apps/mobile/components/wrapped/wrapped-entry-button.tsx", "apps/mobile/hooks/use-retrospective.ts" ], - "closureSize": 179, + "closureSize": 178, "state": "default", "theme": "dark", "locale": "en", @@ -9467,7 +9435,7 @@ "apps/mobile/components/wrapped/wrapped-entry-button.tsx", "apps/mobile/hooks/use-retrospective.ts" ], - "closureSize": 179, + "closureSize": 178, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -9490,7 +9458,7 @@ "apps/mobile/components/wrapped/wrapped-entry-button.tsx", "apps/mobile/hooks/use-retrospective.ts" ], - "closureSize": 179, + "closureSize": 178, "state": "empty", "theme": "light", "locale": "en", @@ -9513,7 +9481,7 @@ "apps/mobile/components/wrapped/wrapped-entry-button.tsx", "apps/mobile/hooks/use-retrospective.ts" ], - "closureSize": 179, + "closureSize": 178, "state": "empty", "theme": "light", "locale": "pt-BR", @@ -9536,7 +9504,7 @@ "apps/mobile/components/wrapped/wrapped-entry-button.tsx", "apps/mobile/hooks/use-retrospective.ts" ], - "closureSize": 179, + "closureSize": 178, "state": "empty", "theme": "dark", "locale": "en", @@ -9559,7 +9527,7 @@ "apps/mobile/components/wrapped/wrapped-entry-button.tsx", "apps/mobile/hooks/use-retrospective.ts" ], - "closureSize": 179, + "closureSize": 178, "state": "empty", "theme": "dark", "locale": "pt-BR", @@ -9576,7 +9544,7 @@ "apps/mobile/app/streak-sections.tsx", "apps/mobile/app/streak.tsx" ], - "closureSize": 189, + "closureSize": 187, "state": "default", "theme": "light", "locale": "en", @@ -9593,7 +9561,7 @@ "apps/mobile/app/streak-sections.tsx", "apps/mobile/app/streak.tsx" ], - "closureSize": 189, + "closureSize": 187, "state": "default", "theme": "light", "locale": "pt-BR", @@ -9610,7 +9578,7 @@ "apps/mobile/app/streak-sections.tsx", "apps/mobile/app/streak.tsx" ], - "closureSize": 189, + "closureSize": 187, "state": "default", "theme": "dark", "locale": "en", @@ -9627,7 +9595,7 @@ "apps/mobile/app/streak-sections.tsx", "apps/mobile/app/streak.tsx" ], - "closureSize": 189, + "closureSize": 187, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -9642,7 +9610,7 @@ "ownedFiles": [ "apps/mobile/app/support.tsx" ], - "closureSize": 160, + "closureSize": 159, "state": "default", "theme": "light", "locale": "en", @@ -9657,7 +9625,7 @@ "ownedFiles": [ "apps/mobile/app/support.tsx" ], - "closureSize": 160, + "closureSize": 159, "state": "default", "theme": "light", "locale": "pt-BR", @@ -9672,7 +9640,7 @@ "ownedFiles": [ "apps/mobile/app/support.tsx" ], - "closureSize": 160, + "closureSize": 159, "state": "default", "theme": "dark", "locale": "en", @@ -9687,7 +9655,7 @@ "ownedFiles": [ "apps/mobile/app/support.tsx" ], - "closureSize": 160, + "closureSize": 159, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -9702,7 +9670,7 @@ "ownedFiles": [ "apps/mobile/app/terms.tsx" ], - "closureSize": 155, + "closureSize": 154, "state": "default", "theme": "light", "locale": "en", @@ -9717,7 +9685,7 @@ "ownedFiles": [ "apps/mobile/app/terms.tsx" ], - "closureSize": 155, + "closureSize": 154, "state": "default", "theme": "light", "locale": "pt-BR", @@ -9732,7 +9700,7 @@ "ownedFiles": [ "apps/mobile/app/terms.tsx" ], - "closureSize": 155, + "closureSize": 154, "state": "default", "theme": "dark", "locale": "en", @@ -9747,7 +9715,7 @@ "ownedFiles": [ "apps/mobile/app/terms.tsx" ], - "closureSize": 155, + "closureSize": 154, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -9778,7 +9746,7 @@ "apps/mobile/hooks/use-play-billing.ts", "apps/mobile/hooks/use-subscription-plans.ts" ], - "closureSize": 182, + "closureSize": 181, "state": "default", "theme": "light", "locale": "en", @@ -9809,7 +9777,7 @@ "apps/mobile/hooks/use-play-billing.ts", "apps/mobile/hooks/use-subscription-plans.ts" ], - "closureSize": 182, + "closureSize": 181, "state": "default", "theme": "light", "locale": "pt-BR", @@ -9840,7 +9808,7 @@ "apps/mobile/hooks/use-play-billing.ts", "apps/mobile/hooks/use-subscription-plans.ts" ], - "closureSize": 182, + "closureSize": 181, "state": "default", "theme": "dark", "locale": "en", @@ -9871,7 +9839,7 @@ "apps/mobile/hooks/use-play-billing.ts", "apps/mobile/hooks/use-subscription-plans.ts" ], - "closureSize": 182, + "closureSize": 181, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -9891,7 +9859,7 @@ "apps/mobile/app/wrapped.tsx", "apps/mobile/hooks/use-wrapped.ts" ], - "closureSize": 168, + "closureSize": 167, "state": "default", "theme": "light", "locale": "en", @@ -9911,7 +9879,7 @@ "apps/mobile/app/wrapped.tsx", "apps/mobile/hooks/use-wrapped.ts" ], - "closureSize": 168, + "closureSize": 167, "state": "default", "theme": "light", "locale": "pt-BR", @@ -9931,7 +9899,7 @@ "apps/mobile/app/wrapped.tsx", "apps/mobile/hooks/use-wrapped.ts" ], - "closureSize": 168, + "closureSize": 167, "state": "default", "theme": "dark", "locale": "en", @@ -9951,7 +9919,7 @@ "apps/mobile/app/wrapped.tsx", "apps/mobile/hooks/use-wrapped.ts" ], - "closureSize": 168, + "closureSize": 167, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -9966,7 +9934,7 @@ "ownedFiles": [ "apps/mobile/app/+not-found.tsx" ], - "closureSize": 151, + "closureSize": 150, "state": "default", "theme": "light", "locale": "en", @@ -9981,7 +9949,7 @@ "ownedFiles": [ "apps/mobile/app/+not-found.tsx" ], - "closureSize": 151, + "closureSize": 150, "state": "default", "theme": "light", "locale": "pt-BR", @@ -9996,7 +9964,7 @@ "ownedFiles": [ "apps/mobile/app/+not-found.tsx" ], - "closureSize": 151, + "closureSize": 150, "state": "default", "theme": "dark", "locale": "en", @@ -10011,7 +9979,7 @@ "ownedFiles": [ "apps/mobile/app/+not-found.tsx" ], - "closureSize": 151, + "closureSize": 150, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -10026,7 +9994,7 @@ "ownedFiles": [ "apps/mobile/components/ui/app-error-boundary.tsx" ], - "closureSize": 104, + "closureSize": 103, "state": "default", "theme": "light", "locale": "en", @@ -10041,7 +10009,7 @@ "ownedFiles": [ "apps/mobile/components/ui/app-error-boundary.tsx" ], - "closureSize": 104, + "closureSize": 103, "state": "default", "theme": "light", "locale": "pt-BR", @@ -10056,7 +10024,7 @@ "ownedFiles": [ "apps/mobile/components/ui/app-error-boundary.tsx" ], - "closureSize": 104, + "closureSize": 103, "state": "default", "theme": "dark", "locale": "en", @@ -10071,7 +10039,7 @@ "ownedFiles": [ "apps/mobile/components/ui/app-error-boundary.tsx" ], - "closureSize": 104, + "closureSize": 103, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -10087,7 +10055,7 @@ "ownedFiles": [ "apps/mobile/components/chat/action-chips.tsx" ], - "closureSize": 150, + "closureSize": 149, "state": "default", "theme": "light", "locale": "en", @@ -10103,7 +10071,7 @@ "ownedFiles": [ "apps/mobile/components/chat/action-chips.tsx" ], - "closureSize": 150, + "closureSize": 149, "state": "default", "theme": "light", "locale": "pt-BR", @@ -10119,7 +10087,7 @@ "ownedFiles": [ "apps/mobile/components/chat/action-chips.tsx" ], - "closureSize": 150, + "closureSize": 149, "state": "default", "theme": "dark", "locale": "en", @@ -10135,7 +10103,7 @@ "ownedFiles": [ "apps/mobile/components/chat/action-chips.tsx" ], - "closureSize": 150, + "closureSize": 149, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -10215,7 +10183,7 @@ "ownedFiles": [ "apps/mobile/components/chat/breakdown-habit-row.tsx" ], - "closureSize": 154, + "closureSize": 153, "state": "default", "theme": "light", "locale": "en", @@ -10231,7 +10199,7 @@ "ownedFiles": [ "apps/mobile/components/chat/breakdown-habit-row.tsx" ], - "closureSize": 154, + "closureSize": 153, "state": "default", "theme": "light", "locale": "pt-BR", @@ -10247,7 +10215,7 @@ "ownedFiles": [ "apps/mobile/components/chat/breakdown-habit-row.tsx" ], - "closureSize": 154, + "closureSize": 153, "state": "default", "theme": "dark", "locale": "en", @@ -10263,7 +10231,7 @@ "ownedFiles": [ "apps/mobile/components/chat/breakdown-habit-row.tsx" ], - "closureSize": 154, + "closureSize": 153, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -10279,7 +10247,7 @@ "ownedFiles": [ "apps/mobile/components/chat/breakdown-suggestion.tsx" ], - "closureSize": 169, + "closureSize": 168, "state": "default", "theme": "light", "locale": "en", @@ -10295,7 +10263,7 @@ "ownedFiles": [ "apps/mobile/components/chat/breakdown-suggestion.tsx" ], - "closureSize": 169, + "closureSize": 168, "state": "default", "theme": "light", "locale": "pt-BR", @@ -10311,7 +10279,7 @@ "ownedFiles": [ "apps/mobile/components/chat/breakdown-suggestion.tsx" ], - "closureSize": 169, + "closureSize": 168, "state": "default", "theme": "dark", "locale": "en", @@ -10327,7 +10295,7 @@ "ownedFiles": [ "apps/mobile/components/chat/breakdown-suggestion.tsx" ], - "closureSize": 169, + "closureSize": 168, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -10407,7 +10375,7 @@ "ownedFiles": [ "apps/mobile/components/chat/chat-composer-input.tsx" ], - "closureSize": 153, + "closureSize": 152, "state": "default", "theme": "light", "locale": "en", @@ -10423,7 +10391,7 @@ "ownedFiles": [ "apps/mobile/components/chat/chat-composer-input.tsx" ], - "closureSize": 153, + "closureSize": 152, "state": "default", "theme": "light", "locale": "pt-BR", @@ -10439,7 +10407,7 @@ "ownedFiles": [ "apps/mobile/components/chat/chat-composer-input.tsx" ], - "closureSize": 153, + "closureSize": 152, "state": "default", "theme": "dark", "locale": "en", @@ -10455,7 +10423,7 @@ "ownedFiles": [ "apps/mobile/components/chat/chat-composer-input.tsx" ], - "closureSize": 153, + "closureSize": 152, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -10471,7 +10439,7 @@ "ownedFiles": [ "apps/mobile/components/chat/chat-empty-state.tsx" ], - "closureSize": 154, + "closureSize": 153, "state": "default", "theme": "light", "locale": "en", @@ -10487,7 +10455,7 @@ "ownedFiles": [ "apps/mobile/components/chat/chat-empty-state.tsx" ], - "closureSize": 154, + "closureSize": 153, "state": "default", "theme": "light", "locale": "pt-BR", @@ -10503,7 +10471,7 @@ "ownedFiles": [ "apps/mobile/components/chat/chat-empty-state.tsx" ], - "closureSize": 154, + "closureSize": 153, "state": "default", "theme": "dark", "locale": "en", @@ -10519,7 +10487,7 @@ "ownedFiles": [ "apps/mobile/components/chat/chat-empty-state.tsx" ], - "closureSize": 154, + "closureSize": 153, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -10535,7 +10503,7 @@ "ownedFiles": [ "apps/mobile/components/chat/chat-empty-state.tsx" ], - "closureSize": 154, + "closureSize": 153, "state": "empty", "theme": "light", "locale": "en", @@ -10551,7 +10519,7 @@ "ownedFiles": [ "apps/mobile/components/chat/chat-empty-state.tsx" ], - "closureSize": 154, + "closureSize": 153, "state": "empty", "theme": "light", "locale": "pt-BR", @@ -10567,7 +10535,7 @@ "ownedFiles": [ "apps/mobile/components/chat/chat-empty-state.tsx" ], - "closureSize": 154, + "closureSize": 153, "state": "empty", "theme": "dark", "locale": "en", @@ -10583,7 +10551,7 @@ "ownedFiles": [ "apps/mobile/components/chat/chat-empty-state.tsx" ], - "closureSize": 154, + "closureSize": 153, "state": "empty", "theme": "dark", "locale": "pt-BR", @@ -10599,7 +10567,7 @@ "ownedFiles": [ "apps/mobile/components/chat/chat-input-area.tsx" ], - "closureSize": 179, + "closureSize": 177, "state": "default", "theme": "light", "locale": "en", @@ -10615,7 +10583,7 @@ "ownedFiles": [ "apps/mobile/components/chat/chat-input-area.tsx" ], - "closureSize": 179, + "closureSize": 177, "state": "default", "theme": "light", "locale": "pt-BR", @@ -10631,7 +10599,7 @@ "ownedFiles": [ "apps/mobile/components/chat/chat-input-area.tsx" ], - "closureSize": 179, + "closureSize": 177, "state": "default", "theme": "dark", "locale": "en", @@ -10647,7 +10615,7 @@ "ownedFiles": [ "apps/mobile/components/chat/chat-input-area.tsx" ], - "closureSize": 179, + "closureSize": 177, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -10663,7 +10631,7 @@ "ownedFiles": [ "apps/mobile/components/chat/chat-input-bar.tsx" ], - "closureSize": 175, + "closureSize": 173, "state": "default", "theme": "light", "locale": "en", @@ -10679,7 +10647,7 @@ "ownedFiles": [ "apps/mobile/components/chat/chat-input-bar.tsx" ], - "closureSize": 175, + "closureSize": 173, "state": "default", "theme": "light", "locale": "pt-BR", @@ -10695,7 +10663,7 @@ "ownedFiles": [ "apps/mobile/components/chat/chat-input-bar.tsx" ], - "closureSize": 175, + "closureSize": 173, "state": "default", "theme": "dark", "locale": "en", @@ -10711,7 +10679,7 @@ "ownedFiles": [ "apps/mobile/components/chat/chat-input-bar.tsx" ], - "closureSize": 175, + "closureSize": 173, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -10727,7 +10695,7 @@ "ownedFiles": [ "apps/mobile/components/chat/clarification-card.tsx" ], - "closureSize": 162, + "closureSize": 160, "state": "default", "theme": "light", "locale": "en", @@ -10743,7 +10711,7 @@ "ownedFiles": [ "apps/mobile/components/chat/clarification-card.tsx" ], - "closureSize": 162, + "closureSize": 160, "state": "default", "theme": "light", "locale": "pt-BR", @@ -10759,7 +10727,7 @@ "ownedFiles": [ "apps/mobile/components/chat/clarification-card.tsx" ], - "closureSize": 162, + "closureSize": 160, "state": "default", "theme": "dark", "locale": "en", @@ -10775,7 +10743,7 @@ "ownedFiles": [ "apps/mobile/components/chat/clarification-card.tsx" ], - "closureSize": 162, + "closureSize": 160, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -10791,7 +10759,7 @@ "ownedFiles": [ "apps/mobile/components/chat/conflict-warning.tsx" ], - "closureSize": 149, + "closureSize": 148, "state": "default", "theme": "light", "locale": "en", @@ -10807,7 +10775,7 @@ "ownedFiles": [ "apps/mobile/components/chat/conflict-warning.tsx" ], - "closureSize": 149, + "closureSize": 148, "state": "default", "theme": "light", "locale": "pt-BR", @@ -10823,7 +10791,7 @@ "ownedFiles": [ "apps/mobile/components/chat/conflict-warning.tsx" ], - "closureSize": 149, + "closureSize": 148, "state": "default", "theme": "dark", "locale": "en", @@ -10839,7 +10807,7 @@ "ownedFiles": [ "apps/mobile/components/chat/conflict-warning.tsx" ], - "closureSize": 149, + "closureSize": 148, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -10855,7 +10823,7 @@ "ownedFiles": [ "apps/mobile/components/chat/goal-list-card.tsx" ], - "closureSize": 149, + "closureSize": 148, "state": "default", "theme": "light", "locale": "en", @@ -10871,7 +10839,7 @@ "ownedFiles": [ "apps/mobile/components/chat/goal-list-card.tsx" ], - "closureSize": 149, + "closureSize": 148, "state": "default", "theme": "light", "locale": "pt-BR", @@ -10887,7 +10855,7 @@ "ownedFiles": [ "apps/mobile/components/chat/goal-list-card.tsx" ], - "closureSize": 149, + "closureSize": 148, "state": "default", "theme": "dark", "locale": "en", @@ -10903,7 +10871,7 @@ "ownedFiles": [ "apps/mobile/components/chat/goal-list-card.tsx" ], - "closureSize": 149, + "closureSize": 148, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -10919,7 +10887,7 @@ "ownedFiles": [ "apps/mobile/components/chat/habit-list-card.tsx" ], - "closureSize": 149, + "closureSize": 148, "state": "default", "theme": "light", "locale": "en", @@ -10935,7 +10903,7 @@ "ownedFiles": [ "apps/mobile/components/chat/habit-list-card.tsx" ], - "closureSize": 149, + "closureSize": 148, "state": "default", "theme": "light", "locale": "pt-BR", @@ -10951,7 +10919,7 @@ "ownedFiles": [ "apps/mobile/components/chat/habit-list-card.tsx" ], - "closureSize": 149, + "closureSize": 148, "state": "default", "theme": "dark", "locale": "en", @@ -10967,7 +10935,7 @@ "ownedFiles": [ "apps/mobile/components/chat/habit-list-card.tsx" ], - "closureSize": 149, + "closureSize": 148, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -10983,7 +10951,7 @@ "ownedFiles": [ "apps/mobile/components/chat/pending-operation-card.tsx" ], - "closureSize": 163, + "closureSize": 161, "state": "default", "theme": "light", "locale": "en", @@ -10999,7 +10967,7 @@ "ownedFiles": [ "apps/mobile/components/chat/pending-operation-card.tsx" ], - "closureSize": 163, + "closureSize": 161, "state": "default", "theme": "light", "locale": "pt-BR", @@ -11015,7 +10983,7 @@ "ownedFiles": [ "apps/mobile/components/chat/pending-operation-card.tsx" ], - "closureSize": 163, + "closureSize": 161, "state": "default", "theme": "dark", "locale": "en", @@ -11031,7 +10999,7 @@ "ownedFiles": [ "apps/mobile/components/chat/pending-operation-card.tsx" ], - "closureSize": 163, + "closureSize": 161, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -11047,7 +11015,7 @@ "ownedFiles": [ "apps/mobile/components/chat/suggestion-chips.tsx" ], - "closureSize": 151, + "closureSize": 150, "state": "default", "theme": "light", "locale": "en", @@ -11063,7 +11031,7 @@ "ownedFiles": [ "apps/mobile/components/chat/suggestion-chips.tsx" ], - "closureSize": 151, + "closureSize": 150, "state": "default", "theme": "light", "locale": "pt-BR", @@ -11079,7 +11047,7 @@ "ownedFiles": [ "apps/mobile/components/chat/suggestion-chips.tsx" ], - "closureSize": 151, + "closureSize": 150, "state": "default", "theme": "dark", "locale": "en", @@ -11095,7 +11063,7 @@ "ownedFiles": [ "apps/mobile/components/chat/suggestion-chips.tsx" ], - "closureSize": 151, + "closureSize": 150, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -11111,7 +11079,7 @@ "ownedFiles": [ "apps/mobile/components/chat/typing-indicator.tsx" ], - "closureSize": 150, + "closureSize": 149, "state": "default", "theme": "light", "locale": "en", @@ -11127,7 +11095,7 @@ "ownedFiles": [ "apps/mobile/components/chat/typing-indicator.tsx" ], - "closureSize": 150, + "closureSize": 149, "state": "default", "theme": "light", "locale": "pt-BR", @@ -11143,7 +11111,7 @@ "ownedFiles": [ "apps/mobile/components/chat/typing-indicator.tsx" ], - "closureSize": 150, + "closureSize": 149, "state": "default", "theme": "dark", "locale": "en", @@ -11159,7 +11127,7 @@ "ownedFiles": [ "apps/mobile/components/chat/typing-indicator.tsx" ], - "closureSize": 150, + "closureSize": 149, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -11175,7 +11143,7 @@ "ownedFiles": [ "apps/mobile/components/message-bubble.tsx" ], - "closureSize": 195, + "closureSize": 193, "state": "default", "theme": "light", "locale": "en", @@ -11191,7 +11159,7 @@ "ownedFiles": [ "apps/mobile/components/message-bubble.tsx" ], - "closureSize": 195, + "closureSize": 193, "state": "default", "theme": "light", "locale": "pt-BR", @@ -11207,7 +11175,7 @@ "ownedFiles": [ "apps/mobile/components/message-bubble.tsx" ], - "closureSize": 195, + "closureSize": 193, "state": "default", "theme": "dark", "locale": "en", @@ -11223,7 +11191,7 @@ "ownedFiles": [ "apps/mobile/components/message-bubble.tsx" ], - "closureSize": 195, + "closureSize": 193, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -11238,7 +11206,7 @@ "ownedFiles": [ "apps/mobile/app/(tabs)/calendar/_components/calendar-shell.tsx" ], - "closureSize": 106, + "closureSize": 105, "state": "default", "theme": "light", "locale": "en", @@ -11253,7 +11221,7 @@ "ownedFiles": [ "apps/mobile/app/(tabs)/calendar/_components/calendar-shell.tsx" ], - "closureSize": 106, + "closureSize": 105, "state": "default", "theme": "light", "locale": "pt-BR", @@ -11268,7 +11236,7 @@ "ownedFiles": [ "apps/mobile/app/(tabs)/calendar/_components/calendar-shell.tsx" ], - "closureSize": 106, + "closureSize": 105, "state": "default", "theme": "dark", "locale": "en", @@ -11283,7 +11251,7 @@ "ownedFiles": [ "apps/mobile/app/(tabs)/calendar/_components/calendar-shell.tsx" ], - "closureSize": 106, + "closureSize": 105, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -11298,7 +11266,7 @@ "ownedFiles": [ "apps/mobile/app/(tabs)/profile/_components/delete-account-modal.tsx" ], - "closureSize": 174, + "closureSize": 172, "state": "default", "theme": "light", "locale": "en", @@ -11313,7 +11281,7 @@ "ownedFiles": [ "apps/mobile/app/(tabs)/profile/_components/delete-account-modal.tsx" ], - "closureSize": 174, + "closureSize": 172, "state": "default", "theme": "light", "locale": "pt-BR", @@ -11328,7 +11296,7 @@ "ownedFiles": [ "apps/mobile/app/(tabs)/profile/_components/delete-account-modal.tsx" ], - "closureSize": 174, + "closureSize": 172, "state": "default", "theme": "dark", "locale": "en", @@ -11343,7 +11311,7 @@ "ownedFiles": [ "apps/mobile/app/(tabs)/profile/_components/delete-account-modal.tsx" ], - "closureSize": 174, + "closureSize": 172, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -11358,7 +11326,7 @@ "ownedFiles": [ "apps/mobile/app/(tabs)/profile/_components/edit-name-sheet.tsx" ], - "closureSize": 154, + "closureSize": 153, "state": "default", "theme": "light", "locale": "en", @@ -11373,7 +11341,7 @@ "ownedFiles": [ "apps/mobile/app/(tabs)/profile/_components/edit-name-sheet.tsx" ], - "closureSize": 154, + "closureSize": 153, "state": "default", "theme": "light", "locale": "pt-BR", @@ -11388,7 +11356,7 @@ "ownedFiles": [ "apps/mobile/app/(tabs)/profile/_components/edit-name-sheet.tsx" ], - "closureSize": 154, + "closureSize": 153, "state": "default", "theme": "dark", "locale": "en", @@ -11403,7 +11371,7 @@ "ownedFiles": [ "apps/mobile/app/(tabs)/profile/_components/edit-name-sheet.tsx" ], - "closureSize": 154, + "closureSize": 153, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -11418,7 +11386,7 @@ "ownedFiles": [ "apps/mobile/app/(tabs)/profile/_components/fresh-start-modal.tsx" ], - "closureSize": 156, + "closureSize": 155, "state": "default", "theme": "light", "locale": "en", @@ -11433,7 +11401,7 @@ "ownedFiles": [ "apps/mobile/app/(tabs)/profile/_components/fresh-start-modal.tsx" ], - "closureSize": 156, + "closureSize": 155, "state": "default", "theme": "light", "locale": "pt-BR", @@ -11448,7 +11416,7 @@ "ownedFiles": [ "apps/mobile/app/(tabs)/profile/_components/fresh-start-modal.tsx" ], - "closureSize": 156, + "closureSize": 155, "state": "default", "theme": "dark", "locale": "en", @@ -11463,7 +11431,7 @@ "ownedFiles": [ "apps/mobile/app/(tabs)/profile/_components/fresh-start-modal.tsx" ], - "closureSize": 156, + "closureSize": 155, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -11478,7 +11446,7 @@ "ownedFiles": [ "apps/mobile/app/(tabs)/today-modals.tsx" ], - "closureSize": 254, + "closureSize": 252, "state": "default", "theme": "light", "locale": "en", @@ -11493,7 +11461,7 @@ "ownedFiles": [ "apps/mobile/app/(tabs)/today-modals.tsx" ], - "closureSize": 254, + "closureSize": 252, "state": "default", "theme": "light", "locale": "pt-BR", @@ -11508,7 +11476,7 @@ "ownedFiles": [ "apps/mobile/app/(tabs)/today-modals.tsx" ], - "closureSize": 254, + "closureSize": 252, "state": "default", "theme": "dark", "locale": "en", @@ -11523,7 +11491,7 @@ "ownedFiles": [ "apps/mobile/app/(tabs)/today-modals.tsx" ], - "closureSize": 254, + "closureSize": 252, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -11538,7 +11506,7 @@ "ownedFiles": [ "apps/mobile/app/advanced-sections.tsx" ], - "closureSize": 164, + "closureSize": 162, "state": "default", "theme": "light", "locale": "en", @@ -11553,7 +11521,7 @@ "ownedFiles": [ "apps/mobile/app/advanced-sections.tsx" ], - "closureSize": 164, + "closureSize": 162, "state": "default", "theme": "light", "locale": "pt-BR", @@ -11568,7 +11536,7 @@ "ownedFiles": [ "apps/mobile/app/advanced-sections.tsx" ], - "closureSize": 164, + "closureSize": 162, "state": "default", "theme": "dark", "locale": "en", @@ -11583,7 +11551,7 @@ "ownedFiles": [ "apps/mobile/app/advanced-sections.tsx" ], - "closureSize": 164, + "closureSize": 162, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -11598,7 +11566,7 @@ "ownedFiles": [ "apps/mobile/app/preferences-sections.tsx" ], - "closureSize": 158, + "closureSize": 157, "state": "default", "theme": "light", "locale": "en", @@ -11613,7 +11581,7 @@ "ownedFiles": [ "apps/mobile/app/preferences-sections.tsx" ], - "closureSize": 158, + "closureSize": 157, "state": "default", "theme": "light", "locale": "pt-BR", @@ -11628,7 +11596,7 @@ "ownedFiles": [ "apps/mobile/app/preferences-sections.tsx" ], - "closureSize": 158, + "closureSize": 157, "state": "default", "theme": "dark", "locale": "en", @@ -11643,7 +11611,7 @@ "ownedFiles": [ "apps/mobile/app/preferences-sections.tsx" ], - "closureSize": 158, + "closureSize": 157, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -11658,7 +11626,7 @@ "ownedFiles": [ "apps/mobile/components/bottom-sheet-modal.tsx" ], - "closureSize": 149, + "closureSize": 148, "state": "default", "theme": "light", "locale": "en", @@ -11673,7 +11641,7 @@ "ownedFiles": [ "apps/mobile/components/bottom-sheet-modal.tsx" ], - "closureSize": 149, + "closureSize": 148, "state": "default", "theme": "light", "locale": "pt-BR", @@ -11688,7 +11656,7 @@ "ownedFiles": [ "apps/mobile/components/bottom-sheet-modal.tsx" ], - "closureSize": 149, + "closureSize": 148, "state": "default", "theme": "dark", "locale": "en", @@ -11703,7 +11671,7 @@ "ownedFiles": [ "apps/mobile/components/bottom-sheet-modal.tsx" ], - "closureSize": 149, + "closureSize": 148, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -11718,7 +11686,7 @@ "ownedFiles": [ "apps/mobile/components/gamification/achievement-toast.tsx" ], - "closureSize": 151, + "closureSize": 150, "state": "default", "theme": "light", "locale": "en", @@ -11733,7 +11701,7 @@ "ownedFiles": [ "apps/mobile/components/gamification/achievement-toast.tsx" ], - "closureSize": 151, + "closureSize": 150, "state": "default", "theme": "light", "locale": "pt-BR", @@ -11748,7 +11716,7 @@ "ownedFiles": [ "apps/mobile/components/gamification/achievement-toast.tsx" ], - "closureSize": 151, + "closureSize": 150, "state": "default", "theme": "dark", "locale": "en", @@ -11763,7 +11731,7 @@ "ownedFiles": [ "apps/mobile/components/gamification/achievement-toast.tsx" ], - "closureSize": 151, + "closureSize": 150, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -11778,7 +11746,7 @@ "ownedFiles": [ "apps/mobile/components/gamification/all-done-celebration.tsx" ], - "closureSize": 153, + "closureSize": 152, "state": "default", "theme": "light", "locale": "en", @@ -11793,7 +11761,7 @@ "ownedFiles": [ "apps/mobile/components/gamification/all-done-celebration.tsx" ], - "closureSize": 153, + "closureSize": 152, "state": "default", "theme": "light", "locale": "pt-BR", @@ -11808,7 +11776,7 @@ "ownedFiles": [ "apps/mobile/components/gamification/all-done-celebration.tsx" ], - "closureSize": 153, + "closureSize": 152, "state": "default", "theme": "dark", "locale": "en", @@ -11823,7 +11791,7 @@ "ownedFiles": [ "apps/mobile/components/gamification/all-done-celebration.tsx" ], - "closureSize": 153, + "closureSize": 152, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -11838,7 +11806,7 @@ "ownedFiles": [ "apps/mobile/components/gamification/goal-completed-celebration.tsx" ], - "closureSize": 154, + "closureSize": 153, "state": "default", "theme": "light", "locale": "en", @@ -11853,7 +11821,7 @@ "ownedFiles": [ "apps/mobile/components/gamification/goal-completed-celebration.tsx" ], - "closureSize": 154, + "closureSize": 153, "state": "default", "theme": "light", "locale": "pt-BR", @@ -11868,7 +11836,7 @@ "ownedFiles": [ "apps/mobile/components/gamification/goal-completed-celebration.tsx" ], - "closureSize": 154, + "closureSize": 153, "state": "default", "theme": "dark", "locale": "en", @@ -11883,7 +11851,7 @@ "ownedFiles": [ "apps/mobile/components/gamification/goal-completed-celebration.tsx" ], - "closureSize": 154, + "closureSize": 153, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -11899,7 +11867,7 @@ "apps/mobile/components/gamification/level-up-overlay.tsx", "apps/mobile/hooks/use-overlay-back.ts" ], - "closureSize": 154, + "closureSize": 153, "state": "default", "theme": "light", "locale": "en", @@ -11915,7 +11883,7 @@ "apps/mobile/components/gamification/level-up-overlay.tsx", "apps/mobile/hooks/use-overlay-back.ts" ], - "closureSize": 154, + "closureSize": 153, "state": "default", "theme": "light", "locale": "pt-BR", @@ -11931,7 +11899,7 @@ "apps/mobile/components/gamification/level-up-overlay.tsx", "apps/mobile/hooks/use-overlay-back.ts" ], - "closureSize": 154, + "closureSize": 153, "state": "default", "theme": "dark", "locale": "en", @@ -11947,7 +11915,7 @@ "apps/mobile/components/gamification/level-up-overlay.tsx", "apps/mobile/hooks/use-overlay-back.ts" ], - "closureSize": 154, + "closureSize": 153, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -11962,7 +11930,7 @@ "ownedFiles": [ "apps/mobile/components/gamification/streak-celebration.tsx" ], - "closureSize": 154, + "closureSize": 153, "state": "default", "theme": "light", "locale": "en", @@ -11977,7 +11945,7 @@ "ownedFiles": [ "apps/mobile/components/gamification/streak-celebration.tsx" ], - "closureSize": 154, + "closureSize": 153, "state": "default", "theme": "light", "locale": "pt-BR", @@ -11992,7 +11960,7 @@ "ownedFiles": [ "apps/mobile/components/gamification/streak-celebration.tsx" ], - "closureSize": 154, + "closureSize": 153, "state": "default", "theme": "dark", "locale": "en", @@ -12007,7 +11975,7 @@ "ownedFiles": [ "apps/mobile/components/gamification/streak-celebration.tsx" ], - "closureSize": 154, + "closureSize": 153, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -12022,7 +11990,7 @@ "ownedFiles": [ "apps/mobile/components/gamification/streak-freeze-celebration.tsx" ], - "closureSize": 171, + "closureSize": 169, "state": "default", "theme": "light", "locale": "en", @@ -12037,7 +12005,7 @@ "ownedFiles": [ "apps/mobile/components/gamification/streak-freeze-celebration.tsx" ], - "closureSize": 171, + "closureSize": 169, "state": "default", "theme": "light", "locale": "pt-BR", @@ -12052,7 +12020,7 @@ "ownedFiles": [ "apps/mobile/components/gamification/streak-freeze-celebration.tsx" ], - "closureSize": 171, + "closureSize": 169, "state": "default", "theme": "dark", "locale": "en", @@ -12067,7 +12035,7 @@ "ownedFiles": [ "apps/mobile/components/gamification/streak-freeze-celebration.tsx" ], - "closureSize": 171, + "closureSize": 169, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -12082,7 +12050,7 @@ "ownedFiles": [ "apps/mobile/components/gamification/welcome-back-toast.tsx" ], - "closureSize": 149, + "closureSize": 148, "state": "default", "theme": "light", "locale": "en", @@ -12097,7 +12065,7 @@ "ownedFiles": [ "apps/mobile/components/gamification/welcome-back-toast.tsx" ], - "closureSize": 149, + "closureSize": 148, "state": "default", "theme": "light", "locale": "pt-BR", @@ -12112,7 +12080,7 @@ "ownedFiles": [ "apps/mobile/components/gamification/welcome-back-toast.tsx" ], - "closureSize": 149, + "closureSize": 148, "state": "default", "theme": "dark", "locale": "en", @@ -12127,7 +12095,7 @@ "ownedFiles": [ "apps/mobile/components/gamification/welcome-back-toast.tsx" ], - "closureSize": 149, + "closureSize": 148, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -12142,7 +12110,7 @@ "ownedFiles": [ "apps/mobile/components/goals/create-goal-modal.tsx" ], - "closureSize": 187, + "closureSize": 185, "state": "default", "theme": "light", "locale": "en", @@ -12157,7 +12125,7 @@ "ownedFiles": [ "apps/mobile/components/goals/create-goal-modal.tsx" ], - "closureSize": 187, + "closureSize": 185, "state": "default", "theme": "light", "locale": "pt-BR", @@ -12172,7 +12140,7 @@ "ownedFiles": [ "apps/mobile/components/goals/create-goal-modal.tsx" ], - "closureSize": 187, + "closureSize": 185, "state": "default", "theme": "dark", "locale": "en", @@ -12187,7 +12155,7 @@ "ownedFiles": [ "apps/mobile/components/goals/create-goal-modal.tsx" ], - "closureSize": 187, + "closureSize": 185, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -12202,7 +12170,7 @@ "ownedFiles": [ "apps/mobile/components/goals/edit-goal-modal.tsx" ], - "closureSize": 186, + "closureSize": 184, "state": "default", "theme": "light", "locale": "en", @@ -12217,7 +12185,7 @@ "ownedFiles": [ "apps/mobile/components/goals/edit-goal-modal.tsx" ], - "closureSize": 186, + "closureSize": 184, "state": "default", "theme": "light", "locale": "pt-BR", @@ -12232,7 +12200,7 @@ "ownedFiles": [ "apps/mobile/components/goals/edit-goal-modal.tsx" ], - "closureSize": 186, + "closureSize": 184, "state": "default", "theme": "dark", "locale": "en", @@ -12247,7 +12215,7 @@ "ownedFiles": [ "apps/mobile/components/goals/edit-goal-modal.tsx" ], - "closureSize": 186, + "closureSize": 184, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -12262,7 +12230,7 @@ "ownedFiles": [ "apps/mobile/components/goals/goal-detail-drawer.tsx" ], - "closureSize": 205, + "closureSize": 203, "state": "default", "theme": "light", "locale": "en", @@ -12277,7 +12245,7 @@ "ownedFiles": [ "apps/mobile/components/goals/goal-detail-drawer.tsx" ], - "closureSize": 205, + "closureSize": 203, "state": "default", "theme": "light", "locale": "pt-BR", @@ -12292,7 +12260,7 @@ "ownedFiles": [ "apps/mobile/components/goals/goal-detail-drawer.tsx" ], - "closureSize": 205, + "closureSize": 203, "state": "default", "theme": "dark", "locale": "en", @@ -12307,7 +12275,7 @@ "ownedFiles": [ "apps/mobile/components/goals/goal-detail-drawer.tsx" ], - "closureSize": 205, + "closureSize": 203, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -12322,7 +12290,7 @@ "ownedFiles": [ "apps/mobile/components/habit-list/confirm-dialogs.tsx" ], - "closureSize": 150, + "closureSize": 149, "state": "default", "theme": "light", "locale": "en", @@ -12337,7 +12305,7 @@ "ownedFiles": [ "apps/mobile/components/habit-list/confirm-dialogs.tsx" ], - "closureSize": 150, + "closureSize": 149, "state": "default", "theme": "light", "locale": "pt-BR", @@ -12352,7 +12320,7 @@ "ownedFiles": [ "apps/mobile/components/habit-list/confirm-dialogs.tsx" ], - "closureSize": 150, + "closureSize": 149, "state": "default", "theme": "dark", "locale": "en", @@ -12367,7 +12335,7 @@ "ownedFiles": [ "apps/mobile/components/habit-list/confirm-dialogs.tsx" ], - "closureSize": 150, + "closureSize": 149, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -12382,7 +12350,7 @@ "ownedFiles": [ "apps/mobile/components/habit-list/move-parent-dialog.tsx" ], - "closureSize": 155, + "closureSize": 154, "state": "default", "theme": "light", "locale": "en", @@ -12397,7 +12365,7 @@ "ownedFiles": [ "apps/mobile/components/habit-list/move-parent-dialog.tsx" ], - "closureSize": 155, + "closureSize": 154, "state": "default", "theme": "light", "locale": "pt-BR", @@ -12412,7 +12380,7 @@ "ownedFiles": [ "apps/mobile/components/habit-list/move-parent-dialog.tsx" ], - "closureSize": 155, + "closureSize": 154, "state": "default", "theme": "dark", "locale": "en", @@ -12427,7 +12395,7 @@ "ownedFiles": [ "apps/mobile/components/habit-list/move-parent-dialog.tsx" ], - "closureSize": 155, + "closureSize": 154, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -12442,7 +12410,7 @@ "ownedFiles": [ "apps/mobile/components/habits/create-habit-modal.tsx" ], - "closureSize": 226, + "closureSize": 224, "state": "default", "theme": "light", "locale": "en", @@ -12457,7 +12425,7 @@ "ownedFiles": [ "apps/mobile/components/habits/create-habit-modal.tsx" ], - "closureSize": 226, + "closureSize": 224, "state": "default", "theme": "light", "locale": "pt-BR", @@ -12472,7 +12440,7 @@ "ownedFiles": [ "apps/mobile/components/habits/create-habit-modal.tsx" ], - "closureSize": 226, + "closureSize": 224, "state": "default", "theme": "dark", "locale": "en", @@ -12487,7 +12455,7 @@ "ownedFiles": [ "apps/mobile/components/habits/create-habit-modal.tsx" ], - "closureSize": 226, + "closureSize": 224, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -12502,7 +12470,7 @@ "ownedFiles": [ "apps/mobile/components/habits/description-viewer.tsx" ], - "closureSize": 152, + "closureSize": 151, "state": "default", "theme": "light", "locale": "en", @@ -12517,7 +12485,7 @@ "ownedFiles": [ "apps/mobile/components/habits/description-viewer.tsx" ], - "closureSize": 152, + "closureSize": 151, "state": "default", "theme": "light", "locale": "pt-BR", @@ -12532,7 +12500,7 @@ "ownedFiles": [ "apps/mobile/components/habits/description-viewer.tsx" ], - "closureSize": 152, + "closureSize": 151, "state": "default", "theme": "dark", "locale": "en", @@ -12547,7 +12515,7 @@ "ownedFiles": [ "apps/mobile/components/habits/description-viewer.tsx" ], - "closureSize": 152, + "closureSize": 151, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -12562,7 +12530,7 @@ "ownedFiles": [ "apps/mobile/components/habits/edit-habit-modal.tsx" ], - "closureSize": 225, + "closureSize": 223, "state": "default", "theme": "light", "locale": "en", @@ -12577,7 +12545,7 @@ "ownedFiles": [ "apps/mobile/components/habits/edit-habit-modal.tsx" ], - "closureSize": 225, + "closureSize": 223, "state": "default", "theme": "light", "locale": "pt-BR", @@ -12592,7 +12560,7 @@ "ownedFiles": [ "apps/mobile/components/habits/edit-habit-modal.tsx" ], - "closureSize": 225, + "closureSize": 223, "state": "default", "theme": "dark", "locale": "en", @@ -12607,7 +12575,7 @@ "ownedFiles": [ "apps/mobile/components/habits/edit-habit-modal.tsx" ], - "closureSize": 225, + "closureSize": 223, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -12622,7 +12590,7 @@ "ownedFiles": [ "apps/mobile/components/habits/habit-detail-drawer.tsx" ], - "closureSize": 200, + "closureSize": 198, "state": "default", "theme": "light", "locale": "en", @@ -12637,7 +12605,7 @@ "ownedFiles": [ "apps/mobile/components/habits/habit-detail-drawer.tsx" ], - "closureSize": 200, + "closureSize": 198, "state": "default", "theme": "light", "locale": "pt-BR", @@ -12652,7 +12620,7 @@ "ownedFiles": [ "apps/mobile/components/habits/habit-detail-drawer.tsx" ], - "closureSize": 200, + "closureSize": 198, "state": "default", "theme": "dark", "locale": "en", @@ -12667,7 +12635,7 @@ "ownedFiles": [ "apps/mobile/components/habits/habit-detail-drawer.tsx" ], - "closureSize": 200, + "closureSize": 198, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -12682,7 +12650,7 @@ "ownedFiles": [ "apps/mobile/components/habits/habit-form-fields/habit-emoji-selector.tsx" ], - "closureSize": 154, + "closureSize": 153, "state": "default", "theme": "light", "locale": "en", @@ -12697,7 +12665,7 @@ "ownedFiles": [ "apps/mobile/components/habits/habit-form-fields/habit-emoji-selector.tsx" ], - "closureSize": 154, + "closureSize": 153, "state": "default", "theme": "light", "locale": "pt-BR", @@ -12712,7 +12680,7 @@ "ownedFiles": [ "apps/mobile/components/habits/habit-form-fields/habit-emoji-selector.tsx" ], - "closureSize": 154, + "closureSize": 153, "state": "default", "theme": "dark", "locale": "en", @@ -12727,7 +12695,7 @@ "ownedFiles": [ "apps/mobile/components/habits/habit-form-fields/habit-emoji-selector.tsx" ], - "closureSize": 154, + "closureSize": 153, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -12742,7 +12710,7 @@ "ownedFiles": [ "apps/mobile/components/habits/reschedule-sheet.tsx" ], - "closureSize": 167, + "closureSize": 166, "state": "default", "theme": "light", "locale": "en", @@ -12757,7 +12725,7 @@ "ownedFiles": [ "apps/mobile/components/habits/reschedule-sheet.tsx" ], - "closureSize": 167, + "closureSize": 166, "state": "default", "theme": "light", "locale": "pt-BR", @@ -12772,7 +12740,7 @@ "ownedFiles": [ "apps/mobile/components/habits/reschedule-sheet.tsx" ], - "closureSize": 167, + "closureSize": 166, "state": "default", "theme": "dark", "locale": "en", @@ -12787,7 +12755,7 @@ "ownedFiles": [ "apps/mobile/components/habits/reschedule-sheet.tsx" ], - "closureSize": 167, + "closureSize": 166, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -12802,7 +12770,7 @@ "ownedFiles": [ "apps/mobile/components/marketing-consent/marketing-consent-prompt.tsx" ], - "closureSize": 153, + "closureSize": 152, "state": "default", "theme": "light", "locale": "en", @@ -12817,7 +12785,7 @@ "ownedFiles": [ "apps/mobile/components/marketing-consent/marketing-consent-prompt.tsx" ], - "closureSize": 153, + "closureSize": 152, "state": "default", "theme": "light", "locale": "pt-BR", @@ -12832,7 +12800,7 @@ "ownedFiles": [ "apps/mobile/components/marketing-consent/marketing-consent-prompt.tsx" ], - "closureSize": 153, + "closureSize": 152, "state": "default", "theme": "dark", "locale": "en", @@ -12847,7 +12815,7 @@ "ownedFiles": [ "apps/mobile/components/marketing-consent/marketing-consent-prompt.tsx" ], - "closureSize": 153, + "closureSize": 152, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -12863,7 +12831,7 @@ "apps/mobile/components/milestone-share/milestone-share-card.tsx", "apps/mobile/components/milestone-share/milestone-share-prompt.tsx" ], - "closureSize": 157, + "closureSize": 156, "state": "default", "theme": "light", "locale": "en", @@ -12879,7 +12847,7 @@ "apps/mobile/components/milestone-share/milestone-share-card.tsx", "apps/mobile/components/milestone-share/milestone-share-prompt.tsx" ], - "closureSize": 157, + "closureSize": 156, "state": "default", "theme": "light", "locale": "pt-BR", @@ -12895,7 +12863,7 @@ "apps/mobile/components/milestone-share/milestone-share-card.tsx", "apps/mobile/components/milestone-share/milestone-share-prompt.tsx" ], - "closureSize": 157, + "closureSize": 156, "state": "default", "theme": "dark", "locale": "en", @@ -12911,7 +12879,7 @@ "apps/mobile/components/milestone-share/milestone-share-card.tsx", "apps/mobile/components/milestone-share/milestone-share-prompt.tsx" ], - "closureSize": 157, + "closureSize": 156, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -12926,7 +12894,7 @@ "ownedFiles": [ "apps/mobile/components/navigation/notification-bell.tsx" ], - "closureSize": 165, + "closureSize": 164, "state": "default", "theme": "light", "locale": "en", @@ -12941,7 +12909,7 @@ "ownedFiles": [ "apps/mobile/components/navigation/notification-bell.tsx" ], - "closureSize": 165, + "closureSize": 164, "state": "default", "theme": "light", "locale": "pt-BR", @@ -12956,7 +12924,7 @@ "ownedFiles": [ "apps/mobile/components/navigation/notification-bell.tsx" ], - "closureSize": 165, + "closureSize": 164, "state": "default", "theme": "dark", "locale": "en", @@ -12971,7 +12939,7 @@ "ownedFiles": [ "apps/mobile/components/navigation/notification-bell.tsx" ], - "closureSize": 165, + "closureSize": 164, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -12986,7 +12954,7 @@ "ownedFiles": [ "apps/mobile/components/navigation/notification-detail-modal.tsx" ], - "closureSize": 151, + "closureSize": 150, "state": "default", "theme": "light", "locale": "en", @@ -13001,7 +12969,7 @@ "ownedFiles": [ "apps/mobile/components/navigation/notification-detail-modal.tsx" ], - "closureSize": 151, + "closureSize": 150, "state": "default", "theme": "light", "locale": "pt-BR", @@ -13016,7 +12984,7 @@ "ownedFiles": [ "apps/mobile/components/navigation/notification-detail-modal.tsx" ], - "closureSize": 151, + "closureSize": 150, "state": "default", "theme": "dark", "locale": "en", @@ -13031,7 +12999,7 @@ "ownedFiles": [ "apps/mobile/components/navigation/notification-detail-modal.tsx" ], - "closureSize": 151, + "closureSize": 150, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -13046,7 +13014,7 @@ "ownedFiles": [ "apps/mobile/components/onboarding/astra-import-prompt.tsx" ], - "closureSize": 169, + "closureSize": 167, "state": "default", "theme": "light", "locale": "en", @@ -13061,7 +13029,7 @@ "ownedFiles": [ "apps/mobile/components/onboarding/astra-import-prompt.tsx" ], - "closureSize": 169, + "closureSize": 167, "state": "default", "theme": "light", "locale": "pt-BR", @@ -13076,7 +13044,7 @@ "ownedFiles": [ "apps/mobile/components/onboarding/astra-import-prompt.tsx" ], - "closureSize": 169, + "closureSize": 167, "state": "default", "theme": "dark", "locale": "en", @@ -13091,7 +13059,7 @@ "ownedFiles": [ "apps/mobile/components/onboarding/astra-import-prompt.tsx" ], - "closureSize": 169, + "closureSize": 167, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -13106,7 +13074,7 @@ "ownedFiles": [ "apps/mobile/components/onboarding/calendar-import-prompt.tsx" ], - "closureSize": 152, + "closureSize": 151, "state": "default", "theme": "light", "locale": "en", @@ -13121,7 +13089,7 @@ "ownedFiles": [ "apps/mobile/components/onboarding/calendar-import-prompt.tsx" ], - "closureSize": 152, + "closureSize": 151, "state": "default", "theme": "light", "locale": "pt-BR", @@ -13136,7 +13104,7 @@ "ownedFiles": [ "apps/mobile/components/onboarding/calendar-import-prompt.tsx" ], - "closureSize": 152, + "closureSize": 151, "state": "default", "theme": "dark", "locale": "en", @@ -13151,7 +13119,7 @@ "ownedFiles": [ "apps/mobile/components/onboarding/calendar-import-prompt.tsx" ], - "closureSize": 152, + "closureSize": 151, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -13166,7 +13134,7 @@ "ownedFiles": [ "apps/mobile/components/onboarding/feature-guide-drawer.tsx" ], - "closureSize": 152, + "closureSize": 151, "state": "default", "theme": "light", "locale": "en", @@ -13181,7 +13149,7 @@ "ownedFiles": [ "apps/mobile/components/onboarding/feature-guide-drawer.tsx" ], - "closureSize": 152, + "closureSize": 151, "state": "default", "theme": "light", "locale": "pt-BR", @@ -13196,7 +13164,7 @@ "ownedFiles": [ "apps/mobile/components/onboarding/feature-guide-drawer.tsx" ], - "closureSize": 152, + "closureSize": 151, "state": "default", "theme": "dark", "locale": "en", @@ -13211,7 +13179,7 @@ "ownedFiles": [ "apps/mobile/components/onboarding/feature-guide-drawer.tsx" ], - "closureSize": 152, + "closureSize": 151, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -13226,7 +13194,7 @@ "ownedFiles": [ "apps/mobile/components/onboarding/onboarding-flow.tsx" ], - "closureSize": 206, + "closureSize": 204, "state": "default", "theme": "light", "locale": "en", @@ -13241,7 +13209,7 @@ "ownedFiles": [ "apps/mobile/components/onboarding/onboarding-flow.tsx" ], - "closureSize": 206, + "closureSize": 204, "state": "default", "theme": "light", "locale": "pt-BR", @@ -13256,7 +13224,7 @@ "ownedFiles": [ "apps/mobile/components/onboarding/onboarding-flow.tsx" ], - "closureSize": 206, + "closureSize": 204, "state": "default", "theme": "dark", "locale": "en", @@ -13271,7 +13239,7 @@ "ownedFiles": [ "apps/mobile/components/onboarding/onboarding-flow.tsx" ], - "closureSize": 206, + "closureSize": 204, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -13286,7 +13254,7 @@ "ownedFiles": [ "apps/mobile/components/referral/referral-drawer.tsx" ], - "closureSize": 158, + "closureSize": 157, "state": "default", "theme": "light", "locale": "en", @@ -13301,7 +13269,7 @@ "ownedFiles": [ "apps/mobile/components/referral/referral-drawer.tsx" ], - "closureSize": 158, + "closureSize": 157, "state": "default", "theme": "light", "locale": "pt-BR", @@ -13316,7 +13284,7 @@ "ownedFiles": [ "apps/mobile/components/referral/referral-drawer.tsx" ], - "closureSize": 158, + "closureSize": 157, "state": "default", "theme": "dark", "locale": "en", @@ -13331,7 +13299,7 @@ "ownedFiles": [ "apps/mobile/components/referral/referral-drawer.tsx" ], - "closureSize": 158, + "closureSize": 157, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -13346,7 +13314,7 @@ "ownedFiles": [ "apps/mobile/components/referral/referral-prompt.tsx" ], - "closureSize": 161, + "closureSize": 160, "state": "default", "theme": "light", "locale": "en", @@ -13361,7 +13329,7 @@ "ownedFiles": [ "apps/mobile/components/referral/referral-prompt.tsx" ], - "closureSize": 161, + "closureSize": 160, "state": "default", "theme": "light", "locale": "pt-BR", @@ -13376,7 +13344,7 @@ "ownedFiles": [ "apps/mobile/components/referral/referral-prompt.tsx" ], - "closureSize": 161, + "closureSize": 160, "state": "default", "theme": "dark", "locale": "en", @@ -13391,7 +13359,7 @@ "ownedFiles": [ "apps/mobile/components/referral/referral-prompt.tsx" ], - "closureSize": 161, + "closureSize": 160, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -13407,7 +13375,7 @@ "apps/mobile/components/review-moment/review-moment-sheet.tsx", "apps/mobile/hooks/use-review-reminder.ts" ], - "closureSize": 155, + "closureSize": 154, "state": "default", "theme": "light", "locale": "en", @@ -13423,7 +13391,7 @@ "apps/mobile/components/review-moment/review-moment-sheet.tsx", "apps/mobile/hooks/use-review-reminder.ts" ], - "closureSize": 155, + "closureSize": 154, "state": "default", "theme": "light", "locale": "pt-BR", @@ -13439,7 +13407,7 @@ "apps/mobile/components/review-moment/review-moment-sheet.tsx", "apps/mobile/hooks/use-review-reminder.ts" ], - "closureSize": 155, + "closureSize": 154, "state": "default", "theme": "dark", "locale": "en", @@ -13455,7 +13423,7 @@ "apps/mobile/components/review-moment/review-moment-sheet.tsx", "apps/mobile/hooks/use-review-reminder.ts" ], - "closureSize": 155, + "closureSize": 154, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -13470,7 +13438,7 @@ "ownedFiles": [ "apps/mobile/components/share/share-card-sheet.tsx" ], - "closureSize": 160, + "closureSize": 159, "state": "default", "theme": "light", "locale": "en", @@ -13485,7 +13453,7 @@ "ownedFiles": [ "apps/mobile/components/share/share-card-sheet.tsx" ], - "closureSize": 160, + "closureSize": 159, "state": "default", "theme": "light", "locale": "pt-BR", @@ -13500,7 +13468,7 @@ "ownedFiles": [ "apps/mobile/components/share/share-card-sheet.tsx" ], - "closureSize": 160, + "closureSize": 159, "state": "default", "theme": "dark", "locale": "en", @@ -13515,7 +13483,7 @@ "ownedFiles": [ "apps/mobile/components/share/share-card-sheet.tsx" ], - "closureSize": 160, + "closureSize": 159, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -13532,7 +13500,7 @@ "apps/mobile/components/tour/tour-spotlight.tsx", "apps/mobile/components/tour/tour-tooltip.tsx" ], - "closureSize": 166, + "closureSize": 164, "state": "default", "theme": "light", "locale": "en", @@ -13549,7 +13517,7 @@ "apps/mobile/components/tour/tour-spotlight.tsx", "apps/mobile/components/tour/tour-tooltip.tsx" ], - "closureSize": 166, + "closureSize": 164, "state": "default", "theme": "light", "locale": "pt-BR", @@ -13566,7 +13534,7 @@ "apps/mobile/components/tour/tour-spotlight.tsx", "apps/mobile/components/tour/tour-tooltip.tsx" ], - "closureSize": 166, + "closureSize": 164, "state": "default", "theme": "dark", "locale": "en", @@ -13583,7 +13551,7 @@ "apps/mobile/components/tour/tour-spotlight.tsx", "apps/mobile/components/tour/tour-tooltip.tsx" ], - "closureSize": 166, + "closureSize": 164, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -13598,7 +13566,7 @@ "ownedFiles": [ "apps/mobile/components/tour/tour-replay-modal.tsx" ], - "closureSize": 166, + "closureSize": 164, "state": "default", "theme": "light", "locale": "en", @@ -13613,7 +13581,7 @@ "ownedFiles": [ "apps/mobile/components/tour/tour-replay-modal.tsx" ], - "closureSize": 166, + "closureSize": 164, "state": "default", "theme": "light", "locale": "pt-BR", @@ -13628,7 +13596,7 @@ "ownedFiles": [ "apps/mobile/components/tour/tour-replay-modal.tsx" ], - "closureSize": 166, + "closureSize": 164, "state": "default", "theme": "dark", "locale": "en", @@ -13643,7 +13611,7 @@ "ownedFiles": [ "apps/mobile/components/tour/tour-replay-modal.tsx" ], - "closureSize": 166, + "closureSize": 164, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -13658,7 +13626,7 @@ "ownedFiles": [ "apps/mobile/components/ui/anchored-menu.tsx" ], - "closureSize": 150, + "closureSize": 149, "state": "default", "theme": "light", "locale": "en", @@ -13673,7 +13641,7 @@ "ownedFiles": [ "apps/mobile/components/ui/anchored-menu.tsx" ], - "closureSize": 150, + "closureSize": 149, "state": "default", "theme": "light", "locale": "pt-BR", @@ -13688,7 +13656,7 @@ "ownedFiles": [ "apps/mobile/components/ui/anchored-menu.tsx" ], - "closureSize": 150, + "closureSize": 149, "state": "default", "theme": "dark", "locale": "en", @@ -13703,7 +13671,7 @@ "ownedFiles": [ "apps/mobile/components/ui/anchored-menu.tsx" ], - "closureSize": 150, + "closureSize": 149, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -13718,7 +13686,7 @@ "ownedFiles": [ "apps/mobile/components/ui/app-date-picker.tsx" ], - "closureSize": 150, + "closureSize": 149, "state": "default", "theme": "light", "locale": "en", @@ -13733,7 +13701,7 @@ "ownedFiles": [ "apps/mobile/components/ui/app-date-picker.tsx" ], - "closureSize": 150, + "closureSize": 149, "state": "default", "theme": "light", "locale": "pt-BR", @@ -13748,7 +13716,7 @@ "ownedFiles": [ "apps/mobile/components/ui/app-date-picker.tsx" ], - "closureSize": 150, + "closureSize": 149, "state": "default", "theme": "dark", "locale": "en", @@ -13763,7 +13731,7 @@ "ownedFiles": [ "apps/mobile/components/ui/app-date-picker.tsx" ], - "closureSize": 150, + "closureSize": 149, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -13778,7 +13746,7 @@ "ownedFiles": [ "apps/mobile/components/ui/app-select.tsx" ], - "closureSize": 149, + "closureSize": 148, "state": "default", "theme": "light", "locale": "en", @@ -13793,7 +13761,7 @@ "ownedFiles": [ "apps/mobile/components/ui/app-select.tsx" ], - "closureSize": 149, + "closureSize": 148, "state": "default", "theme": "light", "locale": "pt-BR", @@ -13808,7 +13776,7 @@ "ownedFiles": [ "apps/mobile/components/ui/app-select.tsx" ], - "closureSize": 149, + "closureSize": 148, "state": "default", "theme": "dark", "locale": "en", @@ -13823,7 +13791,7 @@ "ownedFiles": [ "apps/mobile/components/ui/app-select.tsx" ], - "closureSize": 149, + "closureSize": 148, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -13838,7 +13806,7 @@ "ownedFiles": [ "apps/mobile/components/ui/app-time-picker.tsx" ], - "closureSize": 149, + "closureSize": 148, "state": "default", "theme": "light", "locale": "en", @@ -13853,7 +13821,7 @@ "ownedFiles": [ "apps/mobile/components/ui/app-time-picker.tsx" ], - "closureSize": 149, + "closureSize": 148, "state": "default", "theme": "light", "locale": "pt-BR", @@ -13868,7 +13836,7 @@ "ownedFiles": [ "apps/mobile/components/ui/app-time-picker.tsx" ], - "closureSize": 149, + "closureSize": 148, "state": "default", "theme": "dark", "locale": "en", @@ -13883,7 +13851,7 @@ "ownedFiles": [ "apps/mobile/components/ui/app-time-picker.tsx" ], - "closureSize": 149, + "closureSize": 148, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -13898,7 +13866,7 @@ "ownedFiles": [ "apps/mobile/components/ui/confirm-dialog.tsx" ], - "closureSize": 149, + "closureSize": 148, "state": "default", "theme": "light", "locale": "en", @@ -13913,7 +13881,7 @@ "ownedFiles": [ "apps/mobile/components/ui/confirm-dialog.tsx" ], - "closureSize": 149, + "closureSize": 148, "state": "default", "theme": "light", "locale": "pt-BR", @@ -13928,7 +13896,7 @@ "ownedFiles": [ "apps/mobile/components/ui/confirm-dialog.tsx" ], - "closureSize": 149, + "closureSize": 148, "state": "default", "theme": "dark", "locale": "en", @@ -13943,7 +13911,7 @@ "ownedFiles": [ "apps/mobile/components/ui/confirm-dialog.tsx" ], - "closureSize": 149, + "closureSize": 148, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -13958,7 +13926,7 @@ "ownedFiles": [ "apps/mobile/components/ui/create-api-key-modal.tsx" ], - "closureSize": 158, + "closureSize": 157, "state": "default", "theme": "light", "locale": "en", @@ -13973,7 +13941,7 @@ "ownedFiles": [ "apps/mobile/components/ui/create-api-key-modal.tsx" ], - "closureSize": 158, + "closureSize": 157, "state": "default", "theme": "light", "locale": "pt-BR", @@ -13988,7 +13956,7 @@ "ownedFiles": [ "apps/mobile/components/ui/create-api-key-modal.tsx" ], - "closureSize": 158, + "closureSize": 157, "state": "default", "theme": "dark", "locale": "en", @@ -14003,7 +13971,7 @@ "ownedFiles": [ "apps/mobile/components/ui/create-api-key-modal.tsx" ], - "closureSize": 158, + "closureSize": 157, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -14018,7 +13986,7 @@ "ownedFiles": [ "apps/mobile/components/ui/expiry-warning.tsx" ], - "closureSize": 150, + "closureSize": 149, "state": "default", "theme": "light", "locale": "en", @@ -14033,7 +14001,7 @@ "ownedFiles": [ "apps/mobile/components/ui/expiry-warning.tsx" ], - "closureSize": 150, + "closureSize": 149, "state": "default", "theme": "light", "locale": "pt-BR", @@ -14048,7 +14016,7 @@ "ownedFiles": [ "apps/mobile/components/ui/expiry-warning.tsx" ], - "closureSize": 150, + "closureSize": 149, "state": "default", "theme": "dark", "locale": "en", @@ -14063,7 +14031,7 @@ "ownedFiles": [ "apps/mobile/components/ui/expiry-warning.tsx" ], - "closureSize": 150, + "closureSize": 149, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -14078,7 +14046,7 @@ "ownedFiles": [ "apps/mobile/components/ui/fresh-start-animation.tsx" ], - "closureSize": 149, + "closureSize": 148, "state": "default", "theme": "light", "locale": "en", @@ -14093,7 +14061,7 @@ "ownedFiles": [ "apps/mobile/components/ui/fresh-start-animation.tsx" ], - "closureSize": 149, + "closureSize": 148, "state": "default", "theme": "light", "locale": "pt-BR", @@ -14108,7 +14076,7 @@ "ownedFiles": [ "apps/mobile/components/ui/fresh-start-animation.tsx" ], - "closureSize": 149, + "closureSize": 148, "state": "default", "theme": "dark", "locale": "en", @@ -14123,7 +14091,7 @@ "ownedFiles": [ "apps/mobile/components/ui/fresh-start-animation.tsx" ], - "closureSize": 149, + "closureSize": 148, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -14138,7 +14106,7 @@ "ownedFiles": [ "apps/mobile/components/ui/push-prompt.tsx" ], - "closureSize": 150, + "closureSize": 149, "state": "default", "theme": "light", "locale": "en", @@ -14153,7 +14121,7 @@ "ownedFiles": [ "apps/mobile/components/ui/push-prompt.tsx" ], - "closureSize": 150, + "closureSize": 149, "state": "default", "theme": "light", "locale": "pt-BR", @@ -14168,7 +14136,7 @@ "ownedFiles": [ "apps/mobile/components/ui/push-prompt.tsx" ], - "closureSize": 150, + "closureSize": 149, "state": "default", "theme": "dark", "locale": "en", @@ -14183,7 +14151,7 @@ "ownedFiles": [ "apps/mobile/components/ui/push-prompt.tsx" ], - "closureSize": 150, + "closureSize": 149, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -14198,7 +14166,7 @@ "ownedFiles": [ "apps/mobile/components/ui/trial-expired-modal.tsx" ], - "closureSize": 151, + "closureSize": 150, "state": "default", "theme": "light", "locale": "en", @@ -14213,7 +14181,7 @@ "ownedFiles": [ "apps/mobile/components/ui/trial-expired-modal.tsx" ], - "closureSize": 151, + "closureSize": 150, "state": "default", "theme": "light", "locale": "pt-BR", @@ -14228,7 +14196,7 @@ "ownedFiles": [ "apps/mobile/components/ui/trial-expired-modal.tsx" ], - "closureSize": 151, + "closureSize": 150, "state": "default", "theme": "dark", "locale": "en", @@ -14243,7 +14211,7 @@ "ownedFiles": [ "apps/mobile/components/ui/trial-expired-modal.tsx" ], - "closureSize": 151, + "closureSize": 150, "state": "default", "theme": "dark", "locale": "pt-BR", @@ -14260,7 +14228,7 @@ "apps/mobile/hooks/use-version-check.ts", "apps/mobile/lib/version-check.ts" ], - "closureSize": 153, + "closureSize": 152, "state": "default", "theme": "light", "locale": "en", @@ -14277,7 +14245,7 @@ "apps/mobile/hooks/use-version-check.ts", "apps/mobile/lib/version-check.ts" ], - "closureSize": 153, + "closureSize": 152, "state": "default", "theme": "light", "locale": "pt-BR", @@ -14294,7 +14262,7 @@ "apps/mobile/hooks/use-version-check.ts", "apps/mobile/lib/version-check.ts" ], - "closureSize": 153, + "closureSize": 152, "state": "default", "theme": "dark", "locale": "en", @@ -14311,7 +14279,7 @@ "apps/mobile/hooks/use-version-check.ts", "apps/mobile/lib/version-check.ts" ], - "closureSize": 153, + "closureSize": 152, "state": "default", "theme": "dark", "locale": "pt-BR", diff --git a/FEATURES.md b/FEATURES.md index 4fb5975b0d..2d4ac8507f 100644 --- a/FEATURES.md +++ b/FEATURES.md @@ -27,7 +27,7 @@ Free-tier limits (source: `AppConstants.cs`): **10** top-level habits, **20** AI ## The headline ### Astra — your AI habit coach -Astra is a conversational coach that can actually *act*, not just talk. Tell it "I ran today" and it logs the run; ask "how am I doing?" and it analyzes your real streaks and completion rates. It has **61 built-in tools** spanning habits, sub-habits, goals, tags, checklists, logging, reminders, calendar, memory, and your account — so almost anything you can do by tapping, you can do by asking. It takes typed messages, **voice input** (speak instead of type, multi-language), and **images** (photograph a schedule and it extracts habits for review). +Astra is a conversational coach that can actually *act*, not just talk. Tell it "I ran today" and it logs the run; ask "how am I doing?" and it analyzes your real streaks and completion rates. It has built-in tools spanning habits, sub-habits, goals, tags, checklists, logging, reminders, calendar, and your account — so almost anything you can do by tapping, you can do by asking. It takes typed messages, **voice input** (speak instead of type, multi-language), and **images** (photograph a schedule and it extracts habits for review). ### Connect your assistant — Orbit speaks MCP Orbit exposes a full **Model Context Protocol** server, so you can connect Claude, ChatGPT, or any MCP-capable assistant straight to your account and manage your habits and goals from wherever you already chat with AI. **79 MCP tools across 15 tool classes**, scoped to your account, secured by OAuth 2.0 dynamic client registration or scoped, hashed API keys. This is a rare consumer feature: Orbit is a habit tracker your favorite AI assistant can drive. @@ -51,11 +51,10 @@ Astra is the in-app assistant on the chat surface (web `/chat`, mobile `chat`). | Tool breadth — habit bulk ops | 5 tools: bulk create/delete/log/skip and bulk emoji update | Free | Both | — | | Tool breadth — goals | 10 tools: create/query/update/delete, status, progress, link habits/goals, AI review, reorder | Pro (goals are Pro) | Both | — | | Tool breadth — tags | 5 tools: assign, list, create, update, delete | Free | Both | — | -| Tool breadth — profile & preferences | 5 tools: get profile, update preferences, set color scheme, set AI memory, set AI summary | Free / Pro per setting | Both | — | +| Tool breadth — profile & preferences | 4 tools: get profile, update preferences, set color scheme, set AI summary | Free / Pro per setting | Both | — | | Tool breadth — checklist templates | 3 tools: get, create, delete reusable templates | Free | Both | — | | Tool breadth — notifications | 3 tools: get, update, delete reminders | Free | Both | — | | Tool breadth — calendar | 2 tools: calendar overview, manage Google Calendar sync | Pro (calendar is Pro) | Both | — | -| Tool breadth — memory / user facts | 2 tools: get, delete stored facts | Pro (AI memory is Pro) | Both | — | | Tool breadth — summary & retrospective | 2 tools: daily summary, retrospective | Pro / Yearly-Pro | Both | — | | Tool breadth — referrals | 2 tools: referral overview, referral code | Free | Both | — | | Tool breadth — subscriptions | 2 tools: subscription overview, manage subscription | Free | Both | — | @@ -91,7 +90,6 @@ Orbit's MCP server lets external assistants (Claude, ChatGPT, any MCP client) dr | Gamification tools | 3 tools — XP, levels, achievements, streaks reads | Pro | Both | — | | API-key tools | 2 tools — manage keys from within MCP | Pro | Both | — | | Calendar tools | 2 tools — calendar overview and sync | Pro | Both | — | -| User-fact tools | 2 tools — read/write AI memory facts | Pro | Both | — | | Account tools | 1 tool — account-level operations | Pro | Both | — | | Feature tools | 1 tool — feature discovery/description | Pro | Both | — | | Support tools | 1 tool — submit support requests | Pro | Both | — | @@ -218,7 +216,7 @@ XP/gamification is **Free**, enabled by a feature flag (migration `EnableGamific |---|---|---|---|---| | Free tier | 10 habits, 20 AI msgs/mo, core tracking, gamification, milestone sharing, referrals | Free | Both | — | | 7-day trial | Full Pro access (except Retrospective); set at signup, no card | Trial | Both | — | -| Orbit Pro | Unlimited habits, 500 AI msgs, sub-habits, goals, calendar, daily summary, memory, API keys/MCP, all color schemes | Pro | Both | — | +| Orbit Pro | Unlimited habits, 500 AI msgs, sub-habits, goals, calendar, daily summary, API keys/MCP, all color schemes | Pro | Both | — | | Yearly Pro | Everything in Pro **plus** the AI Retrospective | Yearly-Pro | Both | — | | AI Retrospective | AI analysis over week/month/quarter/year | **Yearly-Pro only** | Both | — | | Purchase — mobile | Play Billing (native verify + RTDN); backend is source of truth | — | Mobile | — | @@ -234,10 +232,8 @@ XP/gamification is **Free**, enabled by a feature flag (migration `EnableGamific |---|---|---|---|---| | Color scheme | 6 accent schemes (purple, blue, green, rose, orange, cyan) × dark/light | Free base; premium schemes Pro | Both | — | | Language | English / Brazilian Portuguese; app, AI, and emails follow | Free | Both | Full en + pt-BR parity | -| AI memory | AI learns preferences/routines from conversations | Pro | Both | — | | AI daily summary toggle | Enable the Today summary card | Pro | Both | — | | Marketing email consent | One-time opt-in prompt + "Product updates by email" toggle; consent stored in-app (DB is the source of truth for the code-based sender), self-hosted unsubscribe flips it back | Free | Both | en + pt-BR | -| What Orbit Knows | Manually add facts the AI uses to personalize (max 50) | Pro | Both | — | | Timezone | Auto-detected; drives due dates and "today" | Free | Both | — | | Week start day | Monday or Sunday across all calendars | Free | Both | — | | Support | Contact form from Profile | Free | Both | — | diff --git a/apps/mobile/__tests__/app/use-user-facts.test.tsx b/apps/mobile/__tests__/app/use-user-facts.test.tsx deleted file mode 100644 index 36324601d0..0000000000 --- a/apps/mobile/__tests__/app/use-user-facts.test.tsx +++ /dev/null @@ -1,288 +0,0 @@ -import React from 'react' -import { beforeEach, describe, expect, it, vi } from 'vitest' -import { API } from '@orbit/shared/api' -import { userFactKeys } from '@orbit/shared/query' - -import { useUserFacts, type UserFact } from '@/app/use-user-facts' - -const TestRenderer = require('react-test-renderer') - -interface CapturedQuery { - queryKey: readonly unknown[] - queryFn: () => unknown -} - -const mocks = vi.hoisted(() => { - const store = new Map() - const queryClient = { - cancelQueries: vi.fn(async () => {}), - invalidateQueries: vi.fn(async () => {}), - getQueryData: vi.fn((key: readonly unknown[]) => store.get(JSON.stringify(key))), - setQueryData: vi.fn((key: readonly unknown[], updater: unknown) => { - const serialized = JSON.stringify(key) - const next = - typeof updater === 'function' - ? (updater as (old: unknown) => unknown)(store.get(serialized)) - : updater - store.set(serialized, next) - return next - }), - } - return { - store, - queryClient, - queryConfigs: [] as CapturedQuery[], - isOnline: true, - factsData: undefined as UserFact[] | undefined, - performQueuedApiMutation: vi.fn(async () => undefined), - apiClient: vi.fn(), - } -}) - -vi.mock('@tanstack/react-query', () => ({ - useQuery: vi.fn((config: CapturedQuery) => { - mocks.queryConfigs.push(config) - return { data: mocks.factsData } - }), - useMutation: vi.fn((config: unknown) => config), - useQueryClient: vi.fn(() => mocks.queryClient), -})) - -vi.mock('@/hooks/use-offline', () => ({ - useOffline: () => ({ isOnline: mocks.isOnline }), -})) - -vi.mock('@/lib/queued-api-mutation', () => ({ - performQueuedApiMutation: mocks.performQueuedApiMutation, -})) - -vi.mock('@/lib/api-client', () => ({ - apiClient: mocks.apiClient, -})) - -type UserFactsApi = ReturnType - -function fact(id: string): UserFact { - return { id, factText: `fact ${id}`, category: null } -} - -function seedLists(facts: UserFact[]): void { - mocks.store.set(JSON.stringify(userFactKeys.lists()), facts) - mocks.factsData = facts -} - -function renderUserFacts(hasProAccess = true): { current: UserFactsApi } { - const ref: { current: UserFactsApi | null } = { current: null } - function Harness() { - ref.current = useUserFacts(hasProAccess) - return null - } - TestRenderer.act(() => { - TestRenderer.create(React.createElement(Harness)) - }) - if (!ref.current) throw new Error('useUserFacts did not render') - return ref as { current: UserFactsApi } -} - -function currentList(): UserFact[] { - return (mocks.store.get(JSON.stringify(userFactKeys.lists())) as UserFact[]) ?? [] -} - -interface CapturedMutation { - mutationFn: (variables: unknown) => Promise - onMutate?: (variables: unknown) => Promise | unknown - onError?: (error: unknown, variables: unknown, context: unknown) => void - onSuccess?: (data: unknown, variables: unknown, context: unknown) => void -} - -function asMutation(mutation: unknown): CapturedMutation { - return mutation as CapturedMutation -} - -describe('useUserFacts', () => { - beforeEach(() => { - mocks.store.clear() - mocks.queryConfigs = [] - mocks.isOnline = true - mocks.factsData = undefined - mocks.queryClient.cancelQueries.mockClear() - mocks.queryClient.invalidateQueries.mockClear() - mocks.queryClient.getQueryData.mockClear() - mocks.queryClient.setQueryData.mockClear() - mocks.performQueuedApiMutation.mockClear() - }) - - it('loads the facts list from the user-facts endpoint', async () => { - mocks.apiClient.mockResolvedValue([fact('a')]) - renderUserFacts() - - await mocks.queryConfigs.at(-1)?.queryFn() - - expect(mocks.apiClient).toHaveBeenCalledWith(API.userFacts.list) - }) - - it('wires the delete and bulk-delete mutations to their queued endpoints', async () => { - const hook = renderUserFacts() - - await asMutation(hook.current.deleteMutation).mutationFn('a') - expect(mocks.performQueuedApiMutation).toHaveBeenCalledWith( - expect.objectContaining({ - type: 'deleteUserFact', - endpoint: API.userFacts.delete('a'), - method: 'DELETE', - dedupeKey: 'user-fact-delete-a', - }), - ) - - await asMutation(hook.current.bulkDeleteMutation).mutationFn(['a', 'b']) - expect(mocks.performQueuedApiMutation).toHaveBeenCalledWith( - expect.objectContaining({ - type: 'bulkDeleteUserFacts', - endpoint: API.userFacts.bulk, - method: 'DELETE', - payload: { ids: ['a', 'b'] }, - }), - ) - }) - - it('gates facts behind pro access', () => { - seedLists([fact('a')]) - const nonPro = renderUserFacts(false) - expect(nonPro.current.facts).toEqual([]) - expect(nonPro.current.totalFactsPages).toBe(1) - - const pro = renderUserFacts(true) - expect(pro.current.facts).toHaveLength(1) - }) - - it('paginates facts five per page', () => { - seedLists(Array.from({ length: 7 }, (_unused, index) => fact(String(index)))) - const hook = renderUserFacts() - - expect(hook.current.totalFactsPages).toBe(2) - expect(hook.current.pagedFacts).toHaveLength(5) - - TestRenderer.act(() => { - hook.current.setFactsPage(2) - }) - expect(hook.current.pagedFacts).toHaveLength(2) - }) - - it('clamps the page number when it exceeds the available pages', () => { - seedLists([fact('a'), fact('b')]) - const hook = renderUserFacts() - - TestRenderer.act(() => { - hook.current.setFactsPage(9) - }) - - expect(hook.current.factsPage).toBe(1) - }) - - it('optimistically removes a fact and rolls back on error', async () => { - seedLists([fact('a'), fact('b'), fact('c')]) - const hook = renderUserFacts() - - const deleteMutation = asMutation(hook.current.deleteMutation) - let context: unknown - await TestRenderer.act(async () => { - context = await deleteMutation.onMutate?.('b') - }) - - expect(currentList().map((entry) => entry.id)).toEqual(['a', 'c']) - expect(mocks.queryClient.cancelQueries).toHaveBeenCalledWith({ - queryKey: userFactKeys.lists(), - }) - - TestRenderer.act(() => { - deleteMutation.onError?.(new Error('boom'), 'b', context) - }) - - expect(currentList().map((entry) => entry.id)).toEqual(['a', 'b', 'c']) - }) - - it('invalidates queries after a successful delete only when online', () => { - seedLists([fact('a')]) - const hook = renderUserFacts() - - asMutation(hook.current.deleteMutation).onSuccess?.(undefined, 'a', undefined) - expect(mocks.queryClient.invalidateQueries).toHaveBeenCalledWith({ - queryKey: userFactKeys.all, - }) - - mocks.queryClient.invalidateQueries.mockClear() - mocks.isOnline = false - const offlineHook = renderUserFacts() - asMutation(offlineHook.current.deleteMutation).onSuccess?.(undefined, 'a', undefined) - expect(mocks.queryClient.invalidateQueries).not.toHaveBeenCalled() - }) - - it('optimistically bulk-deletes and rolls back on error', async () => { - seedLists([fact('a'), fact('b'), fact('c')]) - const hook = renderUserFacts() - - const bulkDeleteMutation = asMutation(hook.current.bulkDeleteMutation) - let context: unknown - await TestRenderer.act(async () => { - context = await bulkDeleteMutation.onMutate?.(['a', 'c']) - }) - - expect(currentList().map((entry) => entry.id)).toEqual(['b']) - - TestRenderer.act(() => { - bulkDeleteMutation.onError?.(new Error('boom'), ['a', 'c'], context) - }) - - expect(currentList().map((entry) => entry.id)).toEqual(['a', 'b', 'c']) - }) - - it('exits select mode after a bulk delete empties the list', async () => { - seedLists([fact('a'), fact('b')]) - const hook = renderUserFacts() - - TestRenderer.act(() => { - hook.current.toggleSelectMode() - }) - TestRenderer.act(() => { - hook.current.toggleSelectAll() - }) - expect(hook.current.selectMode).toBe(true) - expect(hook.current.selectedFactIds.size).toBe(2) - - const bulkDeleteMutation = asMutation(hook.current.bulkDeleteMutation) - await TestRenderer.act(async () => { - await bulkDeleteMutation.onMutate?.(['a', 'b']) - }) - TestRenderer.act(() => { - bulkDeleteMutation.onSuccess?.(undefined, ['a', 'b'], undefined) - }) - - expect(hook.current.selectedFactIds.size).toBe(0) - expect(hook.current.selectMode).toBe(false) - }) - - it('toggles individual and all-fact selection', () => { - seedLists([fact('a'), fact('b'), fact('c')]) - const hook = renderUserFacts() - - TestRenderer.act(() => { - hook.current.toggleFactSelection('b') - }) - expect([...hook.current.selectedFactIds]).toEqual(['b']) - - TestRenderer.act(() => { - hook.current.toggleFactSelection('b') - }) - expect(hook.current.selectedFactIds.size).toBe(0) - - TestRenderer.act(() => { - hook.current.toggleSelectAll() - }) - expect(hook.current.selectedFactIds.size).toBe(3) - - TestRenderer.act(() => { - hook.current.toggleSelectAll() - }) - expect(hook.current.selectedFactIds.size).toBe(0) - }) -}) diff --git a/apps/mobile/__tests__/components/ai-settings-sections.test.tsx b/apps/mobile/__tests__/components/ai-settings-sections.test.tsx index 9656ce81ad..02ecfe8d7d 100644 --- a/apps/mobile/__tests__/components/ai-settings-sections.test.tsx +++ b/apps/mobile/__tests__/components/ai-settings-sections.test.tsx @@ -1,25 +1,16 @@ import React from 'react' import { describe, expect, it, vi } from 'vitest' +import { createTokensV2 } from '@/lib/theme' +import { AiFeatureToggles } from '@/app/ai-settings-sections' vi.mock('@/components/ui/pro-badge', () => ({ ProBadge: () => null, })) -import { createTokensV2 } from '@/lib/theme' -import { createStyles as createSectionStyles } from '@/app/ai-settings-styles' -import { - AiFeatureToggles, - FactsSelectBar, - UserFactsList, -} from '@/app/ai-settings-sections' -import type { UserFact } from '@/app/use-user-facts' - const TestRenderer = require('react-test-renderer') const tokens = createTokensV2('purple', 'dark') -const styles = createSectionStyles() -const translate = (key: string, params?: Record) => - params ? `${key}(${JSON.stringify(params)})` : key +const translate = (key: string) => key interface TestNode { type: unknown @@ -30,6 +21,7 @@ type TestTree = { root: { findAll: (predicate: (node: TestNode) => boolean) => TestNode[] } } +const SUMMARY_LABEL = 'profile.aiSummary.title' const PROACTIVE_LABEL = 'profile.proactiveAstra.title' function baseProps() { @@ -37,20 +29,17 @@ function baseProps() { tokens, t: translate, hasProAccess: true, - aiMemoryEnabled: true, aiSummaryEnabled: true, proactiveAstraEnabled: false, - memoryPending: false, summaryPending: false, proactivePending: false, - onToggleMemory: vi.fn(), onToggleSummary: vi.fn(), onToggleProactive: vi.fn(), onUpgrade: vi.fn(), } } -function renderToggles(props: ReturnType): TestTree { +function renderToggles(props = baseProps()): TestTree { let tree: TestTree TestRenderer.act(() => { tree = TestRenderer.create() @@ -58,32 +47,16 @@ function renderToggles(props: ReturnType): TestTree { return tree! } -function render(element: React.ReactElement): TestTree { - let tree: TestTree - TestRenderer.act(() => { - tree = TestRenderer.create(element) - }) - return tree! -} - -function switches(tree: TestTree): TestNode[] { +function nodesWithRole(tree: TestTree, role: string): TestNode[] { return tree.root.findAll( - (node) => - typeof node.type === 'string' && node.props.accessibilityRole === 'switch', + (node) => typeof node.type === 'string' && node.props.accessibilityRole === role, ) } -function findNode( - tree: TestTree, - role: string, - label: string, -): TestNode | undefined { - return tree.root.findAll( - (node) => - typeof node.type === 'string' && - node.props.accessibilityRole === role && - node.props.accessibilityLabel === label, - )[0] +function findNode(tree: TestTree, role: string, label: string): TestNode | undefined { + return nodesWithRole(tree, role).find( + (node) => node.props.accessibilityLabel === label, + ) } function press(node: TestNode | undefined) { @@ -92,31 +65,12 @@ function press(node: TestNode | undefined) { }) } -function exercisePressCallbacks(tree: TestTree) { - for (const node of tree.root.findAll(() => true)) { - const style = node.props.style - if (typeof style === 'function') { - style({ pressed: true }) - style({ pressed: false }) - } - const children = node.props.children - if (typeof children === 'function') { - ;(children as (state: { pressed: boolean }) => unknown)({ pressed: true }) - } - } -} - -function texts(tree: TestTree): unknown[] { - return tree.root - .findAll((node) => node.type === 'Text') - .map((node) => node.props.children) -} - describe('mobile AiFeatureToggles', () => { - it('renders a proactive-check-ins switch reflecting its off state for Pro users', () => { - const tree = renderToggles(baseProps()) - expect(switches(tree)).toHaveLength(3) - + it('renders exactly the daily summary and proactive switches for Pro users', () => { + const tree = renderToggles() + const switches = nodesWithRole(tree, 'switch') + expect(switches).toHaveLength(2) + expect(findNode(tree, 'switch', SUMMARY_LABEL)).toBeDefined() const proactive = findNode(tree, 'switch', PROACTIVE_LABEL) expect(proactive).toBeDefined() expect( @@ -124,218 +78,22 @@ describe('mobile AiFeatureToggles', () => { ).toBe(false) }) - it('calls onToggleProactive when the proactive switch is pressed', () => { + it('calls both surviving callbacks from their switches', () => { const props = baseProps() const tree = renderToggles(props) + press(findNode(tree, 'switch', SUMMARY_LABEL)) press(findNode(tree, 'switch', PROACTIVE_LABEL)) + expect(props.onToggleSummary).toHaveBeenCalledTimes(1) expect(props.onToggleProactive).toHaveBeenCalledTimes(1) }) - it('locks the proactive row behind an upgrade prompt for non-pro users', () => { + it('renders exactly two locked upgrade rows for free users', () => { const props = { ...baseProps(), hasProAccess: false } const tree = renderToggles(props) - expect(switches(tree)).toHaveLength(0) - - const lockedRow = findNode(tree, 'button', PROACTIVE_LABEL) - expect(lockedRow).toBeDefined() - press(lockedRow) + expect(nodesWithRole(tree, 'switch')).toHaveLength(0) + const rows = nodesWithRole(tree, 'button') + expect(rows).toHaveLength(2) + press(rows[0]) expect(props.onUpgrade).toHaveBeenCalledTimes(1) }) }) - -function selectBarProps() { - return { - tokens, - t: translate, - styles, - selectMode: false, - selectedCount: 0, - allSelected: false, - bulkDeletePending: false, - showPaging: false, - page: 1, - totalPages: 3, - onPreviousPage: vi.fn(), - onNextPage: vi.fn(), - onToggleSelectAll: vi.fn(), - onBulkDelete: vi.fn(), - onToggleSelectMode: vi.fn(), - } -} - -describe('mobile FactsSelectBar', () => { - it('shows the select entry point when idle and enters select mode on press', () => { - const props = selectBarProps() - const tree = render() - const selectButton = findNode(tree, 'button', 'profile.facts.select') - expect(selectButton).toBeDefined() - press(selectButton) - expect(props.onToggleSelectMode).toHaveBeenCalledTimes(1) - exercisePressCallbacks(tree) - }) - - it('renders paging controls and steps to the next page', () => { - const props = { ...selectBarProps(), showPaging: true, page: 1 } - const tree = render() - expect(texts(tree)).toContain('profile.facts.count({"n":1,"max":3})') - press(findNode(tree, 'button', 'common.next')) - expect(props.onNextPage).toHaveBeenCalledTimes(1) - press(findNode(tree, 'button', 'common.previous')) - expect(props.onPreviousPage).toHaveBeenCalledTimes(1) - exercisePressCallbacks(tree) - }) - - it('disables the next control when on the last page', () => { - const props = { ...selectBarProps(), showPaging: true, page: 3, totalPages: 3 } - const tree = render() - expect(findNode(tree, 'button', 'common.next')?.props.disabled).toBe(true) - exercisePressCallbacks(tree) - }) - - it('offers select-all and bulk-delete when items are selected', () => { - const props = { - ...selectBarProps(), - selectMode: true, - selectedCount: 2, - allSelected: false, - } - const tree = render() - press(findNode(tree, 'button', 'profile.facts.selectAll')) - expect(props.onToggleSelectAll).toHaveBeenCalledTimes(1) - press(findNode(tree, 'button', 'profile.facts.deleteSelectedShort')) - expect(props.onBulkDelete).toHaveBeenCalledTimes(1) - press(findNode(tree, 'button', 'profile.facts.cancel')) - expect(props.onToggleSelectMode).toHaveBeenCalledTimes(1) - exercisePressCallbacks(tree) - }) - - it('switches select-all to deselect and hides bulk-delete when nothing is selected', () => { - const props = { - ...selectBarProps(), - selectMode: true, - selectedCount: 0, - allSelected: true, - } - const tree = render() - expect(findNode(tree, 'button', 'profile.facts.deselectAll')).toBeDefined() - expect( - findNode(tree, 'button', 'profile.facts.deleteSelectedShort'), - ).toBeUndefined() - exercisePressCallbacks(tree) - }) -}) - -const factWithCategory: UserFact = { - id: 'fact-1', - factText: 'Prefers mornings', - category: 'routine', -} -const factWithoutCategory: UserFact = { - id: 'fact-2', - factText: 'Drinks tea', - category: null, -} - -function listProps(overrides: Partial> = {}) { - return { - tokens, - t: translate, - styles, - hasProAccess: true, - factsQuery: { isLoading: false, error: null, refetch: vi.fn() }, - facts: [factWithCategory, factWithoutCategory], - pagedFacts: [factWithCategory, factWithoutCategory], - selectMode: false, - selectedFactIds: new Set(), - onToggleSelection: vi.fn(), - onDelete: vi.fn(), - onAskAstra: vi.fn(), - ...overrides, - } -} - -describe('mobile UserFactsList', () => { - it('renders the locked hint for non-pro users', () => { - const tree = render() - expect(texts(tree)).toContain('profile.facts.lockedHint') - }) - - it('renders skeleton placeholders while loading', () => { - const tree = render( - , - ) - expect(texts(tree)).toHaveLength(0) - }) - - it('surfaces an error state whose retry refetches', () => { - const refetch = vi.fn() - const tree = render( - , - ) - expect(texts(tree)).toContain('profile.facts.factsError') - press( - tree.root.findAll( - (node) => - typeof node.type === 'string' && node.props.accessibilityRole === 'button', - )[0], - ) - expect(refetch).toHaveBeenCalledTimes(1) - }) - - it('renders an empty state that routes to Astra', () => { - const onAskAstra = vi.fn() - const tree = render( - , - ) - expect(texts(tree)).toContain('profile.facts.empty') - press( - tree.root.findAll( - (node) => - typeof node.type === 'string' && node.props.accessibilityRole === 'button', - )[0], - ) - expect(onAskAstra).toHaveBeenCalledTimes(1) - }) - - it('lists facts with categories and deletes on the trash control', () => { - const onDelete = vi.fn() - const tree = render() - const flatTexts = texts(tree) - expect(flatTexts).toContain('Prefers mornings') - expect(flatTexts).toContain('Drinks tea') - expect( - flatTexts.some( - (value) => typeof value === 'string' && value.startsWith('PROFILE.FACTS.'), - ), - ).toBe(true) - press(findNode(tree, 'button', 'profile.facts.delete')) - expect(onDelete).toHaveBeenCalledWith('fact-1') - exercisePressCallbacks(tree) - }) - - it('toggles selection when a card is pressed in select mode', () => { - const onToggleSelection = vi.fn() - const tree = render( - , - ) - const card = tree.root.findAll( - (node) => - typeof node.type === 'string' && node.props.accessibilityRole === 'checkbox', - )[0] - press(card) - expect(onToggleSelection).toHaveBeenCalledWith('fact-1') - exercisePressCallbacks(tree) - }) -}) diff --git a/apps/mobile/__tests__/components/upgrade/plan-comparison-cards.test.tsx b/apps/mobile/__tests__/components/upgrade/plan-comparison-cards.test.tsx index de8b5caa19..7de13004ee 100644 --- a/apps/mobile/__tests__/components/upgrade/plan-comparison-cards.test.tsx +++ b/apps/mobile/__tests__/components/upgrade/plan-comparison-cards.test.tsx @@ -37,5 +37,7 @@ describe('PlanComparisonCards (mobile)', () => { expect(expanded).toContain('upgrade.features.retrospective.label') expect(expanded).toContain('upgrade.matrix.yearlyTag') expect(expanded).toContain('upgrade.matrix.notIncluded') + const retiredKey = ['upgrade.features.ai', 'Memory.label'].join('') + expect(expanded).not.toContain(retiredKey) }) }) diff --git a/apps/mobile/__tests__/lib/offline-mutations.test.ts b/apps/mobile/__tests__/lib/offline-mutations.test.ts index 1654b7b5cd..f909a4dcb1 100644 --- a/apps/mobile/__tests__/lib/offline-mutations.test.ts +++ b/apps/mobile/__tests__/lib/offline-mutations.test.ts @@ -1,5 +1,9 @@ import { beforeEach, describe, expect, it, vi } from 'vitest' -import type { QueuedMutation } from '@orbit/shared/types/sync' +import type { + MutationType, + PersistedQueuedMutation, + QueuedMutation, +} from '@orbit/shared/types/sync' import { logHabitResponseSchema } from '@orbit/shared/types/habit' import { @@ -15,11 +19,10 @@ import { subscribeDroppedMutations, withQueuedMarker, } from '@/lib/offline-mutations' -import type { MutationType } from '@orbit/shared/types/sync' import { consumePendingIdempotencyKey } from '@/lib/idempotency-key' const mocks = vi.hoisted(() => { - const queued: QueuedMutation[] = [] + const queued: PersistedQueuedMutation[] = [] const resolvedIds = new Map() let online = false @@ -59,7 +62,7 @@ const mocks = vi.hoisted(() => { if (index >= 0) queued.splice(index, 1) }) - const update = vi.fn((id: string, patch: Partial) => { + const update = vi.fn((id: string, patch: Partial) => { const mutation = queued.find((entry) => entry.id === id) if (!mutation) return Object.assign(mutation, patch) @@ -79,27 +82,30 @@ const mocks = vi.hoisted(() => { } }) - const upsertOfflineEntity = vi.fn(async () => {}) - const setOfflineEntityStatus = vi.fn(async () => {}) - const clearOfflineEntity = vi.fn(async () => {}) - const markOfflineTombstone = vi.fn(async () => {}) - const resolveOfflineEntity = vi.fn(async (_entityType: string, oldId: string, newId: string) => { + const upsertOfflineEntity = vi.fn(() => Promise.resolve()) + const setOfflineEntityStatus = vi.fn(() => Promise.resolve()) + const clearOfflineEntity = vi.fn(() => Promise.resolve()) + const markOfflineTombstone = vi.fn(() => Promise.resolve()) + const resolveOfflineEntity = vi.fn((_entityType: string, oldId: string, newId: string) => { resolvedIds.set(oldId, newId) + return Promise.resolve() }) - const getResolvedEntityId = vi.fn(async (_entityType: string, id: string) => resolvedIds.get(id) ?? id) + const getResolvedEntityId = vi.fn((_entityType: string, id: string) => + Promise.resolve(resolvedIds.get(id) ?? id), + ) - const persistQueryCache = vi.fn(async () => {}) - const invalidateQueries = vi.fn(async () => {}) + const persistQueryCache = vi.fn(() => Promise.resolve()) + const invalidateQueries = vi.fn(() => Promise.resolve()) - const apiClient = vi.fn(async (endpoint: string) => { + const apiClient = vi.fn((endpoint: string): Promise<{ id: string } | null> => { if (endpoint === '/api/habits') { - return { id: 'habit-1' } + return Promise.resolve({ id: 'habit-1' }) } - return null + return Promise.resolve(null) }) - const getCurrentConnectivity = vi.fn(async () => online) + const getCurrentConnectivity = vi.fn(() => Promise.resolve(online)) return { queued, @@ -183,8 +189,8 @@ describe('offline mutations', () => { mocks.persistQueryCache.mockClear() mocks.invalidateQueries.mockClear() mocks.apiClient.mockReset() - mocks.apiClient.mockImplementation(async (endpoint: string) => - endpoint === '/api/habits' ? { id: 'habit-1' } : null, + mocks.apiClient.mockImplementation((endpoint: string) => + Promise.resolve(endpoint === '/api/habits' ? { id: 'habit-1' } : null), ) mocks.getCurrentConnectivity.mockClear() cancelScheduledFlush() @@ -204,9 +210,7 @@ describe('offline mutations', () => { const queuedAck = { queued: true as const } const result = await queueOrExecute({ mutation, - execute: async () => { - throw new Error('should not execute while offline') - }, + execute: () => Promise.reject(new Error('should not execute while offline')), queuedResult: queuedAck, }) @@ -273,9 +277,9 @@ describe('offline mutations', () => { let keyDuringExecute: string | null = null await queueOrExecute({ mutation, - execute: async () => { + execute: () => { keyDuringExecute = consumePendingIdempotencyKey() - return { id: 'tag-1' } + return Promise.resolve({ id: 'tag-1' }) }, queuedResult: { queued: true as const }, }) @@ -295,7 +299,7 @@ describe('offline mutations', () => { await queueOrExecute({ mutation, - execute: async () => ({ id: 'tag-1' }), + execute: () => Promise.resolve({ id: 'tag-1' }), queuedResult: { queued: true as const }, }) @@ -314,7 +318,7 @@ describe('offline mutations', () => { payload: { language: 'en' }, dedupeKey: 'profile-language', }, - execute: async () => undefined, + execute: () => Promise.resolve(undefined), }) expect(result).toMatchObject({ @@ -337,7 +341,7 @@ describe('offline mutations', () => { targetEntityId: 'offline-habit-1', }) - const execute = vi.fn(async () => ({ ok: true })) + const execute = vi.fn(() => Promise.resolve({ ok: true })) const queuedAck = { queued: true as const } const result = await queueOrExecute({ @@ -365,7 +369,7 @@ describe('offline mutations', () => { clientEntityId: 'offline-habit-1', }) - const execute = vi.fn(async () => ({ id: 'habit-1' })) + const execute = vi.fn(() => Promise.resolve({ id: 'habit-1' })) const result = await queueOrExecute({ mutation, @@ -391,7 +395,7 @@ describe('offline mutations', () => { dependsOn: ['offline-tag-1'], }) - const execute = vi.fn(async () => ({ ok: true })) + const execute = vi.fn(() => Promise.resolve({ ok: true })) const queuedAck = { queued: true as const } const result = await queueOrExecute({ @@ -420,9 +424,7 @@ describe('offline mutations', () => { await expect(queueOrExecute({ mutation, - execute: async () => { - throw new Error('Validation failed') - }, + execute: () => Promise.reject(new Error('Validation failed')), queuedResult: { queued: true as const }, })).rejects.toThrow('Validation failed') @@ -482,12 +484,12 @@ describe('offline mutations', () => { it('flushes payload-only dependencies after earlier offline ids are rewritten', async () => { mocks.setOnline(true) - mocks.apiClient.mockImplementation(async (endpoint: string) => { + mocks.apiClient.mockImplementation((endpoint: string) => { if (endpoint === '/api/tags') { - return { id: 'tag-1' } + return Promise.resolve({ id: 'tag-1' }) } - return null + return Promise.resolve(null) }) mocks.queued.push( @@ -585,11 +587,11 @@ describe('offline mutations', () => { it('drops a validation-rejected mutation, keeps flushing the rest, and reports the dropped one', async () => { mocks.setOnline(true) - mocks.apiClient.mockImplementation(async (endpoint: string) => { + mocks.apiClient.mockImplementation((endpoint: string) => { if (endpoint === '/api/habits/habit-bad') { - throw new Error('400 validation failed') + return Promise.reject(new Error('400 validation failed')) } - return { id: 'habit-good' } + return Promise.resolve({ id: 'habit-good' }) }) const droppedCandidate = { @@ -650,13 +652,76 @@ describe('offline mutations', () => { expect(mocks.queued).toHaveLength(0) }) - it('notifies subscribers on every dropped mutation and stops after unsubscribe', async () => { + it('replays a retired persisted operation without current-scope invalidation', async () => { mocks.setOnline(true) - mocks.apiClient.mockImplementation(async () => { - throw new Error('400 validation failed') + const retiredType = ['delete', 'User', 'Fact'].join('') + const endpoint = ['/api/user', '-facts/retired'].join('') + mocks.queued.push({ + id: 'retired-operation', + timestamp: Date.now(), + type: retiredType, + endpoint, + method: 'DELETE', + payload: null, + retries: 0, + maxRetries: 3, + status: 'pending', + dependsOn: [], }) - const dropped: Array<{ id: string; type: string }> = [] + const result = await flushQueuedMutations() + + expect(mocks.apiClient).toHaveBeenCalledWith( + endpoint, + expect.objectContaining({ method: 'DELETE' }), + undefined, + ) + expect(mocks.invalidateQueries).not.toHaveBeenCalled() + expect(result).toEqual({ + succeeded: 1, + failed: 0, + remaining: 0, + droppedMutations: [], + }) + }) + + it('drops a rejected retired operation without classifying it as a current scope', async () => { + mocks.setOnline(true) + mocks.apiClient.mockRejectedValue(new Error('400 validation failed')) + const retiredType = ['bulkDelete', 'User', 'Facts'].join('') + mocks.queued.push({ + id: 'retired-rejected-operation', + timestamp: Date.now(), + type: retiredType, + endpoint: ['/api/user', '-facts/bulk'].join(''), + method: 'DELETE', + payload: null, + retries: 0, + maxRetries: 3, + status: 'pending', + dependsOn: [], + }) + + const result = await flushQueuedMutations() + + expect(getMutationScope(retiredType)).toBeUndefined() + expect(mocks.invalidateQueries).not.toHaveBeenCalled() + expect(result.droppedMutations).toEqual([ + { + id: 'retired-rejected-operation', + type: retiredType, + lastError: '400 validation failed', + }, + ]) + }) + + it('notifies subscribers on every dropped mutation and stops after unsubscribe', async () => { + mocks.setOnline(true) + mocks.apiClient.mockImplementation(() => + Promise.reject(new Error('400 validation failed')), + ) + + const dropped: { id: string; type: string }[] = [] const unsubscribe = subscribeDroppedMutations((drop) => { dropped.push({ id: drop.id, type: drop.type }) }) @@ -722,9 +787,9 @@ describe('offline mutations', () => { let executedWith: QueuedMutation | null = null await queueOrExecute({ mutation, - execute: async (resolved) => { + execute: (resolved) => { executedWith = resolved - return { ok: true } + return Promise.resolve({ ok: true }) }, queuedResult: { queued: true as const }, }) @@ -755,9 +820,7 @@ describe('offline mutations', () => { method: 'PUT', payload: { title: 'Retry' }, }), - execute: async () => { - throw new TypeError('Network request failed') - }, + execute: () => Promise.reject(new TypeError('Network request failed')), queuedResult: queuedAck, }) @@ -778,7 +841,7 @@ describe('offline mutations', () => { entityType: 'habit', targetEntityId: 'habit-7', }), - execute: async () => undefined, + execute: () => Promise.resolve(undefined), queuedResult: { queued: true as const }, }) @@ -970,9 +1033,9 @@ describe('offline mutations', () => { it('replays 120 queued mutations in enqueue order, applying every one with none dropped', async () => { mocks.setOnline(true) const flushOrder: string[] = [] - mocks.apiClient.mockImplementation(async (endpoint: string) => { + mocks.apiClient.mockImplementation((endpoint: string) => { flushOrder.push(endpoint) - return null + return Promise.resolve(null) }) const total = 120 @@ -1005,13 +1068,13 @@ describe('offline mutations', () => { mocks.setOnline(true) const flushOrder: string[] = [] let dropThirdOnce = true - mocks.apiClient.mockImplementation(async (endpoint: string) => { + mocks.apiClient.mockImplementation((endpoint: string) => { flushOrder.push(endpoint) if (endpoint === '/api/habits/habit-c' && dropThirdOnce) { dropThirdOnce = false - throw new Error('Network request failed') + return Promise.reject(new Error('Network request failed')) } - return null + return Promise.resolve(null) }) for (const suffix of ['a', 'b', 'c', 'd']) { @@ -1052,12 +1115,12 @@ describe('offline mutations', () => { it('keeps unacknowledged mutations queued and unsent when a flush times out mid-batch', async () => { mocks.setOnline(true) const flushOrder: string[] = [] - mocks.apiClient.mockImplementation(async (endpoint: string) => { + mocks.apiClient.mockImplementation((endpoint: string) => { flushOrder.push(endpoint) if (endpoint === '/api/habits/habit-slow') { - throw new Error('The request timed out') + return Promise.reject(new Error('The request timed out')) } - return null + return Promise.resolve(null) }) mocks.queued.push( @@ -1118,10 +1181,10 @@ describe('offline mutations', () => { it('defers a dependent mutation until its offline dependency resolves, even when queued ahead of the create', async () => { mocks.setOnline(true) const flushOrder: string[] = [] - mocks.apiClient.mockImplementation(async (endpoint: string) => { + mocks.apiClient.mockImplementation((endpoint: string) => { flushOrder.push(endpoint) - if (endpoint === '/api/tags') return { id: 'tag-1' } - return null + if (endpoint === '/api/tags') return Promise.resolve({ id: 'tag-1' }) + return Promise.resolve(null) }) mocks.queued.push( @@ -1204,12 +1267,11 @@ describe('offline mutation helpers', () => { }) it('maps every mutation type group to its invalidation scope', () => { - const cases: Array<[MutationType, string]> = [ + const cases: [MutationType, string][] = [ ['createGoal', 'goals'], ['linkGoalHabits', 'goals'], ['assignTags', 'tags'], ['markNotificationRead', 'notifications'], - ['bulkDeleteUserFacts', 'userFacts'], ['createApiKey', 'apiKeys'], ['dismissCalendarPrompt', 'calendar'], ['setLanguage', 'profile'], diff --git a/apps/mobile/__tests__/lib/offline-queue.test.ts b/apps/mobile/__tests__/lib/offline-queue.test.ts index 7e36d8acbd..a1fee1bfed 100644 --- a/apps/mobile/__tests__/lib/offline-queue.test.ts +++ b/apps/mobile/__tests__/lib/offline-queue.test.ts @@ -14,33 +14,33 @@ import { update, } from '@/lib/offline-queue' -const { withTransactionSyncMock } = vi.hoisted(() => ({ +interface StoredRow { + id: string + timestamp: number + type: string + endpoint: string + method: string + payload: string + retries: number + max_retries: number + meta: string | null +} + +const { storedRows, withTransactionSyncMock } = vi.hoisted(() => ({ + storedRows: new Map(), withTransactionSyncMock: vi.fn((task: () => void) => { task() }), })) vi.mock('expo-sqlite', () => { - interface StoredRow { - id: string - timestamp: number - type: string - endpoint: string - method: string - payload: string - retries: number - max_retries: number - meta: string | null - } - - const rows = new Map() const columns = [{ name: 'meta' }] return { openDatabaseSync: () => ({ execSync: (sql: string) => { if (sql.includes('DELETE FROM mutation_queue')) { - rows.clear() + storedRows.clear() } }, getAllSync: (sql: string) => { @@ -48,7 +48,7 @@ vi.mock('expo-sqlite', () => { return columns as T[] } if (sql.startsWith('SELECT * FROM mutation_queue')) { - return Array.from(rows.values()).sort((a, b) => a.timestamp - b.timestamp) as T[] + return Array.from(storedRows.values()).sort((a, b) => a.timestamp - b.timestamp) as T[] } return [] as T[] }, @@ -76,7 +76,7 @@ vi.mock('expo-sqlite', () => { string | null, ] - rows.set(id, { + storedRows.set(id, { id, timestamp, type, @@ -91,17 +91,17 @@ vi.mock('expo-sqlite', () => { } if (sql === 'DELETE FROM mutation_queue') { - rows.clear() + storedRows.clear() return } if (sql.startsWith('DELETE FROM mutation_queue WHERE id = ?')) { - rows.delete(String(params[0])) + storedRows.delete(String(params[0])) } }, getFirstSync: (sql: string) => { if (sql.startsWith('SELECT COUNT(*) as cnt')) { - return { cnt: rows.size } as T + return { cnt: storedRows.size } as T } return null as T }, @@ -137,6 +137,30 @@ describe('mobile offline queue', () => { withTransactionSyncMock.mockClear() }) + it('preserves a retired persisted operation without assigning current metadata', () => { + const retiredType = ['delete', 'User', 'Fact'].join('') + storedRows.set('retired-scope-row', { + id: 'retired-scope-row', + timestamp: Date.now(), + type: retiredType, + endpoint: ['/api/user', '-facts/retired'].join(''), + method: 'DELETE', + payload: 'null', + retries: 0, + max_retries: 3, + meta: JSON.stringify({ + scope: ['user', 'Facts'].join(''), + entityType: ['user', 'Fact'].join(''), + }), + }) + + expect(getAll()[0]).toEqual(expect.objectContaining({ + type: retiredType, + scope: undefined, + entityType: undefined, + })) + }) + it('rewrites the queue inside a single transaction so a crash cannot drop it', () => { enqueue(makeMutation({ id: 'create-1' })) diff --git a/apps/mobile/__tests__/lib/queued-api-mutation.test.ts b/apps/mobile/__tests__/lib/queued-api-mutation.test.ts index 8cd9f2287f..9e41475bfe 100644 --- a/apps/mobile/__tests__/lib/queued-api-mutation.test.ts +++ b/apps/mobile/__tests__/lib/queued-api-mutation.test.ts @@ -101,16 +101,16 @@ describe('performQueuedApiMutation', () => { }) it('respects a custom executor override', async () => { - const execute = vi.fn(async () => 'done') - mocks.runQueuedMutation.mockImplementation(async ({ execute: forwardedExecute, mutation }: { + const execute = vi.fn(() => Promise.resolve('done')) + mocks.runQueuedMutation.mockImplementation(({ execute: forwardedExecute, mutation }: { execute: (mutation: { endpoint: string; method: string; payload: unknown }) => Promise mutation: { endpoint: string; method: string; payload: unknown } }) => forwardedExecute(mutation)) const result = await performQueuedApiMutation({ - type: 'setAiMemory', + type: 'setAiSummary', scope: 'profile', - endpoint: '/api/profile/ai-memory', + endpoint: '/api/profile/ai-summary', method: 'PUT', payload: { enabled: true }, execute, @@ -118,9 +118,9 @@ describe('performQueuedApiMutation', () => { }) expect(execute).toHaveBeenCalledWith({ - type: 'setAiMemory', + type: 'setAiSummary', scope: 'profile', - endpoint: '/api/profile/ai-memory', + endpoint: '/api/profile/ai-summary', method: 'PUT', payload: { enabled: true }, }) diff --git a/apps/mobile/app/ai-settings-sections.tsx b/apps/mobile/app/ai-settings-sections.tsx index 0471d5d1ec..b0db43bdba 100644 --- a/apps/mobile/app/ai-settings-sections.tsx +++ b/apps/mobile/app/ai-settings-sections.tsx @@ -1,53 +1,19 @@ -import { View, Text, Pressable } from 'react-native' -import Animated, { FadeInDown, ReduceMotion } from 'react-native-reanimated' -import { - BellRing, - Brain, - CheckCheck, - ChevronLeft, - ChevronRight, - ListChecks, - Lock, - Satellite, - Sparkles, - SquareX, - Trash2, - X, -} from 'lucide-react-native' -import { normalizeUserFactCategory } from '@orbit/shared/utils' -import { tintFromPrimary } from '@/lib/theme' +import { BellRing, Lock, Satellite } from 'lucide-react-native' import { SectionLabel } from '@/components/ui/section-label' import { SettingsRow, Switch } from '@/components/ui/settings-row' -import { RadioGlyph } from '@/components/ui/select-check' -import { SatelliteGlyph } from '@/components/ui/satellite-glyph' -import { SkeletonLine } from '@/components/ui/skeleton' -import { PillButton } from '@/components/ui/pill-button' import { ProBadge } from '@/components/ui/pro-badge' -import type { UseQueryResult } from '@tanstack/react-query' -import { createStyles, type Tokens } from './ai-settings-styles' -import type { UserFact } from './use-user-facts' +import type { Tokens } from './ai-settings-styles' type TranslationFn = (key: string, params?: Record) => string -type Styles = ReturnType - -function rowEntrance(index: number) { - return FadeInDown.duration(280) - .delay(Math.min(index, 8) * 40) - .reduceMotion(ReduceMotion.System) -} - interface AiFeatureTogglesProps { tokens: Tokens t: TranslationFn hasProAccess: boolean - aiMemoryEnabled: boolean aiSummaryEnabled: boolean proactiveAstraEnabled: boolean - memoryPending: boolean summaryPending: boolean proactivePending: boolean - onToggleMemory: () => void onToggleSummary: () => void onToggleProactive: () => void onUpgrade: () => void @@ -57,13 +23,10 @@ export function AiFeatureToggles({ tokens, t, hasProAccess, - aiMemoryEnabled, aiSummaryEnabled, proactiveAstraEnabled, - memoryPending, summaryPending, proactivePending, - onToggleMemory, onToggleSummary, onToggleProactive, onUpgrade, @@ -73,33 +36,6 @@ export function AiFeatureToggles({ }> {t('profile.sections.aiFeatures')} - {hasProAccess ? ( - - - - ) : ( - - - - )} {hasProAccess ? ( ) } - -interface FactsSelectBarProps { - tokens: Tokens - t: TranslationFn - styles: Styles - selectMode: boolean - selectedCount: number - allSelected: boolean - bulkDeletePending: boolean - showPaging: boolean - page: number - totalPages: number - onPreviousPage: () => void - onNextPage: () => void - onToggleSelectAll: () => void - onBulkDelete: () => void - onToggleSelectMode: () => void -} - -export function FactsSelectBar({ - tokens, - t, - styles, - selectMode, - selectedCount, - allSelected, - bulkDeletePending, - showPaging, - page, - totalPages, - onPreviousPage, - onNextPage, - onToggleSelectAll, - onBulkDelete, - onToggleSelectMode, -}: Readonly) { - return ( - - {showPaging ? ( - <> - - {t('profile.facts.count', { n: page, max: totalPages })} - - [ - styles.pageBtn, - { backgroundColor: pressed ? tokens.bgElev2 : tokens.bgElev }, - page === 1 ? { opacity: 0.4 } : null, - pressed ? styles.pageBtnPressed : null, - ]} - > - - - [ - styles.pageBtn, - { backgroundColor: pressed ? tokens.bgElev2 : tokens.bgElev }, - page === totalPages ? { opacity: 0.4 } : null, - pressed ? styles.pageBtnPressed : null, - ]} - > - - - - ) : null} - - {selectMode ? ( - <> - [ - styles.iconBtn, - { backgroundColor: pressed ? tokens.bgElev2 : tokens.bgElev }, - pressed ? styles.actionChipPressed : null, - ]} - > - {allSelected ? ( - - ) : ( - - )} - - {selectedCount > 0 ? ( - [ - styles.actionChip, - { - backgroundColor: pressed ? tokens.bgElev2 : tokens.bgElev, - borderColor: tokens.hairline, - }, - pressed ? styles.actionChipPressed : null, - bulkDeletePending && { opacity: 0.45 }, - ]} - > - - - {selectedCount} - - - ) : null} - [ - styles.iconBtn, - { backgroundColor: pressed ? tokens.bgElev2 : tokens.bgElev }, - pressed ? styles.actionChipPressed : null, - ]} - > - - - - ) : ( - [ - styles.iconBtn, - { backgroundColor: pressed ? tokens.bgElev2 : tokens.bgElev }, - pressed ? styles.actionChipPressed : null, - ]} - > - - - )} - - ) -} - -interface FactItemProps { - tokens: Tokens - t: TranslationFn - styles: Styles - fact: UserFact - index: number - selectMode: boolean - selected: boolean - onToggleSelection: (id: string) => void - onDelete: (id: string) => void -} - -function FactItem({ - tokens, - t, - styles, - fact, - index, - selectMode, - selected, - onToggleSelection, - onDelete, -}: Readonly) { - function categoryLabel(category: string | null): string { - const norm = normalizeUserFactCategory(category) - return t(`profile.facts.${norm}`, { defaultValue: norm }).toUpperCase() - } - - return ( - - onToggleSelection(fact.id) : undefined} - accessibilityRole={selectMode ? 'checkbox' : 'none'} - accessibilityState={selectMode ? { checked: selected } : undefined} - style={({ pressed }) => [ - styles.factCard, - selected && selectMode - ? { - backgroundColor: tintFromPrimary(tokens, 0.08), - borderColor: tintFromPrimary(tokens, 0.28), - } - : { - backgroundColor: - pressed && selectMode - ? tokens.bgElevPressed - : tokens.bgCard, - borderColor: tokens.hairline, - }, - pressed && selectMode ? styles.factCardPressed : null, - ]} - > - {selectMode ? ( - - - - ) : null} - - {fact.category ? ( - - - {categoryLabel(fact.category)} - - - ) : null} - - {fact.factText} - - - {!selectMode ? ( - onDelete(fact.id)} - accessibilityRole="button" - accessibilityLabel={t('profile.facts.delete')} - hitSlop={{ top: 6, bottom: 6, left: 6, right: 6 }} - style={({ pressed }) => [ - styles.deleteBtn, - { backgroundColor: pressed ? tokens.bgElev2 : tokens.bgElev }, - pressed ? styles.actionChipPressed : null, - ]} - > - {({ pressed }) => ( - - )} - - ) : null} - - - ) -} - -interface UserFactsListProps { - tokens: Tokens - t: TranslationFn - styles: Styles - hasProAccess: boolean - factsQuery: Pick, 'isLoading' | 'error' | 'refetch'> - facts: UserFact[] - pagedFacts: UserFact[] - selectMode: boolean - selectedFactIds: Set - onToggleSelection: (id: string) => void - onDelete: (id: string) => void - onAskAstra: () => void -} - -export function UserFactsList({ - tokens, - t, - styles, - hasProAccess, - factsQuery, - facts, - pagedFacts, - selectMode, - selectedFactIds, - onToggleSelection, - onDelete, - onAskAstra, -}: Readonly) { - if (!hasProAccess) { - return ( - - - {t('profile.facts.lockedHint')} - - - ) - } - - if (factsQuery.isLoading) { - return ( - - - - - ) - } - - if (factsQuery.error) { - return ( - - - - {t('profile.facts.factsError')} - - {/* eslint-disable-next-line local/no-fullbleed-button -- empty-state retry CTA */} - void factsQuery.refetch()}> - {t('profile.facts.retry')} - - - ) - } - - if (facts.length === 0) { - return ( - - - - {t('profile.facts.empty')} - - - } - > - {t('summary.askAstra')} - - - ) - } - - return ( - - {pagedFacts.map((fact, index) => ( - - ))} - - ) -} diff --git a/apps/mobile/app/ai-settings-styles.ts b/apps/mobile/app/ai-settings-styles.ts index 5e75cc4b02..0d123f7b00 100644 --- a/apps/mobile/app/ai-settings-styles.ts +++ b/apps/mobile/app/ai-settings-styles.ts @@ -8,125 +8,5 @@ export function createStyles() { safeArea: { flex: 1 }, container: { flex: 1 }, scrollContent: { paddingBottom: 40 }, - lockedBlock: { - paddingHorizontal: 20, - paddingVertical: 10, - }, - lockedText: { - fontFamily: 'Rubik_400Regular', - fontSize: 13, - }, - emptyBlock: { - alignItems: 'center', - paddingHorizontal: 36, - paddingVertical: 40, - gap: 18, - }, - emptyBody: { - fontFamily: 'Rubik_400Regular', - fontSize: 15, - lineHeight: 22.5, - textAlign: 'center', - maxWidth: 320, - }, - headerControls: { - flexDirection: 'row', - alignItems: 'center', - gap: 4, - }, - pagingText: { - fontFamily: 'Roboto_400Regular', - fontSize: 11, - fontVariant: ['tabular-nums'], - }, - pageBtn: { - width: 30, - height: 30, - borderRadius: 999, - alignItems: 'center', - justifyContent: 'center', - }, - pageBtnPressed: { - transform: [{ scale: 0.92 }], - }, - skelStack: { - paddingHorizontal: 20, - gap: 10, - }, - skelBar: { - height: 56, - borderRadius: 16, - }, - actionChip: { - flexDirection: 'row', - borderRadius: 999, - borderWidth: 1, - paddingVertical: 6, - paddingHorizontal: 11, - gap: 4, - alignItems: 'center', - justifyContent: 'center', - }, - actionChipPressed: { - transform: [{ scale: 0.96 }], - }, - iconBtn: { - width: 32, - height: 32, - borderRadius: 999, - alignItems: 'center', - justifyContent: 'center', - }, - selectActionText: { - fontFamily: 'Rubik_500Medium', - fontSize: 12, - }, - factsList: { - paddingHorizontal: 20, - gap: 10, - }, - factCard: { - flexDirection: 'row', - alignItems: 'flex-start', - gap: 12, - paddingHorizontal: 16, - paddingVertical: 14, - borderRadius: 16, - borderWidth: 1, - }, - factCardPressed: { - transform: [{ scale: 0.99 }], - }, - checkSlot: { - paddingTop: 2, - }, - factBody: { - flex: 1, - gap: 6, - }, - categoryPill: { - alignSelf: 'flex-start', - paddingHorizontal: 7, - paddingVertical: 2, - borderRadius: 999, - borderWidth: 1, - }, - categoryText: { - fontFamily: 'Roboto_500Medium', - fontSize: 10, - letterSpacing: 0.6, - }, - factText: { - fontFamily: 'Rubik_400Regular', - fontSize: 15, - lineHeight: 21.75, - }, - deleteBtn: { - width: 36, - height: 36, - borderRadius: 999, - alignItems: 'center', - justifyContent: 'center', - }, }) } diff --git a/apps/mobile/app/ai-settings.tsx b/apps/mobile/app/ai-settings.tsx index fe10fd3113..d0ede26c59 100644 --- a/apps/mobile/app/ai-settings.tsx +++ b/apps/mobile/app/ai-settings.tsx @@ -1,4 +1,4 @@ -import { useMemo, useState } from 'react' +import { useMemo } from 'react' import { View, ScrollView } from 'react-native' import { useRouter } from 'expo-router' import { useTranslation } from 'react-i18next' @@ -13,15 +13,8 @@ import { createTokensV2 } from '@/lib/theme' import { useAppTheme } from '@/lib/use-app-theme' import { useGoBackOrFallback } from '@/hooks/use-go-back-or-fallback' import { AppBar } from '@/components/ui/app-bar' -import { SectionLabel } from '@/components/ui/section-label' -import { ConfirmDialog } from '@/components/ui/confirm-dialog' import { createStyles } from './ai-settings-styles' -import { useUserFacts } from './use-user-facts' -import { - AiFeatureToggles, - FactsSelectBar, - UserFactsList, -} from './ai-settings-sections' +import { AiFeatureToggles } from './ai-settings-sections' export default function AiSettingsScreen() { const { t } = useTranslation() @@ -36,37 +29,9 @@ export default function AiSettingsScreen() { ) const styles = useMemo(() => createStyles(), []) const hasProAccess = profile?.hasProAccess ?? false - const aiMemoryEnabled = hasProAccess && (profile?.aiMemoryEnabled ?? false) const aiSummaryEnabled = hasProAccess && (profile?.aiSummaryEnabled ?? false) const proactiveAstraEnabled = hasProAccess && (profile?.proactiveAstraEnabled ?? false) - // react-doctor-disable-next-line query-mutation-missing-invalidation -- Deliberate optimistic update: patchProfile() in onMutate writes the toggle to the profile cache and rolls back on error; the server stores the boolean verbatim, so no post-success refetch is needed. https://github.com/thomasluizon/orbit-ui-mobile/issues/243 - const aiMemoryMutation = useMutation({ - mutationFn: (enabled: boolean) => - performQueuedApiMutation({ - type: 'setAiMemory', - scope: 'profile', - endpoint: API.profile.aiMemory, - method: 'PUT', - payload: { enabled }, - dedupeKey: 'profile-ai-memory', - }), - onMutate: (enabled) => { - const previous = profile?.aiMemoryEnabled - patchProfile({ aiMemoryEnabled: enabled }) - return { previous } - }, - onError: ( - _err: unknown, - _enabled: boolean, - context: { previous?: boolean } | undefined, - ) => { - if (context?.previous !== undefined) { - patchProfile({ aiMemoryEnabled: context.previous }) - } - }, - }) - const aiSummaryMutation = useMutation({ mutationFn: (enabled: boolean) => performQueuedApiMutation({ @@ -123,46 +88,6 @@ export default function AiSettingsScreen() { }, }) - const { - factsQuery, - facts, - pagedFacts, - selectMode, - selectedFactIds, - deleteMutation, - bulkDeleteMutation, - factsPage, - setFactsPage, - totalFactsPages, - toggleSelectMode, - toggleFactSelection, - toggleSelectAll, - } = useUserFacts(hasProAccess) - - const showPaging = totalFactsPages > 1 && !selectMode - const [bulkDeleteConfirmOpen, setBulkDeleteConfirmOpen] = useState(false) - - const factsTrailing = - !hasProAccess || facts.length === 0 ? undefined : ( - setFactsPage((p) => Math.max(1, p - 1))} - onNextPage={() => setFactsPage((p) => Math.min(totalFactsPages, p + 1))} - onToggleSelectAll={toggleSelectAll} - onBulkDelete={() => setBulkDeleteConfirmOpen(true)} - onToggleSelectMode={toggleSelectMode} - /> - ) - return ( aiMemoryMutation.mutate(!aiMemoryEnabled)} onToggleSummary={() => aiSummaryMutation.mutate(!aiSummaryEnabled)} onToggleProactive={() => proactiveAstraMutation.mutate(!proactiveAstraEnabled)} onUpgrade={() => router.push(buildUpgradeHref('/ai-settings'))} /> - - - {t('profile.facts.title')} - - - deleteMutation.mutate(id)} - onAskAstra={() => router.push('/chat')} - /> - - - bulkDeleteMutation.mutate([...selectedFactIds])} - /> ) } diff --git a/apps/mobile/app/use-user-facts.ts b/apps/mobile/app/use-user-facts.ts deleted file mode 100644 index d32db6f954..0000000000 --- a/apps/mobile/app/use-user-facts.ts +++ /dev/null @@ -1,157 +0,0 @@ -import { useMemo, useState } from 'react' -import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query' -import { API } from '@orbit/shared/api' -import { userFactKeys } from '@orbit/shared/query' -import { USER_FACTS_PER_PAGE } from '@orbit/shared/utils' -import { apiClient } from '@/lib/api-client' -import { performQueuedApiMutation } from '@/lib/queued-api-mutation' -import { useOffline } from '@/hooks/use-offline' - -export interface UserFact { - id: string - factText: string - category: string | null -} - -export function useUserFacts(hasProAccess: boolean) { - const queryClient = useQueryClient() - const { isOnline } = useOffline() - - const factsQuery = useQuery({ - queryKey: userFactKeys.lists(), - queryFn: () => apiClient(API.userFacts.list), - enabled: hasProAccess, - staleTime: 5 * 60 * 1000, - }) - - const facts = useMemo( - () => (hasProAccess ? (factsQuery.data ?? []) : []), - [factsQuery.data, hasProAccess], - ) - - const [selectMode, setSelectMode] = useState(false) - const [selectedFactIds, setSelectedFactIds] = useState>(new Set()) - - const deleteMutation = useMutation({ - mutationFn: (id: string) => - performQueuedApiMutation({ - type: 'deleteUserFact', - scope: 'userFacts', - endpoint: API.userFacts.delete(id), - method: 'DELETE', - payload: undefined, - targetEntityId: id, - dedupeKey: `user-fact-delete-${id}`, - }), - onMutate: async (id) => { - await queryClient.cancelQueries({ queryKey: userFactKeys.lists() }) - const previous = queryClient.getQueryData( - userFactKeys.lists(), - ) - queryClient.setQueryData(userFactKeys.lists(), (old) => - old ? old.filter((fact) => fact.id !== id) : old, - ) - return { previous } - }, - onError: (_err, _id, context: { previous?: UserFact[] } | undefined) => { - if (context?.previous) { - queryClient.setQueryData(userFactKeys.lists(), context.previous) - } - }, - onSuccess: () => { - if (isOnline) { - void queryClient.invalidateQueries({ queryKey: userFactKeys.all }) - } - }, - }) - - const bulkDeleteMutation = useMutation({ - mutationFn: (ids: string[]) => - performQueuedApiMutation({ - type: 'bulkDeleteUserFacts', - scope: 'userFacts', - endpoint: API.userFacts.bulk, - method: 'DELETE', - payload: { ids }, - dedupeKey: 'bulk-delete-user-facts', - }), - onMutate: async (ids) => { - await queryClient.cancelQueries({ queryKey: userFactKeys.lists() }) - const previous = queryClient.getQueryData( - userFactKeys.lists(), - ) - const idsToDelete = new Set(ids) - queryClient.setQueryData(userFactKeys.lists(), (old) => - old ? old.filter((fact) => !idsToDelete.has(fact.id)) : old, - ) - return { previous } - }, - onError: (_err, _ids, context: { previous?: UserFact[] } | undefined) => { - if (context?.previous) { - queryClient.setQueryData(userFactKeys.lists(), context.previous) - } - }, - onSuccess: () => { - if (isOnline) { - void queryClient.invalidateQueries({ queryKey: userFactKeys.all }) - } - setSelectedFactIds(new Set()) - const remaining = - queryClient.getQueryData(userFactKeys.lists()) ?? [] - if (remaining.length === 0) setSelectMode(false) - }, - }) - - const [factsPage, setFactsPage] = useState(1) - const totalFactsPages = useMemo( - () => Math.max(1, Math.ceil(facts.length / USER_FACTS_PER_PAGE)), - [facts.length], - ) - const pagedFacts = useMemo(() => { - const start = (factsPage - 1) * USER_FACTS_PER_PAGE - return facts.slice(start, start + USER_FACTS_PER_PAGE) - }, [facts, factsPage]) - - if (factsPage > totalFactsPages && totalFactsPages >= 1) { - setFactsPage(totalFactsPages) - } - - function toggleSelectMode() { - setSelectMode(!selectMode) - setSelectedFactIds(new Set()) - } - - function toggleFactSelection(id: string) { - const next = new Set(selectedFactIds) - if (next.has(id)) { - next.delete(id) - } else { - next.add(id) - } - setSelectedFactIds(next) - } - - function toggleSelectAll() { - if (selectedFactIds.size === facts.length) { - setSelectedFactIds(new Set()) - } else { - setSelectedFactIds(new Set(facts.map((fact) => fact.id))) - } - } - - return { - factsQuery, - facts, - pagedFacts, - selectMode, - selectedFactIds, - deleteMutation, - bulkDeleteMutation, - factsPage, - setFactsPage, - totalFactsPages, - toggleSelectMode, - toggleFactSelection, - toggleSelectAll, - } -} diff --git a/apps/mobile/components/onboarding/feature-guide-drawer.tsx b/apps/mobile/components/onboarding/feature-guide-drawer.tsx index a83df45ae8..f163a3f369 100644 --- a/apps/mobile/components/onboarding/feature-guide-drawer.tsx +++ b/apps/mobile/components/onboarding/feature-guide-drawer.tsx @@ -110,9 +110,7 @@ const sectionItems: Record = { settings: [ { titleKey: 'onboarding.featureGuide.settingsSection.colorSchemeTitle', descKey: 'onboarding.featureGuide.settingsSection.colorSchemeDesc' }, { titleKey: 'onboarding.featureGuide.settingsSection.languageTitle', descKey: 'onboarding.featureGuide.settingsSection.languageDesc' }, - { titleKey: 'onboarding.featureGuide.settingsSection.aiMemoryTitle', descKey: 'onboarding.featureGuide.settingsSection.aiMemoryDesc' }, { titleKey: 'onboarding.featureGuide.settingsSection.aiSummaryTitle', descKey: 'onboarding.featureGuide.settingsSection.aiSummaryDesc' }, - { titleKey: 'onboarding.featureGuide.settingsSection.userFactsTitle', descKey: 'onboarding.featureGuide.settingsSection.userFactsDesc' }, { titleKey: 'onboarding.featureGuide.settingsSection.timezoneTitle', descKey: 'onboarding.featureGuide.settingsSection.timezoneDesc' }, { titleKey: 'onboarding.featureGuide.settingsSection.supportTitle', descKey: 'onboarding.featureGuide.settingsSection.supportDesc' }, { titleKey: 'onboarding.featureGuide.settingsSection.pushNotificationsTitle', descKey: 'onboarding.featureGuide.settingsSection.pushNotificationsDesc' }, diff --git a/apps/mobile/eslint-suppressions.json b/apps/mobile/eslint-suppressions.json index 1a665ba965..597a7fdb00 100644 --- a/apps/mobile/eslint-suppressions.json +++ b/apps/mobile/eslint-suppressions.json @@ -117,11 +117,6 @@ "count": 1 } }, - "app/ai-settings-styles.ts": { - "local/spacing-scale": { - "count": 12 - } - }, "app/calendar-sync-styles.ts": { "local/spacing-scale": { "count": 15 diff --git a/apps/mobile/lib/mutation-response-schemas.ts b/apps/mobile/lib/mutation-response-schemas.ts index 796b2c4a85..56464895f7 100644 --- a/apps/mobile/lib/mutation-response-schemas.ts +++ b/apps/mobile/lib/mutation-response-schemas.ts @@ -1,5 +1,5 @@ import type { ZodType } from 'zod' -import type { MutationType } from '@orbit/shared/types/sync' +import { mutationTypeSchema, type MutationType } from '@orbit/shared/types/sync' import { bulkCreateResponseSchema, bulkDeleteResponseSchema, @@ -25,6 +25,7 @@ const MUTATION_RESPONSE_SCHEMAS: Partial> = { * validated (opt-in), preserving prior behavior. * See https://github.com/thomasluizon/orbit-ui-mobile/issues/479 */ -export function getMutationResponseSchema(type: MutationType): ZodType | undefined { - return MUTATION_RESPONSE_SCHEMAS[type] +export function getMutationResponseSchema(type: string): ZodType | undefined { + const currentType = mutationTypeSchema.safeParse(type) + return currentType.success ? MUTATION_RESPONSE_SCHEMAS[currentType.data] : undefined } diff --git a/apps/mobile/lib/offline-mutations.ts b/apps/mobile/lib/offline-mutations.ts index 9c2bca1355..7a47f3d282 100644 --- a/apps/mobile/lib/offline-mutations.ts +++ b/apps/mobile/lib/offline-mutations.ts @@ -6,14 +6,15 @@ import { notificationKeys, profileKeys, tagKeys, - userFactKeys, } from '@orbit/shared/query' import type { MutationEntityType, MutationScope, MutationType, + PersistedQueuedMutation, QueuedMutation, } from '@orbit/shared/types/sync' +import { mutationTypeSchema } from '@orbit/shared/types/sync' import { apiClient } from './api-client' import { getMutationResponseSchema } from './mutation-response-schemas' import { @@ -38,7 +39,6 @@ const SCOPE_QUERY_KEYS: Record = tags: [tagKeys.all, habitKeys.lists()], notifications: [notificationKeys.all], profile: [profileKeys.all], - userFacts: [userFactKeys.all], apiKeys: [apiKeyKeys.all], calendar: [profileKeys.all], } @@ -50,7 +50,7 @@ export interface QueuedMarker { export interface DroppedMutation { id: string - type: MutationType + type: string lastError: string | null } @@ -212,7 +212,7 @@ function collectOfflineIds(value: unknown, ids: Set): void { } } -function hasPendingOfflineDependencies(mutation: QueuedMutation): boolean { +function hasPendingOfflineDependencies(mutation: PersistedQueuedMutation): boolean { const pendingIds = new Set() if (mutation.targetEntityId?.startsWith('offline-')) { @@ -254,7 +254,7 @@ function replaceIdInValue(value: unknown, oldId: string, newId: string): unknown return value } -function rewriteMutationIdReferences(mutation: QueuedMutation, oldId: string, newId: string): QueuedMutation { +function rewriteMutationIdReferences(mutation: T, oldId: string, newId: string): T { return { ...mutation, endpoint: mutation.endpoint.includes(oldId) @@ -267,7 +267,7 @@ function rewriteMutationIdReferences(mutation: QueuedMutation, oldId: string, ne } } -async function resolveMutationReferences(mutation: QueuedMutation): Promise { +async function resolveMutationReferences(mutation: T): Promise { if (!mutation.entityType || !mutation.targetEntityId) return mutation const resolvedId = await getResolvedEntityId(mutation.entityType, mutation.targetEntityId) @@ -361,7 +361,7 @@ function shouldStopFlushing(error: unknown): boolean { return message.includes('unauthorized') || message.includes('forbidden') } -export function getMutationScope(type: MutationType): MutationScope { +export function getMutationScope(type: string): MutationScope | undefined { switch (type) { case 'createGoal': case 'updateGoal': @@ -381,9 +381,6 @@ export function getMutationScope(type: MutationType): MutationScope { case 'deleteNotification': case 'deleteAllNotifications': return 'notifications' - case 'deleteUserFact': - case 'bulkDeleteUserFacts': - return 'userFacts' case 'createApiKey': case 'deleteApiKey': return 'apiKeys' @@ -394,7 +391,6 @@ export function getMutationScope(type: MutationType): MutationScope { case 'setColorScheme': case 'setThemePreference': case 'setTimeZone': - case 'setAiMemory': case 'setAiSummary': case 'setProactiveAstra': case 'setMarketingConsent': @@ -403,7 +399,7 @@ export function getMutationScope(type: MutationType): MutationScope { case 'resetProfile': return 'profile' default: - return 'habits' + return mutationTypeSchema.safeParse(type).success ? 'habits' : undefined } } @@ -480,13 +476,14 @@ function serializeMutationPayload(payload: unknown): string | undefined { function addTouchedScope( touchedScopes: Set, - mutation: QueuedMutation, + mutation: PersistedQueuedMutation, ): void { - touchedScopes.add(mutation.scope ?? getMutationScope(mutation.type)) + const scope = mutation.scope ?? getMutationScope(mutation.type) + if (scope) touchedScopes.add(scope) } async function clearCreatedOfflineEntity( - mutation: QueuedMutation, + mutation: PersistedQueuedMutation, response: unknown, ): Promise { if (!mutation.entityType || !mutation.clientEntityId) return @@ -501,7 +498,7 @@ async function clearCreatedOfflineEntity( await clearOfflineEntity(mutation.entityType, mutation.clientEntityId) } -async function clearDeletedOfflineEntity(mutation: QueuedMutation): Promise { +async function clearDeletedOfflineEntity(mutation: PersistedQueuedMutation): Promise { if (!mutation.entityType || !mutation.targetEntityId || !mutation.type.startsWith('delete')) { return } @@ -510,7 +507,7 @@ async function clearDeletedOfflineEntity(mutation: QueuedMutation): Promise, ): Promise { @@ -520,7 +517,7 @@ async function finalizeSuccessfulFlush( remove(mutation.id) } -async function markMutationSyncing(mutation: QueuedMutation): Promise { +async function markMutationSyncing(mutation: PersistedQueuedMutation): Promise { update(mutation.id, { status: 'syncing', lastError: null }) if (mutation.entityType && mutation.clientEntityId) { @@ -531,7 +528,7 @@ async function markMutationSyncing(mutation: QueuedMutation): Promise { type FlushStopReason = 'network' | 'auth' | null async function handleFlushFailure( - mutation: QueuedMutation, + mutation: PersistedQueuedMutation, error: unknown, touchedScopes: Set, ): Promise<{ @@ -600,7 +597,7 @@ type FlushStepResult = { } async function processQueuedMutationFlush( - originalMutation: QueuedMutation, + originalMutation: PersistedQueuedMutation, touchedScopes: Set, ): Promise { const currentMutation = getById(originalMutation.id) diff --git a/apps/mobile/lib/offline-queue.ts b/apps/mobile/lib/offline-queue.ts index 44dc737eb0..95219ea830 100644 --- a/apps/mobile/lib/offline-queue.ts +++ b/apps/mobile/lib/offline-queue.ts @@ -1,10 +1,12 @@ import * as SQLite from 'expo-sqlite' -import type { - MutationEntityType, - MutationScope, - MutationType, - QueuedMutation, - QueuedMutationStatus, +import { + mutationEntityTypeSchema, + mutationScopeSchema, + type MutationEntityType, + type MutationScope, + type PersistedQueuedMutation, + type QueuedMutation, + type QueuedMutationStatus, } from '@orbit/shared/types/sync' let db: SQLite.SQLiteDatabase | null = null @@ -85,7 +87,7 @@ function parseJson(value: string | null): T | null { } } -function buildMeta(mutation: QueuedMutation): QueueMetaRow { +function buildMeta(mutation: PersistedQueuedMutation): QueueMetaRow { return { scope: mutation.scope, entityType: mutation.entityType, @@ -98,20 +100,22 @@ function buildMeta(mutation: QueuedMutation): QueueMetaRow { } } -function mapRow(row: QueueRow): QueuedMutation { +function mapRow(row: QueueRow): PersistedQueuedMutation { const meta = parseJson(row.meta) ?? {} + const scope = mutationScopeSchema.safeParse(meta.scope) + const entityType = mutationEntityTypeSchema.safeParse(meta.entityType) return { id: row.id, timestamp: row.timestamp, - type: row.type as MutationType, + type: row.type, endpoint: row.endpoint, method: row.method as 'POST' | 'PUT' | 'DELETE', payload: parseJson(row.payload), retries: row.retries, maxRetries: row.max_retries, - scope: meta.scope, - entityType: meta.entityType, + scope: scope.success ? scope.data : undefined, + entityType: entityType.success ? entityType.data : undefined, status: meta.status ?? 'pending', dedupeKey: meta.dedupeKey ?? null, targetEntityId: meta.targetEntityId ?? null, @@ -121,7 +125,7 @@ function mapRow(row: QueueRow): QueuedMutation { } } -function upsert(database: SQLite.SQLiteDatabase, mutation: QueuedMutation): void { +function upsert(database: SQLite.SQLiteDatabase, mutation: PersistedQueuedMutation): void { database.runSync( `INSERT OR REPLACE INTO mutation_queue (id, timestamp, type, endpoint, method, payload, retries, max_retries, meta) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)`, @@ -139,7 +143,7 @@ function upsert(database: SQLite.SQLiteDatabase, mutation: QueuedMutation): void ) } -function replaceAll(mutations: QueuedMutation[]): void { +function replaceAll(mutations: PersistedQueuedMutation[]): void { const database = getDb() database.withTransactionSync(() => { database.runSync('DELETE FROM mutation_queue') @@ -150,11 +154,11 @@ function replaceAll(mutations: QueuedMutation[]): void { emitQueueCount() } -function isCreateType(type: MutationType): boolean { +function isCreateType(type: string): boolean { return type === 'createHabit' || type === 'createGoal' || type === 'createTag' } -const MERGE_INTO_CREATE_TYPES = new Set([ +const MERGE_INTO_CREATE_TYPES = new Set([ 'updateHabit', 'updateChecklist', 'assignTags', @@ -162,15 +166,14 @@ const MERGE_INTO_CREATE_TYPES = new Set([ 'updateTag', ]) -const DROP_CREATE_TYPES = new Set(['deleteHabit', 'deleteGoal', 'deleteTag']) +const DROP_CREATE_TYPES = new Set(['deleteHabit', 'deleteGoal', 'deleteTag']) -const LAST_WRITE_WINS_TYPES = new Set([ +const LAST_WRITE_WINS_TYPES = new Set([ 'setLanguage', 'setWeekStartDay', 'setColorScheme', 'setThemePreference', 'setTimeZone', - 'setAiMemory', 'setAiSummary', 'setProactiveAstra', 'completeOnboarding', @@ -179,7 +182,6 @@ const LAST_WRITE_WINS_TYPES = new Set([ 'reorderGoals', 'markAllNotificationsRead', 'deleteAllNotifications', - 'bulkDeleteUserFacts', ]) function mergePayload(existing: unknown, incoming: unknown): unknown { @@ -201,9 +203,9 @@ function mergePayload(existing: unknown, incoming: unknown): unknown { } function compactQueuedMutations( - existing: QueuedMutation[], + existing: PersistedQueuedMutation[], incoming: QueuedMutation, -): QueuedMutation[] { +): PersistedQueuedMutation[] { let next = [...existing] if (incoming.dedupeKey && LAST_WRITE_WINS_TYPES.has(incoming.type)) { @@ -278,21 +280,21 @@ export function enqueue( replaceAll(compacted) } -export function dequeue(): QueuedMutation | null { +export function dequeue(): PersistedQueuedMutation | null { return getAll()[0] ?? null } -export function getAll(): QueuedMutation[] { +export function getAll(): PersistedQueuedMutation[] { const database = getDb() const rows = database.getAllSync('SELECT * FROM mutation_queue ORDER BY timestamp ASC') return rows.map(mapRow) } -export function getById(id: string): QueuedMutation | null { +export function getById(id: string): PersistedQueuedMutation | null { return getAll().find((mutation) => mutation.id === id) ?? null } -export function update(id: string, patch: Partial): void { +export function update(id: string, patch: Partial): void { const updated = getAll().map((mutation) => mutation.id === id ? { diff --git a/apps/mobile/lib/providers.tsx b/apps/mobile/lib/providers.tsx index aa43511ed7..67b6e0b246 100644 --- a/apps/mobile/lib/providers.tsx +++ b/apps/mobile/lib/providers.tsx @@ -52,9 +52,12 @@ function OfflineManager() { useEffect(() => { return subscribeDroppedMutations((dropped) => { + const scope = getMutationScope(dropped.type) + if (!scope) return + showError( t('common.syncDropped', { - item: t(`common.syncEntity.${getMutationScope(dropped.type)}`), + item: t(`common.syncEntity.${scope}`), }), ) }) @@ -125,13 +128,13 @@ function AuthInitializer({ children }: Readonly<{ children: ReactNode }>) { setReady(true) } - boot() + void boot() }, [initialize]) useEffect(() => { const handleAppState = (nextState: AppStateStatus) => { if (nextState === 'background' || nextState === 'inactive') { - persistQueryCache() + void persistQueryCache() } if (nextState === 'active') { diff --git a/apps/web/__tests__/actions/profile.test.ts b/apps/web/__tests__/actions/profile.test.ts index 159b6f4bf5..56ff91c963 100644 --- a/apps/web/__tests__/actions/profile.test.ts +++ b/apps/web/__tests__/actions/profile.test.ts @@ -17,7 +17,6 @@ vi.stubGlobal('fetch', mockFetch) const { updateTimezone, updateLanguage, - updateAiMemory, updateAiSummary, updateWeekStartDay, updateThemePreference, @@ -102,28 +101,6 @@ describe('profile server actions', () => { }) - describe('updateAiMemory', () => { - it('sends PUT to /api/profile/ai-memory', async () => { - mock204() - - await updateAiMemory({ enabled: true }) - - const [url, init] = mockFetch.mock.calls[0]! - expect(url).toContain('/api/profile/ai-memory') - expect(init.method).toBe('PUT') - expect(JSON.parse(init.body)).toEqual({ enabled: true }) - }) - - it('sends false value', async () => { - mock204() - - await updateAiMemory({ enabled: false }) - - const [, init] = mockFetch.mock.calls[0]! - expect(JSON.parse(init.body)).toEqual({ enabled: false }) - }) - }) - describe('updateAiSummary', () => { it('sends PUT to /api/profile/ai-summary', async () => { diff --git a/apps/web/__tests__/actions/user-facts.test.ts b/apps/web/__tests__/actions/user-facts.test.ts deleted file mode 100644 index 4c710876a2..0000000000 --- a/apps/web/__tests__/actions/user-facts.test.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { describe, it, expect, vi, beforeEach } from 'vitest' -import { API } from '@orbit/shared/api' - -const mockServerAuthFetch = vi.fn() -vi.mock('@/lib/server-fetch', () => ({ - serverAuthFetch: mockServerAuthFetch, -})) - -const { deleteUserFact, bulkDeleteUserFacts } = await import('@/app/actions/user-facts') - -describe('user-facts server actions', () => { - beforeEach(() => { - mockServerAuthFetch.mockReset() - mockServerAuthFetch.mockResolvedValue(undefined) - }) - - it('deletes a single fact through the delete endpoint', async () => { - await deleteUserFact('fact-1') - expect(mockServerAuthFetch).toHaveBeenCalledWith(API.userFacts.delete('fact-1'), { - method: 'DELETE', - }) - }) - - it('bulk-deletes facts with the id list in the body', async () => { - await bulkDeleteUserFacts(['a', 'b']) - expect(mockServerAuthFetch).toHaveBeenCalledWith(API.userFacts.bulk, { - method: 'DELETE', - body: JSON.stringify({ ids: ['a', 'b'] }), - }) - }) -}) diff --git a/apps/web/__tests__/components/ai-settings/ai-feature-toggles.test.tsx b/apps/web/__tests__/components/ai-settings/ai-feature-toggles.test.tsx index f8ed7bbb27..dc926cbead 100644 --- a/apps/web/__tests__/components/ai-settings/ai-feature-toggles.test.tsx +++ b/apps/web/__tests__/components/ai-settings/ai-feature-toggles.test.tsx @@ -1,28 +1,12 @@ -import { describe, it, expect, vi } from 'vitest' -import { render, screen, fireEvent } from '@testing-library/react' +import { describe, expect, it, vi } from 'vitest' +import { fireEvent, render, screen } from '@testing-library/react' vi.mock('next-intl', () => ({ useTranslations: () => (key: string) => key, })) -vi.mock('@/hooks/use-profile', () => ({ - useProfile: () => ({ profile: { isTrialActive: false, hasProAccess: true } }), -})) - -vi.mock('next/link', () => ({ - default: ({ - children, - href, - ...props - }: { - children: React.ReactNode - href: string - [key: string]: unknown - }) => ( - - {children} - - ), +vi.mock('@/components/ui/pro-badge', () => ({ + ProBadge: () => null, })) import { AiFeatureToggles } from '@/app/(app)/ai-settings/_components/ai-feature-toggles' @@ -30,13 +14,10 @@ import { AiFeatureToggles } from '@/app/(app)/ai-settings/_components/ai-feature function baseProps() { return { hasProAccess: true, - aiMemoryEnabled: true, aiSummaryEnabled: false, proactiveAstraEnabled: true, - memoryPending: false, summaryPending: false, proactivePending: false, - onToggleMemory: vi.fn(), onToggleSummary: vi.fn(), onToggleProactive: vi.fn(), onUpgrade: vi.fn(), @@ -44,44 +25,39 @@ function baseProps() { } describe('AiFeatureToggles', () => { - it('renders memory, summary, and proactive switches reflecting their on/off state', () => { + it('renders exactly the daily summary and proactive switches for Pro users', () => { render() - expect( - screen.getByRole('switch', { name: 'profile.aiMemory.title' }), - ).toHaveAttribute('aria-checked', 'true') - expect( - screen.getByRole('switch', { name: 'profile.aiSummary.title' }), - ).toHaveAttribute('aria-checked', 'false') + const switches = screen.getAllByRole('switch') + expect(switches).toHaveLength(2) + expect(screen.getByRole('switch', { name: 'profile.aiSummary.title' })).toHaveAttribute( + 'aria-checked', + 'false', + ) expect( screen.getByRole('switch', { name: 'profile.proactiveAstra.title' }), ).toHaveAttribute('aria-checked', 'true') }) - it('fires the memory, summary, and proactive toggle callbacks on click', () => { + it('fires both surviving toggle callbacks on click', () => { const props = baseProps() render() - fireEvent.click(screen.getByRole('switch', { name: 'profile.aiMemory.title' })) - expect(props.onToggleMemory).toHaveBeenCalled() fireEvent.click(screen.getByRole('switch', { name: 'profile.aiSummary.title' })) expect(props.onToggleSummary).toHaveBeenCalled() fireEvent.click(screen.getByRole('switch', { name: 'profile.proactiveAstra.title' })) expect(props.onToggleProactive).toHaveBeenCalled() }) - it('disables a switch while its mutation is pending', () => { - const props = { ...baseProps(), memoryPending: true } - render() - expect( - screen.getByRole('switch', { name: 'profile.aiMemory.title' }), - ).toBeDisabled() + it('disables the summary switch while its mutation is pending', () => { + render() + expect(screen.getByRole('switch', { name: 'profile.aiSummary.title' })).toBeDisabled() }) - it('renders pressable upgrade rows instead of switches for non-pro users', () => { + it('renders two upgrade rows and no switches for free users', () => { const props = { ...baseProps(), hasProAccess: false } render() expect(screen.queryByRole('switch')).not.toBeInTheDocument() const rows = screen.getAllByRole('button') - expect(rows).toHaveLength(3) + expect(rows).toHaveLength(2) fireEvent.click(rows[0]!) expect(props.onUpgrade).toHaveBeenCalled() }) diff --git a/apps/web/__tests__/components/ai-settings/fact-item.test.tsx b/apps/web/__tests__/components/ai-settings/fact-item.test.tsx deleted file mode 100644 index 83e8fa2b0a..0000000000 --- a/apps/web/__tests__/components/ai-settings/fact-item.test.tsx +++ /dev/null @@ -1,118 +0,0 @@ -import { describe, it, expect, vi } from 'vitest' -import { render, screen, fireEvent } from '@testing-library/react' -import type { UserFact } from '@orbit/shared/types/user-fact' - -vi.mock('next-intl', () => ({ - useTranslations: () => (key: string) => key, -})) - -import { FactItem } from '@/app/(app)/ai-settings/_components/fact-item' - -function makeFact(overrides: Partial = {}): UserFact { - return { - id: 'fact-1', - factText: 'Prefers morning workouts', - category: 'preference', - extractedAtUtc: '2026-01-01T00:00:00Z', - updatedAtUtc: null, - ...overrides, - } -} - -describe('FactItem', () => { - it('renders the fact text', () => { - render( - , - ) - expect(screen.getByText('Prefers morning workouts')).toBeInTheDocument() - }) - - it('renders the uppercased category label when a category is present', () => { - render( - , - ) - expect(screen.getByText('PROFILE.FACTS.PREFERENCE')).toBeInTheDocument() - }) - - it('omits the category label when there is no category', () => { - render( - , - ) - expect(screen.queryByText('PROFILE.FACTS.PREFERENCE')).not.toBeInTheDocument() - }) - - it('shows a delete button outside select mode and fires onDelete', () => { - const onDelete = vi.fn() - render( - , - ) - fireEvent.click(screen.getByLabelText('common.delete')) - expect(onDelete).toHaveBeenCalled() - }) - - it('renders a pressable toggle in select mode and fires onToggleSelection', () => { - const onToggleSelection = vi.fn() - render( - , - ) - const toggle = screen.getByRole('button', { pressed: false }) - fireEvent.click(toggle) - expect(onToggleSelection).toHaveBeenCalled() - }) - - it('reflects the selected state via aria-pressed in select mode', () => { - render( - , - ) - expect(screen.getByRole('button', { pressed: true })).toBeInTheDocument() - }) - - it('hides the delete button in select mode', () => { - render( - , - ) - expect(screen.queryByLabelText('common.delete')).not.toBeInTheDocument() - }) -}) diff --git a/apps/web/__tests__/components/ai-settings/facts-pagination.test.tsx b/apps/web/__tests__/components/ai-settings/facts-pagination.test.tsx deleted file mode 100644 index 33c1a42935..0000000000 --- a/apps/web/__tests__/components/ai-settings/facts-pagination.test.tsx +++ /dev/null @@ -1,55 +0,0 @@ -import { describe, it, expect, vi } from 'vitest' -import { render, screen, fireEvent } from '@testing-library/react' - -vi.mock('next-intl', () => ({ - useTranslations: () => (key: string, params?: Record) => { - if (params) return `${key}:${JSON.stringify(params)}` - return key - }, -})) - -import { FactsPagination } from '@/app/(app)/ai-settings/_components/facts-pagination' - -describe('FactsPagination', () => { - it('renders the current page and total via i18n', () => { - render( - , - ) - expect( - screen.getByText('profile.facts.count:{"n":2,"max":4}'), - ).toBeInTheDocument() - }) - - it('navigates to the previous and next page on click', () => { - const onPrevious = vi.fn() - const onNext = vi.fn() - render( - , - ) - fireEvent.click(screen.getByLabelText('common.previousPage')) - expect(onPrevious).toHaveBeenCalled() - fireEvent.click(screen.getByLabelText('common.nextPage')) - expect(onNext).toHaveBeenCalled() - }) - - it('disables previous on the first page', () => { - render( - , - ) - expect(screen.getByLabelText('common.previousPage')).toBeDisabled() - expect(screen.getByLabelText('common.nextPage')).not.toBeDisabled() - }) - - it('disables next on the last page', () => { - render( - , - ) - expect(screen.getByLabelText('common.nextPage')).toBeDisabled() - expect(screen.getByLabelText('common.previousPage')).not.toBeDisabled() - }) -}) diff --git a/apps/web/__tests__/components/ai-settings/facts-select-bar.test.tsx b/apps/web/__tests__/components/ai-settings/facts-select-bar.test.tsx deleted file mode 100644 index e8018e7982..0000000000 --- a/apps/web/__tests__/components/ai-settings/facts-select-bar.test.tsx +++ /dev/null @@ -1,101 +0,0 @@ -import { describe, it, expect, vi } from 'vitest' -import { render, screen, fireEvent } from '@testing-library/react' - -vi.mock('next-intl', () => ({ - useTranslations: () => (key: string, params?: Record) => { - if (params) return `${key}:${JSON.stringify(params)}` - return key - }, -})) - -import { FactsSelectBar } from '@/app/(app)/ai-settings/_components/facts-select-bar' - -function baseProps() { - return { - selectMode: false, - selectedCount: 0, - allSelected: false, - bulkDeletePending: false, - showPagination: false, - page: 1, - totalPages: 1, - onPreviousPage: vi.fn(), - onNextPage: vi.fn(), - onToggleSelectAll: vi.fn(), - onBulkDelete: vi.fn(), - onToggleSelectMode: vi.fn(), - } -} - -describe('FactsSelectBar', () => { - it('shows an icon select toggle when idle', () => { - const props = baseProps() - render() - fireEvent.click(screen.getByLabelText('profile.facts.select')) - expect(props.onToggleSelectMode).toHaveBeenCalled() - }) - - it('renders pagination only when requested', () => { - const idle = baseProps() - const { rerender } = render() - expect( - screen.queryByLabelText('common.previousPage'), - ).not.toBeInTheDocument() - rerender( - , - ) - expect(screen.getByText('profile.facts.count:{"n":2,"max":5}')).toBeInTheDocument() - fireEvent.click(screen.getByLabelText('common.nextPage')) - expect(idle.onNextPage).toHaveBeenCalled() - }) - - it('shows a cancel action in select mode', () => { - const props = { ...baseProps(), selectMode: true, selectedCount: 2 } - render() - fireEvent.click(screen.getByLabelText('profile.facts.cancel')) - expect(props.onToggleSelectMode).toHaveBeenCalled() - }) - - it('toggles select-all and shows the select-all label when none are selected', () => { - const props = { ...baseProps(), selectMode: true, selectedCount: 0 } - render() - fireEvent.click(screen.getByText('profile.facts.selectAll')) - expect(props.onToggleSelectAll).toHaveBeenCalled() - }) - - it('shows the deselect-all label when everything is selected', () => { - const props = { - ...baseProps(), - selectMode: true, - selectedCount: 7, - allSelected: true, - } - render() - expect(screen.getByText('profile.facts.deselectAll')).toBeInTheDocument() - }) - - it('fires bulk delete when there is a selection', () => { - const props = { ...baseProps(), selectMode: true, selectedCount: 3 } - render() - fireEvent.click(screen.getByText('3')) - expect(props.onBulkDelete).toHaveBeenCalled() - }) - - it('disables bulk delete while a delete is pending', () => { - const props = { - ...baseProps(), - selectMode: true, - selectedCount: 3, - bulkDeletePending: true, - } - render() - expect(screen.getByText('3').closest('button')).toBeDisabled() - }) - - it('hides the bulk-delete action when nothing is selected', () => { - const props = { ...baseProps(), selectMode: true, selectedCount: 0 } - render() - expect(props.onBulkDelete).not.toHaveBeenCalled() - expect(screen.getByText('profile.facts.selectAll')).toBeInTheDocument() - }) -}) diff --git a/apps/web/__tests__/components/ai-settings/use-user-facts.test.ts b/apps/web/__tests__/components/ai-settings/use-user-facts.test.ts deleted file mode 100644 index a9365a2e55..0000000000 --- a/apps/web/__tests__/components/ai-settings/use-user-facts.test.ts +++ /dev/null @@ -1,127 +0,0 @@ -import { describe, it, expect, vi, beforeEach } from 'vitest' -import { renderHook, act, waitFor } from '@testing-library/react' -import { QueryClient, QueryClientProvider } from '@tanstack/react-query' -import React from 'react' -import type { UserFact } from '@orbit/shared/types/user-fact' -import { useUserFacts } from '@/app/(app)/ai-settings/_components/use-user-facts' - -const mockFetch = vi.fn() -vi.stubGlobal('fetch', mockFetch) - -vi.mock('@/app/actions/user-facts', () => ({ - deleteUserFact: vi.fn(), - bulkDeleteUserFacts: vi.fn(), -})) - -function makeFact(id: string): UserFact { - return { - id, - factText: `Fact ${id}`, - category: null, - extractedAtUtc: '2026-01-01T00:00:00Z', - updatedAtUtc: null, - } -} - -function makeFacts(count: number): UserFact[] { - return Array.from({ length: count }, (_, index) => makeFact(`f-${index + 1}`)) -} - -function createWrapper() { - const queryClient = new QueryClient({ - defaultOptions: { queries: { retry: false }, mutations: { retry: false } }, - }) - return function Wrapper({ children }: { children: React.ReactNode }) { - return React.createElement(QueryClientProvider, { client: queryClient }, children) - } -} - -describe('useUserFacts', () => { - beforeEach(() => { - mockFetch.mockReset() - }) - - it('does not fetch and reports no facts without pro access', () => { - const { result } = renderHook(() => useUserFacts(false), { wrapper: createWrapper() }) - expect(result.current.facts).toEqual([]) - expect(mockFetch).not.toHaveBeenCalled() - }) - - it('loads facts once pro access is granted', async () => { - mockFetch.mockResolvedValue({ ok: true, json: () => Promise.resolve(makeFacts(3)) }) - const { result } = renderHook(() => useUserFacts(true), { wrapper: createWrapper() }) - await waitFor(() => expect(result.current.facts).toHaveLength(3)) - expect(result.current.totalFactsPages).toBe(1) - }) - - it('throws when the facts request fails', async () => { - mockFetch.mockResolvedValue({ ok: false, json: () => Promise.resolve({}) }) - const { result } = renderHook(() => useUserFacts(true), { wrapper: createWrapper() }) - await waitFor(() => expect(result.current.factsQuery.isError).toBe(true)) - }) - - it('toggles individual selections on and off', async () => { - mockFetch.mockResolvedValue({ ok: true, json: () => Promise.resolve(makeFacts(3)) }) - const { result } = renderHook(() => useUserFacts(true), { wrapper: createWrapper() }) - await waitFor(() => expect(result.current.facts).toHaveLength(3)) - - act(() => result.current.toggleFactSelection('f-1')) - expect(result.current.selectedFactIds.has('f-1')).toBe(true) - act(() => result.current.toggleFactSelection('f-1')) - expect(result.current.selectedFactIds.has('f-1')).toBe(false) - }) - - it('selects all then clears when toggled again', async () => { - mockFetch.mockResolvedValue({ ok: true, json: () => Promise.resolve(makeFacts(3)) }) - const { result } = renderHook(() => useUserFacts(true), { wrapper: createWrapper() }) - await waitFor(() => expect(result.current.facts).toHaveLength(3)) - - act(() => result.current.toggleSelectAll()) - expect(result.current.selectedFactIds.size).toBe(3) - act(() => result.current.toggleSelectAll()) - expect(result.current.selectedFactIds.size).toBe(0) - }) - - it('clears the selection when leaving select mode', async () => { - mockFetch.mockResolvedValue({ ok: true, json: () => Promise.resolve(makeFacts(3)) }) - const { result } = renderHook(() => useUserFacts(true), { wrapper: createWrapper() }) - await waitFor(() => expect(result.current.facts).toHaveLength(3)) - - act(() => result.current.toggleFactSelection('f-2')) - act(() => result.current.toggleSelectMode()) - expect(result.current.selectMode).toBe(true) - expect(result.current.selectedFactIds.size).toBe(0) - }) - - it('paginates in pages of five and clamps an out-of-range page', async () => { - mockFetch.mockResolvedValue({ ok: true, json: () => Promise.resolve(makeFacts(7)) }) - const { result } = renderHook(() => useUserFacts(true), { wrapper: createWrapper() }) - await waitFor(() => expect(result.current.facts).toHaveLength(7)) - - expect(result.current.totalFactsPages).toBe(2) - expect(result.current.pagedFacts).toHaveLength(5) - - act(() => result.current.setFactsPage(2)) - await waitFor(() => expect(result.current.pagedFacts).toHaveLength(2)) - - act(() => result.current.setFactsPage(9)) - await waitFor(() => expect(result.current.factsPage).toBe(2)) - }) - - it('bulk-deletes and resets the selection', async () => { - mockFetch.mockResolvedValue({ ok: true, json: () => Promise.resolve(makeFacts(3)) }) - const { bulkDeleteUserFacts } = await import('@/app/actions/user-facts') - vi.mocked(bulkDeleteUserFacts).mockResolvedValue(undefined) - - const { result } = renderHook(() => useUserFacts(true), { wrapper: createWrapper() }) - await waitFor(() => expect(result.current.facts).toHaveLength(3)) - - act(() => result.current.toggleSelectAll()) - await act(async () => { - await result.current.bulkDeleteMutation.mutateAsync(['f-1', 'f-2', 'f-3']) - }) - - expect(vi.mocked(bulkDeleteUserFacts).mock.calls[0]![0]).toEqual(['f-1', 'f-2', 'f-3']) - await waitFor(() => expect(result.current.selectedFactIds.size).toBe(0)) - }) -}) diff --git a/apps/web/__tests__/components/ai-settings/user-facts-list.test.tsx b/apps/web/__tests__/components/ai-settings/user-facts-list.test.tsx deleted file mode 100644 index e646dedeae..0000000000 --- a/apps/web/__tests__/components/ai-settings/user-facts-list.test.tsx +++ /dev/null @@ -1,89 +0,0 @@ -import React from 'react' -import { describe, it, expect, vi } from 'vitest' -import { render, screen, fireEvent } from '@testing-library/react' -import type { UserFact } from '@orbit/shared/types/user-fact' - -vi.mock('next-intl', () => ({ - useTranslations: () => (key: string) => key, -})) - -vi.mock('@/components/ui/satellite-glyph', () => ({ SatelliteGlyph: () => })) -vi.mock('@/components/ui/pill-button', () => ({ - PillButton: ({ onClick, children }: { onClick?: () => void; children: React.ReactNode }) => ( - - ), -})) -vi.mock('@/app/(app)/ai-settings/_components/fact-item', () => ({ - FactItem: ({ fact, onDelete, onToggleSelection }: { - fact: UserFact; onDelete: () => void; onToggleSelection: () => void - }) => ( -
- {fact.factText} -
- ), -})) - -import { UserFactsList } from '@/app/(app)/ai-settings/_components/user-facts-list' - -function makeFact(id: string, factText: string): UserFact { - return { id, factText, category: null, extractedAtUtc: '2026-01-01T00:00:00Z', updatedAtUtc: null } -} - -const baseProps = { - isLoading: false, - hasError: false, - facts: [] as UserFact[], - pagedFacts: [] as UserFact[], - selectMode: false, - selectedFactIds: new Set(), - onToggleSelection: vi.fn(), - onDelete: vi.fn(), - onRetry: vi.fn(), - onAskAstra: vi.fn(), -} - -describe('UserFactsList', () => { - it('renders skeletons while loading', () => { - const { container } = render() - expect(container.querySelectorAll('.animate-pulse')).toHaveLength(2) - expect(screen.queryByTestId('fact')).not.toBeInTheDocument() - }) - - it('shows a retryable error state', () => { - const onRetry = vi.fn() - render() - expect(screen.getByRole('alert')).toHaveTextContent('profile.facts.factsError') - fireEvent.click(screen.getByRole('button', { name: 'profile.facts.retry' })) - expect(onRetry).toHaveBeenCalledTimes(1) - }) - - it('offers an Ask Astra CTA when there are no facts', () => { - const onAskAstra = vi.fn() - render() - expect(screen.getByText('profile.facts.empty')).toBeInTheDocument() - fireEvent.click(screen.getByRole('button', { name: 'summary.askAstra' })) - expect(onAskAstra).toHaveBeenCalledTimes(1) - }) - - it('renders the paged facts and forwards delete and selection', () => { - const onDelete = vi.fn() - const onToggleSelection = vi.fn() - const facts = [makeFact('f-1', 'Likes tea'), makeFact('f-2', 'Runs at dawn')] - render( - , - ) - expect(screen.getAllByTestId('fact')).toHaveLength(2) - fireEvent.click(screen.getByRole('button', { name: 'delete-f-1' })) - expect(onDelete).toHaveBeenCalledWith('f-1') - fireEvent.click(screen.getByRole('button', { name: 'toggle-f-2' })) - expect(onToggleSelection).toHaveBeenCalledWith('f-2') - }) -}) diff --git a/apps/web/__tests__/components/onboarding/feature-guide-drawer.test.tsx b/apps/web/__tests__/components/onboarding/feature-guide-drawer.test.tsx index dc62a40b35..d1e6b2af06 100644 --- a/apps/web/__tests__/components/onboarding/feature-guide-drawer.test.tsx +++ b/apps/web/__tests__/components/onboarding/feature-guide-drawer.test.tsx @@ -51,6 +51,20 @@ describe('FeatureGuideDrawer', () => { expect(document.body.textContent).toContain('onboarding.featureGuide.astraSection.canDoTitle') }) + it('omits both retired settings entries', () => { + render() + fireEvent.click(screen.getByText('onboarding.featureGuide.settings')) + const removedSuffixes = [ + ['ai', 'MemoryTitle'].join(''), + ['user', 'FactsTitle'].join(''), + ] + for (const suffix of removedSuffixes) { + expect(document.body.textContent).not.toContain( + `onboarding.featureGuide.settingsSection.${suffix}`, + ) + } + }) + it.each([ { tab: 'connect', title: 'onboarding.featureGuide.connectSection.mcpTitle' }, { tab: 'habits', title: 'onboarding.featureGuide.habitsSection.creatingTitle' }, diff --git a/apps/web/__tests__/components/profile/delete-account-modal.test.tsx b/apps/web/__tests__/components/profile/delete-account-modal.test.tsx index 83a1a280ba..7c591860f8 100644 --- a/apps/web/__tests__/components/profile/delete-account-modal.test.tsx +++ b/apps/web/__tests__/components/profile/delete-account-modal.test.tsx @@ -59,7 +59,6 @@ const defaultProfile = { name: 'Thomas', email: 'thomas@example.com', timeZone: 'America/Sao_Paulo', - aiMemoryEnabled: true, aiSummaryEnabled: true, hasCompletedOnboarding: true, hasCompletedTour: false, diff --git a/apps/web/__tests__/components/profile/fresh-start-modal.test.tsx b/apps/web/__tests__/components/profile/fresh-start-modal.test.tsx index a2cae60a01..544e4aa767 100644 --- a/apps/web/__tests__/components/profile/fresh-start-modal.test.tsx +++ b/apps/web/__tests__/components/profile/fresh-start-modal.test.tsx @@ -91,7 +91,6 @@ describe('FreshStartModal', () => { expect(screen.getByText('profile.freshStart.deleteHabits')).toBeInTheDocument() expect(screen.getByText('profile.freshStart.deleteGoals')).toBeInTheDocument() expect(screen.getByText('profile.freshStart.deleteChat')).toBeInTheDocument() - expect(screen.getByText('profile.freshStart.deleteUserFacts')).toBeInTheDocument() expect(screen.getByText('profile.freshStart.deleteAchievements')).toBeInTheDocument() expect(screen.getByText('profile.freshStart.deleteNotifications')).toBeInTheDocument() expect(screen.getByText('profile.freshStart.deleteChecklist')).toBeInTheDocument() diff --git a/apps/web/__tests__/components/profile/subscription-card.test.tsx b/apps/web/__tests__/components/profile/subscription-card.test.tsx index d1d6733cdb..1718085996 100644 --- a/apps/web/__tests__/components/profile/subscription-card.test.tsx +++ b/apps/web/__tests__/components/profile/subscription-card.test.tsx @@ -27,7 +27,6 @@ const baseProfile = { name: 'Thomas', email: 'thomas@example.com', timeZone: 'America/Sao_Paulo', - aiMemoryEnabled: true, aiSummaryEnabled: true, hasCompletedOnboarding: true, hasCompletedTour: false, diff --git a/apps/web/__tests__/components/upgrade/plan-comparison-cards.test.tsx b/apps/web/__tests__/components/upgrade/plan-comparison-cards.test.tsx index f25dddffb1..840c678d8f 100644 --- a/apps/web/__tests__/components/upgrade/plan-comparison-cards.test.tsx +++ b/apps/web/__tests__/components/upgrade/plan-comparison-cards.test.tsx @@ -35,4 +35,10 @@ describe('PlanComparisonCards', () => { expect(icons.length).toBeGreaterThan(0) icons.forEach((icon) => expect(icon).toHaveAttribute('aria-hidden', 'true')) }) + + it('does not render the retired comparison row', () => { + render() + const retiredKey = ['upgrade.features.ai', 'Memory.label'].join('') + expect(screen.queryByText(retiredKey)).not.toBeInTheDocument() + }) }) diff --git a/apps/web/__tests__/pages/ai-settings-page.test.tsx b/apps/web/__tests__/pages/ai-settings-page.test.tsx index e94e40a3dc..3194cc6a3b 100644 --- a/apps/web/__tests__/pages/ai-settings-page.test.tsx +++ b/apps/web/__tests__/pages/ai-settings-page.test.tsx @@ -1,73 +1,56 @@ import React from 'react' -import { describe, it, expect, vi, beforeEach } from 'vitest' -import { render, screen, fireEvent, waitFor } from '@testing-library/react' +import { beforeEach, describe, expect, it, vi } from 'vitest' +import { fireEvent, render, screen, waitFor } from '@testing-library/react' import { QueryClient, QueryClientProvider } from '@tanstack/react-query' const push = vi.fn() const patchProfile = vi.fn() -const updateAiMemory = vi.fn() const updateAiSummary = vi.fn() const updateProactiveAstra = vi.fn() const mocks = vi.hoisted(() => ({ - profile: { hasProAccess: true, aiMemoryEnabled: false, aiSummaryEnabled: false, proactiveAstraEnabled: false } as Record, - userFacts: {} as Record, + profile: { + hasProAccess: true, + aiSummaryEnabled: false, + proactiveAstraEnabled: false, + } as Record, })) -vi.mock('next-intl', () => ({ useTranslations: () => (key: string, params?: Record) => (params ? `${key}(${JSON.stringify(params)})` : key) })) +vi.mock('next-intl', () => ({ useTranslations: () => (key: string) => key })) vi.mock('next/navigation', () => ({ useRouter: () => ({ push }) })) -vi.mock('@/hooks/use-profile', () => ({ useProfile: () => ({ profile: mocks.profile, patchProfile }) })) +vi.mock('@/hooks/use-profile', () => ({ + useProfile: () => ({ profile: mocks.profile, patchProfile }), +})) vi.mock('@/hooks/use-go-back-or-fallback', () => ({ useGoBackOrFallback: () => vi.fn() })) vi.mock('@/app/actions/profile', () => ({ - updateAiMemory: (...args: unknown[]) => updateAiMemory(...args), updateAiSummary: (...args: unknown[]) => updateAiSummary(...args), updateProactiveAstra: (...args: unknown[]) => updateProactiveAstra(...args), })) -vi.mock('@/app/(app)/ai-settings/_components/use-user-facts', () => ({ useUserFacts: () => mocks.userFacts })) vi.mock('@/components/ui/app-bar', () => ({ AppBar: () =>
})) -vi.mock('@/components/ui/section-label', () => ({ SectionLabel: ({ children, trailing }: { children: React.ReactNode; trailing?: React.ReactNode }) =>
{children}{trailing}
})) -vi.mock('@/components/ui/confirm-dialog', () => ({ - ConfirmDialog: ({ open, onConfirm }: { open: boolean; onConfirm: () => void }) => (open ?
), })) -vi.mock('@/app/(app)/ai-settings/_components/pro-upgrade-link', () => ({ ProUpgradeLink: () => })) -vi.mock('@/app/(app)/ai-settings/_components/facts-select-bar', () => ({ FactsSelectBar: () =>
})) -vi.mock('@/app/(app)/ai-settings/_components/user-facts-list', () => ({ UserFactsList: () =>
})) import AiSettingsPage from '@/app/(app)/ai-settings/page' -function defaultUserFacts(overrides: Record = {}) { - return { - factsQuery: { isLoading: false, error: null, refetch: vi.fn() }, - facts: [], - pagedFacts: [], - selectMode: false, - selectedFactIds: new Set(), - deleteMutation: { mutate: vi.fn() }, - bulkDeleteMutation: { mutate: vi.fn(), isPending: false }, - factsPage: 1, - setFactsPage: vi.fn(), - totalFactsPages: 1, - toggleSelectMode: vi.fn(), - toggleFactSelection: vi.fn(), - toggleSelectAll: vi.fn(), - ...overrides, - } -} - function renderPage() { - const client = new QueryClient({ defaultOptions: { mutations: { retry: false }, queries: { retry: false } } }) + const client = new QueryClient({ + defaultOptions: { mutations: { retry: false }, queries: { retry: false } }, + }) return render( @@ -79,45 +62,38 @@ describe('AiSettingsPage', () => { beforeEach(() => { push.mockClear() patchProfile.mockReset() - updateAiMemory.mockReset() updateAiSummary.mockReset() updateProactiveAstra.mockReset() - mocks.profile = { hasProAccess: true, aiMemoryEnabled: false, aiSummaryEnabled: false, proactiveAstraEnabled: false } - mocks.userFacts = defaultUserFacts() + mocks.profile = { + hasProAccess: true, + aiSummaryEnabled: false, + proactiveAstraEnabled: false, + } }) - it('optimistically enables AI memory when toggled', async () => { - updateAiMemory.mockResolvedValue(undefined) + it('renders only the surviving settings controls and no retired list section', () => { renderPage() - fireEvent.click(screen.getByRole('button', { name: 'toggle-memory' })) - expect(patchProfile).toHaveBeenCalledWith({ aiMemoryEnabled: true }) - await waitFor(() => expect(updateAiMemory).toHaveBeenCalledWith({ enabled: true })) + expect(screen.getByRole('button', { name: 'toggle-summary' })).toBeInTheDocument() + expect(screen.getByRole('button', { name: 'toggle-proactive' })).toBeInTheDocument() + expect(screen.getByTestId('feature-toggles').children).toHaveLength(3) }) - it('rolls the memory toggle back to its previous value on failure', async () => { - updateAiMemory.mockRejectedValue(new Error('server down')) + it('optimistically enables the daily summary', async () => { + updateAiSummary.mockResolvedValue(undefined) renderPage() - fireEvent.click(screen.getByRole('button', { name: 'toggle-memory' })) - await waitFor(() => expect(patchProfile).toHaveBeenCalledWith({ aiMemoryEnabled: false })) + fireEvent.click(screen.getByRole('button', { name: 'toggle-summary' })) + expect(patchProfile).toHaveBeenCalledWith({ aiSummaryEnabled: true }) + await waitFor(() => expect(updateAiSummary).toHaveBeenCalledWith({ enabled: true })) }) - it('routes to upgrade from the feature toggles', () => { + it('routes free users to upgrade from a locked surviving row', () => { + mocks.profile = { + hasProAccess: false, + aiSummaryEnabled: false, + proactiveAstraEnabled: false, + } renderPage() fireEvent.click(screen.getByRole('button', { name: 'upgrade' })) expect(push).toHaveBeenCalledWith('/upgrade') }) - - it('shows the locked hint and pro link for free users, hiding the facts list', () => { - mocks.profile = { hasProAccess: false, aiMemoryEnabled: false, aiSummaryEnabled: false, proactiveAstraEnabled: false } - renderPage() - expect(screen.getByTestId('pro-link')).toBeInTheDocument() - expect(screen.queryByTestId('facts-list')).not.toBeInTheDocument() - }) - - it('renders the facts list and select bar for pro users with facts', () => { - mocks.userFacts = defaultUserFacts({ facts: [{ id: 'f-1' }] }) - renderPage() - expect(screen.getByTestId('facts-list')).toBeInTheDocument() - expect(screen.getByTestId('select-bar')).toBeInTheDocument() - }) }) diff --git a/apps/web/app/(app)/ai-settings/_components/ai-feature-toggles.tsx b/apps/web/app/(app)/ai-settings/_components/ai-feature-toggles.tsx index 1978569675..fc77bd1c55 100644 --- a/apps/web/app/(app)/ai-settings/_components/ai-feature-toggles.tsx +++ b/apps/web/app/(app)/ai-settings/_components/ai-feature-toggles.tsx @@ -1,6 +1,6 @@ 'use client' -import { BellRing, Brain, Lock, Satellite } from 'lucide-react' +import { BellRing, Lock, Satellite } from 'lucide-react' import { useTranslations } from 'next-intl' import { SectionLabel } from '@/components/ui/section-label' import { SettingsRow, Switch } from '@/components/ui/settings-row' @@ -8,13 +8,10 @@ import { ProBadge } from '@/components/ui/pro-badge' interface AiFeatureTogglesProps { hasProAccess: boolean - aiMemoryEnabled: boolean aiSummaryEnabled: boolean proactiveAstraEnabled: boolean - memoryPending: boolean summaryPending: boolean proactivePending: boolean - onToggleMemory: () => void onToggleSummary: () => void onToggleProactive: () => void onUpgrade: () => void @@ -22,13 +19,10 @@ interface AiFeatureTogglesProps { export function AiFeatureToggles({ hasProAccess, - aiMemoryEnabled, aiSummaryEnabled, proactiveAstraEnabled, - memoryPending, summaryPending, proactivePending, - onToggleMemory, onToggleSummary, onToggleProactive, onUpgrade, @@ -40,33 +34,6 @@ export function AiFeatureToggles({ }> {t('profile.sections.aiFeatures')} - {hasProAccess ? ( - - - - ) : ( - - - )} {hasProAccess ? ( void - onDelete: () => void -} - -const categoryBadgeStyle: React.CSSProperties = { - fontFamily: 'var(--font-mono)', - // react-doctor-disable-next-line no-tiny-text -- intentional pill badge matching DESIGN.md Badge (10.5/600 UPPERCASE); not body text https://github.com/thomasluizon/orbit-ui-mobile/issues/243 - fontSize: 10, - fontWeight: 500, - color: 'var(--fg-3)', - letterSpacing: '0.06em', - padding: '2px 7px', - borderRadius: 999, - alignSelf: 'flex-start', - boxShadow: 'inset 0 0 0 1px var(--hairline-strong)', -} - -export function FactItem({ - fact, - selectMode, - isSelected, - onToggleSelection, - onDelete, -}: Readonly) { - const t = useTranslations() - const category = fact.category ? normalizeUserFactCategory(fact.category) : null - const categoryLabel = category - ? t(`profile.facts.${category}`).toUpperCase() - : null - - const cardStyle: React.CSSProperties = { - padding: '14px 16px', - gap: 12, - borderRadius: 16, - background: isSelected - ? 'rgba(var(--primary-rgb), 0.08)' - : 'var(--bg-card)', - boxShadow: isSelected - ? 'inset 0 0 0 1px rgba(var(--primary-rgb), 0.28)' - : 'inset 0 0 0 1px var(--hairline)', - } - - const Inner = ( - <> - {selectMode && } -
- {categoryLabel && ( - - {categoryLabel} - - )} - - {fact.factText} - -
- {!selectMode && ( - - )} - - ) - - if (selectMode) { - return ( - - ) - } - - return ( -
- {Inner} -
- ) -} diff --git a/apps/web/app/(app)/ai-settings/_components/facts-pagination.tsx b/apps/web/app/(app)/ai-settings/_components/facts-pagination.tsx deleted file mode 100644 index 37caaeb896..0000000000 --- a/apps/web/app/(app)/ai-settings/_components/facts-pagination.tsx +++ /dev/null @@ -1,56 +0,0 @@ -'use client' - -import { ChevronLeft, ChevronRight } from 'lucide-react' -import { useTranslations } from 'next-intl' - -interface FactsPaginationProps { - page: number - totalPages: number - onPrevious: () => void - onNext: () => void -} - -export function FactsPagination({ - page, - totalPages, - onPrevious, - onNext, -}: Readonly) { - const t = useTranslations() - - return ( - - {t('profile.facts.count', { n: page, max: totalPages })} - - - - ) -} diff --git a/apps/web/app/(app)/ai-settings/_components/facts-select-bar.tsx b/apps/web/app/(app)/ai-settings/_components/facts-select-bar.tsx deleted file mode 100644 index b7a7f84926..0000000000 --- a/apps/web/app/(app)/ai-settings/_components/facts-select-bar.tsx +++ /dev/null @@ -1,118 +0,0 @@ -'use client' - -import { ListChecks, Trash2, X } from 'lucide-react' -import { useTranslations } from 'next-intl' -import { FactsPagination } from './facts-pagination' - -function ChipActionButton({ - onClick, - disabled = false, - destructive = false, - ariaLabel, - children, -}: Readonly<{ - onClick: () => void - disabled?: boolean - destructive?: boolean - ariaLabel?: string - children: React.ReactNode -}>) { - return ( - - ) -} - -interface FactsSelectBarProps { - selectMode: boolean - selectedCount: number - allSelected: boolean - bulkDeletePending: boolean - showPagination: boolean - page: number - totalPages: number - onPreviousPage: () => void - onNextPage: () => void - onToggleSelectAll: () => void - onBulkDelete: () => void - onToggleSelectMode: () => void -} - -export function FactsSelectBar({ - selectMode, - selectedCount, - allSelected, - bulkDeletePending, - showPagination, - page, - totalPages, - onPreviousPage, - onNextPage, - onToggleSelectAll, - onBulkDelete, - onToggleSelectMode, -}: Readonly) { - const t = useTranslations() - - if (!selectMode) { - return ( - - {showPagination && ( - - )} - - - ) - } - - return ( - - - {allSelected - ? t('profile.facts.deselectAll') - : t('profile.facts.selectAll')} - - {selectedCount > 0 && ( - - - )} - - - ) -} diff --git a/apps/web/app/(app)/ai-settings/_components/use-user-facts.ts b/apps/web/app/(app)/ai-settings/_components/use-user-facts.ts deleted file mode 100644 index bcf70a306d..0000000000 --- a/apps/web/app/(app)/ai-settings/_components/use-user-facts.ts +++ /dev/null @@ -1,105 +0,0 @@ -'use client' - -import { useMemo, useState } from 'react' -import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query' -import { userFactKeys } from '@orbit/shared/query' -import { API } from '@orbit/shared/api' -import { USER_FACTS_PER_PAGE } from '@orbit/shared/utils' -import { bulkDeleteUserFacts, deleteUserFact } from '@/app/actions/user-facts' -import type { UserFact } from '@orbit/shared/types/user-fact' - -async function fetchUserFacts(): Promise { - const res = await fetch(API.userFacts.list) - if (!res.ok) { - throw new Error('Failed to load user facts') - } - return res.json() as Promise -} - -export function useUserFacts(hasProAccess: boolean) { - const queryClient = useQueryClient() - - const factsQuery = useQuery({ - queryKey: userFactKeys.lists(), - queryFn: fetchUserFacts, - enabled: hasProAccess, - staleTime: 5 * 60 * 1000, - }) - - const facts = useMemo( - () => (hasProAccess ? (factsQuery.data ?? []) : []), - [hasProAccess, factsQuery.data], - ) - - const [selectMode, setSelectMode] = useState(false) - const [selectedFactIds, setSelectedFactIds] = useState>(new Set()) - - const deleteMutation = useMutation({ - mutationFn: deleteUserFact, - onSuccess: () => { - void queryClient.invalidateQueries({ queryKey: userFactKeys.all }) - }, - }) - - const bulkDeleteMutation = useMutation({ - mutationFn: bulkDeleteUserFacts, - onSuccess: () => { - void queryClient.invalidateQueries({ queryKey: userFactKeys.all }) - setSelectedFactIds(new Set()) - if (facts.length === 0) setSelectMode(false) - }, - }) - - const [factsPage, setFactsPage] = useState(1) - const totalFactsPages = useMemo( - () => Math.max(1, Math.ceil(facts.length / USER_FACTS_PER_PAGE)), - [facts.length], - ) - const pagedFacts = useMemo(() => { - const start = (factsPage - 1) * USER_FACTS_PER_PAGE - return facts.slice(start, start + USER_FACTS_PER_PAGE) - }, [facts, factsPage]) - - if (factsPage > totalFactsPages) { - setFactsPage(totalFactsPages) - } - - function toggleSelectMode() { - setSelectMode(!selectMode) - setSelectedFactIds(new Set()) - } - - function toggleFactSelection(id: string) { - const next = new Set(selectedFactIds) - if (next.has(id)) { - next.delete(id) - } else { - next.add(id) - } - setSelectedFactIds(next) - } - - function toggleSelectAll() { - if (selectedFactIds.size === facts.length) { - setSelectedFactIds(new Set()) - } else { - setSelectedFactIds(new Set(facts.map((fact) => fact.id))) - } - } - - return { - factsQuery, - facts, - pagedFacts, - selectMode, - selectedFactIds, - deleteMutation, - bulkDeleteMutation, - factsPage, - setFactsPage, - totalFactsPages, - toggleSelectMode, - toggleFactSelection, - toggleSelectAll, - } -} diff --git a/apps/web/app/(app)/ai-settings/_components/user-facts-list.tsx b/apps/web/app/(app)/ai-settings/_components/user-facts-list.tsx deleted file mode 100644 index 3097c9de4b..0000000000 --- a/apps/web/app/(app)/ai-settings/_components/user-facts-list.tsx +++ /dev/null @@ -1,134 +0,0 @@ -'use client' - -import { Sparkles } from 'lucide-react' -import { useTranslations } from 'next-intl' -import { SatelliteGlyph } from '@/components/ui/satellite-glyph' -import { PillButton } from '@/components/ui/pill-button' -import type { UserFact } from '@orbit/shared/types/user-fact' -import { FactItem } from './fact-item' - -function FactsCenteredState({ - message, - messageColor, - alert = false, - button, -}: Readonly<{ - message: string - messageColor: string - alert?: boolean - button: React.ReactNode -}>) { - return ( -
- - - {message} - - {button} -
- ) -} - -interface UserFactsListProps { - isLoading: boolean - hasError: boolean - facts: UserFact[] - pagedFacts: UserFact[] - selectMode: boolean - selectedFactIds: Set - onToggleSelection: (id: string) => void - onDelete: (id: string) => void - onRetry: () => void - onAskAstra: () => void -} - -export function UserFactsList({ - isLoading, - hasError, - facts, - pagedFacts, - selectMode, - selectedFactIds, - onToggleSelection, - onDelete, - onRetry, - onAskAstra, -}: Readonly) { - const t = useTranslations() - - if (isLoading) { - return ( -
-
-
-
- ) - } - - if (hasError) { - return ( - - {t('profile.facts.retry')} - - } - /> - ) - } - - if (facts.length === 0) { - return ( -