-
Notifications
You must be signed in to change notification settings - Fork 8.9k
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
feat: Nudge users to become template creators if eligible #8357
feat: Nudge users to become template creators if eligible #8357
Conversation
packages/cli/src/databases/repositories/workflowStatistics.repository.ts
Outdated
Show resolved
Hide resolved
packages/editor-ui/src/components/BecomeTemplateCreatorCta/becomeTemplateCreatorStore.ts
Outdated
Show resolved
Hide resolved
packages/editor-ui/src/components/BecomeTemplateCreatorCta/becomeTemplateCreatorStore.ts
Show resolved
Hide resolved
packages/editor-ui/src/components/BecomeTemplateCreatorCta/becomeTemplateCreatorStore.ts
Show resolved
Hide resolved
packages/editor-ui/src/components/BecomeTemplateCreatorCta/BecomeTemplateCreatorCta.vue
Show resolved
Hide resolved
@ivov thank you for a thorough review 🙇 Addressed all feedback. Please have another look 🙏 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work!
getBecomeTemplateCreatorCta().should('not.exist'); | ||
}); | ||
|
||
it('should show the CTA', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it('should show the CTA', () => { | |
it('should show the CTA if the user is eligible', () => { |
packages/cli/src/databases/repositories/workflowStatistics.repository.ts
Outdated
Show resolved
Hide resolved
@@ -98,4 +101,23 @@ export class WorkflowStatisticsRepository extends Repository<WorkflowStatistics> | |||
throw error; | |||
} | |||
} | |||
|
|||
async queryNumWorkflowsUserHasWith5OrMoreProdExecs(userId: User['id']): Promise<number> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fifty?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Renamed to be a bit clearer
Passing run #3808 ↗︎
Details:
Review all test suite changes for PR #8357 ↗︎ |
|
✅ All Cypress E2E specs passed |
Got released with |
Summary
Add a CTA for users to become template creators. The CTA is shown for users who have at least 3 active workflows with each at least 5 successful production executions.
Kapture.2024-01-17.at.11.17.52.mp4
Related tickets and issues
https://linear.app/n8n/issue/ADO-1669/feature-template-creator-cta-for-existing-users
Review / Merge checklist
(no-changelog)
otherwise. (conventions)