The community has a page, and the page is its invite
A fourth About page, `Join Discord`, sitting between the author and the ask: what is this, who made it, where is everyone, how do I help. Like its three siblings it is written markdown under assets/pages, reads nothing and transmits nothing, and keeps a CLI face — `meshterm discord`. It is short on purpose. The invite link, and the code for it in a `qr` fence, because on a PicoCalc there is no clipboard and the code is how a link leaves the screen at all. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
155c0b5b21
commit
6fc4e7afc9
6 files changed
+74
-15
No files matched your search
@@ -0,0 +1,9 @@
|
||||
## Join the Discord
|
||||
|
||||
Questions, ideas, bug reports, and mesh talk.
|
||||
|
||||
- *https://discord.gg/AZwe5Uvb3S*
|
||||
|
||||
```qr
|
||||
https://discord.gg/AZwe5Uvb3S
|
||||
```
|
||||
+26
-7
@@ -1,14 +1,15 @@
|
||||
"""The About MeshTerm tools: the three pages under the menu's last section.
|
||||
"""The About MeshTerm tools: the four pages under the menu's last section.
|
||||
|
||||
*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.
|
||||
*About MeshTerm*, *About the author*, *Join Discord*, *Support MeshTerm* — in that
|
||||
order, which is the order a stranger asks the questions in: what is this, who made it,
|
||||
where is everyone, 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
|
||||
prompting for anything first.
|
||||
|
||||
Each also keeps a CLI face — ``meshterm about``, ``meshterm about-author``,
|
||||
``meshterm support`` — printing the same page to the terminal, so the answers are
|
||||
reachable from a shell without launching the full-screen session.
|
||||
``meshterm discord``, ``meshterm support`` — printing the same page to the terminal, so
|
||||
the answers are reachable from a shell without launching the full-screen session.
|
||||
|
||||
The pages themselves are written in markdown under ``meshterm/assets/pages`` (see
|
||||
:mod:`meshterm.ui.about`); nothing here knows what any of them say.
|
||||
@@ -26,7 +27,7 @@ if TYPE_CHECKING:
|
||||
|
||||
|
||||
class _AboutTool(Tool):
|
||||
"""Shared behaviour for the three About pages: open the screen, or print the page.
|
||||
"""Shared behaviour for the four About pages: open the screen, or print the page.
|
||||
|
||||
The pages differ only in their title, icon, and content, so everything else — the
|
||||
menu-only screen open, the printing CLI face, the run row — lives here once. A
|
||||
@@ -113,6 +114,24 @@ class AboutAuthorTool(_AboutTool):
|
||||
return about_author()
|
||||
|
||||
|
||||
@register
|
||||
class JoinDiscordTool(_AboutTool):
|
||||
"""The community server: one invite link, and a QR of it for a phone to read."""
|
||||
|
||||
name = "discord"
|
||||
title = "Join Discord"
|
||||
icon = "🔗"
|
||||
help = "The invite link to the MeshTerm community server"
|
||||
order = 25 # where everyone else is, once you know what this is and who made it
|
||||
|
||||
@staticmethod
|
||||
def page() -> "MarkdownDoc":
|
||||
"""The *Join Discord* page."""
|
||||
from ..ui.about import join_discord
|
||||
|
||||
return join_discord()
|
||||
|
||||
|
||||
@register
|
||||
class SupportProjectTool(_AboutTool):
|
||||
"""What keeps MeshTerm going, and the ways — paid and unpaid — to help it along."""
|
||||
@@ -121,7 +140,7 @@ class SupportProjectTool(_AboutTool):
|
||||
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
|
||||
order = 30 # the ask, and only once the pages before it have earned it
|
||||
|
||||
@staticmethod
|
||||
def page() -> "MarkdownDoc":
|
||||
|
||||
+11
-1
@@ -1,6 +1,6 @@
|
||||
"""The About MeshTerm pages: the app, the person who wrote it, and how to help it along.
|
||||
|
||||
Three read-only pages hung under the main menu's *About MeshTerm* section — the one
|
||||
Four read-only pages hung under the main menu's *About MeshTerm* section — the one
|
||||
section that names a subject rather than a doing, because "what is this thing, and who
|
||||
made it" is a question the other five can't answer. Each opens as a full screen, scrolls
|
||||
if the terminal is short, and is left with Esc; nothing here touches the radio or the
|
||||
@@ -72,6 +72,15 @@ def about_author() -> MarkdownDoc:
|
||||
return _page("author")
|
||||
|
||||
|
||||
def join_discord() -> MarkdownDoc:
|
||||
"""The *Join Discord* page: the invite link, and a QR of it to point a phone at.
|
||||
|
||||
A page rather than a popup because there is nothing to decide — it is a link, and on
|
||||
a headless console the QR *is* how the link gets off the screen.
|
||||
"""
|
||||
return _page("discord")
|
||||
|
||||
|
||||
def support_project() -> MarkdownDoc:
|
||||
"""The *Support MeshTerm* page: what keeps it going, and how to chip in.
|
||||
|
||||
@@ -166,6 +175,7 @@ __all__ = [
|
||||
"AboutPage",
|
||||
"about_author",
|
||||
"about_meshterm",
|
||||
"join_discord",
|
||||
"open_about_page",
|
||||
"support_project",
|
||||
]
|
||||
Reference in new issue
Block a user