Skip to content

feat(funnels): CTA micro-liners to fact screen #4502

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 16 commits into from
May 22, 2025
Merged

feat(funnels): CTA micro-liners to fact screen #4502

merged 16 commits into from
May 22, 2025

Conversation

AmarTrebinjac
Copy link
Contributor

@AmarTrebinjac AmarTrebinjac commented May 20, 2025

Changes

New badge component that can be used for micro liners in funnel fact:
Screenshot 2025-05-20 at 09 44 58

I took the liberty to rename default and colorful to primary and onion, to stay in line with our other theme names.

DESIGN

Screenshot of all the layouts:

Screenshot 2025-05-20 at 08 59 33
Screenshot 2025-05-20 at 08 59 02
Screenshot 2025-05-20 at 08 57 54
Screenshot 2025-05-20 at 08 57 47
Screenshot 2025-05-20 at 08 57 30
Screenshot 2025-05-20 at 08 56 23

Events

Did you introduce any new tracking events?

Experiment

Did you introduce any new experiments?

Manual Testing

Caution

Please make sure existing components are not breaking/affected by this PR

Jira ticket

MI-894

Preview domain

https://mi-894.preview.app.daily.dev

Copy link

vercel bot commented May 20, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
daily-webapp ✅ Ready (Inspect) Visit Preview May 22, 2025 5:15pm
1 Skipped Deployment
Name Status Preview Updated (UTC)
storybook ⬜️ Ignored (Inspect) May 22, 2025 5:15pm

@AmarTrebinjac AmarTrebinjac changed the title feat: CTA micro-liners to fact screen feat(funnels): CTA micro-liners to fact screen May 21, 2025
Comment on lines 18 to 29
const badgeComponent = useMemo(() => {
if (!badge?.cta) {
return null;
}
return (
<Badge
label={badge.cta}
icon={<ReputationLightningIcon className="h-6 w-6" secondary />}
variant={badge.variant}
/>
);
}, [badge?.cta, badge?.variant]);
Copy link
Member

Choose a reason for hiding this comment

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

Don't think the useMemo is needed for us here. Same goes to the other file.

Copy link
Member

@sshanzel sshanzel 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 have anything blocking, but looks good overall.

@sshanzel sshanzel merged commit 18a0a32 into main May 22, 2025
9 of 10 checks passed
@sshanzel sshanzel deleted the MI-894 branch May 22, 2025 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants