-
Notifications
You must be signed in to change notification settings - Fork 970
feat(marketing): add author registry and dynamic author metadata to blog #1150
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
saddlepaddle
merged 3 commits into
main
from
add-author-registry-and-dynamic-author-metadata-to
Feb 3, 2026
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
fa922b0
feat(marketing): add author registry and dynamic author metadata to blog
saddlepaddle 48ba64f
refactor(marketing): use content-file paradigm for author registry
saddlepaddle 4b4115f
feat(marketing): add author avatars and social links to blog posts
saddlepaddle File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
apps/marketing/content/blog/_archive/history-of-git-worktrees.mdx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| --- | ||
| name: Avi Peltz | ||
| role: Cofounder | ||
| avatar: /team/avi.jpg | ||
| twitter: avimakesrobots | ||
| github: avipeltz | ||
| linkedin: avipeltz | ||
| --- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| --- | ||
| name: Kiet Ho | ||
| role: Cofounder | ||
| avatar: /team/kiet.jpg | ||
| twitter: kietho_ | ||
| github: kietho | ||
| linkedin: kiet-ho | ||
| --- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| --- | ||
| name: Satya Patel | ||
| role: Cofounder | ||
| avatar: /team/satya.webp | ||
| twitter: saddle_paddle | ||
| github: saddlepaddle | ||
| linkedin: saddlepaddle | ||
| --- |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
87 changes: 28 additions & 59 deletions
87
apps/marketing/src/app/blog/components/AuthorAvatar/AuthorAvatar.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,79 +1,48 @@ | ||
| "use client"; | ||
| import Image from "next/image"; | ||
|
|
||
| import { Tooltip, TooltipContent, TooltipTrigger } from "@superset/ui/tooltip"; | ||
|
|
||
| function XIcon({ className }: { className?: string }) { | ||
| return ( | ||
| <svg | ||
| viewBox="0 0 24 24" | ||
| aria-hidden="true" | ||
| className={className} | ||
| fill="currentColor" | ||
| > | ||
| <path d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z" /> | ||
| </svg> | ||
| ); | ||
| } | ||
| const SIZE_CONFIG = { | ||
| sm: { container: "size-6", text: "size-6 text-[10px]", imgSize: "24px" }, | ||
| md: { container: "size-8", text: "size-8 text-xs", imgSize: "32px" }, | ||
| lg: { container: "size-12", text: "size-12 text-sm", imgSize: "48px" }, | ||
| }; | ||
|
|
||
| interface AuthorAvatarProps { | ||
| name: string; | ||
| twitterHandle?: string; | ||
| title?: string; | ||
| size?: "sm" | "md"; | ||
| avatar?: string; | ||
| size?: "sm" | "md" | "lg"; | ||
| } | ||
|
|
||
| export function AuthorAvatar({ | ||
| name, | ||
| twitterHandle, | ||
| title, | ||
| size = "md", | ||
| }: AuthorAvatarProps) { | ||
| export function AuthorAvatar({ name, avatar, size = "md" }: AuthorAvatarProps) { | ||
| const initials = name | ||
| .split(" ") | ||
| .map((n) => n[0]) | ||
| .join("") | ||
| .toUpperCase() | ||
| .slice(0, 2); | ||
|
|
||
| const sizeClasses = size === "sm" ? "size-6 text-[10px]" : "size-8 text-xs"; | ||
| const config = SIZE_CONFIG[size]; | ||
|
|
||
| if (avatar) { | ||
| return ( | ||
| <div | ||
| className={`${config.container} relative rounded-full overflow-hidden flex-shrink-0`} | ||
| > | ||
| <Image | ||
| src={avatar} | ||
| alt={name} | ||
| fill | ||
| className="object-cover" | ||
| sizes={config.imgSize} | ||
| /> | ||
| </div> | ||
| ); | ||
| } | ||
|
|
||
| const avatar = ( | ||
| return ( | ||
| <div | ||
| className={`${sizeClasses} rounded-full bg-muted flex items-center justify-center font-medium text-foreground/70 cursor-pointer`} | ||
| className={`${config.text} rounded-full bg-muted flex items-center justify-center font-medium text-foreground/70 flex-shrink-0`} | ||
| > | ||
| {initials} | ||
| </div> | ||
| ); | ||
|
|
||
| if (!twitterHandle) { | ||
| return avatar; | ||
| } | ||
|
|
||
| return ( | ||
| <Tooltip delayDuration={100}> | ||
| <TooltipTrigger asChild>{avatar}</TooltipTrigger> | ||
| <TooltipContent | ||
| side="bottom" | ||
| sideOffset={8} | ||
| className="bg-white text-black px-4 py-3 rounded-xl shadow-lg border border-gray-200" | ||
| showArrow={false} | ||
| > | ||
| <div className="flex flex-col gap-1.5"> | ||
| <div className="text-sm"> | ||
| <span className="font-semibold">{name}</span> | ||
| {title && <span className="text-gray-500"> {title}</span>} | ||
| </div> | ||
| <a | ||
| href={`https://x.com/${twitterHandle}`} | ||
| target="_blank" | ||
| rel="noopener noreferrer" | ||
| className="flex items-center gap-1.5 text-sm text-gray-600 hover:text-black transition-colors" | ||
| > | ||
| <XIcon className="size-3.5" /> | ||
| <span>@{twitterHandle}</span> | ||
| </a> | ||
| </div> | ||
| </TooltipContent> | ||
| </Tooltip> | ||
| ); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Add accessible labels to icon-only social links.
Screen readers won’t have descriptive text for these links. Add
aria-label(or visually hidden text) per link.🔧 Suggested fix
{author.twitter && ( <a href={`https://x.com/${author.twitter}`} + aria-label={`${author.name} on X`} target="_blank" rel="noopener noreferrer" className="text-muted-foreground hover:text-foreground transition-colors" > <RiTwitterXFill className="size-4" /> </a> )} {author.github && ( <a href={`https://github.com/${author.github}`} + aria-label={`${author.name} on GitHub`} target="_blank" rel="noopener noreferrer" className="text-muted-foreground hover:text-foreground transition-colors" > <RiGithubFill className="size-4" /> </a> )} {author.linkedin && ( <a href={`https://linkedin.com/in/${author.linkedin}`} + aria-label={`${author.name} on LinkedIn`} target="_blank" rel="noopener noreferrer" className="text-muted-foreground hover:text-foreground transition-colors" > <RiLinkedinBoxFill className="size-4" /> </a> )}📝 Committable suggestion
🤖 Prompt for AI Agents