From be7f96315433e70d9b924f91b41bbe90734f6f0d Mon Sep 17 00:00:00 2001 From: barkz Date: Fri, 11 Sep 2026 21:57:54 -0500 Subject: [PATCH] style: set the tagline in the terminal face "Your whole Glean workspace, from the terminal." was the one line in the hero still held in the sans face. In mono it reads as terminal output and ties to the meta line printed inside the wordmark directly above it. Mono is wider, so the size comes down a step and the measure goes out to 48ch to keep the sentence on one line; tracking is tightened to stop it sprawling. Tests: 1,102 -> 1,103. Co-Authored-By: Claude Opus 5 (1M context) --- .github/pages/template.html | 6 +++++- CLAUDE.md | 2 +- README.md | 2 +- docs/TESTING.md | 4 ++-- tests/test_pages_build.py | 4 ++++ 5 files changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/pages/template.html b/.github/pages/template.html index 80cdeda..3e76614 100644 --- a/.github/pages/template.html +++ b/.github/pages/template.html @@ -137,7 +137,11 @@ } [align="center"] { text-align: center; } [align="center"] p { margin-left: auto; margin-right: auto; max-width: 60ch; color: var(--ink-2); } - [align="center"] .banner + p { font-family: var(--sans); font-size: 1.12rem; font-weight: 600; color: var(--ink); max-width: 42ch; } + /* the tagline reads as terminal output, in the same face as the REPL */ + [align="center"] .banner + p { + font-family: var(--mono); font-size: 1rem; font-weight: 500; + letter-spacing: -0.03em; color: var(--ink); max-width: 48ch; + } /* ---- image paragraphs: badges, screenshots, diagrams ---- */ p.imgrow { diff --git a/CLAUDE.md b/CLAUDE.md index c44e6c6..da9e256 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -18,7 +18,7 @@ python3 install.py # --cli-only, --dev, --prefix, --verify, --uninstal # Pipe a single command (non-interactive; cli.py detects a non-tty stdin) echo '/search "q2 plan"' | python3 -m glean_code -# Run the full test suite (1,102 tests, stdlib unittest โ€” works with or without pytest) +# Run the full test suite (1,103 tests, stdlib unittest โ€” works with or without pytest) python3 -m pytest tests/ python3 -m unittest discover tests/ diff --git a/README.md b/README.md index 63b9ba0..f8767ee 100644 --- a/README.md +++ b/README.md @@ -176,7 +176,7 @@ The full Glean Code REPL โ€” slash commands, status bar, mock/live switching, se | ๐Ÿ” **[SSO / OAuth](docs/SSO_OAUTH.md)** ยท **[Secure tokens](docs/SECURE_TOKENS.md)** | Browser sign-in, secure refs, the masking matrix | | ๐Ÿ”Œ **[MCP server](docs/MCP.md)** | Glean as native tools in Claude Code, Claude Desktop, Cursor | | ๐Ÿ›๏ธ **[Architecture](docs/ARCHITECTURE.md)** ยท **[REST paths](docs/REST_PATHS.md)** | Module map, request flow, endpoints, how to add a command | -| โœ… **[Testing](docs/TESTING.md)** | Running the 1,102-test suite and what it covers | +| โœ… **[Testing](docs/TESTING.md)** | Running the 1,103-test suite and what it covers | | ๐Ÿ›Ÿ **[Support](SUPPORT.md)** ยท **[Changelog](CHANGELOG.md)** | How to report a bug ยท release history | > [!NOTE] diff --git a/docs/TESTING.md b/docs/TESTING.md index 17f2160..fac4262 100644 --- a/docs/TESTING.md +++ b/docs/TESTING.md @@ -21,13 +21,13 @@ files, and they outrank the `Glean Code.app` launcher in `Cmd+Space`: export PYTHONPYCACHEPREFIX="$HOME/.cache/python" ``` -1,102 tests covering the client and every mock response, commands and dispatch, config, UI, auth, completion, help docs, the mock corpus, indexing-walk, scaffold, the installer, the MCP server, the flow mapper, the Pages site builder, and Glean Personal (text extraction, the index, the content graph, ranking explanations, local mode, and the local MCP tools). +1,103 tests covering the client and every mock response, commands and dispatch, config, UI, auth, completion, help docs, the mock corpus, indexing-walk, scaffold, the installer, the MCP server, the flow mapper, the Pages site builder, and Glean Personal (text extraction, the index, the content graph, ranking explanations, local mode, and the local MCP tools). ## Development notes Notes on the test suite added during development of glean-code-cli. -All 1,102 tests pass. Here's what was added across the development passes: +All 1,103 tests pass. Here's what was added across the development passes: `tests/test_commands_extended.py` (155 new tests) โ€” covers all previously untested commands: diff --git a/tests/test_pages_build.py b/tests/test_pages_build.py index 624a3e4..c023855 100644 --- a/tests/test_pages_build.py +++ b/tests/test_pages_build.py @@ -279,6 +279,10 @@ def test_badge_height_is_pinned(self): # widest one, clamped by the space left, stayed shorter than the rest. self.assertIn("p.badges img { height: 28px; width: auto; flex: 0 0 auto; }", self.css) + def test_tagline_is_set_in_the_mono_face(self): + rule = self.css[self.css.index('[align="center"] .banner + p {'):] + self.assertIn("font-family: var(--mono)", rule[:rule.index("}")]) + def test_image_rows_do_not_stretch_their_items(self): row = self.css[self.css.index("p.imgrow {"):] self.assertIn("align-items: center", row[:row.index("}")])