Skip to content

feat: offline mode / caching routes on startup - #209

Draft
michaeljwalla wants to merge 20 commits into
mainfrom
route-caching
Draft

feat: offline mode / caching routes on startup#209
michaeljwalla wants to merge 20 commits into
mainfrom
route-caching

Conversation

@michaeljwalla

Copy link
Copy Markdown
Contributor

No description provided.

@michaeljwalla michaeljwalla self-assigned this Aug 15, 2026
@michaeljwalla

Copy link
Copy Markdown
Contributor Author
image image examples of it just as a top sheet (has in/out anim)

will look better as a floating pill but will need to add more work to avoid ios floating dock first
going to finish the actual feature of re authenticate and request loops before modifying the ui

@michaeljwalla

Copy link
Copy Markdown
Contributor Author

not done yet so things may change (esp ui)
add a faster reauthentication attempt when 'offline' from a failed auth token fetch
testing with changed uuids (nice job tamu) to see what does/doesn't break and needs revision

Comment on lines +13 to +34
export enum ConnectionStatus {
OFFLINE,
CONNECTING,
RECONNECTING,
ONLINE,
}
export namespace ConnectionStatus {
export function asMessage(s: ConnectionStatus): string {
switch (s) {
case ConnectionStatus.OFFLINE:
return 'Offline';
case ConnectionStatus.CONNECTING:
return 'Connecting...';
case ConnectionStatus.RECONNECTING:
return 'Reconnecting...';
case ConnectionStatus.ONLINE:
return 'Online';
default:
return '';
}
}
}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i can move this to types.ts but i left it here for now (this is my acknowledgement)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant