mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-11-19 22:43:38 +00:00
* 🔒 fix: Guard 2FA Deep-Link Redirects Against Blocked Session Storage The post-login redirect store was the one session-storage consumer in the client that reached for it bare-handed: a context where storage access throws crashed the login screen's persist effect and the post-challenge boot instead of dropping the destination. Route every access through throwing-safe helpers so a blocked store costs the deep link, never the sign-in, and pin the ordinary 2FA challenge's deep-link survival and consumption with mock-harness scenarios plus blocked-storage unit tests. The challenge screen's code inputs also gain accessible names. * ♿ fix: Name the 2FA Verify Button by Its Visible Text The challenge submit button carried aria-label 'Continue' over the visible text 'Verify', so its accessible name did not contain the visible label (WCAG 2.5.3). The visible text names the button on its own; the label is dropped. * 🧪 test: Keep the 2FA Mock Harness From Re-Declaring Destinations The shell's authenticated queries 401 against the real backend under the stand-in bearer, and the auth-recovery login bounce carries the current URL as redirect_to, re-persisting the deep link mid-test. Answer those queries empty and leave /api/config real. * 🧪 test: Answer the Shell's Empty Shapes in the 2FA Deep-Link Harness The composer and its selectors iterate their query results, so the stand-in session's shell queries need per-endpoint empty payloads rather than a blank object; the destination's marker rides the query string so no conversation has to exist for the landing to hold; and the second sign-in declares its own destination, which is the deterministic form of consumption-across-sign-ins. * 🧪 test: Assert the 2FA Shell Across Viewports The account button hides in the mobile drawer and the drawer never satisfies a pointer click's stability check, so the shell assertion polls for whichever marker the viewport shows and the session ends through an in-page logout request, which the route mocks can actually see. * 🧪 test: Locate the Login Password Field by Label * 🧪 test: Let the CI Storage Polyfill Replace the Blocked Store The CI-mode build ships a storage polyfill that answers a broken sessionStorage by installing its own in-memory shim with defineProperty, which crashed against a non-configurable blocker and took the app boot with it. The blocker stays configurable: the shim is per-document, so the challenge's document swap still empties it and the landing contract is the same either way. |
||
|---|---|---|
| .. | ||
| __tests__ | ||
| Agents | ||
| Artifacts | ||
| Assistants | ||
| Audio | ||
| Chat | ||
| Config | ||
| Conversations | ||
| Endpoint | ||
| Files | ||
| Generic | ||
| Input | ||
| MCP | ||
| Mermaid | ||
| Messages | ||
| Nav | ||
| Plugins | ||
| Prompts | ||
| Roles | ||
| Sharing | ||
| Skills | ||
| SSE | ||
| ApiErrorBoundaryContext.tsx | ||
| AuthContext.tsx | ||
| index.ts | ||
| ScreenshotContext.tsx | ||
| useAdaptiveIcon.ts | ||
| useCatalogWarmup.ts | ||
| useChatBadges.ts | ||
| useClockFormat.ts | ||
| useDocumentTitle.ts | ||
| useFavorites.ts | ||
| useFocusTrap.ts | ||
| useGenerationsByLatest.ts | ||
| useGreeting.ts | ||
| useInfiniteScroll.ts | ||
| useIsActiveItem.ts | ||
| useKeyboardShortcuts.spec.tsx | ||
| useKeyboardShortcuts.ts | ||
| useLocalize.ts | ||
| useLocalizedConfig.ts | ||
| useLocalStorage.tsx | ||
| useLocalStorageAlt.tsx | ||
| useNewConvo.ts | ||
| usePersonalizationAccess.ts | ||
| useRenderChangeLog.ts | ||
| useResourcePermissions.ts | ||
| useRoleSelector.ts | ||
| useScrollToRef.ts | ||
| useTimeout.tsx | ||
| useTimeTick.ts | ||
| useToolFavorites.ts | ||
| useVirtualGrid.ts | ||
| useWakeLock.ts | ||
| useWeekStart.ts | ||