-
Notifications
You must be signed in to change notification settings - Fork 329
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
[FEATURE]: Favorite brews #834
Comments
As I see it, this needs to be is a array of |
Beginning backend work here, It is a pseudo-blocker for PR #3321 |
This crosses paths with the folders idea too. Considerable planning has gone in to that to be compatible with an extensible favouriting system. Like, being able to have more than one collection of faves, of being able to mark a fave as public (vs keeping that bookmarking a secret), etc. |
We have also talked about the fact that faves and folders could share the same structure, with a difference in display. |
I believe basic favourites functionality can be implemented using the bones of folders functionality. A simplified faves-only roadmap: MVP:
Later:
|
I am inclined on building this functionality on its own, as G-ambatte suggested, if only because it is an easy structure to follow, and the folder idea is still on diapers.
Following this, i'd say we create a favorites field in the user schema when a brew is first favorited, then add to that the share id of the favorited brew (should be straightforward). Once that is done, display them without edit or delete button for obvious reason, only to the own user. How does that sound? And specially, if i did it this way would it really truncate the idea of folders? They would just be two separate functions, which could even avoid bugs breaking folders too. |
If faves are built first, being simpler, then this does not block building folders later. Folders, once built, could wholly overlap the faves functionality, so the only (slight) risk is of duplicative/wasted effort, and any effort cost of refactoring faves into being simply members of a "Faves" folder. The only intriguing aspect is the idea of displaying faves as a top-level category alongside "Published Brews" and "Unpublished Brews" (vs. displaying a card for the folder, and then click-thru to display the folder contents). (It's also tempting to add a flag to folder meta data for a folder to be displayed in that way too, as |
I was thinking that that way we could build the two features in two, medium sized PRs that could be worked on and merged independently.
Would Only be displayed to the owner of the userpage, would it not?
|
Faves, sure. In the Folders spec there is a flag for whether the existence and contents of a folder are revealed to visitors who are not the owner of the folder. For a Faves folder, that would be set to Unpublished (or whatever). A user might conceivably curate a collection of 3rd party brews that they want to be visible to others, like a folder of "Best brews of 2023". This visibility attribute would be different from the how-it-is-displayed quality. |
Original idea can be found HERE.
Posted here for your convenience:
The text was updated successfully, but these errors were encountered: