VersionControl:PRs/magenta/465
From PickiPedia: A knowledge base of bluegrass, old time psychedelic jams, and other public domain music
Jump to navigationJump to search
| State | 🟣 merged 2026-11-12 00:13:14 |
|---|---|
| Worked on by | magent, justin |
| Moods | #pickipedia-style-and-main-page |
| Deploy | not said |
| Branch | magent/front-page-feeds → main, by magent-cryptograss
|
| Opened · last pushed | 2026-11-11 22:58:02 · 2026-11-11 22:57:57 |
Justin (#pickipedia-style-and-main-page, 11 Nov, block 26,394,731) asked for a new front page: the top magenta tidings and the last few human messages on it, with the news switchable, the podcast firehose, and Rabbithole. The page itself is on the wiki already ([[Template:Front page]], transcluded by Main Page). This is the magenta half: what keeps the two live feeds fresh. - **`services/front_page.py`**: writes `Template:Magenta tidings` (the links as Tidings ranks them: pinned first, then by rank, 7 of them) and `Template:Magenta latest` (the last 6 posts with words by people, across the Moods that aren't archived, each cut to 240 characters) through the wiki bot (`todo_ticks.Bot`), the way the to-do ticks and the PR cards are written. Titles and words go inside `<nowiki>`, so nothing in them is read as markup. A PickiPedia address becomes a wiki link. - **Nudged from the pulse** next to `pr_cards.nudge()`: at most every 10 minutes, in the background, and only a page that would change is written (`Bot.write` returns `same` otherwise), so the wiki's history stays quiet. - The browser can't do this from the wiki: magenta's API sends no CORS header, and the wiki's Common.js is behind `editinterface` anyway. Writing wikitext keeps the front page a wiki page. 5 tests. Until this is deployed, both templates hold a version magent wrote by hand with the same code at block 26,394,731. Redeploy maybelle. Worked on by: magent and justin, in #pickipedia-style-and-main-page