Skip to content

feat(web): manage Google Group binding on the group edit page#93

Merged
BK1031 merged 1 commit into
mainfrom
bk1031/web-google-bindings
Jun 23, 2026
Merged

feat(web): manage Google Group binding on the group edit page#93
BK1031 merged 1 commit into
mainfrom
bk1031/web-google-bindings

Conversation

@BK1031

@BK1031 BK1031 commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

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: GroupGoogleBinding type + useGroupGoogleBinding(groupID) query hook (returns the single 1:1 binding or null)
  • GoogleSyncCard on GroupEditPage: one email field for the mapped Google Group, plus a Sync now button (POST /google/reconcile)
  • The email is staged like the rest of the page — applied on Save changes by diffing against the server binding (clear/replace deletes the old row, a non-empty value upserts)
  • Cache invalidation + a loading-gate entry for the new query

Design notes

  • Not gated on 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).
  • 1:1 mapping → a single field rather than the Discord-style multi-binding list.
  • The init-from-query effect matches the existing appLinkState/values pattern in this file.

Verification

  • tsc -b + vite build (the web image's build) pass.
  • eslint: adds one react-hooks/set-state-in-effect consistent 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, local kerbecs.yaml) and the prod kerbecs config (PR 4, infra) to actually reach the service. The Sync now button uses /google/reconcile from #92.

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.
@BK1031 BK1031 merged commit eb25892 into main Jun 23, 2026
18 checks passed
@BK1031 BK1031 deleted the bk1031/web-google-bindings branch June 23, 2026 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant