You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 661e9d7
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/specs/web-ui.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@
9
9
| Parity, never more | The page never gets behaviour the CLI lacks. When the page needs a value no command prints, the CLI gains it first, in the same or an earlier change ([cli](cli.md)). Editing aids belong to the editor, not to practice: [code intelligence](#code-intelligence-sessions), like highlighting, grades nothing, records nothing and writes no file, and terminal users get the same from the language servers their IDE runs on the workspace ([ADR 0018](../decisions/0018-editor-code-intelligence.md)); the CLI's part is installing and checking the servers ([`cstudy doctor`](cli.md#cstudy-doctor)) |
10
10
| One judge | Runs are child `cstudy` processes; the page never runs user code itself and never judges an output |
11
11
| Same documents | An endpoint that has a matching `--json` document returns it unchanged, so one JSON Schema serves both |
12
-
| No state of its own | Files live in the workspace and progress in `progress.db`; the terminal, the IDE and the page always agree. The only page-owned file is the preferences file ([Preferences](#preferences)) |
12
+
| No state of its own | Files live in the workspace and progress in `progress.db`; the terminal, the IDE and the page always agree. The only page-owned file is the preferences file ([Preferences](#preferences)); the user's [config file](cli.md#configuration) it writes only when Settings is asked to, keeping the rest of the file|
13
13
| Local | The server binds `127.0.0.1` only and makes no network request; the page loads nothing from anywhere but the server |
Copy file name to clipboardExpand all lines: tools/web-ui/README.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,21 +57,21 @@ Sizes as of the current lockfile, gzip at level 9; a row fetched on first use co
57
57
58
58
| Load | Raw KB | Gzip KB |
59
59
|------|-------:|--------:|
60
-
| The page, before any file opens: `app.js`, the chunks it imports, and `app.css`| 80.8|29.0|
61
-
| Every JavaScript and CSS file but Vim and the code-intelligence chunk |963.6|347.4|
62
-
| The editor before any language: the page, the editor and the core | 487.7| 165.4|
63
-
| A Python file | 558.1| 192.3|
64
-
| A TypeScript or JavaScript file, the largest grammar | 596.6| 205.9|
60
+
| The page, before any file opens: `app.js`, the chunks it imports, and `app.css`| 80.7|28.7|
61
+
| Every JavaScript and CSS file but Vim and the code-intelligence chunk |967.9|348.9|
62
+
| The editor before any language: the page, the editor and the core | 487.5| 165.1|
63
+
| A Python file | 558.0| 192.1|
64
+
| A TypeScript or JavaScript file, the largest grammar | 596.5| 205.6|
65
65
| Vim keybindings, added on top | 120.5 | 38.4 |
66
-
| The link between the editors and the sessions, fetched when `code_intelligence` is on (it counts in the whole bundle) | 8.7| 3.9 |
66
+
| The link between the editors and the sessions, fetched when `code_intelligence` is on (it counts in the whole bundle) | 8.6| 3.9 |
67
67
| The code-intelligence chunk, fetched when a file of a language with an installed server opens (its own budget: 64 KB raw, 24 KB gzip; `@codemirror/lsp-client` with `marked` aliased to a stand-in) | 35.4 | 12.9 |
68
68
| The Problem view, fetched when it first opens | 4.3 | 1.8 |
69
-
| The Mock and Progress views together, each fetched when it first opens (Progress with the dialogs, for Start and Import) | 35.3 | 14.2|
70
-
| The Health and Settings views together, each fetched when it first opens (with the chunks they share) |14.4|6.9 |
69
+
| The Mock and Progress views together, each fetched when it first opens (Progress with the dialogs, for Start and Import) | 35.3 | 14.3|
70
+
| The Health and Settings views together, each fetched when it first opens (with the chunks they share) |19.2|8.9 |
71
71
| The run session, fetched when a run first starts or shows: streaming and drawing it, Cancel, diagnostics | 22.4 | 8.3 |
72
72
| The Run options form, fetched when it first opens | 4.5 | 2.1 |
73
-
| The job panel for Bench, fetched when Bench first starts (Health fetches it with its view) | 5.1| 2.4 |
74
-
| Every dialog, fetched when a control first opens one: sheets, confirmations, questions that ask for names, the Start, Done and Solution dialogs, the code of a past attempt (the editor comes once a file shows), and the file tree's menu and actions | 23.4 | 9.0|
73
+
| The job panel for Bench, fetched when Bench first starts (Health fetches it with its view) | 5.0| 2.4 |
74
+
| Every dialog, fetched when a control first opens one: sheets, confirmations, questions that ask for names, the Start, Done and Solution dialogs, the code of a past attempt (the editor comes once a file shows), and the file tree's menu and actions | 23.4 | 9.1|
75
75
76
76
The budget (NFR-12) is 1 MB raw and 350 KB gzip for the whole bundle without Vim and the code-intelligence chunk, the page's code included, and 600 KB raw loaded before a file of one language is editable. What a view or a control needs only when it is used is a chunk of its own (the rows above), so the page, the largest grammar and the editor stay under the 600 KB; `cli/tests/entrypoints/web/test_bundle_budget.py` holds the committed files to both limits. Markdown uses `markdownLanguage` instead of `markdown()`, which would add the HTML, CSS and JavaScript grammars for embedded HTML and take a Markdown file to 619 KB.
0 commit comments