Website: the hub (/hub) with the roadmap, a Simple / Technical switch and live states
playhorizon.dev/hub is the public entry point to what is happening on Horizon. Overview: where Horizon is, the 3 to 5 things in focus, what is next, what shipped last, how to help. Roadmap: Now / Next / Later / Help wanted / Shipped, filtered by area, every item with its issues and pull requests in their GitHub state (baked at build, refreshed in the browser). Contribute: good first tasks, claiming, connecting an agent to Kira, the rules. A Simple / Technical switch swaps every item's plain and dev text and is remembered. /roadmap redirects to the Roadmap tab. tools/roadmap.py build now also writes website/data/roadmap.json, which the site reads and serves at /hub/roadmap.json. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+10
-3
@@ -1,5 +1,6 @@
|
||||
import copy
|
||||
import datetime
|
||||
import json
|
||||
import tomllib
|
||||
import unittest
|
||||
from unittest import mock
|
||||
@@ -77,9 +78,15 @@ class RepositoryRoadmap(unittest.TestCase):
|
||||
def test_the_roadmap_keeps_its_rules(self):
|
||||
self.assertEqual(roadmap.validate(roadmap.load()), [])
|
||||
|
||||
def test_roadmap_md_is_generated_from_the_toml(self):
|
||||
self.assertEqual(roadmap.OUTPUT.read_text(), roadmap.render(roadmap.load()),
|
||||
"ROADMAP.md is out of date: run `python3 tools/roadmap.py build`")
|
||||
def test_generated_files_match_the_toml(self):
|
||||
for path, text in roadmap.outputs(roadmap.load()).items():
|
||||
self.assertEqual(path.read_text(), text, f"{path.name} is out of date: run `python3 tools/roadmap.py build`")
|
||||
|
||||
def test_site_data_has_every_item_in_one_line_text(self):
|
||||
data = json.loads(roadmap.site_data(tomllib.loads(SAMPLE)))
|
||||
self.assertEqual([item["id"] for item in data["items"]], ["fast", "faster", "fastest", "old"])
|
||||
self.assertEqual(data["items"][0]["dev"], "Multiply, not divide (#10).")
|
||||
self.assertEqual(data["areas"], [{"id": "performance", "name": "Performance"}])
|
||||
|
||||
|
||||
class Rules(unittest.TestCase):
|
||||
|
||||
Reference in New Issue
Block a user