Skip to content
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
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

elizabetdev
Copy link

Changes

This PR adds Bluesky to the Profile Social Links.

Screenshot 2025-01-08 at 11 25 07

This feature was requested here:

Screenshot 2025-01-08 at 11 36 05

Fix error with Website and Mastodon fields

Additionally, there was an issue where entering a URL without https caused errors in the Website and Mastodon fields. This happened because the AccountTextField was set as <AccountTextField type="url" />. I’ve removed the type="url" attribute, aligning it with other fields like Twitter and YouTube, which also don’t specify a type.

Screenshot 2025-01-08 at 11 26 23

Manual Testing

Caution

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

Copy link

vercel bot commented Jan 8, 2025

@elizabetdev is attempting to deploy a commit to the Daily Dev Team on Vercel.

A member of the Team first needs to authorize it.

@CLAassistant
Copy link

CLAassistant commented Jan 8, 2025

CLA assistant check
All committers have signed the CLA.

@elizabetdev elizabetdev marked this pull request as ready for review January 8, 2025 12:19
@elizabetdev elizabetdev requested a review from a team as a code owner January 8, 2025 12:19
viewBox="0 0 24 24"
>
<path
fill="currentColor"
Copy link
Contributor

Choose a reason for hiding this comment

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

Since we have currentColor here we could just use this svg both for mono/color version. What do you think?

Copy link
Member

Choose a reason for hiding this comment

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

We don't have any coloured SVGs, so we can just use the same for primary and secondary

Copy link
Author

Choose a reason for hiding this comment

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

Thanks, @ilasw and @omBratteng. Pushed 0628639.

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.

Nice work! Thank you for the effort 🙏

This needs an API counterpart, I will raise a PR on the other side 👀

Copy link
Contributor

@ilasw ilasw left a comment

Choose a reason for hiding this comment

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

Nice, thanks for contributing! 👏

@elizabetdev
Copy link
Author

Hi @sshanzel, just checking in. Any updates on the API counterpart?

@@ -89,6 +91,11 @@ const handlers: Record<
href: (x) => x,
label: (x) => withoutProtocol(x),
},
bluesky: {
icon: <BlueskyIcon />,
href: (x) => x,
Copy link
Contributor

@AmarTrebinjac AmarTrebinjac Jan 18, 2025

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/

@AmarTrebinjac AmarTrebinjac self-requested a review January 18, 2025 22:09
@@ -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,
Copy link
Contributor

Choose a reason for hiding this comment

The 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.

Copy link
Contributor

@AmarTrebinjac AmarTrebinjac left a comment

Choose a reason for hiding this comment

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

Great work and thank you for contributing!

I left a couple of comments that we should look at before merging.
I've also created a PR for the backend, so as soon as we update here, we should be ready to merge :)

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.

7 participants