Skip to content

feat: add externalNavigate and refresh actions, restructure action handlers#70

Merged
fedepini merged 10 commits into
mainfrom
feat/updated-actions
Jul 8, 2026
Merged

feat: add externalNavigate and refresh actions, restructure action handlers#70
fedepini merged 10 commits into
mainfrom
feat/updated-actions

Conversation

@fedepini

@fedepini fedepini commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Summary

  • externalNavigate action: opens an external URL in the browser, with optional target and JQ support on url for dynamic links built from row/widget payload
  • refresh action: invalidates TanStack Query cache entries — scoped by resourcesRefsIds, by widgetKinds, or globally when neither is specified
  • Action handler refactor: split the monolithic useHandleActions into individual handler files under src/hooks/actionHandlers/ (navigate, openDrawer, openModal, rest, externalNavigate, refresh)
  • Schema updates: both actions added to Button, Panel, Table, and Form JSON schemas
  • Examples: Button, Panel, and Table example YAMLs extended with cases for both new actions; Table.menu.yaml restructured with a TabList (Examples / Actions tabs) matching the Button and Panel pattern
  • Docs: new docs/actions.md covering all six action types with property tables and examples; docs/docs.md updated to reference it; docs/widgets-api-reference.md extended with externalNavigate and refresh property rows

Test plan

  • Click a button with externalNavigate (static URL) — new tab opens at the correct URL
  • Click a table row action with externalNavigate using a JQ url — URL resolves correctly from row data
  • externalNavigate with requireConfirmation: true — confirm dialog appears; cancel aborts navigation
  • refresh with no scope — all widgets on the page re-fetch
  • refresh with resourcesRefsIds — only the listed widgets re-fetch
  • refresh with widgetKinds — all widgets of the listed kind(s) re-fetch
  • Table examples page shows two tabs: "Examples" and "Actions"
  • Lint passes: npm run lint

🤖 Generated with Claude Code

@fedepini fedepini self-assigned this Jul 8, 2026
@fedepini fedepini merged commit a1069f2 into main Jul 8, 2026
3 checks passed
@fedepini fedepini deleted the feat/updated-actions branch July 8, 2026 15:38
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