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

Components: Hide small strings, other short stories #2547

Merged
merged 6 commits into from Nov 17, 2023

Conversation

@OAGr OAGr requested a review from berekuk as a code owner November 17, 2023 01:32
Copy link

changeset-bot bot commented Nov 17, 2023

🦋 Changeset detected

Latest commit: b62d351

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

This PR includes changesets to release 4 packages
Name Type
@quri/squiggle-components Patch
vscode-squiggle Patch
@quri/squiggle-lang Patch
@quri/prettier-plugin-squiggle 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 Nov 17, 2023

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

Name Status Preview Updated (UTC)
quri-hub ✅ Ready (Inspect) Visit Preview Nov 17, 2023 9:30pm
squiggle-components ✅ Ready (Inspect) Visit Preview Nov 17, 2023 9:30pm
squiggle-website ✅ Ready (Inspect) Visit Preview Nov 17, 2023 9:30pm
1 Ignored Deployment
Name Status Preview Updated (UTC)
quri-ui ⬜️ Ignored (Inspect) Visit Preview Nov 17, 2023 9:30pm

Copy link
Contributor

sweep-ai bot commented Nov 17, 2023

Apply Sweep Rules to your PR?

  • Apply: All docstrings and comments should be up to date.
  • Apply: Ensure that all variables and functions have descriptive names.
  • Apply: Avoid using unnecessary separators or extra characters in code.
  • Apply: Use consistent indentation and spacing throughout the code.
  • Apply: Ensure that all code is properly formatted and follows the style guide.
  • Apply: Avoid using magic numbers or hard-coded values in the code.

Copy link
Collaborator

@berekuk berekuk left a comment

Choose a reason for hiding this comment

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

Good fixes.

Btw, this needs a changeset.

const shouldBeginCollapsed = (
isRoot: boolean,
v: SqValueWithContext
): boolean => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

This makes me want to write a long document on why inlining is better, again, but I'll do it some other day...
(still hope to persuade you, and the more I think about it the more convinced I become)

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 moved it much closer. It definitely seems nicer to me to be a bit separate.

@github-actions github-actions bot mentioned this pull request Dec 27, 2023
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