feat: add externalNavigate and refresh actions, restructure action handlers#70
Merged
Conversation
…t/updated-actions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
externalNavigateaction: opens an external URL in the browser, with optionaltargetand JQ support onurlfor dynamic links built from row/widget payloadrefreshaction: invalidates TanStack Query cache entries — scoped byresourcesRefsIds, bywidgetKinds, or globally when neither is specifieduseHandleActionsinto individual handler files undersrc/hooks/actionHandlers/(navigate,openDrawer,openModal,rest,externalNavigate,refresh)Button,Panel,Table, andFormJSON schemasButton,Panel, andTableexample YAMLs extended with cases for both new actions;Table.menu.yamlrestructured with a TabList (Examples / Actions tabs) matching the Button and Panel patterndocs/actions.mdcovering all six action types with property tables and examples;docs/docs.mdupdated to reference it;docs/widgets-api-reference.mdextended withexternalNavigateandrefreshproperty rowsTest plan
externalNavigate(static URL) — new tab opens at the correct URLexternalNavigateusing a JQurl— URL resolves correctly from row dataexternalNavigatewithrequireConfirmation: true— confirm dialog appears; cancel aborts navigationrefreshwith no scope — all widgets on the page re-fetchrefreshwithresourcesRefsIds— only the listed widgets re-fetchrefreshwithwidgetKinds— all widgets of the listed kind(s) re-fetchnpm run lint🤖 Generated with Claude Code