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: a bunch of small ui fixes and improvements #1114

Merged
merged 2 commits into from
Dec 24, 2022
Merged

Conversation

czgu
Copy link
Collaborator

@czgu czgu commented Dec 23, 2022

Features:

  • added placeholder for table description
    image
  • added cell title for query examples
    image
  • querybook would now memoize the sidebar being selected

Fixes:

  • Adding a new query cell would now trigger auto focus
  • hovering over datadocs in favorite section would not cause the row to expand
  • the x buton for untitled doc in favorite section would be right aligned
  • renamed the second blue in chart series color to "picton blue" to avoid duplicate naming

@czgu czgu marked this pull request as ready for review December 23, 2022 21:37
const cellIndexToFocus = this.focusCellIndexAfterInsert;
setImmediate(() => {
// setting focus cell during componentDidUpdate would not
// actually focus the cell, we need to do it in another thread
Copy link
Collaborator

Choose a reason for hiding this comment

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

is it another thread or the next event loop?

@@ -283,6 +311,18 @@ const QueryExamplesList: React.FC<{
className="DataTableViewQueryExamples-item"
key={query.id}
>
<div className="horizontal-space-between mb4">
Copy link
Collaborator

Choose a reason for hiding this comment

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

Personally I think it's better to have the title and Open Execution button top aligned instead of center aligned.

@czgu czgu merged commit 0033314 into pinterest:master Dec 24, 2022
rohan-sh1 pushed a commit to CAI-TECHNOLOGIES/cai-ext-db-explorer that referenced this pull request Feb 28, 2023
* feat: a bunch of small ui fixes and improvements

* comments
aidenprice pushed a commit to arrowtail-precision/querybook that referenced this pull request Jan 3, 2024
* feat: a bunch of small ui fixes and improvements

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

Successfully merging this pull request may close these issues.

2 participants