Commit Graph
108 Commits
Author SHA1 Message Date
swaitsandClaude Sonnet 5.5 b75d39c7b6 Add a page for each kind of trail in each park, mountain range and wilderness area that has three or more of them, built by the same rules as the state pages, and link each from its place page
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 18:15:24 -07:00
swaitsandClaude Sonnet 5.5 d0782b0d58 Write archive members as regular files again (mode 0o100644, as main did) and check a stored archive with testzip before restoring it, building it again when it is damaged
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 17:53:38 -07:00
swaitsandClaude Sonnet 5.5 622ffc74be Make the test of the store key's code files follow every kind of import, plain, absolute and inside functions, starting from build.py too, and add the three modules build.py imports that it left out: fingerprint, redirects and site
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 17:52:37 -07:00
swaitsandClaude Sonnet 5.5 0bb20c60dd Run build.py itself on the copy in the second-build thumbnail test, without removing it first, and check that a thumbnail taken away is put back and that no trail was worked out again
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 17:52:34 -07:00
swaitsandClaude Sonnet 5.5 2be6693a94 Decide whether a trail's files are up to date by its content key, kept in the trail's cache entry, instead of modification times, so a changed track put back to an older time is built again into the same directory
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 17:49:37 -07:00
swaits 3193a674d2 Run the trail workers in a process pool so a worker that raises or dies fails the build, count the cores the process may use, and test both 2026-11-20 16:35:19 -07:00
swaits 5d86a42ad1 Build the shared test site into a directory that is made new, with a test, and give the zip archives fixed member times so equal files make equal bytes 2026-11-20 16:33:34 -07:00
swaits c645159ae7 Read the place pages from the shared build in the filter bar and views tests instead of rendering each one again 2026-11-20 16:32:17 -07:00
swaits 69871fc764 Merge branch 'main' into fast-tests-2 2026-11-20 16:28:12 -07:00
swaitsandClaude Sonnet 5.5 c382484506 Start the test module that builds the site itself once the shared build has filled the store
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 16:25:24 -07:00
swaitsandClaude Sonnet 5.5 7c321c6e15 Build the site once per test run, and split every page into tags once, for all the tests that read built pages
Twelve test modules each ran the whole build, and each of them walked every page with its own
parser. They now share one build (web/tests/builtsite.py), made in a directory of the run's own,
and one recording of each page, made on all the cores. test_thumbs's second build and
test_google_tag's two builds still build, on their own, as before; the google tag builds run
side by side. web/tests/run.py runs the modules side by side. test_extra's elevation tile check
now compares with the last entry of connect-src, which is where the tile path is since the Google
tag added three before it. New tests keep the build's shortcuts honest (test_build_store.py).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 16:07:33 -07:00
swaits 8caeb14218 Fix the elevation tile test to compare with the last connect-src entry, the tile path, now that the Google tag added entries before it 2026-11-20 15:51:41 -07:00
swaits 34c6ebd1d3 Merge the filter bar and navigation work: keep the seasons work's result wherever both resolved the same conflict 2026-11-20 15:23:32 -07:00
swaits 9a8aa49318 Merge main into the seasons work: keep the Google tag entry under the seasons entry 2026-11-20 15:23:04 -07:00
swaitsandClaude Fable 5.2 99588ce306 Let the tests that forbid inline and outside scripts allow the Google tag, and nothing else
Mirror to forge / mirror (push) Canceled after 0s
Validate / validate (push) Canceled after 0s
Validate / history (push) Canceled after 0s
Validate / site (push) Canceled after 0s
Validate / deploy (push) Canceled after 0s
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-20 15:18:55 -07:00
swaitsandClaude Fable 5.2 164497a256 Load the owner's Google tag on every page, and drop the About page's no-tracking claim
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-20 15:07:02 -07:00
swaits e6c2f371fc Say what each season is: the note on an estimate ends that this is the usual window, not a closure; month lists and the figures notes tell estimated from the climate and similar trails from set by judgement from pages that differ; the changelog no longer says the glossary gives the test figures 2026-11-20 14:38:44 -07:00
swaits ed744d0585 Keep the twelve month lists whatever share of the trails each holds, so Hiking in September stays: the cap on a list's share no longer applies to them 2026-11-20 14:34:46 -07:00
swaits c5f883ace6 Keep the jump row's first anchor outside the Places page's grid so the first group is not pushed right on a wide screen 2026-11-20 14:21:57 -07:00
swaits e8ca8e862e Give the blind test by two measures, first and last months and also no wrong gap in the middle: 114 of 148 and 105 of 148, stored, scored and stated together 2026-11-20 14:16:26 -07:00
swaits 535d2bebaa Merge main into seasons-ship-3: places pages from main kept alongside the seasons; places precede history in records, this ship's changelog entry first 2026-11-20 14:14:01 -07:00
swaits fc66f541a3 Let a set with no trails build its filter bar, and pin the Places page's new jump-link anchor in the state-pages golden file
In the golden file only the hash of /regions/ changed, by the anchor the jump row's first link goes to.
2026-11-20 14:08:34 -07:00
swaits 228f1cd2f7 End the home page with a line to the pages for parks, mountain ranges and wilderness areas
"Browse by park, by mountain range or by wilderness area" sits with the notes under the rows and the map, so the first screen and the rows are as they were, and each link goes to its section of the Places page.
2026-11-20 13:49:40 -07:00
swaits 3997c7286e Put a row of jump links at the very top of the Places page: States and provinces, Parks, Mountain ranges and Wilderness areas, each with its number of pages
The row shows at every screen size on one compact line that wraps on a phone, and a kind with no pages is left out. The strip of regional groups below the heading no longer repeats the three kinds.
2026-11-20 13:49:40 -07:00
swaits a806522ee1 Give every page that lists trails the search box and the filters that have something to offer, however few trails it holds
The cutoff of ten trails is gone, so 48 of the 60 state and province pages, the small lists and each route author's page now have the bar. A set that nothing can narrow gets the search box alone, and an option no trail has is not written. In the state-pages golden file only the hashes of the ten pages that differ changed, each by the added bar and nothing else.
2026-11-20 13:48:07 -07:00
swaits fd2e6fc6c7 Merge seasons-ship-3 into nav-and-filters: the seasons ship and the places ship touched the same trail files; both sides kept 2026-11-20 13:45:06 -07:00
swaits 3305c23ee5 Say season once where a source names season and months 2026-11-20 13:33:21 -07:00
swaits e95131833b Show an estimated season as an estimate on the trail page, in lists and tables, and in the month filter; say how seasons are sourced and tested on the reference page 2026-11-20 13:26:51 -07:00
swaitsandClaude Sonnet 5.5 d4d980ff97 Redraw the two social cards whose states changed, and leave the plain Places page's shortcut label as it was
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 12:52:49 -07:00
swaitsandClaude Sonnet 5.5 86de4495b0 Merge main into places-ship-2: the seasons ship touched 39 records and the changelog; both sides kept, this ship's entry first
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 12:32:31 -07:00
swaitsandClaude Sonnet 5.5 2a56815f34 Show a trail's park, range and wilderness links at the foot of its page on a phone, where the glance hides them
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 12:29:57 -07:00
swaitsandClaude Sonnet 5.5 3182d68935 Add Parks, Mountain ranges and Wilderness areas to the Places page's shortcut strip
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 12:29:23 -07:00
swaitsandClaude Sonnet 5.5 d90fa49df5 Show the search box and filters on every park, range and wilderness page, however few trails it has
The bar was written only for a set of ten trails or more (home.FILTER_MIN, added with the list
and place filters on 2026-11-17), which left the Wind River Range (7 trails), Yosemite (9) and
the Ansel Adams Wilderness (5) with neither a search box nor Filters. Place pages now always
get it, and a set that nothing can narrow gets the search box alone, with no Filters button
and no empty panel. State and province pages keep the ten-trail threshold for now.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 12:29:05 -07:00
swaitsandClaude Sonnet 5.5 30d03b8069 Let a place carry its own label and preposition, keep the count in every place title, and test that slugs follow names
A registry entry may now set label and prep. A plateau reads "Plateau" and "on the Colorado
Plateau", the Mogollon Rim "Escarpment" and "along the Mogollon Rim", a national monument or a
parkway its own word; the default is still "Mountain range" and "in the". Every national park,
provincial park, monument, recreation area and parkway in the registry is labelled.

