-
Notifications
You must be signed in to change notification settings - Fork 362
Refactor search input: unified SearchWhereInput and SQL editor expand-on-focus #1726
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
base: main
Are you sure you want to change the base?
Conversation
Updated SQLInlineEditor to enable line wrapping only when the editor is focused and multiline input is allowed. Enhanced styling to support expanded view when multiline is active, ensuring better user experience. Adjusted component structure for improved layout and responsiveness.
…behavior Updated the AutocompleteInput component to improve the layout by wrapping the Popover and Textarea in a div. Added dynamic height adjustment for the Textarea when focused, ensuring a smoother user experience. Introduced a spacer div to maintain layout consistency when the Textarea is positioned absolutely.
…cene queries Replaced WhereLanguageControlled with the new SearchWhereInput component across DBSearchPage, ServicesDashboardPage, and SessionsPage. This new component streamlines the handling of SQL and Lucene queries, improving code maintainability and user experience. The SearchWhereInput component supports dynamic language switching and integrates both SQLInlineEditor and SearchInputV2 for enhanced functionality.
Introduced a new storybook file for the SearchWhereInput component, showcasing various configurations including Lucene and SQL modes, custom widths, and label visibility. Additionally, added comprehensive tests to ensure functionality across different input modes and props, enhancing overall component reliability and user experience.
Updated AutocompleteInput to improve focus behavior and layout consistency. Added dynamic styling for the right section based on input focus state. Adjusted DBSearchPage to set a maximum width for the search input. Removed unused showHotkey prop from SearchInputV2 and refactored InputLanguageSwitch to simplify its structure. Enhanced SearchWhereInput to support maxWidth styling and ensure proper layout handling. Updated SQLInlineEditor for improved background color and layout adjustments during expansion.
Removed the unused showHotkey prop from AutocompleteInput and refactored InputLanguageSwitch to utilize SegmentedControl for improved language selection. Adjusted styling in SQLInlineEditor for consistent alignment and layout during expansion. Updated DBSearchPage to remove maxWidth constraint on the search input for better responsiveness.
Moved SQLInlineEditor and SearchWhereInput components into a dedicated SearchInput directory for better modularity. Updated import paths across various files to reflect this new structure. This change enhances code maintainability and clarity in the component hierarchy.
Added InputLanguageSwitch to SearchWhereInput for improved language selection between SQL and Lucene. Updated styling and layout to accommodate the new component, ensuring a better user experience. Adjusted SegmentedControl styles in the theme to support the primary variant for consistent design across the application.
Refactored the DBSearchPage component to enhance the layout of the live tail refresh interval by wrapping the Select component in a Box for better styling. Removed the SQLInlineEditor component entirely to streamline the codebase. Added a new SearchWhereInput.module.scss file for improved styling of the SearchWhereInput component, ensuring a more cohesive design. Updated InputLanguageSwitch to use a gray color variant for better visual consistency.
Enhanced the Select component within the DBSearchPage by adding the allowMultiline prop, enabling better handling of multiline selections. This change aims to improve user experience and flexibility in input handling.
Updated the layout of the SQLInlineEditor component to ensure it occupies full width and maintains a minimum width of 0 for better responsiveness. Adjusted the DBSearchPage to enhance the styling of the Box component wrapping the SQLInlineEditor, improving overall layout consistency and user experience.
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
PR Review✅ No critical issues found. Minor Observations:
Nice improvements in this PR:
The refactoring is well-executed and maintains consistency with the codebase patterns outlined in CLAUDE.md. |
E2E Test Results❌ 2 tests failed • 63 passed • 4 skipped • 982s
Tests ran across 4 shards in parallel. |
Introduced a fade effect at the bottom of the AutocompleteInput and SQLInlineEditor components when collapsed, enhancing the visual appearance of single-line inputs. This change improves user experience by preventing text from appearing hard-cut. Updated styles accordingly and removed redundant fade styles from SearchWhereInput.
Adjusted import paths for mocked components in the DBEditTimeChartForm test file to reflect the new directory structure, enhancing code organization and maintainability.
…onality Refactored AutocompleteInput and SQLInlineEditor to incorporate new styles and layout adjustments, enhancing user experience. Introduced a Select component for language switching in InputLanguageSwitch, replacing the previous SegmentedControl. Updated SearchWhereInput to integrate the language switcher and improved overall styling consistency across components. Added new styles in SearchInputV2 for better presentation of search examples and descriptions.
Replaced 'combobox' role with 'textbox' for the Query language select input in multiline tests and updated the Data Source select input in the sessions test to use role-based selection for improved accessibility and consistency in test structure.
Removed the 'where-language-switch' wrapper from the Query language selection in multiline tests, directly using the textbox for improved clarity and efficiency in the test structure.
…stency Modified SearchWhereInput styles by removing border-radius and changing background color to enhance visual clarity. Updated theme tokens for 'field-highlighted' background colors in both clickstack and hyperdx themes to ensure consistent styling across components.
WIP: Refactors the search/where experience and SQL inline editor.
components/SearchInput/and replaces WhereLanguageControlled with a single SearchWhereInput (SQL/Lucene switch, submit, history).