Skip to content

feat(replay): Show CTA when org is not opted into gen ai features #95780

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Jul 21, 2025

Conversation

billyvg
Copy link
Member

@billyvg billyvg commented Jul 17, 2025

There are a few flags at work here:

  • replay-ai-summaries is our rollout feature flag
  • gen-ai-features is config based feature flag to show AI features
  • organization.hideAiFeatures is a user/org opt-in to gen AI features (similar to above flag)
  • and finally there is the org opt-in/acknowledgement to Seer features

The AI Summary tab is now visible if only the rollout flag replay-ai-summaries and the gen AI flags are enabled .

If organization can see gen AI features but has not opted into Seer, the AI Summary panel will display a CTA guiding users to their organization settings to enable Seer (or get info on how to enable it).

image

Closes REPLAY-526

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jul 17, 2025
@billyvg billyvg changed the title Promote ai summary tab with cta feat(replay): Show CTA when org is not opted into gen ai features Jul 17, 2025
@billyvg billyvg force-pushed the cursor/promote-ai-summary-tab-with-cta-a9b4 branch from af43cfc to e2a713d Compare July 18, 2025 18:59
@billyvg billyvg force-pushed the cursor/promote-ai-summary-tab-with-cta-a9b4 branch from e2a713d to 58bf482 Compare July 18, 2025 19:05
Comment on lines -43 to -67
const openForm = useFeedbackForm();

const feedbackButton = ({type}: {type: 'positive' | 'negative'}) => {
return openForm ? (
<Button
aria-label={t('Give feedback on the AI summary section')}
icon={<IconThumb direction={type === 'positive' ? 'up' : 'down'} />}
title={type === 'positive' ? t('I like this') : t(`I don't like this`)}
size={'xs'}
onClick={() =>
openForm({
messagePlaceholder:
type === 'positive'
? t('What did you like about the AI summary and chapters?')
: t('How can we make the AI summary and chapters work better for you?'),
tags: {
['feedback.source']: 'replay_ai_summary',
['feedback.owner']: 'replay',
['feedback.type']: type,
},
})
}
/>
) : null;
};
Copy link
Member Author

Choose a reason for hiding this comment

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

Refactored this into a new component <FeedbackButton>

@billyvg
Copy link
Member Author

billyvg commented Jul 18, 2025

The CTA doesn't exactly make sense because I think users need to manually contact us for access I think? But we can refine before next rollout.

@billyvg billyvg marked this pull request as ready for review July 18, 2025 19:08
@billyvg billyvg requested a review from a team as a code owner July 18, 2025 19:08
cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

@michellewzhang michellewzhang merged commit 44ba15c into master Jul 21, 2025
46 checks passed
@michellewzhang michellewzhang deleted the cursor/promote-ai-summary-tab-with-cta-a9b4 branch July 21, 2025 18:21
andrewshie-sentry pushed a commit that referenced this pull request Jul 21, 2025
…5780)

There are a few flags at work here:

- `replay-ai-summaries` is our rollout feature flag
- `gen-ai-features` is config based feature flag to show AI features
- `organization.hideAiFeatures` is a user/org opt-in to gen AI features
(similar to above flag)
- and finally there is the org opt-in/acknowledgement to Seer features

The AI Summary tab is now visible if only the rollout flag
`replay-ai-summaries` and the gen AI flags are enabled .

If organization can see gen AI features but has *not* opted into Seer,
the AI Summary panel will display a CTA guiding users to their
organization settings to enable Seer (or get info on how to enable it).

<img width="627" height="200" alt="image"
src="https://github.com/user-attachments/assets/a34cab3a-a15e-4718-82a8-f6ddde2b9deb"
/>

Closes REPLAY-526

---------

Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: Michelle Zhang <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants