Skip to content
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

chore(ES): update CTAs and eligibility logic #6803

Merged
merged 3 commits into from
Jan 27, 2025

Conversation

kalanchan
Copy link
Contributor

@kalanchan kalanchan commented Jan 25, 2025

Updated CTA links and eligibility logic, see Loom and CODY-4659 for full details

https://www.loom.com/share/2222084d04a14e1ba080b06c92207a19?sid=67bc08e2-e284-4616-92e4-1f087145a480

Closes https://linear.app/sourcegraph/issue/CORE-535/cody-clients-migrate-ctas-to-live-links.

Test plan

  1. Tested CTA eligibility on dotcom, and enterprise instances
  2. Checked dismiss notifications did not break webview
  3. Checked links and confirmed that they matched with designs
  4. Switched across multiple accounts and everything still worked

Copy link
Contributor

@danielmarquespt danielmarquespt left a comment

Choose a reason for hiding this comment

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

This is not a code review! But the behaviour is approved based on the loom (thank you!)

Copy link
Member

@eseliger eseliger left a comment

Choose a reason for hiding this comment

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

don't forget the backport!

@@ -80,8 +81,9 @@ export const CodyPanel: FunctionComponent<CodyPanelProps> = ({
const api = useExtensionAPI()
const { value: chatModels } = useObservable(useMemo(() => api.chatModels(), [api.chatModels]))
const isPromptsV2Enabled = useFeatureFlag(FeatureFlag.CodyPromptsV2)
const isTeamsUpgradeCtaEnabled = useFeatureFlag(FeatureFlag.SourcegraphTeamsUpgradeCTA)

// Teams upgrade eligibility should be that the flag is set, is on dotcom and only has one account. This prevents enterprise customers that are logged into multiple endpoints from seeing the CTA
Copy link
Member

Choose a reason for hiding this comment

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

can we name this workspaces and not teams? the name is outdated 😬

@kalanchan kalanchan merged commit 7da7444 into main Jan 27, 2025
21 checks passed
@kalanchan kalanchan deleted the kalan/update-editor-to-ES-CTAs branch January 27, 2025 22:19
thenamankumar pushed a commit that referenced this pull request Jan 28, 2025
…6826)

Updated CTA links and eligibility logic, see Loom and
[CODY-4659](https://linear.app/sourcegraph/issue/CODY-4659/profile-menu-ctas)
for full details


https://www.loom.com/share/2222084d04a14e1ba080b06c92207a19?sid=67bc08e2-e284-4616-92e4-1f087145a480

Closes
https://linear.app/sourcegraph/issue/CORE-535/cody-clients-migrate-ctas-to-live-links.


## Test plan
1. Tested CTA eligibility on dotcom, and enterprise instances
2. Checked dismiss notifications did not break webview
3. Checked links and confirmed that they matched with designs
4. Switched across multiple accounts and everything still worked

 <br> Backport 7da7444 from #6803

Co-authored-by: Kalan <[email protected]>
thenamankumar pushed a commit that referenced this pull request Jan 28, 2025
#6825)

Updated CTA links and eligibility logic, see Loom and
[CODY-4659](https://linear.app/sourcegraph/issue/CODY-4659/profile-menu-ctas)
for full details


https://www.loom.com/share/2222084d04a14e1ba080b06c92207a19?sid=67bc08e2-e284-4616-92e4-1f087145a480

Closes
https://linear.app/sourcegraph/issue/CORE-535/cody-clients-migrate-ctas-to-live-links.


## Test plan
1. Tested CTA eligibility on dotcom, and enterprise instances
2. Checked dismiss notifications did not break webview
3. Checked links and confirmed that they matched with designs
4. Switched across multiple accounts and everything still worked

 <br> Backport 7da7444 from #6803

Co-authored-by: Kalan <[email protected]>
<p className="tw-text-muted-foreground tw-mb-2 tw-text-[12px]">
Get search, AI chat, autocompletes and inline edits for your entire team to find,
understand and fix code across all of your codebases.
Get your own workspace with AI-powered chat, prompt sharing and codebase serach. Automate
Copy link
Collaborator

Choose a reason for hiding this comment

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

@kalanchan you have a typo on the spelling of search:
"Get your own workspace with AI-powered chat, prompt sharing and codebase serach. Automate
Comment"

I think you should fix this before this pull request is backported to other branches.

unlock Code Search, AI chat, autocompletes, inline edits
and more for your team.
Get your own workspace with AI-powered chat, prompt
sharing and codebase serach. Automate tasks and
Copy link
Collaborator

Choose a reason for hiding this comment

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

@kalanchan same, you've misspelled search

kalanchan added a commit that referenced this pull request Jan 28, 2025
Fixes typo introduced in #6803 

## Test plan
Ran locally, confirmed text change has been applied to dotcom users only
<!-- Required. See
https://docs-legacy.sourcegraph.com/dev/background-information/testing_principles.
-->
umpox pushed a commit that referenced this pull request Jan 29, 2025
Fixes typo introduced in #6803 

## Test plan
Ran locally, confirmed text change has been applied to dotcom users only

 <br> Backport 1e7df48 from #6856

Co-authored-by: Kalan <[email protected]>
umpox pushed a commit that referenced this pull request Jan 29, 2025
Fixes typo introduced in #6803 

## Test plan
Ran locally, confirmed text change has been applied to dotcom users only

 <br> Backport 1e7df48 from #6856

Co-authored-by: Kalan <[email protected]>
taiyab pushed a commit that referenced this pull request Feb 3, 2025
Updated CTA links and eligibility logic, see Loom and
[CODY-4659](https://linear.app/sourcegraph/issue/CODY-4659/profile-menu-ctas)
for full details


https://www.loom.com/share/2222084d04a14e1ba080b06c92207a19?sid=67bc08e2-e284-4616-92e4-1f087145a480

Closes
https://linear.app/sourcegraph/issue/CORE-535/cody-clients-migrate-ctas-to-live-links.


## Test plan
1. Tested CTA eligibility on dotcom, and enterprise instances
2. Checked dismiss notifications did not break webview
3. Checked links and confirmed that they matched with designs
4. Switched across multiple accounts and everything still worked
<!-- Required. See
https://docs-legacy.sourcegraph.com/dev/background-information/testing_principles.
-->
taiyab pushed a commit that referenced this pull request Feb 3, 2025
Fixes typo introduced in #6803 

## Test plan
Ran locally, confirmed text change has been applied to dotcom users only
<!-- Required. See
https://docs-legacy.sourcegraph.com/dev/background-information/testing_principles.
-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants