Repository navigation
fix(web): polish login, onboarding gate, setup CTA, and dashboard routes - #751
Open
oldwinter53 wants to merge 1 commit into
Open
oldwinter53 wants to merge 1 commit into
oldwinter53 wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes high-impact first-impression authentication, Local Computer onboarding gate, Another Me connect-accounts card, and Work Item Dashboard routing/focus defects in
@linger/web.Changes
Clean first-visit login, single error surface, and deep-link return
/v0/tenantsas an entry discovery path inteamhub-api.tsand skipreason=session-expiredwhen redirecting from root/, so anonymous first visits land cleanly on/loginwithout an expired-session alert.return_to(pathname + search) on/t/:tenantId401 redirects and allow safe same-origin/t/:tenantId/...paths insafeAuthenticationReturnTo.session-expiredalert on credential edit or submit so two danger alerts never stack, mapINVALID_CREDENTIALSto clear sentence-case copy, align the submit button's visible text and accessible name (Sign in), focus Email on initial mount when no desktop local account button is active, and add a subtle workspace-admin help line.Local Computer onboarding gate and
/connect-computerdead-endCommandLinecommands (whitespace-pre-wrap break-all) socurl ... | bashstays completely readable on desktop and mobile viewports.<select>inComputerPlatformSelectorwith an accessibleradiogroupsegmented control (macOS|Windows|Linux) supporting arrow-key navigation.LocalComputerGateto<ModalDialog>, surface query load errors with Retry, add a 30-second fallback Retry if creating Another Me stalls, expose inline Language switching and a Settings link in the footer, and blockCmd/Ctrl+Kglobal search (useGlobalSearchShortcut(..., { enabled: !inert })) while gated.InvalidConnectionRequest, internationalize fallback strings, and show actionable retry guidance on enrollment failure.Another Me onboarding card CTA and mobile layout
ProfileSetupApps, hide the misleading solid Connected primary CTA when 0 accounts are connected (showing only Skip for now), and enable a clear Continue ({count} connected) primary CTA once at least one account is connected.SetupAppRowspacing, icon sizing, button sizing, and label wrapping so app names such asGoogle CalendarandOutlook Mailnever truncate on 375px mobile viewports.Dashboard bare route, URL sync, focus management, and 404/loading states
/t/:tenantId/dashboard/:workItemId?inrouter.tsxandroute-layout-key.tsso bare/dashboardloads the board instead of 404./t/:tenantId/dashboard(preserving?room=...) when closingWorkItemDetailDrawer, move keyboard focus into the drawer on open, restore focus to the triggering card on close, mark the background boardinerton narrow viewports while the overlay drawer is open, default the Closed column to collapsed, and supportCmd/Ctrl+Enterto submit comments.HydrateFallbackacross top-level lazy/loader routes to eliminate React Router hydration warnings, and updateInitialAppLoadingcopy toLoading Linger….Verification
pnpm --filter @linger/web typecheck,pnpm --filter @linger/web lint(--max-warnings=0),pnpm react:doctor,pnpm --filter @linger/web run build:assets, and 14 targeted Vitest suites (171/171passed, includingcatalog.test.tsandvoice-risk-markers.test.ts).1440x900desktop and375x812mobile viewports (scrollWidth <= clientWidth, zero clipping, zeroHydrateFallbackwarnings, zero page errors).