[wp-meta] [Making WordPress.org] #7513: Add "My favorites" functionality to the WordPress Photo Directory
Making WordPress.org
noreply at wordpress.org
Wed Oct 9 20:17:45 UTC 2024
#7513: Add "My favorites" functionality to the WordPress Photo Directory
-----------------------------+--------------------------
Reporter: nilovelez | Owner: coffee2code
Type: feature request | Status: accepted
Priority: low | Milestone:
Component: Photo Directory | Resolution:
Keywords: |
-----------------------------+--------------------------
Comment (by coffee2code):
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.
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/7513#comment:6>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list