summaryrefslogtreecommitdiffstats
path: root/AGENTS.md
diff options
context:
space:
mode:
Diffstat (limited to 'AGENTS.md')
-rw-r--r--AGENTS.md13
1 files changed, 11 insertions, 2 deletions
diff --git a/AGENTS.md b/AGENTS.md
index 3908c2d..c3b555d 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -59,11 +59,20 @@
59 receives `Command` or a finished line through `submit_line`, never a key. 59 receives `Command` or a finished line through `submit_line`, never a key.
60- egui lives in the `gui/` workspace member. Its dependencies must never 60- egui lives in the `gui/` workspace member. Its dependencies must never
61 enter the TUI or server build graph: no GUI crate in the root package's 61 enter the TUI or server build graph: no GUI crate in the root package's
62 `[dependencies]`. 62 `[dependencies]`. The GUI may depend on the core, never the reverse.
63- Build the GUI with `cargo build -p zagan-bet-gui --profile gui-release`;
64 the profile lives at the workspace root because a member's is ignored.
65- Colours, spacing and font sizes come from `gui/src/theme.rs`; screens must
66 not hard-code them. The embedded fonts are Open Sans (OFL) and Hack (MIT);
67 ship their licence files with any change.
68- GUI integration tests live in `gui/tests/`, because the root package cannot
69 depend on the GUI.
63- First contact shows the fingerprint and waits for a decision before sending 70- First contact shows the fingerprint and waits for a decision before sending
64 any credentials. A changed key is a hard stop; forgetting it is explicit. 71 any credentials. A changed key is a hard stop; forgetting it is explicit.
65- The GUI is themed deliberately. Default egui styling is not an acceptable 72- The GUI is themed deliberately. Default egui styling is not an acceptable
66 look; keep a style module and a reference screen. 73 look; keep a style module and a reference screen. The palette is derived
74 from the terminal's ANSI colours, and felt green is only ever the roulette
75 table.
67 76
68## Client TUI 77## Client TUI
69- `render_lines()` and `render()` must agree. If `render()` uses `\r\n`, 78- `render_lines()` and `render()` must agree. If `render()` uses `\r\n`,