Skip to content

Conversation

@ubmit
Copy link
Contributor

@ubmit ubmit commented Jan 19, 2026

While playing around with the dashboard example locally, I noticed that none of the button actions were working. Whenever a button was clicked, the following error would appear: No handler registered for action: undefined.

The reason was that onAction being called with action as argument, but it should have been an object with the name property instead: onAction?.(action) → onAction?.({name: action}).

Also on the "COMPONENT DETAILS" part of the system prompt, I changed string for an enum with all the actions defined on the action handlers. That way the LLM would always return one of the defined strings instead of something such as "export_data" (that happened to me when my prompt mentioned only "export button" instead of "export report button", which is not defined in the handlers).

image

@vercel
Copy link
Contributor

vercel bot commented Jan 19, 2026

@ubmit is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

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