-
Notifications
You must be signed in to change notification settings - Fork 318
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]: Add folders/tags to organize brews... #758
Comments
I would suggest tags instead of folders. |
Sure, tags would be fine -- any way to structure/filter/organize. |
Discussion from #697:
@G-Ambatte what if we handled the document filtering via tags, but also addressed the visibility concern by making the user page a dashboard of sorts?
|
… entry by comma separation naturalcrit#758
Smart folders would be easily doable using the tag system, thanks to NASA from the Discord of Many Things for this idea. |
A question on "folders" (aka views) .. would authors want a folder where some of the brews are for everyone to view, and other brews only for the author to view (e.g. DM only, vs all players). And of these player-viewable brews, can some of them not be marked as "Published" (i.e. discoverable via the homebrewery public content search facilities). I would want to a) create a container for a purpose (e.g. Friday Game Group), b) toss in all the relevant brews, c) mark some as me-only brews, d) have a link I can send to all my players. And maybe have sub-folders there too. This can kinda be done via tags, there are definite overlaps. But also not. Food for thought. |
See also #1858 |
Tags are now able to be added to brews! Still need to make the searchable on the My Brews page but that should be trivial. |
Free text searching undifferentiated from title/description would be trivial, just add an extra test here (noting yes, would be a search of an array of strings, not just a string — don't simply `array.join() though, as you'd get false matches). homebrewery/client/homebrew/pages/basePages/listPage/listPage.jsx Lines 145 to 148 in 0811da7
Next step would be a search syntax like |
I've added this issue to the current UserPage modifications checklist (#2295) - expanding filtering to the tags was already in the list, but not linked to any specific issue. I was anticipating adding it to the filter in exactly the same way we did the Brew Titles and Descriptions, but now that it's a larger list of items for the filter to check, some slight refactoring might be necessary to keep things elegant. |
Maybe this, but with better names. getSortedBrews : function(brews){
const testString = _.deburr(this.state.filterString).toLowerCase();
const searchTestString = (string) => _.deburr(string).toLowerCase().includes(testString);
brews = _.filter(brews, (brew)=>{
return searchTestString(brew.title) ||
searchTestString(brew.description) ||
brew.tags.findIndex(tag => searchTestString(tag))+1;
});
return _.orderBy(brews, (brew)=>{ return this.sortBrewOrder(brew); }, this.state.sortDir);
},
NOTE: we should likely raise a separate issue for #758, as tags ≠ folders, and repoint #2295.
|
Reading back through the history on this, we never actually created this functionality. I believe we can probably do so by making the tags automatically link to the current URL with a |
The name of this issue started being about folders, but quickly morphed to being about tags, and much very good work was done on the tags front, with an end result of being able to filter the user-brews by tags (by clicking them there). Discussion in multiple places show that folders is still an important and useful concept, and one which cannot be entirely solved via tags. A lot of the discussion has been collated onto a wiki page. For clarity,, creating a new issue for the original issue (rebooting it essentially). |
With that new issue to handle actual folders, closing this issue (using tags) as completed. |
Description
I've got a lot of brews, and I imagine others do as well. It would be great to be able to organize these into folders that I can drill into for specific brews. For example, I might want to have one folder for each campaign that I'm running, or one to hold my custom magic items, or another to hold my custom races and classes.
The text was updated successfully, but these errors were encountered: