fix-sharepoint-session-prompt
🐛 Bug Fixes
SharePoint session reconnect
Goal: Users who only browse documents never refresh the SharePoint token, so thumbnails fail and they stay stuck with no way to sign in again.
Solution: Detect a gateway re-authentication failure on thumbnail load, show one banner, and open the login only when the user clicks Reconnect. A successful login reloads the thumbnails.
Features:
- A banner under the top warning asks the user to reconnect when the SharePoint session is expired
- Thumbnails do not open a login window on their own
- A SharePoint download still opens the login when the session is expired
- After reconnect, the banner goes away and thumbnails are fetched again
Files Modified:
src/protocol/externalSession.ts- Session-expired signal shared by thumbnails and the bannersrc/protocol/bcyipApi.ts- Turn a gateway re-authenticate error into that signalsrc/components/SharePointSessionBanner/SharePointSessionBanner.tsx- Reconnect bannersrc/components/DocumentsPanel/Thumbnail.tsx- Report the expired session and refetch after loginsrc/App.tsx- Place the banner with the other top bannerssrc/scss/app.scss- Banner styles aligned with the update bannersrc/services/fileProtect/config.pipe.ts- Clear the banner only after a successful loginsrc/utils/downloadHelpers.ts- SharePoint download reconnects when the session is expiredsrc/protocol/index.ts- Export the session helpers
Loading profile message
Goal: The loading screen should use correct English when the profile cannot be loaded.
Solution: Replace the broken verb agreement in the retry message.
Files Modified:
src/components/LoadingPanel/LoadingPanel.tsx- "We weren't able to load the user profile."