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

Add manual plugin tester interface #963

Merged
merged 8 commits into from
Dec 18, 2024
Merged

Add manual plugin tester interface #963

merged 8 commits into from
Dec 18, 2024

Conversation

James-Mart
Copy link
Member

@James-Mart James-Mart commented Dec 16, 2024

Adds a useful tool for testing plugins. Accessible at any subdomain, at the /common/plugin-tester endpoint. Allows logging in with a user, and executing plugin function as though they are being run by the app from which the plugin-tester was served.

i.e. if chainmail...psibase.io/common/plugin-tester is used to load tokens:plugin and alice logs in, then alice can execute tokens plugin functions as though they were being called by chainmail.


Anyone can please feel free in the future to improve this / shadcn-ify it, or anything else. This is just a starting point.

@James-Mart James-Mart added the Dev Experience Related to the experience of developers label Dec 16, 2024
Copy link
Contributor

@brandonfancher brandonfancher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React + TS</title>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Recommend giving it a title here.

@James-Mart James-Mart merged commit 509313b into main Dec 18, 2024
3 checks passed
@James-Mart James-Mart deleted the add-plugin-tester branch December 18, 2024 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Dev Experience Related to the experience of developers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants