Skip to content

Conversation

@Adam-D-Lewis
Copy link
Member

Summary

  • Frontend detects local vs team mode by fetching /api/v1/version on startup
  • In local mode: login is bypassed, logout/avatar hidden, Settings nav added
  • Settings page lets users connect/disconnect from a remote Nebi team server
  • 401 interceptor skips login redirect in local mode

New files

  • store/modeStore.ts — Zustand store for mode/features
  • api/remote.ts — Axios functions for remote proxy endpoints
  • hooks/useRemote.ts — React Query hooks for server status/connect/disconnect
  • pages/Settings.tsx — Remote server connection management UI

Modified files

  • App.tsx — ModeLoader wrapper, PrivateRoute bypasses auth in local mode, /settings route
  • Layout.tsx — Hide logout in local mode, show Settings nav
  • Login.tsx — Auto-redirect to /workspaces in local mode
  • client.ts — Skip 401 redirect in local mode

Test plan

  • npx tsc --noEmit — zero errors
  • npm run build — production build succeeds
  • Manual: start in local mode, verify login bypassed, Settings page works
  • Manual: start in team mode, verify login required, Settings nav hidden

The frontend now detects local vs team mode from the backend /version
endpoint. In local mode, authentication is bypassed, the login page
redirects to workspaces, and a Settings page is available for connecting
to remote Nebi servers. The Layout hides user/logout controls in local
mode and shows a Settings nav link instead.

New files:
- store/modeStore.ts: Zustand store for mode detection
- api/remote.ts: API client for remote proxy endpoints
- hooks/useRemote.ts: React Query hooks for server connection
- pages/Settings.tsx: Settings page with connect/disconnect UI

Modified files:
- App.tsx: ModeLoader wrapper, auth bypass in PrivateRoute
- Layout.tsx: Conditional nav/user section based on mode
- Login.tsx: Auto-redirect in local mode
- api/client.ts: Skip 401 redirect in local mode
@Adam-D-Lewis Adam-D-Lewis requested a review from aktech February 9, 2026 16:42
@aktech aktech changed the base branch from remote-proxy-handler-v2 to main February 11, 2026 13:11
@aktech aktech merged commit 6a8fd75 into main Feb 11, 2026
1 check passed
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.

2 participants