diff --git a/README.md b/README.md index 92a86c7..863d8fb 100644 --- a/README.md +++ b/README.md @@ -126,7 +126,7 @@ here with its scripted equivalent, where one exists. | Feature | What it does | Scripted | | --- | --- | --- | | **📋 Device info** | The connected companion's identity and full radio configuration at a glance. | `meshterm info` | -| **🔧 Device configuration** | View and *stage* changes to every setting (name, radio, behaviour, experimental) for review before applying, with TOML backup/restore. | `meshterm config` / `config set ` | +| **🔧 Device config** | View and *stage* changes to every setting (name, radio, behaviour, experimental) for review before applying, with TOML backup/restore. | `meshterm config` / `config set ` | | **🔨 Device actions** | Immediate operations on the box itself: clock sync, TOML backup/restore, the identity key, reboot, and factory reset — each acting the moment it's confirmed, with destructive ops gated. | `config backup` / `restore` / `reboot` / … | | **📡 Send advert** | Announce this node to the mesh — a zero-hop or flood advertisement, or share this node's contact card as a QR code. | `meshterm config advert` / `config share` | | **🔌 Device discovery** | Enumerate serial *and* Bluetooth LE companions, pick one interactively (or auto-select the only one present), add a network (TCP) companion by host:port, and remember the last good default. A dropped link is detected live and offers to reconnect. | `meshterm devices` | diff --git a/meshterm/tools/about.py b/meshterm/tools/about.py index c445aef..b7947db 100644 --- a/meshterm/tools/about.py +++ b/meshterm/tools/about.py @@ -1,6 +1,6 @@ """The About MeshTerm tools: the three pages under the menu's last section. -*About MeshTerm*, *About the author*, *Support this project* — in that order, which is +*About MeshTerm*, *About the author*, *Support MeshTerm* — in that order, which is the order a stranger asks the questions in: what is this, who made it, how do I help. Each is a page rather than a feature: it reads nothing, transmits nothing, and needs no device, so it opens straight to its screen (see :mod:`meshterm.ui.about`) instead of @@ -118,14 +118,14 @@ class SupportProjectTool(_AboutTool): """What keeps MeshTerm going, and the ways — paid and unpaid — to help it along.""" name = "support" - title = "Support this project" + title = "Support MeshTerm" icon = "💰" help = "What keeps MeshTerm going, and how to help" order = 30 # the ask, and only once the first two have earned it @staticmethod def page() -> "MarkdownDoc": - """The *Support this project* page.""" + """The *Support MeshTerm* page.""" from ..ui.about import support_project return support_project() diff --git a/meshterm/tools/config.py b/meshterm/tools/config.py index 227a068..dfcf587 100644 --- a/meshterm/tools/config.py +++ b/meshterm/tools/config.py @@ -35,7 +35,7 @@ class ConfigTool(Tool): """View and edit the connected device's full configuration.""" name = "config" - title = "Device configuration" + title = "Device config" icon = "🔧" help = "Device settings — identity, radio, tuning, …" category = "This node" diff --git a/meshterm/ui/about.py b/meshterm/ui/about.py index 8dcd26a..f128d68 100644 --- a/meshterm/ui/about.py +++ b/meshterm/ui/about.py @@ -73,7 +73,7 @@ def about_author() -> MarkdownDoc: def support_project() -> MarkdownDoc: - """The *Support this project* page: what keeps it going, and how to chip in. + """The *Support MeshTerm* page: what keeps it going, and how to chip in. Deliberately two-sided — money is one way to help and not the only one, so the page keeps a section for the other kind rather than folding it into a donate link. diff --git a/meshterm/ui/config_editor.py b/meshterm/ui/config_editor.py index 0c8620c..543cfba 100644 --- a/meshterm/ui/config_editor.py +++ b/meshterm/ui/config_editor.py @@ -2,7 +2,7 @@ Two sibling screens live here, deliberately kept distinct: -* **Device configuration** (:func:`edit_config`, behind the ``config`` tool) — one grouped, +* **Device config** (:func:`edit_config`, behind the ``config`` tool) — one grouped, column-aligned list of every setting under its category heading, each row showing its current value, any staged change, and a one-line explanation. Editing a row *stages* the new value (shown as ``current → new``) and nothing touches the radio until *Apply*; @@ -223,7 +223,7 @@ def config_table( # Match the contacts list: a frameless SIMPLE_HEAD table with a left-justified accent title # and muted headers, so the two screens read as one family (see widgets.contacts_table). table = Table( - title="[accent]Device configuration[/accent]", + title="[accent]Device config[/accent]", title_justify="left", box=box.SIMPLE_HEAD, show_edge=False, @@ -383,7 +383,7 @@ def _menu_items( # Back spells out the consequence of leaving (see menus.exit_rows). items.extend(exit_rows(staged, apply_value=_APPLY, back_value=_CANCEL)) - title = "Device configuration" + (f" — {staged} staged" if staged else "") + title = "Device config" + (f" — {staged} staged" if staged else "") return title, items diff --git a/tests/test_about.py b/tests/test_about.py index 7c0acd3..dce51d9 100644 --- a/tests/test_about.py +++ b/tests/test_about.py @@ -86,7 +86,7 @@ def test_unwritten_sections_speak_the_empty_state_voice(builder) -> None: # noq def test_prose_wraps_into_its_own_indented_block() -> None: """A wrapped placeholder hangs under its heading rather than falling to column 0.""" - screen = AboutPage("Support this project", support_project()) + screen = AboutPage("Support MeshTerm", support_project()) screen.note_viewport(40) # Narrow enough to force every placeholder to wrap at least once. lines = plain(screen.render_body(28)).splitlines() diff --git a/tests/test_gallery.py b/tests/test_gallery.py index 020dc90..842a10b 100644 --- a/tests/test_gallery.py +++ b/tests/test_gallery.py @@ -406,7 +406,7 @@ def _about_author(cols: int, rows: int) -> Screen: def _support_project(cols: int, rows: int) -> Screen: - return AboutPage("Support this project", support_project()) + return AboutPage("Support MeshTerm", support_project()) _ENTRIES: list[_Entry] = [