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

feat(prompts): add open in playground action button on the table #6185

Merged
merged 2 commits into from
Jan 27, 2025

Conversation

mikeldking
Copy link
Contributor

@mikeldking mikeldking commented Jan 27, 2025

Screenshot 2025-01-27 at 1 28 24 PM Adds a quick link to open the prompt from the listing

@dosubot dosubot bot added the size:XXL This PR changes 1000+ lines, ignoring generated files. label Jan 27, 2025
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@mikeldking mikeldking changed the base branch from main to prompts January 27, 2025 20:25
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. and removed size:XXL This PR changes 1000+ lines, ignoring generated files. labels Jan 27, 2025
Comment on lines +106 to +115
<Button
icon={<Icon svg={<Icons.PlayCircleOutline />} />}
size="S"
aria-label="Open in playground"
onPress={() => {
navigate(`${row.original.id}/playground`);
}}
>
Playground
</Button>
Copy link
Contributor

Choose a reason for hiding this comment

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

We should make a StyledLink component export that wraps a react-router Link in ButtonStyles in the future

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agreed

@mikeldking mikeldking merged commit 6fed15e into prompts Jan 27, 2025
7 checks passed
@mikeldking mikeldking deleted the open-in-playground-action branch January 27, 2025 20:51
mikeldking added a commit that referenced this pull request Feb 6, 2025
* feat(prompts): add open in playground action button on the table

* cleanup
mikeldking added a commit that referenced this pull request Feb 19, 2025
* feat(prompts): add open in playground action button on the table

* cleanup
s-yeddula pushed a commit that referenced this pull request Mar 5, 2025
* feat(prompts): add open in playground action button on the table

* cleanup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:M This PR changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants