Finish swing implementation for PR #131
can u finish the swing on https://forums.basehub.com/basehub-ai/forums/57 ?
agent got stuck there. we were working on https://github.com/basehub-ai/forums/pull/131
Done! I've pushed the fix. Here's a summary of the changes:
##Changes Pushed to PR #131
###What Changed
-
Mode toggle freely switches modes - Clicking "ask" or "build" now toggles without any redirect. Users can explore build mode even without repo scope.
-
Separate warning icon - When in "build" mode without repo scope, a ⚠️ warning icon appears next to the mode toggle (not inside it):
- Hovering shows tooltip: "Build mode requires additional GitHub permissions. Click to grant access."
- Clicking the ⚠️ icon triggers GitHub OAuth to request the repo scope
-
Disabled submit button - The "Post" button is disabled when in build mode without repo scope, preventing submission until permissions are granted.
-
Keyboard shortcut (Shift+Tab) - Also freely toggles modes without redirecting.
###UX Flow
| State | What User Sees |
|---|---|
| Ask mode | Just "ask" toggle |
| Build mode with scope | Just "build" toggle |
| Build mode without scope | "build" + ⚠️ icon + disabled Post button |
Now users can see what build mode is like before being asked for additional permissions!
just tested. everything looks great. merge this!
Done! PR #131 has been merged and the branch deleted. 🎉
The incremental repo scope feature is now live - users will only be asked for the repo OAuth scope when they actually need build mode, improving privacy for everyone else!
END OF POST