Skip to content

feat: Add asset selector dropdown#192

Open
EmmyKay0026 wants to merge 1 commit intoritik4ever:mainfrom
EmmyKay0026:feat/add_asset_selector
Open

feat: Add asset selector dropdown#192
EmmyKay0026 wants to merge 1 commit intoritik4ever:mainfrom
EmmyKay0026:feat/add_asset_selector

Conversation

@EmmyKay0026
Copy link
Copy Markdown

@EmmyKay0026 EmmyKay0026 commented Apr 26, 2026

closes #162

Overview

This PR improves the user experience by replacing the free-text assetCode input in the CreateStreamForm with a dynamic dropdown. The list of available assets is now fetched directly from the backend configuration, ensuring that users can only select assets currently supported by the platform.

Changes

Backend

  • Added a new GET /api/config endpoint that exposes the ALLOWED_ASSETS configuration.

Frontend

  • Added getConfig function to the API service layer.

  • Updated CreateStreamForm to:

    - Fetch configuration on mount.
    
    • Render a dropdown when assets are successfully fetched. Implement a fallback to a text input if the API call fails or returns an empty list. Added logic to default the selection to USDC if it exists in the allowed list, or the first available asset otherwise.

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 26, 2026

@EmmyKay0026 is attempting to deploy a commit to the ritik4ever's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Apr 26, 2026

@EmmyKay0026 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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.

[wave4][frontend] Add asset selector dropdown from backend ALLOWED_ASSETS config

1 participant