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

Imports tooltips #2990

Merged
merged 3 commits into from
Jan 20, 2024
Merged

Imports tooltips #2990

merged 3 commits into from
Jan 20, 2024

Conversation

berekuk
Copy link
Collaborator

@berekuk berekuk commented Jan 20, 2024

Screenshot 2024-01-20 at 13 52 48

Tooltips are injectable through the new renderImportTooltip playground prop.

@berekuk berekuk requested a review from OAGr as a code owner January 20, 2024 19:53
Copy link

changeset-bot bot commented Jan 20, 2024

🦋 Changeset detected

Latest commit: 440b7f8

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 6 packages
Name Type
@quri/squiggle-components Patch
@quri/versioned-squiggle-components Patch
vscode-squiggle Patch
@quri/squiggle-lang Patch
@quri/prettier-plugin-squiggle Patch
@quri/squiggle-textmate-grammar Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Jan 20, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

4 Ignored Deployments
Name Status Preview Updated (UTC)
quri-hub ⬜️ Ignored (Inspect) Visit Preview Jan 20, 2024 8:11pm
quri-ui ⬜️ Ignored (Inspect) Visit Preview Jan 20, 2024 8:11pm
squiggle-components ⬜️ Ignored (Inspect) Visit Preview Jan 20, 2024 8:11pm
squiggle-website ⬜️ Ignored (Inspect) Visit Preview Jan 20, 2024 8:11pm

@OAGr
Copy link
Contributor

OAGr commented Jan 20, 2024

This is neat.

By the way, it it possible to put a subtle background color on tooltipped variables, to show exactly what is hovered?

image

return (
<div>
{"Couldn't load "}
{owner}/{slug}
Copy link
Contributor

@OAGr OAGr Jan 20, 2024

Choose a reason for hiding this comment

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

Why not use interpolation here

{`Couldn't load ${owner}/${slug}`}

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I like React style a bit more (no $), but you're right that mixing both styles here is too much

Copy link
Contributor

@OAGr OAGr left a comment

Choose a reason for hiding this comment

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

I think this looks good. Should be really useful, cheers!

@OAGr OAGr merged commit a91d0f8 into main Jan 20, 2024
6 checks passed
@OAGr OAGr deleted the imports-tooltips branch January 20, 2024 22:28
@github-actions github-actions bot mentioned this pull request Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants