guardian / typerighter

Even if you’re the right typer, couldn’t hurt to use Typerighter!
Apache License 2.0
276 stars 12 forks source link

A few UI tweaks/fixes for the rules table #432

Closed jonathonherbert closed 1 year ago

jonathonherbert commented 1 year ago

What does this change?

A few tweaks to the rules table:

No selection, no search With selection With search
Screenshot 2023-09-13 at 16 01 38 Screenshot 2023-09-13 at 15 32 53 Screenshot 2023-09-13 at 15 33 36

How to test

Have a play in local or CODE. Useful? Comments?

jonathonherbert commented 1 year ago

Thanks for spotting, mistakenly reverted in 4881555, force-pushed to correct.

jonathonherbert commented 1 year ago

@simonbyford yuck, thanks for spotting! Just removed those.

jonathonherbert commented 1 year ago

Great spot, added in a4784b63389e4cd5bff6f7da5554fef8dd01beee – multi-selection is a bit unloved ATM but I think the core state handling will remain the same even as we start to use routes for state when editing individual rules πŸ‘

simonbyford commented 1 year ago

Great spot, added in a4784b6 – multi-selection is a bit unloved ATM but I think the core state handling will remain the same even as we start to use routes for state when editing individual rules πŸ‘

Noice, that did the job!

This is unrelated but I've just noticed something else a bit odd. Try alternating between page 1 and page 5 and note which row gets loaded at the top each time. When I try this locally, the top row changes each time. Could this point to something being wrong with the sorting? Super weirdly, this doesn't happen when alternating between page 1 and page 2.

Happy to pair if any of that doesn't make sense, or if you're seeing something different!