Skip to content

feat(web-console): add column name search to Schema filter#478

Merged
bluestreak01 merged 6 commits intomainfrom
feat/schema-column-filter
Oct 3, 2025
Merged

feat(web-console): add column name search to Schema filter#478
bluestreak01 merged 6 commits intomainfrom
feat/schema-column-filter

Conversation

@emrberk
Copy link
Copy Markdown
Collaborator

@emrberk emrberk commented Oct 2, 2025

Uses #476
Resolves #363

  • Adds column names to the schema search. Tables containing column matches are auto-expanded
  • Removes redundant column requests on schema reload, uses the store to take column name and types
  • Fetches symbol column details on demand while scrolling, using SHOW COLUMNS FROM. The data is cached until a schema refresh
  • Adds a focus listener timeout (10s) such that schema will be refreshed only when the time elapsed as well

* feat(web-console): enhance table filtering by including column matches

* reduce number of requests, fetch details on demand, use information_schema columns

---------

Co-authored-by: emrberk <[email protected]>
@emrberk emrberk changed the title feat(web-console): Add column name search to Schema filter feat(web-console): add column name search to Schema filter Oct 2, 2025
@emrberk emrberk force-pushed the feat/schema-column-filter branch from 742a5dd to 45f5217 Compare October 3, 2025 00:49
@emrberk emrberk force-pushed the feat/schema-column-filter branch from 1b5c958 to 30a611b Compare October 3, 2025 01:09
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds column name search functionality to the Schema filter, enabling users to search for tables by column names in addition to table names. When column matches are found, the corresponding tables are automatically expanded to show the matching columns.

  • Restructures column storage from array to table-keyed object for efficient lookups
  • Implements lazy loading for symbol column details to improve performance
  • Adds focus listener timeout (10s) to prevent excessive schema refreshing

Reviewed Changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
packages/web-console/src/utils/questdb/client.ts Adds new method to fetch symbol column details on demand
packages/web-console/src/store/Query/types.ts Changes columns storage from array to Record<string, InformationSchemaColumn[]>
packages/web-console/src/store/Query/selectors.ts Updates selector to return Record type for columns
packages/web-console/src/store/Query/reducers.ts Categorizes columns by table name in SET_COLUMNS action
packages/web-console/src/scenes/Schema/index.tsx Adds focus listener timeout and column search logic
packages/web-console/src/scenes/Schema/VirtualTables/utils.ts Refactors column node creation with lazy loading support
packages/web-console/src/scenes/Schema/VirtualTables/index.tsx Implements column search filtering and symbol details fetching
packages/web-console/src/scenes/Schema/Row/index.tsx Adds search highlighting and loading state support
packages/web-console/src/scenes/Editor/Monaco/questdb-sql/createSchemaCompletionProvider.ts Updates completion provider to work with new column storage structure

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@bluestreak01 bluestreak01 merged commit d047203 into main Oct 3, 2025
4 checks passed
@bluestreak01 bluestreak01 deleted the feat/schema-column-filter branch October 3, 2025 12:53
Vaibhav91one pushed a commit to Vaibhav91one/ui that referenced this pull request Oct 28, 2025
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.

table filter could search in columns too

4 participants