-
Notifications
You must be signed in to change notification settings - Fork 3.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
fix(dashboard): Opt-in new orgs created from org switcher in v2 #7277
base: next
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for dashboard-v2-novu-staging ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for dev-web-novu ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
organizationSwitcherPopoverInvitationActionsBox: 'p-0 pr-2', | ||
organizationSwitcherInvitationAcceptButton: '!text-[10px] !min-w-[90px] !w-[90px] px-0', | ||
organizationPreviewMainIdentifier: 'text-foreground-950 text-base', | ||
organizationPreviewAvatarContainer: 'size-6 rounded-full', | ||
organizationPreviewAvatarBox: 'rounded-full size-6', | ||
organizationPreview: 'py-1.5 px-4 gap-2', | ||
organizationSwitcherPopoverActionButton: 'py-1.5 px-4 -ml-1.5 text-sm gap-0', | ||
organizationPreview: 'py-1.5 px-2 gap-2', | ||
organizationSwitcherPopoverActionButton: 'py-1 px-2 -ml-1.5 text-sm gap-0', | ||
organizationSwitcherPopoverCard: 'w-64', | ||
organizationSwitcherPreviewButton: 'p-0 [&>svg]:mr-2 !border-0', | ||
organizationPreviewSecondaryIdentifier: 'hidden', | ||
organizationSwitcherPopoverActions: | ||
'py-2 [&_.cl-organizationPreviewMainIdentifier]:text-sm [&>div:nth-child(2)]:!border-0', | ||
'py-0.5 [&_.cl-organizationPreviewMainIdentifier]:text-sm [&>div:nth-child(2)]:!border-0', |
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.
Something was cmpletly off when a new invitation is available to a user to join an org. Fixed the excess paddings
<ClerkOrganizationSwitcher | ||
hidePersonal | ||
skipInvitationScreen | ||
afterCreateOrganizationUrl={ROUTES.USECASE_SELECT + '?v2_opt_in=true'} |
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.
We want to redirect the user and skip the questionnaire straight to the usecase select page
if (hasV2OptIn) { | ||
(async () => { | ||
await optIn(); | ||
})(); | ||
} else { |
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.
Allowing to force opt in if a query param was passed to the url
What changed? Why was the change needed?
Screenshots
Expand for optional sections
Related enterprise PR
Special notes for your reviewer