Skip to content

UI improves | Feedback from BD team - #5

Open
gustavobftorres wants to merge 7 commits into
devfrom
@gustavo/test/amplifyworld
Open

UI improves | Feedback from BD team#5
gustavobftorres wants to merge 7 commits into
devfrom
@gustavo/test/amplifyworld

Conversation

@gustavobftorres

Copy link
Copy Markdown
Collaborator

UI changes made (LBP Simulator)

1) Sales tab: swaps counter in the green info bar

What changed

  • When the Sales tab is selected, a small badge appears on the right side of the green info bar showing Swaps: <count>.

What it means

  • This count is the number of swap rows currently recorded in the Sales table (community per-step rows + user actions). It is not an “estimated swaps” metric.

Where

  • components/lbp-simulator/simulator/SimulatorMain.tsx

2) Green info bar: text spacing + alignment

What changed

  • The “Dynamic price:” label and the following sentence now have reliable spacing.
  • Layout uses flex + gap so spacing does not depend on JSX whitespace.

Where

  • components/lbp-simulator/simulator/SimulatorMain.tsx

3) Weights: numeric input next to sliders

What changed

  • In SimulatorConfig → Column 3 → Weights, both Start and End token weight sliders now have a numeric input on the right.
  • Users can type a weight directly instead of dragging the slider.

Behavior

  • Values are clamped to 1..99 and rounded to integers (same as the slider step).

Where

  • components/lbp-simulator/simulator/SimulatorConfig.tsx

4) Buy pressure: single “End cumulative buy (target)” input

Problem

  • Previously the user had to understand and mentally multiply:
    • magnitudeBase (10k / 100k / 1M) × multiplier
    • plus the preset end-scale effect (bearish uses a lower total by default)

What changed

  • The UI now exposes a single input: End cumulative buy (target).
  • Under the hood, the simulator still uses magnitudeBase + multiplier, but the UI auto-picks a sensible base and computes a multiplier.
  • The old controls are still available under an Advanced section.

Presets

  • Switching Bullish ↔ Bearish preserves the typed target end value and adjusts internal base/multiplier to match.

Where

  • components/lbp-simulator/simulator/DemandPressureConfig.tsx

5) Buy pressure target input: formatted numbers (commas)

What changed

  • The End cumulative buy (target) input now formats with commas (e.g. 100,000) on blur / when not actively editing, similar to the Total Supply input UX.

Where

  • components/lbp-simulator/simulator/DemandPressureConfig.tsx

6) Token logos: USDC/USDT inline SVG (no remote fetch)

What changed

  • USDC and USDT icons are now rendered as inline SVGs (similar to the ETH logo approach), so they don’t depend on external image hosts or next/image remote SVG restrictions.

Where

  • components/ui/TokenLogo.tsx

@vercel

vercel Bot commented Mar 6, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
lbp-simulator Ready Ready Preview, Comment Mar 11, 2026 7:38pm

Request Review

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