Repository navigation
feat: web UI for flows, runs and demos - #4
Merged
Merged
Conversation
Member
Author
|
A security and correctness review found 10 issues. Dispositions:
Not changed:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
lest uiserves a web UI for flows, runs and demos from the binary.docs/ui.mddescribes the screens;docs/design.mdexplains why the UI is server-first.crates/lest-server):?token=or as a bearer token, and a loopbackHostheader, which blocks DNS rebinding. Responses carry a strict CSP.rust-embed.ui/): React and TypeScript, with no runtime dependencies beyond React.runIdin a pure reducer that ignores duplicate and stale events and refetches on a gap. A view opened mid-run hydrates fromGET /api/runs/:idand continues from the stream./api/runsnow includestartedAtandenvironment.make lintrunstsc,make testruns vitest, andmake buildbuilds the UI before the binary so it is embedded.Evidence
make checkpasses: Rust lint and tests, UI typecheck, 28 vitest tests (reducer fixtures are real captured event streams, including a cancelled run), and the UI and release builds. Screenshots come fromnpm run screenshotsagainstlest uion the examples project, at 1440x900 @2x.Flows
A run in progress, with the live browser showing the consent popup
A failed run, with the headline, copy actions and the screenshot at failure, in light and dark
A passed run with step details
Runs, demo page and settings