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

chore: Empty state refactor #31860

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

chore: Empty state refactor #31860

wants to merge 3 commits into from

Conversation

mistercrunch
Copy link
Member

  • making size a prop instead of one-component-per-size
  • fixing up the svg so its themable using currentColor
  • centralizing/fixing up references

Copy link

korbit-ai bot commented Jan 15, 2025

Korbit doesn't automatically review large (500+ lines changed) pull requests such as this one. If you want me to review anyway, use /korbit-review.

@dosubot dosubot bot added the change:frontend Requires changing the frontend label Jan 15, 2025
@geido geido self-requested a review January 15, 2025 11:34
@@ -113,7 +113,7 @@ const SqlEditorLeftBar = ({
'schema',
]);

const [emptyResultsWithSearch, setEmptyResultsWithSearch] = useState(false);
const [_emptyResultsWithSearch, setEmptyResultsWithSearch] = useState(false);
Copy link
Member

Choose a reason for hiding this comment

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

Do we actually need this?

Copy link
Member Author

Choose a reason for hiding this comment

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

I think we need setEmptyResultsWithSearch, and are flushing position 1 of the array. Code is a bit cryptic to me here. Not sure why we need setEmptyResultsWithSearch

- making `size` a prop instead of one-component-per-size
- fixing up the svg so its themable using `currentColor`
- centralizing/fixing up references
@mistercrunch
Copy link
Member Author

/testenv up

Copy link
Contributor

@mistercrunch Processing your ephemeral environment request here.

Copy link
Contributor

@mistercrunch Ephemeral environment spinning up at http://54.186.90.161:8080. Credentials are admin/admin. Please allow several minutes for bootstrapping and startup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants