Skip to content

Conversation

@nidanin
Copy link
Contributor

@nidanin nidanin commented Nov 19, 2025

Changelog

Expand panel settings example to demonstrate use of node actions.

Docs

None

Description

Show how to use the perform-node-action action in the handler to implement dynamic lists of items in the panel settings sidebar.

Since the existing panel settings example is already fairly complex I've opted to make another example that just focuses on handling the actions.

Here's the pre-built extension for testing convenience:
foxglove.panel-settings-1.0.0.foxe.zip

app foxglove dev_foxglovehq_p_prj_0dX17jUmXrzxJJyk_view_ds=mcap-local-file ds recentId=rctds_0e31k4yQPbG4VMLj layoutId=lay_0e2Ym6x7Nh1Ygq0C time=2018-07-24T03%3A28%3A47 703844000Z

@defunctzombie
Copy link
Contributor

👍 I'd hope for a slightly simpler example - there's a lot of strange looking boilerplate here to the untrained eye but maybe its a byproduct of our choices for the action apis.

@nidanin
Copy link
Contributor Author

nidanin commented Nov 20, 2025

Maybe we should break this up into multiple examples?

@defunctzombie
Copy link
Contributor

Maybe we should break this up into multiple examples?

I'll let you channel your inner extension developer and see what you think is best. I'll take an example over no example over wrong example - so if this is as far as you want to take it for now I can live with that.

@nidanin
Copy link
Contributor Author

nidanin commented Dec 1, 2025

@defunctzombie I've reverted the changes to the existing panel settings example and instead made a new example that just demonstrates the use of the node-actions. Hopefully this will make life easier for people trying to learn the API.

@defunctzombie defunctzombie merged commit dc75c91 into main Dec 2, 2025
4 checks passed
@defunctzombie defunctzombie deleted the miles/action-handler-example branch December 2, 2025 05:23
surbina added a commit that referenced this pull request Dec 2, 2025
### Changelog
<!-- Write a one-sentence summary of the user-impacting change (API,
UI/UX, performance, etc) that could appear in a changelog. Write "None"
if there is no user-facing change -->
None

### Docs

<!-- Link to a Docs PR, tracking ticket in Linear, OR write "None" if no
documentation changes are needed. -->
None

### Description
Bump version field in package.json in preparation for a release.

Commits to be included in this release:

- #191
- #190
- #189
- #185
- #187
- #186
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants