[PR #1324] [MERGED] Website: "Playing now" on the home page, from the live count #3484

Closed
opened 2026-11-03 04:09:51 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/1324
Author: @ludovic111
Created: 10/22/2026
Status: ✅ Merged
Merged: 10/22/2026
Merged by: @ludovic111

Base: main ← Head: feat/site-live-count


📝 Commits (1)

  • 4eb7a98 Website: "Playing now" on the home page, from the telemetry server's live count

📊 Changes

3 files changed (+33 additions, -2 deletions)

View changed files

📝 website/docs/faq.md (+1 -1)
📝 website/src/index.html (+1 -0)
📝 website/src/main.js (+31 -1)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

What

  • Home page. The "At a glance" list gets a fifth row, Playing now, with the number playing right now.
    • The count is read from https://telemetry.playhorizon.dev/v1/live, which went live with #1276. The CSP already allows that host.
    • It is fetched with a 3 s timeout, then again every minute while the tab is visible.
    • The row stays hidden while nobody plays or the server doesn't answer.
    • The row links to Privacy, which explains the ping.
    • It skips the entrance animation, because it appears after the other rows have come in.
  • FAQ. It no longer says the "I'm playing" ping is off. It goes back to the wording from before fe5e2050, now that the server is live.

How tested

  • npm test passes and node build.mjs builds.
  • Chromium (Playwright) with /v1/live mocked:
Mocked /v1/live Row 05 Page errors
playing: 3 visible, shows "Playing now 3" 0
playing: 0 hidden 0
503 hidden 0
  • The real server answers {"playing":0,…} with Access-Control-Allow-Origin: https://playhorizon.dev.

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/1324 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/22/2026 **Status:** ✅ Merged **Merged:** 10/22/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/site-live-count` --- ### 📝 Commits (1) - [`4eb7a98`](https://github.com/horizon-rust/horizon/commit/4eb7a98330c0b173759ca3a36ebbf62e66e61bc1) Website: "Playing now" on the home page, from the telemetry server's live count ### 📊 Changes **3 files changed** (+33 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `website/docs/faq.md` (+1 -1) 📝 `website/src/index.html` (+1 -0) 📝 `website/src/main.js` (+31 -1) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. ## What - **Home page.** The "At a glance" list gets a fifth row, **Playing now**, with the number playing right now. - The count is read from `https://telemetry.playhorizon.dev/v1/live`, which went live with #1276. The CSP already allows that host. - It is fetched with a 3 s timeout, then again every minute while the tab is visible. - The row stays hidden while nobody plays or the server doesn't answer. - The row links to Privacy, which explains the ping. - It skips the entrance animation, because it appears after the other rows have come in. - **FAQ.** It no longer says the "I'm playing" ping is off. It goes back to the wording from before fe5e2050, now that the server is live. ## How tested - `npm test` passes and `node build.mjs` builds. - Chromium (Playwright) with `/v1/live` mocked: | Mocked `/v1/live` | Row 05 | Page errors | |---|---|---| | `playing: 3` | visible, shows "Playing now 3" | 0 | | `playing: 0` | hidden | 0 | | 503 | hidden | 0 | - The real server answers `{"playing":0,…}` with `Access-Control-Allow-Origin: https://playhorizon.dev`. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:09:51 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#3484
No description provided.