fix(manage): use account-scoped device sync and remove mock device source

Preserve Manage device state across resume while preventing cross-account cache leaks by tracking synced user IDs and clearing stale local device data on account changes. Replace the mock device remote data source with Apollo-backed API queries/mutations using me.locations so Manage only shows devices belonging to the authenticated user.

Made-with: Cursor
This commit is contained in:
2026-04-07 18:04:42 +02:00
parent 0a79ee5e04
commit 89ce2e1afa
19 changed files with 450 additions and 145 deletions

View File

@@ -0,0 +1,5 @@
mutation DeviceAction($input: SendAction) {
deviceAction(input: $input) {
success
}
}