# I am the Watcher. I am your guide through this vast new twtiverse.
# 
# Usage:
#     https://watcher.sour.is/api/plain/users              View list of users and latest twt date.
#     https://watcher.sour.is/api/plain/twt                View all twts.
#     https://watcher.sour.is/api/plain/mentions?uri=:uri  View all mentions for uri.
#     https://watcher.sour.is/api/plain/conv/:hash         View all twts for a conversation subject.
# 
# Options:
#     uri     Filter to show a specific users twts.
#     offset  Start index for quey.
#     limit   Count of items to return (going back in time).
# 
# twt range = 1 31
# self = https://watcher.sour.is/conv/3dgf3ma
Hmmm...
Go instead to the lower limit of Miller's Law (about having 7 +/- 2 options)

That means max 5 elements.

@eaplmx I'm open to suggestions 🤗
@eaplmx I'm open to suggestions 🤗
@prologic maybe going to a tri-state selection can help a lot.

When you pick a filter it loop through this:

- include filter
- exclude filter
- reset / disable filter

This adds flexibility and compress the filters in one go.
@justamoment oh! that's quite clever 😅 I assume I could make it all work server side still? Would you help with styling it nicely?
@justamoment oh! that's quite clever 😅 I assume I could make it all work server side still? Would you help with styling it nicely?
@prologic I guess you can do it?

I think a filter=yes/no/none should cover the states.

For the UI I can probably help, I think a Chip style design could work... 🤔
@justamoment Chip style design? What's that? *intrigued* 🧐
@eaplmx something like this I guess?



This style would also be good for wrapping on mobile with display: inline-block or flexbox.
I wasn't aware of this term, cool!

A random example I found out there:
I would suggest putteing the filters in a sidebar. With simple.css we can already use <aside> for this and from the new tabs in settings we can reuse the style for getting the boxes
Something like this:


<main class="container float">
<aside class="filternav">
<h4>Filters</h4>
<nav class="tabs">
<a href="https://twtxt.net/?f=localonly" class="current">On twtxt.net</a>
<a href="https://twtxt.net/?f=noreplies">No Replies</a>
<a href="https://twtxt.net/?f=nobots">Exclude Bots</a>
<a href="https://twtxt.net/?f=norss">Exclude Feeds</a>
<a href="https://twtxt.net/">Clear</a>
</nav>
</aside>
@darch I _could_ give that a go.
@darch I _could_ give that a go.
@darch Looks amazing! I'd only add the checkmark from my previous image or any other way to know if something is toggled on or off. At first sight it's difficult to know if _On twtxt.net_ is on or off.

In terms of a11y, I have never done that, I guess instead of <a> it could be styled checkboxes due to the on-off nature.
More info here: https://www.a11ymatters.com/pattern/checkbox/
@eaplmx good idea to use check boxes, but not sure how to make it work...
@darch I will try your idea of using an "aside" element here, but for now I'll just use the same idea of links/buttons with just a different colour for "include", "exclude" and "off".
@darch I will try your idea of using an "aside" element here, but for now I'll just use the same idea of links/buttons with just a different colour for "include", "exclude" and "off".
@darch @prologic is there any way to remove @<~eaplmx https://texto-plano.xyz/~eaplmx/twtxt.txt> (texto-plano)? It's a 'dead' twtxt currently. I only use @eaplmx (English) and me@eapl.mx (Spanish)
@darch Here is an example: https://codepen.io/quinlo/pen/ReMRXz

Found here: https://www.sliderrevolution.com/resources/css-checkbox/
@eaplmx tooo.muutch.animaaation but otherwise cool
@darch good ideas for the side bar.

@eaplmx your example is nice but it doesn't cover the "exclude" part.

Also I don't see them as checkboxes but more as a navigation option.

I'll try something later myself when on my PC.
Ended up doing it on my phone.



Source here
@justamoment Cool 😆 👌
@justamoment Cool 😆 👌
@prologic it's just an interactive mock but if uses link for the actual actions, that means you can use it on the backend.

Does this style makes sense for a tri-state filter?
@justamoment I _think_ so, but also your paste above is now empty for some reason? 🤔
@justamoment I _think_ so, but also your paste above is now empty for some reason? 🤔
@prologic I used nopaste, this service let you share without storing anything anywhere, that means everything is in the URL, you probably have the query params stripping in your settings.
@justamoment D'oh! I do too 😅
@justamoment D'oh! I do too 😅