forge
Explore
Log in

Don't you dare go Hollow

The crate list and file paths follow the forge-web split, and the audit route scan reads every crate

Browse files at this commit

490f099d9aec96c3792e477c4b4cbe9d92458249Ahmet Kaan GümüşParent: bdda6d8
All checks have passed
Show checks
  • docs
    • the crate list and file paths follow the forge-web split, and the audit route scan reads every crate
Show full message
📝 docs: the crate list and file paths follow the forge-web split, and the audit route scan reads every crate
docs/architecture.mdmodified+8 -4
@@ -46,8 +46,12 @@ project_git/
4646 forge-core/ domain types, store, migrations, config, secret key, authz, names, passwords, tokens, sessions
4747 forge-git/ safe git command builder, process spawn and streaming, pkt-line, repo init, managed gitconfig, version check
4848 forge-ssh/ russh server: pubkey auth, exec allow-list and parse, GIT_PROTOCOL env, piping, timeouts
49- forge-web/ crate, builds the `forge` binary: Topcoat UI, auth, smart-HTTP routes, internal hook API, `hook` subcommand, admin CLI
50- forge-web-base/ forge-web modules with no routes and no dependency on pages: i18n, render, theme and accents, templates, blobs
49+ forge-web/ builds the `forge` binary: boot, admin CLI, and the route tests that span page crates
50+ forge-web-base/ modules with no routes: i18n, render, theme and accents, templates, blobs
51+ forge-web-app/ everything below the pages: state, auth, live, views, CI, mail, backup, replication, git smart-HTTP, LFS, OCI, the HTTP APIs, test_support; its build.rs compiles the stylesheet
52+ forge-web-pages/ pages the others build on: repo, tree, issues, pulls core, CI runs, wiki, releases, repo settings
53+ forge-web-account/ account, admin, org and profile pages (on forge-web-pages)
54+ forge-web-repo/ code, commits, pull views, discussions, issue view pages (on forge-web-pages)
5155 forge-e2e/ end-to-end tests. They run `FORGE_BIN` when it is set, so CI tests the binary it ships, and otherwise build `forge`
5256 ```
5357
@@ -239,7 +243,7 @@ Raw and user-uploaded files are served from `user_content_base_url` (for example
239243
240244 ### 5.6 Response compression
241245
242-Topcoat's builder-wide compression is off on the public router, so it cannot compress git responses by mistake. `crates/forge-web/src/compression.rs` (`ResponseCompression`) runs instead. It gzips or brotlis a response only when all of these hold:
246+Topcoat's builder-wide compression is off on the public router, so it cannot compress git responses by mistake. `crates/forge-web-base/src/compression.rs` (`ResponseCompression`) runs instead. It gzips or brotlis a response only when all of these hold:
243247
244248 - the content type is text (HTML, CSS, plain text, JSON, SVG, JavaScript);
245249 - the body size is known and between 32 bytes and 4 MiB (streamed bodies are never compressed);
@@ -250,7 +254,7 @@ Content types outside the list (`application/x-git-*`, `application/octet-stream
250254
251255 ### 5.7 Live pages
252256
253-Pages update without a reload. A write that changes what a page shows calls `LiveHub::bump` on a topic (`crates/forge-web/src/live.rs`). The page's stream sends one `changed` event, and `nav.js` re-fetches the page in place. The event carries no data and nothing polls. Each stream re-reads a short fingerprint of its page on a wake and sends only when it differs.
257+Pages update without a reload. A write that changes what a page shows calls `LiveHub::bump` on a topic (`crates/forge-web-app/src/live.rs`). The page's stream sends one `changed` event, and `nav.js` re-fetches the page in place. The event carries no data and nothing polls. Each stream re-reads a short fingerprint of its page on a wake and sends only when it differs.
254258
255259 | Page | Stream | Topics it follows |
256260 | --- | --- | --- |
docs/ui-language.mdmodified+1 -1
@@ -1,7 +1,7 @@
11 # Forge page language
22
33 Every page follows this, with no exceptions. The look lives in one place, `style/_one.scss`, the parts
4-in `crates/forge-web/src/views/parts.rs`. A page writes structure and classes only: no page has its
4+in `crates/forge-web-app/src/views/parts.rs`. A page writes structure and classes only: no page has its
55 own button, field, menu, tab, tag or box. If something does not fit, change the part, never the page.
66
77 `scripts/audit/measure.ts` reads the computed look of every control on every page and reports anything
scripts/audit/run.shmodified+1 -1
@@ -102,5 +102,5 @@ fi
102102
103103 echo "[run] screenshots"
104104 AUDIT_PROXY_PORT="${AUDIT_PROXY_PORT:-$((PORT + 10))}" \
105- python3 "$ROOT/scripts/audit/shoot.py" "http://127.0.0.1:$PORT" "$OUT" "$ROOT/crates/forge-web/src" 2>&1 | tee "$OUT/shoot.log"
105+ python3 "$ROOT/scripts/audit/shoot.py" "http://127.0.0.1:$PORT" "$OUT" "$ROOT/crates" 2>&1 | tee "$OUT/shoot.log"
106106 echo "[run] done: $OUT/index.md"
style/fonts/README.mdmodified+1 -1
@@ -1,6 +1,6 @@
11 # Bundled fonts
22
3-All three families are embedded in the forge binary (`include_bytes!` in `crates/forge-web/src/pages/assets.rs`) and served from `/assets/fonts/`. All are licensed under the SIL Open Font License 1.1 (OFL-1.1); the license text ships alongside each font.
3+All three families are embedded in the forge binary (`include_bytes!` in `crates/forge-web-account/src/pages/assets.rs`) and served from `/assets/fonts/`. All are licensed under the SIL Open Font License 1.1 (OFL-1.1); the license text ships alongside each font.
44
55 | File | Served at | Size (bytes) | SHA-256 | Source | License |
66 |---|---|---|---|---|---|
style/main.scssmodified+2 -2
@@ -2,7 +2,7 @@
22 // No JavaScript; everything here is layout and presentation.
33
44 // Fonts are bundled, not fetched from a CDN (the CSP is 'self' only). Files live in
5-// style/fonts/ and are served by crates/forge-web/src/pages/assets.rs under /assets/fonts/.
5+// style/fonts/ and are served by crates/forge-web-account/src/pages/assets.rs under /assets/fonts/.
66 // Figtree (SIL OFL 1.1) is split into latin and latin-ext subsets, so browsers only fetch
77 // the glyphs a page uses; the unicode-range values come from @fontsource-variable/figtree.
88 @font-face {
@@ -4669,7 +4669,7 @@ html.js form.runner-load[data-dirty-form][data-dirty] .runner-save {
46694669
46704670 // CI: runs list and run detail. The split view has the runs on the left and the selected run on the
46714671 // right. Bars and the timeline are SVG, so their sizes are in viewBox units and need no inline style.
4672-// The timeline sizes match the constants in crates/forge-web/src/pages/ci_runs.rs.
4672+// The timeline sizes match the constants in crates/forge-web-pages/src/pages/ci_runs.rs.
46734673 .ci-split {
46744674 display: grid;
46754675 grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);