Skip to content

fix: pool creation feedback items#2313

Open
MattPereira wants to merge 4 commits intomainfrom
fix/pool-creator-feedback
Open

fix: pool creation feedback items#2313
MattPereira wants to merge 4 commits intomainfrom
fix/pool-creator-feedback

Conversation

@MattPereira
Copy link
Copy Markdown
Member

@MattPereira MattPereira commented Apr 7, 2026

closes #2311

Summary

  • Refactored ConfigOptionsGroup into a reusable, form-agnostic component by accepting a control prop, enabling it to work with both reClamm and pool creation forms
  • Replaced the PoolSettingsRadioGroup for amplification parameter with ConfigOptionsGroup, adding SVG curve illustrations and three presets (100, 1,000, 10,000) with proper min/max validation
  • Hardcoded the "Or choose custom" radio inside ConfigOptionsGroup and added forceCustom state to prevent the custom input from snapping to a preset while typing (e.g. typing "1001" no longer auto-selects "100")
  • Improved suggested pool name/symbol generation with pool-type prefixes (surge, reCLAMM) and weighted pool weight formatting
  • Show donation tooltip for all pool types, not just reClamm
image image

Test plan

  • Create a stable pool and verify the amplification parameter card UI renders with SVG curve illustrations
  • Select "Or choose custom" and type values like 1001 — confirm the input stays open and doesn't snap to the 100 preset
  • Verify custom input validates against min/max amplification bounds
  • Create a reClamm pool and verify all configuration options still work correctly
    • Matt says reclamm pool creation will fail because factory still paused ( afaik )
  • Verify the "Or choose custom" radio and input work for all reClamm config fields
  • Check suggested pool name/symbol for weighted, stable surge, and reClamm pool types
  • Verify donation tooltip displays for all pool types

🤖 Generated with Claude Code

@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)
mono-beets-test-v3 Ready Ready Preview, Comment Apr 9, 2026 4:06pm
mono-beets-v3 Ready Ready Preview, Comment Apr 9, 2026 4:06pm
mono-frontend-v3 Ready Ready Preview, Comment Apr 9, 2026 4:06pm
mono-test-v3 Ready Ready Preview, Comment Apr 9, 2026 4:06pm

Request Review

@MattPereira MattPereira changed the title fix: improve pool creation UX and reusable config card component fix: pool creation feedback items Apr 7, 2026

const poolSymbol = poolTypePrefix ? `${poolTypePrefix}-${tokenSymbols}` : tokenSymbols
const suggestedPoolSymbol =
poolSymbol.length <= MAX_POOL_SYMBOL_LENGTH ? poolSymbol : tokenSymbols
Copy link
Copy Markdown
Collaborator

@groninge01 groninge01 Apr 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what if tokenSymbols.length or poolName.length (on ln 97) is bigger than MAX_POOL_SYMBOL_LENGTH?

Copy link
Copy Markdown
Member Author

@MattPereira MattPereira Apr 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any ideas on how best to handle?

arbitrarily slicing the whole string to fit doesnt make sense imo

slicing each token symbol some to fit also seems messy

my initial thought was to just let user decide 👉 #2311 (comment)

The tooltip was previously only visible when the donation toggle was
disabled (reClamm pools). Now it always displays with contextual help
text explaining what donations do and why most pools should not enable
them.
Extract name/symbol logic into a getSuggestions helper, add pool type
prefixes (surge, reCLAMM), and gracefully omit "Balancer " or the type
prefix when they would exceed max length limits.
…SVG cards

Replace the PoolSettingsRadioGroup for amplification parameter with the
reusable ConfigOptionsGroup component, adding SVG curve illustrations and
a third option (10,000). Make ConfigOptionsGroup form-agnostic by accepting
a control prop, hardcode the custom option radio, and add forceCustom state
to prevent mid-typing snapping when a typed value matches a preset.
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.

Pool creation feedback

2 participants