implement basic categories support for thread index#89
Conversation
a category is defined as the first bracketed string that can be found in a thread title, e.g. `[events] cerca dev circle`. to mitigate the proliferation of multiple tags for the same category, the category names are inflected to only represent it in singular form: events -> event
|
cc @decentral1se :> currently working on this and happy to hear about any viewpoints! a separate issue is that the later go versions (i have 1.23 installed on this computer) basically forces a high minimum level of the go version and go toolchain in go.mod, see golang/go#65751. you can no longer install a go module without it updating go.mod in this fashion. it doesn't even let you |
|
This is already pretty damn cool! Just had a play with it. I noticed two things (probably on your radar but anyway). 1) the "filter" button appears when there are no threads. 2) a thread title like I'm unsure if inflecting something like I think that if the design is documented and people can get along with the limitations, this will work out just fine.
I noticed this as well. Not sure what to do but I'm basically working with a constantly modified |
|
woop! good points raised! i had not thought of them yet :> forgot to set this as a wip, i've only put an hour and change into it while keyboarding away at a library. there's some more subtle parts i want to have implemented before it's ready for prime time
it is trueeee but i also really want to help reduce the multiplication of stupidly similar categories >.< this is why i don't like tag-based systems...........
alright, i think i'll reluctantly cave in and then we can circle back to see what/if anything can be done. sucks though |
revamped the solution for determining the sort order of threads on the index page. instead of requiring the url params to always be present to determine the order, we now use the latest setting and remember it in the session cookies. the reason behind this is so that we can combine sort order and filter categories without having to go through too many gymnastics. the resulting solution seems to be appropriate based on the small addition it resulted in.
|
@decentral1se alright this a v1 for me! give 'er a spin? still mulling about the inflection business btw. i think i need to come up with some plausible examples for actual categories / topics where the inflection will be bothersome to be convinced edit: i removed inflection X) makes the edit title feature a lot more important! :> |
155e3c4 to
074a5a7
Compare
…ute changes session code: reduce repetition and use constants to represent keys
d30fc4d to
6c2483d
Compare
|
Oh very nice. I think you could merge it as-is! 2 thoughts:
|
|
ayy great ideas, i've added them! how do they look? |
|
Perfect, merrrgeeeeeeeee 🎉 |
this feature has been discussed previously:
a category is defined as the first bracketed string that can be found in a thread title, e.g.
[events] cerca dev circle.to mitigate the proliferation of multiple tags for the same category, the category names are inflected to only represent it in singular form: events -> event