Skip to content

Commit 75518a5

Browse files
Show screenshots and diagrams in the README (#18)
* docs: add portfolio screenshots and architecture diagrams Terminal captures of formwatch test/monitor against the bundled demo site, the HTML report, and Mermaid diagrams (pipeline + test sequence) with SVG/PNG exports. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * docs: show screenshots and diagrams in the README Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013bgpabuAsqzDudRBcUg1rL --------- Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1 parent f1caa3b commit 75518a5

9 files changed

Lines changed: 298 additions & 0 deletions

‎README.md‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,18 @@ formwatch monitor forms.yml
1414
formwatch report --html
1515
```
1616

17+
![formwatch HTML report](docs/images/html-report.png)
18+
19+
<details>
20+
<summary>More screenshots and diagrams</summary>
21+
22+
![formwatch test in the terminal](docs/images/terminal-test.png)
23+
![formwatch monitor over the demo site](docs/images/terminal-monitor.png)
24+
![Check pipeline](docs/images/diagram-pipeline.svg)
25+
26+
More in [docs/diagrams.md](docs/diagrams.md).
27+
</details>
28+
1729
See [CHANGELOG.md](CHANGELOG.md) for what's shipped so far, and
1830
[docs/adr/0001-formwatch-architecture.md](docs/adr/0001-formwatch-architecture.md)
1931
for why it's built the way it is.

‎docs/diagrams.md‎

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
# formwatch diagrams
2+
3+
Rendered copies live in [`docs/images/`](images/). Background for these
4+
diagrams: [ADR-0001](adr/0001-formwatch-architecture.md) (architecture) and
5+
[ADR-0002](adr/0002-enterprise-hardening.md) (authorized-use hardening).
6+
7+
## Check pipeline
8+
9+
From a form registry to the places results end up.
10+
11+
![formwatch pipeline](images/diagram-pipeline.svg)
12+
13+
```mermaid
14+
flowchart LR
15+
subgraph IN["Input"]
16+
URL["formwatch test &lt;url&gt;"]
17+
YML["forms.yml<br/>(one or more, globs ok)"]
18+
CFG["formwatch.yml<br/>options · proxy · limits"]
19+
end
20+
21+
subgraph RUN["runner (tokio)"]
22+
SHARD["shard + max-concurrent<br/>per-host rate limiter"]
23+
CHROME["headless Chrome<br/>via chromiumoxide (CDP)"]
24+
end
25+
26+
subgraph CHECKS["checks — one CheckResult each (Pass · Warn · Fail)"]
27+
direction TB
28+
C1["Flow · Submission wizard · required docs ·<br/>validation errors · input persistence"]
29+
C2["Accessibility · axe-core injected ·<br/>zoom · link text · duplicate names"]
30+
C3["Mobile · 375px emulation · tap targets ·<br/>autofill hints · input types · bot wall"]
31+
C8["Custom checks (--checks-dir) ·<br/>LLM wording review, opt-in, PII redacted"]
32+
end
33+
34+
subgraph STATE[".formwatch/"]
35+
HIST["history/&lt;form&gt;/&lt;ts&gt;.json<br/>diffs · flakiness"]
36+
BASE["baseline.json<br/>accepted findings"]
37+
AUDIT["audit log (JSONL)"]
38+
end
39+
40+
subgraph OUT["Outputs"]
41+
TERM["terminal table"]
42+
HTML["report --html<br/>with failure screenshots"]
43+
CI["JUnit · SARIF · JSON"]
44+
PROM["serve: /metrics · /api/forms"]
45+
HOOK["webhook<br/>Slack / generic JSON"]
46+
GHA["GitHub Action<br/>code scanning · PR gate"]
47+
end
48+
49+
URL --> SHARD
50+
YML --> SHARD
51+
CFG --> SHARD
52+
SHARD --> CHROME --> CHECKS
53+
CHECKS --> HIST
54+
BASE -. "only new or worse findings fail" .-> CHECKS
55+
CHECKS --> AUDIT
56+
CHECKS --> TERM
57+
HIST --> HTML
58+
HIST --> CI
59+
HIST --> PROM
60+
HIST -- "regression vs previous run" --> HOOK
61+
CI --> GHA
62+
```
63+
64+
## One `formwatch test` run
65+
66+
```mermaid
67+
sequenceDiagram
68+
autonumber
69+
actor U as User / CI
70+
participant F as formwatch
71+
participant C as Chrome (CDP)
72+
participant S as Target form
73+
participant H as .formwatch/history
74+
75+
U->>F: formwatch test https://city.gov/apply
76+
F->>F: load config · check authorized-use flags
77+
F->>C: launch headless (cached build or fetch)
78+
C->>S: navigate
79+
loop each check category
80+
F->>C: evaluate JS / emulate device / dispatch input
81+
C-->>F: DOM facts, axe-core violations
82+
F->>F: CheckResult (Pass · Warn · Fail) + screenshot on non-Pass
83+
end
84+
Note over F,S: Real POST only with --submit --accept-terms
85+
F->>H: write run JSON
86+
F->>H: read previous run → diff / flaky
87+
F-->>U: table · exit code (--fail-on fail|warn)
88+
```

‎docs/images/diagram-pipeline.png‎

66.2 KB
Loading

‎docs/images/diagram-pipeline.svg‎

Lines changed: 99 additions & 0 deletions
Loading
107 KB
Loading

‎docs/images/diagram-test-sequence.svg‎

Lines changed: 99 additions & 0 deletions
Loading

‎docs/images/html-report.png‎

101 KB
Loading

‎docs/images/terminal-monitor.png‎

364 KB
Loading

‎docs/images/terminal-test.png‎

146 KB
Loading

0 commit comments

Comments
 (0)