Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
512d42f
Watches: read an object as a tree of nodes, by pages and passes, and …
ambroise-leclerc Nov 27, 2026
2f77837
Inspector: unfold, refresh and edit the watches in the Watches panel …
ambroise-leclerc Nov 27, 2026
f760902
Tests: read and write the watches in a real browser (#682)
ambroise-leclerc Nov 27, 2026
3e21f75
Life: watch the grid and the generations of the developer stage (#682)
ambroise-leclerc Nov 27, 2026
459e8a9
Document the watches, and what ADR-027 left open about them (#682)
ambroise-leclerc Nov 27, 2026
eeec635
Watches: name the owner in the source's closure, which keeps it alive…
ambroise-leclerc Nov 27, 2026
48c144b
Inspector: write against the value shown when the edition began (#682)
ambroise-leclerc Nov 27, 2026
4597a8f
Watches: refuse a text that is no number for a described numeric fiel…
ambroise-leclerc Nov 27, 2026
4a44cb1
Watches: no edition of a value shown with control pictures; compile w…
ambroise-leclerc Nov 27, 2026
4ad6dec
Merge origin/develop into 682-observateurs (#682)
ambroise-leclerc Nov 27, 2026
c90ef7f
Watches: read nothing again after a mutator, serve a page when a sour…
ambroise-leclerc Nov 27, 2026
034a18d
Inspector: give up an edition that a refresh made stale, keep what is…
ambroise-leclerc Nov 27, 2026
25e0f1c
Watches: name the wide character types that are not writable (#682)
ambroise-leclerc Nov 27, 2026
bfc9b73
Watches: answer the review of #700 (#682)
ambroise-leclerc Nov 27, 2026
ae98e8c
Merge origin/develop into 682-observateurs (#682)
ambroise-leclerc Nov 27, 2026
0551f64
Watches: answer the review of #704 on the watches (#682)
ambroise-leclerc Nov 27, 2026
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 AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ The README introduces WebFront through the Game of Life walkthrough, demonstrati
- `docs/PROJECT_STATUS.md`: current supported paths, validation scope and known limitations; completed work belongs in the changelog and Git history.
- `docs/adr/README.md`: architecture decision index, Git history, tradeoffs and implementation rules; read the relevant ADRs before changing their contracts.
- `docs/DEVELOPING_WITH_AGENTS.md`: what an agent developing a consuming application reads first (the model, the loop, each `wf` command in JSON and MCP); the README section, `wf help agents`, the starters' `AGENTS.md` and the `AgentGuidance` CTest case keep to it.
- `docs/WATCHES.md`: the watches an application declares for the inspectors with `app.watch` (sources and their lock or executor, kinds rendered, writes, destruction of the handle, bounds); `include/webfront/Watches.hpp`, `WatchMemory.hpp` and `WatchValues.hpp` implement ADR-027 sections 3 to 6.
- `docs/DEVELOPER_ENVIRONMENT.md`: the reference of the developer environment (`wf` commands, manifest and lock, TypeScript and `wf check`, tests, limits, distribution); `docs/EMBEDDED_ASSETS.md`: the core's embedded resources and their regeneration.

The historical `webfront/` prototype and the former top-level `webtest/` are gone: use `test/unit/` for current C++ tests and `test/web/` for browser tests. Do not revive legacy code without a specific issue and regression coverage.
Expand Down
5 changes: 5 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ 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).
- Explore an object or a container of the application as a tree in the **Watches** panel, refreshed while you use the interface: scalars, strings, containers, described and formattable types, by pages, with a chosen period and a pause, the changed values highlighted (#682, ADR-027, `docs/WATCHES.md`).
- Choose how a watch reaches its object: a visitor called under your lock (`Visit<const T>`), a reference on the executor that owns the object, a copy, or a source that owns its state (`app.watch(name, std::shared_ptr<State>, source)`), whose handle can be destroyed under its lock (#682, ADR-027, `docs/WATCHES.md`).
- Let a very large container page itself for the inspectors with `inspect::PagedSource`, whose optional keys follow its elements when it changes (#682, ADR-027, `docs/WATCHES.md`).
- Edit a value in place from the inspector when the application makes its watch writable (`Visit<T>`, an optional mutator): the write is applied only if the target and its ancestors still show what was displayed, and a refusal says why (#682, ADR-027, `docs/WATCHES.md`).
- 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`).
Expand All @@ -33,6 +37,7 @@ these entries stays in the GitHub releases and the Git history.
- The test helpers, `webfront_add_jasmine_test` included, export the real `XDG_DATA_HOME` and `XDG_CACHE_HOME` as `WEBFRONT_TEST_REAL_XDG_DATA_HOME` and `WEBFRONT_TEST_REAL_XDG_CACHE_HOME`, so an application under test can keep the throwaway WebKitGTK profile away from the programs it starts ([#664](https://github.com/ambroise-leclerc/WebFront/issues/664), `docs/CONSUMER_TESTING.md`).

### Changed
- Destroying the handle of a watch (`inspect::Watch`) waits for an operation of the inspectors in progress on another thread: destroy it outside every lock its source takes, or declare the watch with the state it owns (#682, ADR-027, `docs/WATCHES.md`).
- The inspectors show where each `cppFunction` was registered; existing calls of `cppFunction` and `Space::cppFunction` compile unchanged (#681, ADR-027).
- `WebFront.js` opens its WebSocket on the directory of the page (`ws://host/dir/` instead of `ws://host`), which tells the server a page's space (#671) and lets an application be deployed under a sub-path of a site (#672).
- A request whose path holds a control character (`%00`...) is refused with 400, as a `..` already was, instead of being looked up as a file (#672).
Expand Down
5 changes: 4 additions & 1 deletion docs/DEVELOPER_ENVIRONMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,10 @@ environment's `mount`, not to the embedded bootstrap page):
The **Watches** panel lists the application's watches (`app.watch(name, source)`, declared after `bootstrap()`): their
name, the kind of their root and where they were declared. It asks C++ for the revision of their table every 250 ms
(Pause stops it), reads the list again when it changed, and adds or removes the watches that appeared or disappeared.
Their contents come with the next versions of the environment.
The arrow beside a watch unfolds its content as a tree: scalars, strings, containers, described and formattable types,
read by pages of 200 children and refreshed at the chosen period, the values that changed highlighted. A value the
application made writable is edited in place (Enter writes, Escape cancels); a value that is cut offers its full text.
[Watches](WATCHES.md) tells how to declare them, under which lock or on which thread they are read, and their bounds.

The **Functions** panel lists what the application registered with `cppFunction`, the functions of its spaces included
(with the path of their space): the name, the signature as TypeScript declares it (`(a: number, b: string) =>
Expand Down
Loading
Loading