Add automatic nearby discovery and simplify device presence UI

This commit is contained in:
2026-10-12 17:53:10 +09:00
parent 7e9bb1ec36
commit 5f431ee153
23 changed files with 1148 additions and 106 deletions

View File

@@ -59,8 +59,14 @@ export const joinInput = z
})
.strict()
.refine((v) => Boolean(v.code) !== Boolean(v.token));
export type Device = { id: string; name: string; code: string; discoverable: boolean };
export type Peer = Device & { sources: ('network' | 'space')[] };
export type Device = {
id: string;
name: string;
code: string;
discoverable: boolean;
info?: { model: string; platform: string; manufacturer: string };
};
export type Peer = Device & { sources: ('network' | 'space' | 'nearby')[] };
export type RequestStatus = 'pending' | 'accepted' | 'rejected' | 'expired' | 'cancelled';
export type TransferRequest = {
id: string;