Skip to content

Feature/medium icon link #901#943

Merged
maestromac merged 13 commits intomasterfrom
unknown repository
Oct 18, 2018
Merged

Feature/medium icon link #901#943
maestromac merged 13 commits intomasterfrom
unknown repository

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Oct 17, 2018

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Documentation Update

Description

A user can add a Medium url in the settings, which when included would add a link with the Medium icon on profile pages

Related Tickets & Documents

resolves #901

Mobile & Desktop Screenshots/Recordings (if there are UI changes)

dev profile with medium icon

Added to documentation?

  • docs.dev.to
  • readme
  • no documentation needed

[optional] What gif best describes this PR or how it makes you feel?

alt_text

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Oct 17, 2018

CLA assistant check
All committers have signed the CLA.

@ghost
Copy link
Copy Markdown
Author

ghost commented Oct 17, 2018

@benhalpern @jessleenyc

This adds a svg from font awesome for the medium icon. I wasn't sure whether you had a licence for this, so please let me know if works for Dev.to or whether you prefer a different source. The Medium website has a svg file too for its logo, which could be an alternative.

Copy link
Copy Markdown
Contributor

@benhalpern benhalpern left a comment

Choose a reason for hiding this comment

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

This all looks good to me.

@benhalpern
Copy link
Copy Markdown
Contributor

@jessleenyc @Zhao-Andy @maestromac if any one of you wants to jump in and give this a second look, go for it. Passes muster to me.

Comment thread app/models/user.rb Outdated
Copy link
Copy Markdown
Contributor

@Zhao-Andy Zhao-Andy left a comment

Choose a reason for hiding this comment

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

Looks good! Thanks for the PR!

Copy link
Copy Markdown
Contributor

@maestromac maestromac left a comment

Choose a reason for hiding this comment

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

LGTM.

One edge case with the regex. Some user are part of an organization and may want to use org profile like (ie https://medium.a-legit-org.org/@maestromac) instead of a normal profile link. That can come later. This is a good MVP 👍

@maestromac maestromac merged commit 95b2e18 into forem:master Oct 18, 2018
@ghost
Copy link
Copy Markdown
Author

ghost commented Oct 18, 2018

@maestromac Totally with you on that last point, at least there is some medium integration now to build on.

@Zhao-Andy Cheers for all your patience, and responsive support all along the way with this change.

It feels great to contribute to Dev.to - love the site!

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.

Add Medium link and icon to settings and profile

4 participants