Skip to content

feat(studio): add HumidiFi state scenarios - #17

Open
92Infinitus92 wants to merge 2 commits into
feat/tessera-supportfrom
wip/humidifi-ui-rebuild
Open

92Infinitus92 wants to merge 2 commits into
feat/tessera-supportfrom
wip/humidifi-ui-rebuild

Conversation

@92Infinitus92

@92Infinitus92 92Infinitus92 commented Sep 14, 2026

Copy link
Copy Markdown
Collaborator

HumidiFi joins the shared PMM fair-value dialog with live market discovery and explicit market selection. Adds the stale-quote example, protocol icon and editor support, with coverage for protocol switching, catalog refresh and MCP validation.

Stacked on #11 (feat/tessera-support), which provides the shared PMM dialog and API helpers. Requires LimeChain/surfpool#16 for the HumidiFi tools and templates.

Validation:

  • Full Studio Vitest: 26 files, 358 tests passed.
  • tsc --noEmit, lint and production build: exit 0; existing lint/build warnings remain.
  • Prettier: all changed TypeScript files and the SVG passed.

RetriggerConfidence Score: 5/5

The PR appears safe to merge, with no actionable new defect established by the changes since the previous review.

Summary

Adds HumidiFi support to Studio’s PMM scenario workflow.

  • Adds live HumidiFi market discovery and explicit market selection.
  • Routes fair-value scenario creation through protocol-specific adapters.
  • Adds HumidiFi stale-quote and liquidity-stress examples, protocol registration, and icon assets.
  • Disambiguates markets sharing the same pair label and expands test coverage for discovery, switching, validation, and scenario creation.
Diagram
%%{init: {'theme': 'neutral'}}%%
flowchart LR
    U[User opens PMM dialog] --> P{Select protocol}
    P -->|Tessera| T[list_tessera_markets]
    P -->|HumidiFi| H[list_humidifi_markets]
    T --> M[Select or enter market]
    H --> M
    M --> V[Validate market and price]
    V -->|Tessera| CT[create_tessera_fair_value_scenario]
    V -->|HumidiFi| CH[create_humidifi_fair_value_scenario]
    CT --> S[Open created scenario]
    CH --> S
Loading

Reviews (3) · Last reviewed commit: "fix(studio): name the HumidiFi market a ..."

@github-actions

Copy link
Copy Markdown

No concrete bugs found in the changes introduced by 7b32689.

One improvement: add a test for rapid Tessera → HumidiFi switching where the Tessera market request resolves last. Verify that its stale response cannot overwrite HumidiFi’s catalog or selected market.

Tests weren’t run because dependencies aren’t installed. The backend contract with LimeChain/surfpool#16 remains unverified.

@92Infinitus92
92Infinitus92 force-pushed the wip/humidifi-ui-rebuild branch from 7b32689 to 2187d13 Compare September 15, 2026 05:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant