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

Gutter items #2980

Merged
merged 41 commits into from
Feb 13, 2024
Merged

Gutter items #2980

merged 41 commits into from
Feb 13, 2024

Conversation

OAGr
Copy link
Contributor

@OAGr OAGr commented Jan 18, 2024

image

* main:
  comments
  fix circular imports by storing tags as Values
  minor formatting changes
  split value classes to separate files
@OAGr OAGr requested a review from berekuk as a code owner January 18, 2024 19:58
Copy link

changeset-bot bot commented Jan 18, 2024

🦋 Changeset detected

Latest commit: 76dc633

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-lang Patch
@quri/squiggle-components Patch
@quri/prettier-plugin-squiggle Patch
@quri/versioned-squiggle-components Patch
vscode-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 18, 2024

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

Name Status Preview Updated (UTC)
quri-hub ✅ Ready (Inspect) Visit Preview Feb 13, 2024 10:52pm
squiggle-components ✅ Ready (Inspect) Visit Preview Feb 13, 2024 10:52pm
squiggle-website ✅ Ready (Inspect) Visit Preview Feb 13, 2024 10:52pm
1 Ignored Deployment
Name Status Preview Updated (UTC)
quri-ui ⬜️ Ignored (Inspect) Visit Preview Feb 13, 2024 10:52pm

return uniqBy(arr.reverse(), fn).reverse();
}

function visibleAstChildren(node: ASTNode): ASTNode[] {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I decided not to merge this into squiggle-lang, because it really is specific to the components view. It hides values with @hide tags, for example. It's also not too much code.

)
.map((s) => s.location.start.line - 1)
);
return values;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Looking back, I don't think this refactor to use the AST was worth it yet - mainly because we're not even getting to use the AST pre-render anyway. This code will be a bit more buggy than going straight to values, as it won't always align perfectly.

@berekuk berekuk mentioned this pull request Feb 13, 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.

None yet

2 participants