Adding categories to mod posts #116
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
There are normal tags for mod posts, however, a 'category' type tag should also be added in mod posts. The tag for it would be called 'categories'.
Category type tags should be differentiated as such from normal tags, and it would be great to have a sub-system for it (sub-categories. ie: electronics:pc:peripherals:gaming-monitors . this shows category:sub-category:sub-category:sub-category), and there can be multiple categories in one post, separated by comma of course).
in the mod submission page, a new field would be added to accommodate this (it can be left empty), and said field would show (upon the field being active) a list of all suggested categories (fetched from a file found in the project, one that would be updated by staff/admins).
In the mod post page, the categories would be visible and clickable (to lead to a search page with it as a filter, and potentially with the game as a filter along with it).
Considering the above, there'd be a page detected to showing a list of categories (fetched from that above mentioned project file).
(maybe) In the main /search page, there'd be a new drop-down category filter (fetched from that project file) with a search function inside its drop-down.
From reading the description, I think that using label tags for the category is the best option for now if we want to have search, if we opt-in the custom
categories
tag we can no longer search on relays and we'd have to fetch and filter on the client since relays only support search for single-letter tags.e.g using
l
(with host prefixed to avoid confusion). We'd have to check the labels searching on some basic examples but I image it would look something like this (depending on the category structure)One downside of this is we won't be able to directly search "not category-1", or to hide certain category without fetching more beforehand and filtering on client.
Edit: possible new labels
Read through the nip. Sounds good / makes sense to use it.
I don't think it'd be that big of an issue not having optimized negative-search from relays, should be fine, since most won't use it / if they do they are already associating it with another category.
Hit me up on a call on how that tag structure work and confirm being on the same page for its use on the site.
the html:
To be added under tags (not within it)
Progress:
l
andL
nostr tags)>
manually in the input field)l
andh
browser search params)/game/:name