FE-1584: Run the website's optimization demo in the browser - #9517
Draft
kube wants to merge 5 commits into
Draft
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
kube
force-pushed
the
claude/web-optimizer-website-docs
branch
from
September 3, 2026 00:33
71f1d77 to
fd4539b
Compare
kube
force-pushed
the
claude/web-optimizer-website-docs
branch
from
September 3, 2026 02:46
fd4539b to
65273d4
Compare
kube
force-pushed
the
claude/web-optimizer-website-docs
branch
from
September 3, 2026 05:38
65273d4 to
9b0ee6b
Compare
kube
force-pushed
the
claude/web-optimizer-website-docs
branch
from
September 3, 2026 05:40
9b0ee6b to
972ceb5
Compare
kube
force-pushed
the
claude/web-optimizer-website-docs
branch
from
September 3, 2026 22:00
972ceb5 to
4bc5542
Compare
kube
force-pushed
the
claude/web-optimizer-website-docs
branch
from
September 4, 2026 04:54
30a7b14 to
d5d92c1
Compare
kube
force-pushed
the
claude/web-optimizer-website-docs
branch
from
September 4, 2026 11:23
d5d92c1 to
743f21d
Compare
kube
force-pushed
the
claude/web-optimizer-website-docs
branch
from
September 4, 2026 12:05
743f21d to
ff16f83
Compare
kube
force-pushed
the
claude/web-optimizer-website-docs
branch
from
September 4, 2026 12:16
ff16f83 to
9566d47
Compare
kube
force-pushed
the
claude/web-optimizer-website-docs
branch
from
September 4, 2026 12:27
9566d47 to
f146687
Compare
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.
Important
Experimental
Behind the In-browser optimization feature flag.
Summary
Before this PR, the website's optimization demo needed the Python optimizer service running behind a dev proxy, so the main demo never showed an Optimizations tab and the
/optimizationroute was the only way to try a study.This PR provides the in-browser optimizer on the main demo through
PetrinautOptimizationContext, so a visitor who enables the experimental setting runs whole studies in their tab./optimizationstays the Python-service variant for local development, behind the existingVITE_PETRINAUT_OPT_PROVIDER=service. User guide describes the in-browser mode, its drawer, Stop and Continue, parallel steps and the Surface; architecture docs describe the shared study library and the browser runtime.9517_5.mp4
Links
Changes
Website
BrowserOptimizationProviderwraps the main demo withcreateBrowserOptimization()/optimizationstays the service-backed demo behindVITE_PETRINAUT_OPT_PROVIDER=serviceUser guide
Architecture docs
Test coverage
@apps/petrinaut-websiteunit suite,lint:tscandbuildlint:arch-docs:How to test
vaccination_coverageandcontact_reduction, minimize Total cost, 8 steps, 3 runs per step, 2 parallel steps, Run