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

1872 New Friend Links Insight. #2044

Closed

Conversation

gbrady92
Copy link
Contributor

Overview:
This insight checks to see if a user has new friends/followers/followees from the last week with links in their bios. If this criteria is met these links are displayed with their profile pictures in a list. The copy and the headline encourage the user to follow these links to get to know the person. The max number of users displayed is 3.

screenshot from 2014-07-24 12 47 22

screenshot from 2014-07-24 12 46 53

cdmoyer and others added 30 commits July 21, 2014 13:46
TODO:
* Redesign OSP admin views for plugins other than Facebook and Twitter
* Delete old dashboard and menu interfaces, classes, registrars, tests
* Add missing test coverage
* Clean up code
- URL-encode network username and network on insight headline links
- Show correct network icon for each insight
- Don't replace the colon in insight headlines
- Improve test coverage
Closes ThinkUpLLC#1809
When a non-logged-in user accesses an AuthController, redirect to the login page with a redirect GET parameter.
On login, redirect the user to that original URL.
Add Smarty plugin to custom URL encode network usernames with spaces and accented characters
$insight->slug = $slug;
$insight->instance_id = $instance->id;
$insight->date = $this->insight_date;
$person_text = count($users) > 1 ? 'people' : 'person';
Copy link
Member

Choose a reason for hiding this comment

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

If there's only one person rather than multiple people, the headline should reference that specific person. Could be something like, "Did you see %person's website?" (And then be sure to set $insight->header_image to their avatar.)

@anildash
Copy link
Member

A few comments on how copy could be improved are inline in the code. Overall, this is really good and a very useful insight!

ginatrapani and others added 19 commits July 29, 2014 16:52
…onthly-insights

Bonus magic day for monthly insights
…by limiting number of posts returned

Plus some code cleanup
Instead of showing every amplifier today as it’s detected, show the
single top amplified post from yesterday.
…riends bio and encourages user to follow them to get to know new friend.
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

5 participants