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

Social sharing feature #398

Merged
merged 91 commits into from
Jul 18, 2017
Merged

Social sharing feature #398

merged 91 commits into from
Jul 18, 2017

Conversation

ZachTRice
Copy link
Contributor

@ZachTRice ZachTRice commented Jul 13, 2017

Connects to #140
Connects to #139
Connects to #60

**This feature needs to be tested on Master to ensure URL shortening is working properly. On UAT, Twitter & Email links will appear as the full link in the message fields but on Master these should be shortened links.

- Added link shortening on social sharing click, if there is an error,
the default worldview link will be passed.
- Formatted sharing text on each platform.
- Added schema.org meta tags to index page for passing in information
about the page and image to be used.
- Removed warning messages related to not being able to shorten link
when clicking a share icon because if it fails, it will just use the
full link. No warning needed since there is no direct user action.
// If selected during the animation, the cursor will go to the
// end of the input box
var updateLink = function() {
$('#permalink_content').val(models.link.get());
Copy link
Collaborator

@Benjaki2 Benjaki2 Jul 13, 2017

Choose a reason for hiding this comment

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

I wouldn't do any selecting of react components outside of react. e.g. Pass a state into the component that Focuses the element. This way we are decoupling the component from Worldview and Jquery (maybe we can dispose of it in the future) @ZachTRice

this.state = {
  focused: true,
  selected: 'idk'
}

@Benjaki2
Copy link
Collaborator

Benjaki2 commented Jul 17, 2017

@ZachTRice looks good! Just need to release a new version of WVC and update the package.json with that version.

@Benjaki2 Benjaki2 merged commit acb6217 into development Jul 18, 2017
@Benjaki2 Benjaki2 deleted the share-feature branch July 18, 2017 18:30
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.

None yet

2 participants