Put the filters on every list and place page, and count their numbers from the page
The search and filters bar is on every list, place and the Routes page with ten or more trails, scoped to that page's set and closed to start. The number beside each choice is recounted from the page's rows on every change; a choice that would show nothing is hidden; a filter that cannot narrow the page is left out. The open panel sits in the flow and pushes the rows down. Each part of the country has a page of its own, and the links to the home page "with the filters" are gone. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
f467fcb560
commit
1ed0a68991
12 files changed
+906
-212
No files matched your search
@@ -91,9 +91,9 @@ class HomePageTest(unittest.TestCase):
|
||||
self.assertLess(grid.index('id="finder-form"'), grid.index('id="entries"'))
|
||||
self.assertNotIn("filters__maplink", self.body)
|
||||
|
||||
def test_the_open_filters_lie_over_the_rows_and_can_be_closed(self):
|
||||
def test_the_open_filters_sit_between_the_bar_and_the_rows_and_can_be_closed(self):
|
||||
css = read(WEB, "assets", "style.css")
|
||||
self.assertRegex(css, r"html\.js \.filters__panels \{[^}]*position: absolute;")
|
||||
self.assertNotRegex(css, r"\.filters__panels \{[^}]*position: absolute;")
|
||||
self.assertIn('class="button filters__done"', self.body)
|
||||
js = read(WEB, "assets", "app.js")
|
||||
self.assertIn("e.key === 'Escape'", js)
|
||||
|
||||
Reference in new issue
Block a user