Repository navigation
[Query Builder] Refactor, bug fixing and test coverage improved - #17706
Merged
Merged
Conversation
Space/Enter before any arrow key deleted the dragged expression. Also strengthen weak specs flagged in review.
This was referenced Oct 8, 2026
ivanvpetrov
marked this pull request as ready for review
October 8, 2026 13:41
11 of 23 tasks
kdinev
approved these changes
Oct 17, 2026
kdinev
enabled auto-merge (squash)
October 17, 2026 12:39
kdinev
added a commit
that referenced
this pull request
Oct 17, 2026
…itest Brings in #17706 (query builder refactor and tests). The query builder spec keeps this branch's Vitest version; the PR's new tests are ported there in the follow-up working-tree changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes
'Space'while the browser reports' '.preventDefault()(held keys included), so the page/container no longer scrolls.TabandShift+Tabare ignored while the drop ghost is shown, so focus stays on it until the condition is dropped (Enter/Space) or the drag is cancelled (Escape). Previously they cancelled the drag and focus was lost.timefield withouteditorOptionsthrew an error (editorOptions!.dateTimeFormat, now?.).Unreachable code removed (all
private/protected/@hidden @internal;IgxQueryBuilderTreeComponentis not exported):editingInputsContainer,currentGroupButtonsContainer),endGroup(),onKeyDown()addRootAndGroupButton@ViewChild, whose template ref no longer exists (setAddButtonFocuskeeps its behavior)_expandedExpressions, which was never written to_selectedReturnFields, which is always an array; the type is narrowed tostring[]'wrong key'branch inarrowDrag; the key is typed as'ArrowUp' | 'ArrowDown'Tests
commit()/setAddButtonFocus(), AND/OR switch before the first commit, and resource strings.xitdrop-ghost spec. Its hard-coded pointer offsets missed the drop target, so it now moves the pointer to the measured "Add condition" button.Follow-ups / known limitations
Escapeduring a mouse drag still only hides the drop ghost; it can't end the drag yet. That needs a cancel API inigxDrag: Drag and Drop: allow cancelling an in-progress drag (Escape key / public API) #17735.Motivation / Context
Improve Query Builder test coverage.
Type of Change (check all that apply):
Component(s) / Area(s) Affected:
Query Builder (also used by grid advanced filtering)
How Has This Been Tested?
All query-builder specs and the non-grid suite pass. All specs that open grid advanced filtering pass (390).
npm run lint:libreports no errors.Test Configuration:
Checklist:
feature/README.MDupdates for the feature docsREADME.MDCHANGELOG.MDupdates for newly added functionalityng updatemigrations for the breaking changes (migrations guidelines)