feat: Approve ai data processing in app for admins#2367
Conversation
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
What T-Rex did
ArtifactsTargeted component test startup log
|
d7fda5b to
58fa0a9
Compare
446682a to
89b8708
Compare
58fa0a9 to
dad2dca
Compare
6cc0d57 to
3cf4284
Compare
c434bbc to
0dad1de
Compare
0dad1de to
ef18623
Compare
3cf4284 to
10ef24e
Compare

Problem
The AI consent gate kicked admins out to the PostHog web app via
openExternalto approve AI data processing. The flow is jarring and unnecessary, sincePATCH /api/organizations/@current/works under the current OAuth scope.Changes
PostHogAPIClient.approveAiDataProcessing()that PATCHes/api/organizations/@current/useMutationcurrentUserquery family on success so the gate predicate re-evaluates and the screen unmounts automaticallyAI_CONSENT_GRANTED_INAPPanalytics event on successHow did you test this?
manually
Publish to changelog?
no