Repository navigation
docs: replace ASCII architecture diagram with vector SVG - #12
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 67fa19091b
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| <path d="M212.9 117.3 Q328.4 116.3 446.8 117.1 M446.2 117.9 Q444.8 150.9 445.0 182.4 M444.9 181.8 Q328.9 181.1 215.3 182.8 M213.5 183.1 Q212.9 149.6 215.0 118.4" fill="none" stroke="#2f2c28" stroke-width="1.6" stroke-linecap="round"/> | ||
| <path d="M212.9 119.4 Q328.9 117.1 446.8 117.5 M445.4 116.8 Q444.4 150.3 445.3 182.3 M445.6 181.9 Q331.8 181.9 214.2 183.0 M213.1 181.0 Q215.6 151.2 213.3 117.1" fill="none" stroke="#2f2c28" stroke-width="1.1" stroke-linecap="round" opacity="0.45"/> | ||
| <text x="330" y="148" text-anchor="middle" font-family="-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif" font-size="17" font-weight="500" fill="#2f2c28">FastAPI</text> | ||
| <text x="330" y="168" text-anchor="middle" font-family="-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif" font-size="13" fill="#615c54">REST + SSE stream</text> |
There was a problem hiding this comment.
Restore WebSocket to the transport label
The new diagram labels FastAPI as supporting only REST and SSE, but the reviewed backend still exposes /ws/chat/{session_id} in backend/server.py:1377, and docs/ARCHITECTURE.md:15 explicitly describes WebSocket responses as a supported request path. Because this SVG replaces the previous diagram that included WebSocket, readers now receive an incomplete view of the available transports; include WebSocket in this label or represent it separately.
Useful? React with 👍 / 👎.
| <text x="530" y="252" text-anchor="middle" font-family="-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif" font-size="17" font-weight="500" fill="#2f2c28">SQLite</text> | ||
| <text x="530" y="272" text-anchor="middle" font-family="-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif" font-size="13" fill="#615c54">History, journals, profile</text> |
There was a problem hiding this comment.
Show browser localStorage in the persistence topology
The SVG presents SQLite as the only persistence component even though the active frontend stores the session ID and substantial interface state in browser localStorage (for example, frontend/js/api.js:3-6 and frontend/js/cbt_tools.js:1926-1932). This also drops a component explicitly shown in the diagram being replaced and can mislead readers into thinking all user state follows the illustrated server-to-SQLite path; add browser-local storage and its connection to the UI.
Useful? React with 👍 / 👎.
| └──────── SQLite + browser localStorage | ||
| ``` | ||
| <p align="center"> | ||
| <img src="assets/architecture.svg" alt="CBT Assistant architecture" width="680"> |
There was a problem hiding this comment.
Provide an accessible text equivalent for the diagram
For screen-reader users or clients that cannot load SVGs, this replaces the readable ASCII flow with only the generic alternative text “CBT Assistant architecture.” Neither that phrase nor the adjacent README paragraph conveys the diagram's nodes, directions, tool loop, or response path, and the same generic alt is used in docs/ARCHITECTURE.md; provide a nearby textual description or a meaningful long alternative rather than removing the accessible representation.
Useful? React with 👍 / 👎.
Add vector SVG diagram for application architecture and update README and ARCHITECTURE documentation.