Uh oh!
There was an error while loading. Please reload this page.
fix(templates): fixed verified creator status displaying & tooltip on templates - #2165
Conversation
The latest updates on your projects. Learn more about Vercel for GitHub. |
Uh oh!
There was an error while loading. Please reload this page.
Greptile OverviewGreptile SummaryFixed verified creator badge display and tooltip on template cards by wrapping the Key Changes
Implementation DetailsThe fix addresses layout issues where the verified badge wasn't displaying correctly. The author section now uses proper flexbox overflow handling ( Confidence Score: 5/5
Important Files ChangedFile Analysis
Sequence DiagramsequenceDiagram
participant Page as Templates Page
participant Card as TemplateCard
participant Badge as VerifiedBadge
participant Tooltip as Radix Tooltip
Page->>Page: Query database for templates
Page->>Page: Include creator.verified field
Page->>Card: Pass isVerified={creator.verified}
Card->>Card: Render author section with verified badge
alt isVerified is true
Card->>Badge: Render <VerifiedBadge size='sm' />
Badge->>Tooltip: Wrap in Tooltip.Root
Badge->>Tooltip: Set Tooltip.Trigger on badge icon
Badge->>Tooltip: Set Tooltip.Content to "Verified Creator"
User->>Badge: Hover over verified badge
Badge->>Tooltip: Show tooltip content
Tooltip-->>User: Display "Verified Creator"
end
|
Summary
Type of Change
Testing
Tested manually
Checklist