A place title no longer gives up its ": N Trails" ending when it is long: it drops the state first
and then keeps the count over the cap, and the state is left out where the name already holds
it (Oregon Cascades, California Coast Ranges). A test checks that every slug is the slug of its
display name, with the Arizona White Mountains as the one stated exception.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 12:28:03 -07:00
swaitsandClaude Sonnet 5.5 75e5de5c16 Drop six places from the pages and the records, and widen the twin rule to ranges
The deny-list in tools/place_trails.py now names, with a reason beside each, the Longfellow
Mountains, Finger Lakes, Gore Range, Mosquito Range, Great Western Divide and Russian
Wilderness. They are removed from places.toml and from every record that named them, history
entries included, so nothing is left to link to. A range that holds exactly the trails of a park
and shares its name stem (Great Smoky Mountains and Great Smoky Mountains National Park,
Olympic Mountains and Olympic National Park) now gets no page either, in the tool and in the
builder, and is removed from records the same way.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 12:23:23 -07:00
swaits 1fbcfd5021 Merge main into places-ship-2 2026-11-20 11:07:24 -07:00
swaitsandClaude Sonnet 5.5 28b0d83d43 Fix the trail brief test for a season in the same sentence
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 10:56:00 -07:00
swaits 00c60a4c2c Link the place pages from the hub, the states and the trails, and search by place 2026-11-20 10:55:36 -07:00
swaitsandClaude Sonnet 5.5 a41fcad59e Update two tests that counted on the 109 seasons or on a trail with none
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 10:50:35 -07:00
swaits 16c5275c94 Add park, range and wilderness pages 2026-11-20 10:48:10 -07:00
swaits 4afa05cdff Add the place loader and membership 2026-11-20 10:40:35 -07:00
swaitsandClaude Sonnet 5.5 cb6cdadd41 Update the page test for the season wording
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 10:31:01 -07:00
swaitsandClaude Sonnet 5.5 03c2611036 Show where a season came from; check it
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 09:51:51 -07:00
swaits fe2306d90b Pin the built state, group and state-list pages with a golden test 2026-11-20 09:19:48 -07:00
swaitsandClaude Fable 5.2 b9977094ba List the Glacier loop as the North Circle, its common name, with a track from the park's trails
Mirror to forge / mirror (push) Canceled after 0s
Validate / validate (push) Canceled after 0s
Validate / history (push) Canceled after 0s
Validate / site (push) Canceled after 0s
Validate / deploy (push) Canceled after 0s
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-19 16:18:41 -07:00
swaitsandClaude Fable 5.2 fad3e54ba0 Add Middle Fork Kings River, Central Wilderness Grand Tour and High Sierra Camp Loop; leave out High Trinity Alps Traverse, Ruby Crest Trail and Northern Golden Trout Tour
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-19 15:33:49 -07:00
swaitsandClaude Fable 5.2 07b023f31b Saved page: write a short ?s= link once a list passes ten trails
Up to ten trails the link stays ?t=id,id,... With more it is a version
character and a base64url bit set over the trails' permanent numbers
(trail-numbers.txt), 70 characters for any list instead of 1,013 for 49
trails. Both forms open for good; ?s= wins when both are there; a retired
or unknown number is ignored and a code that cannot be read shows the page's
existing no-trails state. A short link does not keep the order saved, so
that list opens A to Z.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-19 15:19:50 -07:00
swaitsandClaude Fable 5.2 d89a5f0da7 Add Nearest to me to every list's sort control
Choosing it asks the browser for the visitor's position once and orders the list by straight-line
distance to the nearest point of each trail's track on the overview map (or its start and end,
where it has no track), shown on each row in miles or kilometres. The position stays in the page:
it is not stored, sent or put in the address. Trails with no position go last and are counted;
a refused or failed request puts the list back in its earlier order with a plain line.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-19 14:09:16 -07:00
swaitsandClaude Fable 5.2 3ff2281129 Search reads more than the name: summary, places, author and land unit, strongest matches first
Each row's search words come in four tiers (name and abbreviation, author, the full names of
the states, provinces and countries plus where it starts and ends and the land unit or body its
record names, and the summary). Typed words match at the start of words in any order, without
regard to case, accents or apostrophes, and the strongest matches come first. A row that matched
only beyond its name says where in one quiet line.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-19 14:04:13 -07:00
swaitsandClaude Fable 5.2 5f35a5b043 Point a trail page's correction link at the correction form, not the raw file editor
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-19 13:27:01 -07:00