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

fix: Use picker for iris grid partition selector #2012

Merged
merged 4 commits into from
May 16, 2024

Conversation

AkshatJawne
Copy link
Contributor

Resolves #1970

Changes Implemented:

  • Replace TableDropdown with Picker for the Partition Selector for Iris Grid
  • Change corresponding test, since role is no longer "combobox"

Testing Information:

Code used:

from deephaven import empty_table
t = empty_table(15000).update(["x = i", "y = i"]).partition_by(["x"]) 

Sample visual of new Picker:
image

@AkshatJawne AkshatJawne requested a review from dsmmcken May 14, 2024 16:44
@AkshatJawne AkshatJawne self-assigned this May 14, 2024
@dsmmcken dsmmcken requested review from mofojed and removed request for dsmmcken May 14, 2024 16:47
Copy link
Contributor

@dsmmcken dsmmcken left a comment

Choose a reason for hiding this comment

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

Spectrum picker doesn't have a small size, so we should remove the btn-sm classes from the merge and keys buttons

@AkshatJawne AkshatJawne requested a review from dsmmcken May 14, 2024 18:37
@AkshatJawne AkshatJawne requested a review from mofojed May 14, 2024 20:45
mofojed
mofojed previously approved these changes May 15, 2024
Comment on lines 308 to 315
label={column.name}
table={partitionTables[index]}
direction="bottom"
shouldFlip={false}
keyColumn={partitionTables[index].columns[index].name}
placeholder={'Loading...' as string}
labelColumn={partitionTables[index].columns[index].name}
labelPosition="side"
Copy link
Member

Choose a reason for hiding this comment

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

I would've probably grouped the label and labelPosition props together (since they're both labelling the component), but 🤷

Copy link
Contributor Author

Choose a reason for hiding this comment

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

My bad, I thought I should have labelColumn and labelPosition together, but what you have mentioned makes sense, since the labelColumn is referring to something else. Should be good now

@AkshatJawne
Copy link
Contributor Author

@dsmmcken Could you take another look at this whenever you have the time, so that I can merge?

@AkshatJawne
Copy link
Contributor Author

Thanks Don, merging now!

@AkshatJawne AkshatJawne merged commit b61c518 into deephaven:main May 16, 2024
9 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators May 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

iris grid partition selector can only display 1000 partitions
3 participants