Skip to content

Commit e453ff6

Browse files
atulmguptaCopilot
andcommitted
fix(web): classify new mutation hooks for live-mode audit
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent a3adeb6 commit e453ff6

1 file changed

Lines changed: 22 additions & 3 deletions

File tree

web/scripts/audit-live-mutations.mjs

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ const LIVE_ONLY_MUTATIONS = {
2121
'useUpdateMaintenance',
2222
],
2323
'hooks/useAdvancedIntelligence.ts': ['useStartFederatedRound'],
24+
'hooks/useComfort.ts': ['usePreconditionNow'],
25+
'hooks/useFleetSetup.ts': [
26+
'useUnsubscribeFleetTelemetry',
27+
'useSubscribeFleetTelemetry',
28+
],
2429
'hooks/useAutomations.ts': [
2530
'useImportAutomations',
2631
'useToggleAutomation',
@@ -31,7 +36,7 @@ const LIVE_ONLY_MUTATIONS = {
3136
'useCreateAutomationFull',
3237
'useUpdateAutomationFull',
3338
],
34-
'hooks/useCharging.ts': ['useApplySchedule', 'useBulkDeleteCharging'],
39+
'hooks/useCharging.ts': ['useApplySchedule', 'useBulkDeleteCharging', 'useAutopilotRun'],
3540
'hooks/useDataRepair.ts': [
3641
'useApplyDriveRepair',
3742
'useApplyChargingRepair',
@@ -118,6 +123,9 @@ const MODE_INDEPENDENT_MUTATIONS = {
118123
'useRefreshTeslaChargingHistory',
119124
'useRefreshTeslaChargingSessions',
120125
'useOptimizeCharge',
126+
'useSaveAutopilotProfile',
127+
'useAutopilotPreview',
128+
'useAdviseChargeQueue',
121129
],
122130
'hooks/useChat.ts': [
123131
'useRenameChatSession',
@@ -130,7 +138,13 @@ const MODE_INDEPENDENT_MUTATIONS = {
130138
'useDeleteDashboardLayout',
131139
'useApplyDashboardLayout',
132140
],
133-
'hooks/useDriving.ts': ['usePlanTrip'],
141+
'hooks/useDriving.ts': ['usePlanTrip', 'useTripConfidence'],
142+
'hooks/useAnalytics.ts': ['useAddTcoLedgerEntry', 'useDeleteTcoLedgerEntry'],
143+
'hooks/useAutomations.ts': ['useInstallRoutine'],
144+
'hooks/useBatteryCertificate.ts': ['useVerifyBatteryCertificate'],
145+
'hooks/useComfort.ts': ['useSaveComfortConfig'],
146+
'hooks/useJourney.ts': ['useCreateJourney', 'useTransitionJourney'],
147+
'hooks/useStormguard.ts': ['useSaveStormguardConfig'],
134148
'hooks/useEnergy.ts': [
135149
'useRefreshTeslaEnergySites',
136150
'useRefreshTeslaEnergySiteInfo',
@@ -241,7 +255,12 @@ const MODE_INDEPENDENT_MUTATIONS = {
241255
'useSaveDashboardLayouts',
242256
],
243257
'hooks/useSettingsBackup.ts': ['useExportSettings', 'useDryRunImport'],
244-
'hooks/useSharing.ts': ['useCreateShareLink', 'useRevokeShareLink'],
258+
'hooks/useSharing.ts': [
259+
'useCreateShareLink',
260+
'useRevokeShareLink',
261+
'useCreateSessionShareLink',
262+
'useRevokeSessionShareLink',
263+
],
245264
// A problem report must be submittable precisely when things are broken —
246265
// vehicle asleep, telemetry stalled, an endpoint failing. Gating it on live
247266
// mode would silence the reports most worth receiving. The payload is

0 commit comments

Comments
 (0)