-
Notifications
You must be signed in to change notification settings - Fork 242
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: add Bluesky to Profile Social Links #4052
Open
elizabetdev
wants to merge
10
commits into
dailydotdev:main
Choose a base branch
from
elizabetdev:add-bsky-social-profile-link
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+65
−2
Open
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
a84e375
Add Bluesky to Profile Social Links
elizabetdev bd23372
Fix placeholder
elizabetdev 68d9621
Fix lint error
elizabetdev 685c2ad
Fix small linting error
elizabetdev c03b11e
Another lint error
elizabetdev 4b573b4
Another lint fix
elizabetdev 0628639
Delete bluesky color icon
elizabetdev ea9644f
Merge branch 'main' into add-bsky-social-profile-link
elizabetdev 817c4ff
Merge branch 'main' into add-bsky-social-profile-link
ilasw 876bf7c
Merge branch 'main' into add-bsky-social-profile-link
AmarTrebinjac 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
This file contains 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,9 @@ | ||
import type { ReactElement } from 'react'; | ||
import React from 'react'; | ||
import type { IconProps } from '../../Icon'; | ||
import Icon from '../../Icon'; | ||
import MonoIcon from './mono.svg'; | ||
|
||
export const BlueskyIcon = (props: IconProps): ReactElement => ( | ||
<Icon {...props} IconPrimary={MonoIcon} IconSecondary={MonoIcon} /> | ||
); |
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 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 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 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 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 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 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 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 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 |
---|---|---|
|
@@ -13,6 +13,7 @@ import { | |
LinkedInIcon, | ||
LinkIcon, | ||
MastodonIcon, | ||
BlueskyIcon, | ||
RedditIcon, | ||
RoadmapIcon, | ||
StackOverflowIcon, | ||
|
@@ -88,6 +89,7 @@ const ProfileIndex = ({ | |
youtube: values.youtube, | ||
linkedin: values.linkedin, | ||
mastodon: values.mastodon ? withHttps(values.mastodon) : null, | ||
bluesky: values.bluesky ? withHttps(values.bluesky) : null, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should probably not call withHttps here, as it will always add a protocol due to bluesky usernames having domain structures. |
||
experienceLevel: values.experienceLevel, | ||
onUpdateSuccess: () => | ||
router.push(`/${values.username}`).then(() => { | ||
|
@@ -285,7 +287,6 @@ const ProfileIndex = ({ | |
hint={hint.portfolio} | ||
valid={!hint.portfolio} | ||
name="portfolio" | ||
type="url" | ||
value={user?.portfolio} | ||
placeholder="example.com" | ||
/> | ||
|
@@ -356,10 +357,19 @@ const ProfileIndex = ({ | |
hint={hint.mastodon} | ||
valid={!hint.mastodon} | ||
name="mastodon" | ||
type="url" | ||
value={user?.mastodon} | ||
placeholder="mastodon.social/@username" | ||
/> | ||
<AccountTextField | ||
leftIcon={<BlueskyIcon />} | ||
label="Bluesky" | ||
inputId="bluesky" | ||
hint={hint.bluesky} | ||
valid={!hint.bluesky} | ||
name="bluesky" | ||
value={user?.bluesky} | ||
placeholder="bsky.app/profile/username" | ||
/> | ||
<AccountTextField | ||
leftIcon={<ThreadsIcon />} | ||
label="Threads" | ||
|
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.
This needs to prepend the bluesky profile path
https://bsky.app/profile/