Hub login session sync and login status display in options page#400
Merged
Conversation
Agent-Logs-Url: https://github.com/ujiro99/selection-command/sessions/d9e4cdb0-f494-4fc4-bbc3-84c6acc0a049 Co-authored-by: ujiro99 <677231+ujiro99@users.noreply.github.com>
Agent-Logs-Url: https://github.com/ujiro99/selection-command/sessions/d9e4cdb0-f494-4fc4-bbc3-84c6acc0a049 Co-authored-by: ujiro99 <677231+ujiro99@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Synchronize login sessions for Selection Command Hub
Hub login session sync and login status display in options page
May 10, 2026
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #400 +/- ##
==========================================
+ Coverage 27.09% 27.19% +0.10%
==========================================
Files 315 316 +1
Lines 31780 31899 +119
Branches 1718 1732 +14
==========================================
+ Hits 8611 8676 +65
- Misses 23169 23223 +54 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
Implements session synchronization between Selection Command Hub (selection-command.com) and the Chrome extension, and surfaces the login state in the options page.
Changes
External message handlers (
hub/background.ts)SetSession: stores{ name, image }user data toLOCAL_STORAGE_KEY.HUB_USERwhen Hub sends login event; validates both fields are strings before writingClearSession: nulls outHUB_USERon logoutStorage (
storage/const.ts,storage/index.ts)LOCAL_STORAGE_KEY.HUB_USER— useschrome.storage.localfor cross-session persistenceType (
types/index.ts)HubUser = { name: string; image: string }Options page UI (
HubBanner.tsx,HubBanner.module.css)onErrorhide)NEW_HUB_URL/auth/signinStorage.addListenerfor real-time synci18n
hub_loginkey to all 14 supported locales