-
Notifications
You must be signed in to change notification settings - Fork 240
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: add search box to hide columns popup #1128
feat: add search box to hide columns popup #1128
Conversation
@@ -61,4 +61,19 @@ | |||
.StatementResult-column-toggle-menu { | |||
max-height: 200px; | |||
overflow-y: auto; | |||
.hide-column-search-bar-wrapper { | |||
.SearchBar { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i see the same css repeated in #1136 (review)
can you make it a shared class under SearchBar.scss?
@@ -397,29 +399,57 @@ const ColumnToggleMenuButton: React.FC<{ | |||
}> = ({ columnNames, columnVisibility, toggleVisibility }) => { | |||
const buttonRef = React.useRef<HTMLAnchorElement>(); | |||
const [showPopover, _, toggleShowPopover] = useToggleState(false); | |||
const [filteredColumnNames, setFilteredColumnNames] = useState(columnNames); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
have filteredColumnNames a useMemo based on keyword and columnNames
* feat: add search box to hide columns popup * feat: add clear button to hide columns search bar * chore: refactor filteredColumnNames and SearchBar
* feat: add search box to hide columns popup * feat: add clear button to hide columns search bar * chore: refactor filteredColumnNames and SearchBar
Adds a search bar to the hide columns popup to allow searching table column names with a keyword. Can select or hide all columns found with keyword.