From 8d10168f19e92e43315c6b399d6c8547dccde2fe Mon Sep 17 00:00:00 2001 From: azank Date: Mon, 19 Oct 2026 19:41:44 +0500 Subject: [PATCH] explore: the cities you built come first, marked "yours" A city built from a browser was listed in the gallery but sat below the featured cities: under two rows on the home page and the ten-city Featured shelf on /explore, so whoever built it couldn't find it. city.js now keeps the last 24 cities this browser built in localStorage. site.js puts them, and your own city when signed in, first in the gallery list with a "yours" badge. /explore gets a Yours shelf above Featured. A city that has fallen out of the gallery's 60 latest builds still shows, from the browser's copy. Visitors who haven't built anything see the same page as before. The privacy section says the list stays in the browser. Also moves #15's section swap into web/site/index.html, the source that web/scripts/site.mjs stamps the page from. #15 edited only the generated page, so CI's "committed builds are up to date" check has failed since. --- web/public/404.html | 4 ++-- web/public/about.html | 6 +++--- web/public/events.html | 4 ++-- web/public/explore.html | 31 +++++++++++++++++++++++-------- web/public/index.html | 6 +++--- web/public/readme.html | 4 ++-- web/public/s/city.js | 13 +++++++++++++ web/public/s/site.css | 1 + web/public/s/site.js | 18 ++++++++++++++---- web/site/about.html | 2 +- web/site/explore.html | 27 +++++++++++++++++++++------ web/site/index.html | 40 ++++++++++++++++++++-------------------- 12 files changed, 105 insertions(+), 51 deletions(-) diff --git a/web/public/404.html b/web/public/404.html index 4427f80..f981a16 100644 --- a/web/public/404.html +++ b/web/public/404.html @@ -25,7 +25,7 @@ - + - +