Skip to content

refactor(desktop): move remote access out of the app store - #3810

Merged
LHagfoss merged 2 commits into
mainfrom
refactor/desktop-store-remote-access
Nov 15, 2026
Merged

LHagfoss merged 2 commits into
mainfrom
refactor/desktop-store-remote-access

Conversation

@LHagfoss

Copy link
Copy Markdown
Owner

What

state/store.ts was over 9,000 lines. This moves its remote access section into state/remoteAccess.ts: the remote server switch, pairing, the QR challenge, connect requests, revoking a device, and the read clock only they use. Callers (RemoteAccessPage, RemoteConnect, ConnectRequests, MachinesPage, MachineSettingsPage and two test files) import from the new module. resetForTests resets the clock through resetRemoteStatusReads().

No behaviour changes. It is a first, low-risk step: the module only needs useApp, request, toast and errorText from the store, so it reads like the other state/ modules.

Changelog

none

Testing

bun run check (typecheck, lint, all unit tests including the remote pairing and store tests).

state/store.ts was over 9,000 lines. Its remote access section (the remote server switch, pairing, the QR challenge, connect requests, revoking a device) and the read clock only it uses move to state/remoteAccess.ts, and their callers import them from there. No behaviour changes.
@github-actions github-actions Bot added the refactor Code improvement and restructuring label Nov 15, 2026
@LHagfoss
LHagfoss merged commit 756c421 into main Nov 15, 2026
9 checks passed
@LHagfoss
LHagfoss deleted the refactor/desktop-store-remote-access branch November 15, 2026 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor Code improvement and restructuring

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant