Your browser sucks, JavaScript disabled! Gunnar's console needs JavaScript and WebAssembly. Git over SSH on port 2222 does not.

nordisk/holger-ui

docs/OBJECT-PAGE.md

138c: the object page (holger-ui h40-objects)

Holger's H40-LIST 138c, HOLGER-V4-DESIGN.md §12 and holger's docs/review/OBJECTS-PLAN.md. This plan comes before the code. The console before it is tag h40-pre-objects (6efe259).

1. The page

2. All the code it touches

file what
proto/holger-object.proto holger's file, byte for byte
build.rs compiles it (client only)
src/grpc.rs pb_object and the accessor objects()
src/object_view.rs (new, host-tested) ObjectModel (the shown object, the form's values, the last answer; one writer), the traits ObjectFeed (Watch) and ObjectDoor (Get, Act), follow, act, and page: the pure description the page renders
src/pages/object.rs (new, wasm only) mounts the model; the gRPC-web side of both traits
src/pages/mod.rs, src/app.rs, src/util.rs the module, the route, the menu entry
tests/proto_is_holgers.rs the object proto is holger's, byte for byte
tests/every_call_is_a_cli_command.rs the accessor objects; Holger 4's door read from holger-object.proto too

No new crate. The release wasm is measured before and after (116e: 6.9 MB).

3. Tests

4. The old screens it replaces, in order

Each screen moves when its kind is on the server, and goes when the page does all that it did.

  1. /security/artifact (one package's state, evidence and buttons): the held package kind (138a: sign, quarantine, release). The trail waits for the account kind's Get with audit args (138d).
  2. /repo/:name: the repository kind (138a: its fields, its held packages as children; seal, send, collect, remove).
  3. /repositories: the account kind's children (138d).
  4. /mine (my repositories, create, grant): the account kind's acts (138d).
  5. /tokens (mint, list, revoke): the account kind's act mint token and the token kind (138d).
  6. /apps/:name: the application kind, acts build, stop-build, remove (138d); since 138f step 5 it is the application's object page, and /depgraph is gone (its graph is the application's fields). Since step 5b its graph is drawn under the object, too: the drawing holger kept with the latest version (Arch, Metro), one Get with drawing=<view> when the version changes or a tab is pressed (holger's D87).
  7. A followed job (job_follow): the job kind's Get and Watch (138d).
  8. /security and the Overview's cards: the account kind's Get (138d).

They stay: /flow (the viewer is a picture; its sign becomes the held package's act sign in 138f), the Overview's health and server profile, /datasets (capabilities) and /account (the sign-in). The admin, migrate, replicate, search and downstream screens are not in Holger 4.