Making WordPress.org

Opened 11 months ago

Closed 4 months ago

#7513 closed feature request (fixed)

Add "My favorites" functionality to the WordPress Photo Directory

Reported by: nilovelez's profile nilovelez Owned by: coffee2code's profile coffee2code
Milestone: Priority: low
Component: Photo Directory Keywords:
Cc:

Description

As the WordPress Photo directory grows bigger, it would be interesting to have the option to mark a photo as favorite and have a list of your favorite photos.

Some samples from other directories:

Patterns:
https://wordpress.org/patterns/favorites/

Plugins:
https://wordpress.org/plugins/browse/favorites/

Themes:
https://wordpress.org/themes/browse/favorites/

Change History (9)

#1 follow-up: @tobifjellner
11 months ago

For Photos it might also be interesting to mark specific Photo contributors as favorites. (Looking at you, Nilo :) )

This ticket was mentioned in Slack in #meta by courtneyengle. View the logs.


10 months ago

#3 @fitehal
7 months ago

Indeed we should have this

#4 @coffee2code
6 months ago

  • Owner set to coffee2code
  • Status changed from new to accepted

This ticket was mentioned in Slack in #meta by coffee2code. View the logs.


5 months ago

#6 @coffee2code
4 months ago

The general functionality of such a feature is fairly straightforward, but to explicitly outline some of the requirements/features:

  • For logged-in users, each photo should have a heart icon indicator/button that denotes whether the user has favorited the photo already or not.
  • For visitors who are not logged in, no heart icon should appear.
  • Clicking on the heart icon should toggle the favorite status of the photo for the user. If JS is enabled, this should ideally be done asynchronously. If JS isn't enabled, this should function through a page reload.
  • For logged-in users, a "Favorites" link should be added to the site navbar, linking to an archive of the photos the user has favorited.
  • A URL endpoint (e.g. wordpress.org/photos/favorites/ should exist to redirect to an archive of the current user's favorited photos. If visited by a visitor who isn't logged in, then the endpoint can redirect to the site's front page.
  • Each user should have a publicly accessible URL endpoint to view that user's archive of favorited photos (e.g. wordpress.org/photos/favorites/coffee2code/).
  • There should be a feed available of each user's favorites (e.g. wordpress.org/photos/favorites/coffee2code/feed/)
  • Internally, the users who favorited a given photo should be reasonably obtainable. And the photos that a given user favorited should be reasonably obtainable.
  • If a photo is deleted, any users who may have favorited that photo should no longer reference the deleted photo as a favorite.
  • In admin listings that include published photos, there should be a favorites column that shows the count of number of users who favorited the photo.
  • The edit photo page should also show a count of the number of users who have favorited a photo.

As a natural follow-up to this (and thus separate), the profile (at profiles.wordpress.org) of users should eventually list recently favorited photos and link to the user's archive of favorited photos.

Making use of favorited photos (including presenting a count of the number of users who favorited a given photo, creating a view of the most favorited photos, etc) beyond what is outlined above is best left for consideration in the future once time has been given for photos to be favorited by more people and for displaying such a count to be consistently implemented across the various directories.

#7 in reply to: ↑ 1 @coffee2code
4 months ago

Replying to tobifjellner:

For Photos it might also be interesting to mark specific Photo contributors as favorites. (Looking at you, Nilo :) )

Agreed that this would be a great feature. I'm considering it separate from this request, though. Following general social media parlance, we might term it "follow", and offer a view of photos submitted by people you follow. This is a new paradigm for .org directories which similarly applies to and could be implemented for plugins, themes, patterns, etc.

#8 @coffee2code
4 months ago

In 14101:

Photo Directory, Favorites: Add ability for logged-in users to favorite photos.

See #7513.

#9 @coffee2code
4 months ago

  • Resolution set to fixed
  • Status changed from accepted to closed

In 14102:

Photo Directory: Add template and support and styles for user favorites.

Props nilovelez, coffee2code.
Fixes #7513.

Note: See TracTickets for help on using tickets.