Skip to content

Conversation

@elizabetdev
Copy link
Contributor

WIP: Refactors the search/where experience and SQL inline editor.

  • Moves search-related components into components/SearchInput/ and replaces WhereLanguageControlled with a single SearchWhereInput (SQL/Lucene switch, submit, history).
  • Adds expand-on-focus for multiline SQL (WHERE and SELECT): single-line when blurred, multiline when focused, with stable width and a bottom gradient when collapsed.
  • Fixes language switch so it doesn’t focus the input and sits beside the input instead of overlaying it; live tail refresh Select width and SELECT flex layout adjusted for consistent sizing.

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.
@changeset-bot
Copy link

changeset-bot bot commented Feb 11, 2026

⚠️ No Changeset found

Latest commit: 540048e

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link

vercel bot commented Feb 11, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
hyperdx-v2-oss-app Ready Ready Preview, Comment Feb 13, 2026 11:31am

Request Review

@claude
Copy link

claude bot commented Feb 11, 2026

PR Review

No critical issues found.

Minor Observations:

  • ✅ Good refactoring: Consolidates search components into a unified SearchWhereInput with proper separation of concerns
  • ✅ Type safety maintained with proper TypeScript/Zod validation
  • ✅ Tests updated appropriately for the new component structure
  • ✅ E2E tests properly adapted to use role-based selectors
  • ✅ Proper use of react-hook-form Controller pattern
  • ✅ Accessibility: InputLanguageSwitch includes aria-label
  • ✅ Component follows existing patterns (Mantine UI, form integration)

Nice improvements in this PR:

  • Multiline expand-on-focus behavior for SQL/Lucene inputs
  • Centralized SearchInput components under components/SearchInput/ directory
  • Replaced scattered language controls with unified SearchWhereInput component
  • Proper form integration with automatic language field inference ({name}Language)

The refactoring is well-executed and maintains consistency with the codebase patterns outlined in CLAUDE.md.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 11, 2026

E2E Test Results

2 tests failed • 63 passed • 4 skipped • 982s

Status Count
✅ Passed 63
❌ Failed 2
⚠️ Flaky 1
⏭️ Skipped 4

Tests ran across 4 shards in parallel.

View full report →

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.
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.

1 participant