inspector/clients/web/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
cliffhall ed2070f67c chore(web): extract App.tsx's connection lifecycle into useConnectionLifecycle
Phase 2 step 3 of the App.tsx decomposition (#2154, under #2129/#2126).

Moves the whole connection cluster out of App.tsx and into
clients/web/src/hooks/useConnectionLifecycle.ts: setupClientForServer
(the single place a connection is configured), onToggleConnection,
onDisconnect, onReauthenticateFromBanner, the deep-link auto-connect
effect and its three phase latches, the connected/teardown/disconnect
effects, connectErrorMessage, and the session-scoped reset a disconnect
triggers. Handshake telemetry rides along as useHandshakeTelemetry,
split out only because useOAuthRecovery runs first and stamps the same
ref.

No behavior change. App.tsx goes 3,039 -> 2,412 lines.

Per #2129, resetSessionScopedUiState takes a narrow SessionResetSurface
- one reset() per owner - rather than every phase-1 setter, so the hook
does not end up depending on everything phase 1 extracted. The two
log-level operations stay App-owned because the connect path seeds the
same state.

Closes #2154

Signed-off-by: cliffhall <cliff@futurescale.com>
2026-08-27 00:40:18 -04:00
..
components chore(web): address Copilot review on the tab smoke 2026-08-26 23:35:58 -04:00
hooks chore(web): extract App.tsx's connection lifecycle into useConnectionLifecycle 2026-08-27 00:40:18 -04:00
lib chore(web): address Copilot review on #2127 2026-08-26 18:24:09 -04:00
test fix: address Copilot review round 41 — const does not demand a property, required-only branches 2026-08-26 16:08:24 -04:00
theme fix(a11y): make the form error color meet WCAG AA in both schemes 2026-08-23 12:56:13 -04:00
types chore: close a batch of quality-gate & tidy gaps (#1785 #1787 #1789 #1790 #1767) (#1792) 2026-07-26 10:43:11 -04:00
utils chore(web): collapse App.tsx's six session refs into useSessionRef (#2129) 2026-08-26 20:43:29 -04:00
App.css feat(web): use the Ace editor for the request-metadata JSON 2026-08-23 16:55:23 -04:00
App.test.tsx fix: keep the pagination toggle on the last write across a server switch (#2095) 2026-08-25 20:20:57 -04:00
App.tsx chore(web): extract App.tsx's connection lifecycle into useConnectionLifecycle 2026-08-27 00:40:18 -04:00
index.ts feat: port CLI, TUI, and launcher from v1.5 into v2 (#1452) 2026-06-14 20:27:49 -04:00
main.tsx fix(a11y): make the form error color meet WCAG AA in both schemes 2026-08-23 12:56:13 -04:00