feat(web): manage Google Group binding on the group edit page#93
Merged
Conversation
Add a Google Group sync card to GroupEditPage: a single email field (1:1 binding) staged with the page's Save button, plus a Sync now button hitting POST /google/reconcile. Not gated on allowed_sources — Google is an outbound projection, not a membership source.
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.
Frontend for the Sentinel-group → Google-Group sync. Adds a "Google Group sync" card to the group edit page.
What's here
web/src/lib/google.ts:GroupGoogleBindingtype +useGroupGoogleBinding(groupID)query hook (returns the single 1:1 binding or null)GoogleSyncCardonGroupEditPage: one email field for the mapped Google Group, plus a Sync now button (POST /google/reconcile)Design notes
allowed_sources— Google is an outbound projection, not a membership source, so the card always shows (unlike the Discord/Conditional cards which gate on their source).appLinkState/valuespattern in this file.Verification
tsc -b+vite build(the web image's build) pass.react-hooks/set-state-in-effectconsistent with the 2 pre-existing instances in this file; not a CI gate (web.yml builds via tsc/vite only).Dependency
Functionally needs the gateway route
/api/google/*(PR #92, localkerbecs.yaml) and the prod kerbecs config (PR 4, infra) to actually reach the service. TheSync nowbutton uses/google/reconcilefrom #92.