atmosphere explorer pds.ls

Read collection filter from URL hash on load #69

Closed pds.ls
targeting main from jauntywunderkind.bsky.social/pdsls:filter-hash
Closed opened by and assigned to pds.ls
targeting main from jauntywunderkind.bsky.social/pdsls:filter-hash

I'd like a nice way to point people at a particular lexicon collection that they can browse, without distracting with all the other lexicons there. I riffed on the existing hash tag system (ex https://pds.ls/at://did:plc:zjbq26wybii5ojoypkso2mso#collections:dev.skyboard) with #collections:<nsid> but instead used #filter:, and have it populate the filter box that already exists.

I also added another commit that propagates changes to the filter box into #filter:. This is definitely more debateable, especially as it runs automatically with a debounce, and a guard to not stomp any other hash-params if you have them. It's pretty nice, makes it so easy, and freed me from having to make decisions about the UI. Which is harder because I've been struggling to get a https instance running that I can test pdsls well from.

I'm happy to adapt & adjust. A button for sync would make as a more conservative option, but busy things up, and the instant-usability self-demonstrates itself nicely here imo. I sense though that not a TON of people use filter, and that they would probably find it pretty smooth & nice having this automatic use case.

Commits 0