Repository navigation
feat(ui): entities swimlanes 3 #526
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
Merged
rapids-bot
merged 19 commits into
rapidsai:main
from
johallar:joe/long-entities-gantt-3
Aug 10, 2026
Merged
Changes from 17 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
8bec1f9
feat(ui): per-resource long-entities Gantt; drop timeline entity marks
johallar 349013a
refactor: always include entities row under leaves, move label to top…
johallar 684e968
feature: operator gantt chart tooltip, sync hover line
johallar 950e896
refactor: update entities gantt chart for echarts 6 paradigm (seconds…
johallar 36bdc69
refactor: shrink long entities max height
johallar 511c85c
refactor: user facing messaging -> entities
johallar 0620be1
test(components): align entity hover tests with elapsed time
johallar b25023c
chore(ui): canonicalize entity UI license headers
johallar 8efe45c
Constant height swimlane rows, keep previous data
johallar ada35dc
Move labels to inside boxes, tweak long entity threshold
johallar 45c30f8
Label entity/operator rows
johallar 082284d
Simple pagination for entities gantt charts
johallar bc5a38c
Skeleton loader instead of text
johallar 4e98851
fix: add xs button variant, linting/test fixes
johallar b5652f9
refactor: move timeline settings to new component, but remove from to…
johallar 83593c1
refactor: consolidate colordot, colorcircle; only show entities that …
johallar 147e20d
refactor(ui): preserve API ordering before inserting new entities, le…
johallar d461ef6
chore: rename window, only show 'resource' specific entities, do not …
johallar 6b4ca81
chore: update tests w new 'resource' default
johallar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| // SPDX-FileCopyrightText: Copyright (c) 2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| // SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| import { describe, expect, it } from 'vitest'; | ||
| import { keepPreviousData } from '@tanstack/react-query'; | ||
| import type { EntityListResponse } from '@quent/utils'; | ||
| import { entityListInfiniteQueryOptions, entityListQueryOptions } from './entityList'; | ||
|
|
||
| describe('entityListQueryOptions', () => { | ||
| it('copies selected operator IDs into the entity-list request', () => { | ||
| const options = entityListQueryOptions({ | ||
| engineId: 'engine-1', | ||
| queryId: 'query-1', | ||
| window: { start: 0, end: 1 }, | ||
| operatorIds: ['operator-1'], | ||
| minUsageSeconds: 0.15, | ||
| maxItems: 20, | ||
| page: 2, | ||
| }); | ||
|
|
||
| expect(options.queryKey).toEqual([ | ||
| 'entityList', | ||
| 'engine-1', | ||
| expect.objectContaining({ | ||
| entry: expect.objectContaining({ | ||
| application: { operator_ids: ['operator-1'] }, | ||
| filter: expect.objectContaining({ min_usage_s: 0.15 }), | ||
| page: { page: 2, max: 20 }, | ||
| }), | ||
| }), | ||
| ]); | ||
| expect(options.placeholderData).toBe(keepPreviousData); | ||
| }); | ||
|
|
||
| it('continues paging until all matching entities are loaded', () => { | ||
| const options = entityListInfiniteQueryOptions({ | ||
| engineId: 'engine-1', | ||
| queryId: 'query-1', | ||
| window: { start: 0, end: 1 }, | ||
| maxItems: 1, | ||
| }); | ||
| const item = {} as EntityListResponse['items'][number]; | ||
| const firstPage: EntityListResponse = { items: [item], total: 3 }; | ||
| const secondPage: EntityListResponse = { items: [item], total: 3 }; | ||
|
|
||
| expect(options.placeholderData).toBe(keepPreviousData); | ||
| expect(options.getNextPageParam?.(secondPage, [firstPage, secondPage], 1, [0, 1])).toBe(2); | ||
| expect( | ||
| options.getNextPageParam?.({ items: [item], total: 2 }, [firstPage, secondPage], 1, [0, 1]) | ||
| ).toBeUndefined(); | ||
| }); | ||
| }); |
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
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
This file was deleted.
Oops, something went wrong.
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
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
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.