#488 Explore and profiles say what is there, and how much
–
- github
- github/openchronology/timeline-app
- github/openchronology/timeline-app#488
- pull request
- state:merged
Closes #471. **Explore:** its description was "Search, sort and browse public timelines." (41 characters). It now reads, for timescale.info, "Search 65 public timelines and their 9,500+ dated events by title and notes, or browse them by tag, stars and popularity." - **Counting:** it counts the public timelines (not comparisons) and their moments. - **Rounding:** counts of 1,000 or more keep two digits and a "+", so the description doesn't change with every save. - **Home page:** without the landing page, the home page is Explore and now has the same description. **Profiles:** a description was "Public timelines and favorites of @athan on …". It now says, for example, "@athan has 65 public timelines on timescale.info, including Deep time, Ancient Egypt, …". - **Which titles:** the account's three most starred public timelines, by the part of their titles before a subtitle. - **Left out:** timelines with sensitive-content labels are never named. Without a database, with no public timelines, or if the read fails, both fall back to their old wording. **Code:** `exploreDescription(pool)` and `profileDescription(pool, username)` are in `platform/lib/sharing.js`, and the pages pass in the pool, which keeps the database client out of the bundle. **Tests:** `entity-pages.test.mjs` covers the rounding and both descriptions against a stand-in database, including the fallbacks. `next-postgres` passes here, along with all unit tests except `contents.test.mjs`, which fails on `main` in this checkout too. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_011fFY8eruEi1xAkkMBni13B https://github.com/openchronology/timeline-app/pull/488
Related
Open #488 Explore and profiles say what is there, and how much in the timeline