Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allowing advanced inputs #113

Open
leandrogavidia opened this issue Oct 31, 2024 · 0 comments
Open

Allowing advanced inputs #113

leandrogavidia opened this issue Oct 31, 2024 · 0 comments
Labels
core This issue is related to the core functionality

Comments

@leandrogavidia
Copy link
Contributor

leandrogavidia commented Oct 31, 2024

Description

The action specification supports advanced input types, which are an important feature to create a large number of new Solana Actions.

Expected Behavior

Allow to add the "type" and "options" fields on the action's parameters. Like this:

{
    type: "select",
    name: "amount", // parameter name in the `href` above
    label: "Donation Amount in SOL", // placeholder of the text input
    required: true,
    options: [
        { label: "1", value: "1" },
        { label: "5", value: "5" },
        { label: "10", value: "10" },
    ],
},

Found Behavior

It is not possible to add the "type" and "options" fields on the parameters.

Possible Solution

Add the fields in the struct ActionLinkParameterStruct


Reference links

Advanced types result example

image
image

@danmt danmt added the core This issue is related to the core functionality label Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core This issue is related to the core functionality
Projects
None yet
Development

No branches or pull requests

2 participants