Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ these entries stays in the GitHub releases and the Git history.
- See in the **Functions** panel of the inspectors what the application registered: each `cppFunction` with its signature written in TypeScript, the file and line of its registration, whether it receives the calling `UI`, its calls, failures, last error and durations, then the JavaScript functions that C++ calls; sort, search, and choose the refresh period (#681, ADR-027, `docs/DEVELOPER_ENVIRONMENT.md`).
- See in the **Browsers and tasks** panel the connected browsers (embedded view or external browser, local client, pending writes and calls), the running tasks of the server and the application's terminal commands (#681, ADR-027).
- Read the same registry from C++ with `app.registeredFunctions()` (#681, ADR-027).
- Browse in the **Packages** panel of the inspectors the locked packages as a tree under the roots of the manifest, with the requested ranges and the `peer`, `deduped` and multiple-version marks; search a package by name and open its detail with its `wf why` chains; the tree follows `wf install` and `wf restore` (#683, ADR-027, `docs/DEVELOPER_ENVIRONMENT.md`).
- Declare what the inspectors show with `app.watch(name, source)`, whose handle removes the watch when it is destroyed; the Watches panel follows their registrations and removals. Outside the developer environment and in a distribution build, `watch` registers nothing (#680, ADR-027).
- Embed a plain interface directory (HTML, JavaScript, CSS, vendored files) from CMake with `webfront_embed_directory(app ui CLASS AppUI)`, without the developer environment: the build regenerates the provider when a file changes, and `fs::DocumentRootFirstFSWith<AppUI>` lets a development root serve in front of it (#675, `docs/EMBEDDED_ASSETS.md`).
- Set from the configuration `Referrer-Policy` (`contentPolicy.referrerPolicy`: `"no-referrer"` forbids explicitly that a capability in your URLs leaves in `Referer`), `X-Content-Type-Options: nosniff` (`noSniff`) and the `Cache-Control` of HTML pages (`htmlCacheControl`), on files, route and generated replies unless a reply sets its own (#674, `docs/CONTENT_POLICY.md`).
Expand Down
18 changes: 16 additions & 2 deletions docs/DEVELOPER_ENVIRONMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -492,8 +492,22 @@ environment's `mount`, not to the embedded bootstrap page):
whether it is a local client (`ui.isLocalClient()`), its state, the path its bridge was opened from and its space, the
frames not yet written to it, the typed calls of C++ whose result it has not returned, and its calls that a C++
callback has not answered yet. It also gives the number of running tasks of the server's scope (connections, bridge
loops and the application's coroutines) and the application's terminal commands (`webfront::Commands`). The other
panels come with the next versions of the environment.
loops and the application's coroutines) and the application's terminal commands (`webfront::Commands`).

The **Packages** panel shows the locked packages as a tree, what `wf list --tree`, `wf why` and `wf info` say as text:
the roots of the manifest with the range each was requested with, then under each package its dependencies with the
range that asks for them. A `peer` or `optional` dependency is marked; a package that comes again is marked `deduped`
and is not opened again (the Right arrow goes from it to the place where its dependencies are listed); a package
locked in several versions shows how many. The tree is walked with the arrow keys, Home and End; Left and Right fold
and unfold. The search field lists the packages whose name holds what is typed, every version of them. A click on a
package (or Enter) shows its detail: whether it is a root, its description, license, integrity, directory and files,
its dependencies and dependents, its `wf exec` entries, and the chains of `wf why` from the roots, in which each
package is a link to its own detail. The panel reads the manifest and the lock through the project reads of the
environment (`webfront.developer.read`), in the manifest directory the application chose; it uses no network and writes
nothing. Every second it asks whether either file changed and reads them again when one did, so the tree follows
`wf install` and `wf restore`; it warns when the lock no longer matches the manifest. The names and texts of packages
are not trusted: they are shown as text, never as HTML, with their control characters made visible. The Bridge panel
comes with the next versions of the environment.

The tab is a button (`aria-expanded`, `aria-haspopup="menu"`, 44 px target), its menu a `menu` of `menuitem`s of 44 px,
and the window a non-modal dialog. The interface stays in the preview
Expand Down
7 changes: 4 additions & 3 deletions js/developer/environment/bundles.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,14 @@
"js/developer/environment/workspace.mjs": "e82ec4df21ffb2b112550e0212504aba05af4f924b5645c0712f40f8466257fc",
"js/developer/environment/menu.mjs": "b4fe4c38e6b8cc6c1101df842e282ab85e6c6e029b2225738b9d27bc5efbc88d",
"js/developer/environment/inspector-host.mjs": "bffcef61b8a5778f53adfea5096c5d5fa277868bbaa39e60142a3493210076fb",
"js/developer/environment/inspector.mjs": "47d631dbc0cd3e8a4ef3c2e4883b303804694f790e87dd06799257ec3828d1a8",
"js/developer/environment/inspector.mjs": "e22d5731e7e92b821ccdb15badc2fa4aebba653763239ea813ea904719aca33a",
"js/developer/environment/inspector-packages.mjs": "1c3f6350780b841784f83bc20ead2945157c48a1f136c47e3a7a90d89bea8522",
"js/developer/environment/inspector-registry.mjs": "431153f7d7eb562262361f2f8eb60d8690f42cdfbf5ed9586270270d9e2b6038",
"js/developer/environment/inspector.html": "66bfb80d6bd29bc9aabf71e0dd9b163dfcd1f1c77d1a41818645af1a4f9b8616",
"js/developer/environment/tarball.mjs": "1c1e1aea067910e1fec74e85b4bf9fbefed9b38187a04d8d2764f0b9a96fca39",
"js/developer/environment/commands.mjs": "a759f48584b78aed79e9965fd202d2ec108a6948ef6f1b8d689fed87a458b265",
"js/developer/environment/files.mjs": "199336f7f3d23f6370da352993bf4686738b1f394b79aa9883769d19824540e0",
"js/developer/environment/dependencies.mjs": "4857eb7dfb9f099266c27021ee07a8d9d9a529a8344f3e134d22d7f8b7166e2e",
"js/developer/environment/dependencies.mjs": "7f536e30584b10822dea6b5642fd584e5935c58f90a271ee70a03d3023e9dd34",
"js/developer/environment/compiler.mjs": "0158931132aa9b43b7bbbd01de6fa4fc34fce8c65515d593dd494930f7a1910f",
"js/developer/environment/bundler.mjs": "48658151aae4fa5ad54c9fa3386ef4095b793de0f3ad242f95e8e5de0cd0ce4d",
"js/developer/environment/entry.mjs": "b2b942443e3c74ae2c008392ba244d9b7e91db70ba1b4ebbe1357c455ebf51bb",
Expand All @@ -54,7 +55,7 @@
"js/developer/tools/archive.mjs": "da63bb9d796ddfd24ed945b15c53f66a0400eb177886fd4f1c8fd10cafb5a91b",
"js/developer/tools/distribution.mjs": "43dfdccc912693db46fd095fd78ae79325abab672d99f89fd569914ef3499cad",
"js/developer/scripts/build.mjs": "a6b64a8a75c9a30118e7f5c843a0feee89ee1372ccd19b7e468c816b23fd1367",
"js/developer/webfront.project.json": "1c6ac7dbb4282692f3f23d3e598d00735dfc99b72d7f1072f7438d29beceb7c1",
"js/developer/webfront.project.json": "2464bfd479cc8cb929dd51b7efa6363aed106dbadfd4a6bd7ef6a3f8287a69ae",
"js/core/bootstrap/bootstrap.bundle.mjs": "18a0567efa928fddbaa3f8d16a4d1e8440f21709ff2e3058d10ba406b2e9b66d",
"js/developer/environment/packages.bundle.mjs": "5598a590a9e859a4128075387a6c32963b2246ca120c2d7775851c780ad437f2",
"include/webfront/system/DeveloperReleaseData.hpp": "8b3c8800211c13b1984e794de6110d56238e9fb1cfb16afbc2868d57eb91c70e"
Expand Down
Loading
Loading