Skip to content

The library can connect a Google Drive source, and only the person who connected it sees the folder browser - #1388

Merged
WaylandYang merged 3 commits into
deeplethe:devfrom
re-cinq:feat/google-drive-source-web
Oct 25, 2026
Merged

WaylandYang merged 3 commits into
deeplethe:devfrom
re-cinq:feat/google-drive-source-web

Conversation

@gedaiu

@gedaiu gedaiu commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

The second half of #1222, stacked on #1386. Until #1386 merges this PR also shows its commit, so only the last commit is new here. Part of #1223.

This adds the connect panel to the source settings. Connecting opens Google's consent screen in a popup, and the panel closes it once the source shows as connected. The person who connected then browses My Drive, Shared with me and their shared drives and picks folders. Other editors see which folders are synced and a note that only that person can change them, matching the 403 the backend gives them. Strings are in both en and zh.

pnpm build and pnpm test pass. Thanks @muemich for the original panel!

@WaylandYang WaylandYang left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this reads well. I'll review it as soon as #1386 is ready. One request now: Disconnect and Reconnect are shown to every editor without a confirmation, and one click drops the connector's folders and replaces their Drive with yours. Please add a confirmation that names whose Drive is connected. I'd also hide or disable Reconnect for anyone who isn't the connector, unless that's deliberate; if it is, say so in the ADR.

@gedaiu

gedaiu commented Oct 23, 2026

Copy link
Copy Markdown
Contributor Author

Thanks, good call! Disconnect now asks first and names whose Drive it is, and says so when it belongs to someone else. Reconnect only shows for the person who connected, and the backend refuses it for anyone else too, so it isn't just hidden. Thank you!

@gedaiu
gedaiu force-pushed the feat/google-drive-source-web branch from 006daa0 to 801ca69 Compare October 23, 2026 16:33
WaylandYang
WaylandYang previously approved these changes Oct 24, 2026

@WaylandYang WaylandYang left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, the confirmation and connector-only Reconnect look right. Approving; please rebase onto #1386's final commit and we'll merge the two together. (Optional: name the Utopia person who connected in the confirmation, not only the email.)

@gedaiu

gedaiu commented Oct 24, 2026

Copy link
Copy Markdown
Contributor Author

Thank you! Rebased onto #1386's final commit as you asked, which dismissed your approval, sorry about that. The confirmation now names the person who connected, not only the email.

WaylandYang
WaylandYang previously approved these changes Oct 24, 2026

@WaylandYang WaylandYang left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @gedaiu, the rebase is clean and the confirmation now names who connected. Approved; this merges together with #1386.

gedaiu and others added 2 commits October 24, 2026 22:28
…r folders a base reads

Co-authored-by: muemich <michaelmuellerrw@gmail.com>
Signed-off-by: Bogdan Szabo <bogdan@re-cinq.com>
…o connected it sees the folder browser

Co-authored-by: muemich <michaelmuellerrw@gmail.com>
Signed-off-by: Bogdan Szabo <bogdan@re-cinq.com>
@gedaiu
gedaiu force-pushed the feat/google-drive-source-web branch from b0f7fbd to c892156 Compare October 24, 2026 20:30

@WaylandYang WaylandYang left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same panel commit as before, just restacked on #1386's final head. Approving again, and I'll merge it right after #1386.

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.

2 participants