Skip to content

Add Scenarios and Experiments#8609

Draft
kube wants to merge 5 commits intomainfrom
cf/fe-532-implement-basic-experiment
Draft

Add Scenarios and Experiments#8609
kube wants to merge 5 commits intomainfrom
cf/fe-532-implement-basic-experiment

Conversation

@kube
Copy link
Copy Markdown
Collaborator

@kube kube commented Apr 7, 2026

🌟 What is the purpose of this PR?

🔗 Related links

  • ...

🚫 Blocked by

  • ...

🔍 What does this change?

  • ...

Pre-Merge Checklist 🚀

🚢 Has this modified a publishable library?

This PR:

  • does not modify any publishable blocks or libraries, or modifications do not need publishing
  • modifies an npm-publishable library and I have added a changeset file(s)
  • modifies a Cargo-publishable library and I have amended the version
  • modifies a Cargo-publishable library, but it is not yet ready to publish
  • modifies a block that will need publishing via GitHub action once merged
  • I am unsure / need advice

📜 Does this require a change to the docs?

The changes in this PR:

  • are internal and do not require a docs change
  • are in a state where docs changes are not yet required but will be
  • require changes to docs which are made as part of this PR
  • require changes to docs which are not made in this PR
    • Provide more detail here
  • I am unsure / need advice

🕸️ Does this require a change to the Turbo Graph?

The changes in this PR:

  • do not affect the execution graph
  • affected the execution graph, and the turbo.json's have been updated to reflect this
  • I am unsure / need advice

⚠️ Known issues

🐾 Next steps

🛡 What tests cover this?

❓ How to test this?

  1. Checkout the branch / view the deployment
  2. Try X
  3. Confirm that Y

📹 Demo

kube and others added 5 commits April 7, 2026 10:33
- Add `orientation` prop ("horizontal" | "vertical") with appropriate
  layout styles for each direction
- Add `hideLabel` option to SegmentOption for icon-only segments
- Show tooltips on all items with tooltips, not just disabled ones
- Hide ItemControl element that added unwanted spacing
- Fix content gap: use 1.5 (6px) instead of 4 (16px) between icon/label
- Replace overflow:hidden with whitespace:nowrap to prevent content clipping
- Add stories: WithIconsOnly, VerticalIconOnly, VerticalIconOnlyMedium,
  VerticalWithLabels

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Enable the Simulate option in the mode selector and render a
dedicated SimulateView when simulate mode is active.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Introduce scenarios to the SDCPN data model as an optional,
backwards-compatible field. Add a reusable Drawer component that
shares visual primitives with Dialog via panel-primitives. Build
the Scenarios list view and a Create Scenario drawer with four
collapsible sections: General, Scenario Parameters, Parameters
(net-level overrides), and Initial State.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add an optional boolean to Place that marks it for display in the
Create Scenario drawer's Initial State section by default. Add a
toggle in PlaceProperties and a "Show all" switch in the drawer
to reveal remaining places.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Move the four collapsible form sections into a reusable
ScenarioFormSections component shared by both CreateScenarioDrawer
and the new ViewScenarioDrawer. Add two example scenarios to the
SIR model (Seasonal Flu and High Virulence Outbreak).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 7, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
hash Ready Ready Preview, Comment Apr 7, 2026 8:40am
petrinaut Ready Ready Preview Apr 7, 2026 8:40am
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
hashdotdesign Ignored Ignored Preview Apr 7, 2026 8:40am
hashdotdesign-tokens Ignored Ignored Preview Apr 7, 2026 8:40am

@github-actions github-actions bot added area/libs Relates to first-party libraries/crates/packages (area) type/eng > frontend Owned by the @frontend team area/apps > hash.design Affects the `hash.design` design site (app) labels Apr 7, 2026
Copy link
Copy Markdown
Collaborator Author

kube commented Apr 7, 2026

This stack of pull requests is managed by Graphite. Learn more about stacking.

@kube kube changed the title Add vertical orientation and icon-only mode to SegmentGroup Add Experiments Apr 7, 2026
@kube kube changed the title Add Experiments Add Scenarios and Experiments Apr 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/apps > hash.design Affects the `hash.design` design site (app) area/libs Relates to first-party libraries/crates/packages (area) type/eng > frontend Owned by the @frontend team

Development

Successfully merging this pull request may close these issues.

1 participant