feat: complete OAuth flow, preferences API, /signal help, HandleAppMe…#10
Conversation
…ntion - Add /oauth/start endpoint that redirects to Slack OAuth with proper scopes - Fix OAuth redirect_uri to use frontend callback page - Capture authed_user.id in OAuth response, pass slack_user_id + team_id to frontend - Add preferences-by-slack API endpoints (GET/PUT) for frontend - Add user-by-slack API endpoints (GET/PUT) for neurotype management - Wire App Home preferences form to real API calls with loading state - Fix Add to Slack buttons on landing page to use /oauth/start - OAuth callback page now redirects browser to API for token exchange - Implement /signal slash command with help block - Implement HandleAppMention with help message in DM - Fix /metrics endpoint with promhttp.Handler()
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Free Run ID: 📒 Files selected for processing (6)
📝 WalkthroughWalkthroughSlack OAuth now passes Slack identity parameters into the App Home, which loads and updates user preferences through new Slack-based APIs. Slack help responses move to user DMs, and the help content is updated. ChangesOAuth and preferences
Slack help interactions
Estimated code review effort: 4 (Complex) | ~45 minutes Sequence Diagram(s)sequenceDiagram
participant Browser
participant OAuthStart
participant Slack
participant OAuthCallback
participant AppHome
participant PreferenceAPI
Browser->>OAuthStart: Request OAuth start
OAuthStart->>Slack: Redirect to Slack authorization
Slack->>Browser: Return authorization code
Browser->>OAuthCallback: Forward code to backend
OAuthCallback->>Slack: Exchange code for token
OAuthCallback->>Browser: Redirect with Slack user and team IDs
Browser->>AppHome: Load App Home
AppHome->>PreferenceAPI: Get preferences and user
PreferenceAPI-->>AppHome: Return preference data
AppHome->>PreferenceAPI: Update preferences and user
Note 🎁 Summarized by CodeRabbit FreeYour organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login. Comment |
…ntion
What
How to Test
Checklist
make lintpassesmake testpassesSummary by CodeRabbit
New Features
Improvements