Repository navigation
feat(ui): entities viewer and detail panel #564
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
Merged
Changes from all commits
Commits
Show all changes
80 commits
Select commit
Hold shift + click to select a range
721ca08
feat(ui): add entity list explorer
johanpel 01f23fa
refactor(ui): split entity list components
johanpel 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 457f1e9
Merge remote-tracking branch 'joe/joe/long-entities-gantt-3' into ent…
cmatzenbach 2d30577
Utilize thin scrollbar
cmatzenbach e7e181a
Make table header sticky; add jump to page input box
cmatzenbach fd3cde0
Verbiage fix; display operator label instead of id
cmatzenbach 51028e2
Pass down operator label
cmatzenbach be3e71d
Allow scrolling select with arrow keys
cmatzenbach 07a9f05
Combine hooks, update callers and tests
cmatzenbach f38b804
Only debounce input fields; use name+idx for key
cmatzenbach e2d4f9f
Slide out entity detail drawer when entity is click on timeline
cmatzenbach f09f4ed
Create drawer to display entity details from clicking on entities in …
cmatzenbach 0e5d4f0
Visual upgrades - highlight high states, apply coloring, format capac…
cmatzenbach 92c9f1d
Add duration bars to each FSM state
cmatzenbach 407e83c
Create fsm memory capacity chart component and export
cmatzenbach a730163
Render capacity chart in entity details panel
cmatzenbach 1e2b908
Align colors with gant; highlight selected task; clear selection with…
cmatzenbach b133551
Add QueryToolbar to entities table
cmatzenbach 43510eb
make select labels more consistent; improve field wrapping structure
cmatzenbach 7e51beb
add column sorting; fix clear button in combobox
cmatzenbach b0ce555
Add serial state transition bar to table
cmatzenbach bb4afff
Add state % bar to top of details panel
cmatzenbach 0984185
Add tooltip showing % of time spent in each state
cmatzenbach 61ea434
Merge branch 'main' into entities-panel
cmatzenbach db8c799
linting
cmatzenbach dc05b4c
fix: adapt entity list consumers to unwrapped FSM response format
cmatzenbach 30a8889
fix: don't commit generated ts bindings
cmatzenbach 58cf8c9
refactor: use helpers from formatters.ts
cmatzenbach db891b6
fix: keep bigint values for tooltip formatting
cmatzenbach c641c0b
test error states
cmatzenbach 08f10c9
feat(entities): add keyboard and screen reader accessibility to state…
cmatzenbach 4233e2b
fix license headers
cmatzenbach bc71a67
add keyboard control + screen reader support to table header
cmatzenbach 84822e2
make drawer subtree inert when fsm is null
cmatzenbach 626de61
Merge branch 'main' into entities-panel
cmatzenbach 00dcf87
Update per api changes
cmatzenbach 23805ca
Merge branch 'main' into entities-panel
cmatzenbach e0c777f
fix: remove FE sort, use BE sort; remove local type, use EntityListRe…
cmatzenbach 0b0765e
fix: update tests
cmatzenbach 7b64947
fix: unify styling of header controls
cmatzenbach 00c0209
fix: use label element like other fields
cmatzenbach 9cd5a7a
refactor: wrap table cells displaying data in DataText component
cmatzenbach 4302e8b
refactor: replace strings with global consts
cmatzenbach ba8f052
fix: de-select table row when clicking on it again
cmatzenbach 0396fb0
fix: modify tsconfig to fix shadcn imports; import pagination component
cmatzenbach c7ec57e
refactor: expose pagination components; utilize in EntityTable in pla…
cmatzenbach fe5b2f9
formatting/linting
cmatzenbach a6eab6f
fix: only show loading when query is fetching
cmatzenbach 62753d6
fix: keep entities whos lifecycles are inside of window, even if lack…
cmatzenbach 73c70ca
refactor: group useEntityTable return value by filters/pagination/que…
cmatzenbach 3f62512
fix: stop toolbar Reset button from floating after sort-by field removal
cmatzenbach 47ff66a
refactor: use shadcn validation mechanisms
cmatzenbach 1b6e6e2
refactor: remove data volume calcs and display
cmatzenbach 022fd79
refactor: use constants instead of magic strings
cmatzenbach df7aa54
add shadcn slider component, export
cmatzenbach c0c65fd
Add shadcn slider field, create double-ended slider, export new compo…
cmatzenbach 9e9646b
feat: add slider to min usage and window fields
cmatzenbach 1a4ba64
fix: add rounding, fix font size to match other input fields defaults
cmatzenbach 6b6e032
refactor: use overlay for loading indicator; re-organize bottom row i…
cmatzenbach 6e4994c
refactor: move helpers to separate folder, rename to match convention
cmatzenbach 12e90d7
refactor: use max of longest-running entity for window slider max
cmatzenbach 9cbfb85
Merge branch 'main' into entities-panel
cmatzenbach 7220230
linting
cmatzenbach 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
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
31 changes: 31 additions & 0 deletions
31
ui/packages/@quent/components/src/lib/sliderField.utils.ts
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,31 @@ | ||
| // SPDX-FileCopyrightText: Copyright (c) 2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| // SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| export function clamp(value: number, min: number, max: number): number { | ||
| return Math.min(max, Math.max(min, value)); | ||
| } | ||
|
|
||
| export function parseOptionalNumber(value: string): number | null { | ||
| if (value.trim() === '') { | ||
| return null; | ||
| } | ||
| const parsed = Number(value); | ||
| return Number.isFinite(parsed) ? parsed : null; | ||
| } | ||
|
|
||
| /** Picks a "nice" step (1/2/5 * 10^n) so a slider spanning `span` units has roughly 100-200 stops. */ | ||
| export function niceSliderStep(span: number): number { | ||
| if (!Number.isFinite(span) || span <= 0) { | ||
| return 0.1; | ||
| } | ||
| const rawStep = span / 150; | ||
| const magnitude = 10 ** Math.floor(Math.log10(rawStep)); | ||
| const normalized = rawStep / magnitude; | ||
| const niceNormalized = normalized < 1.5 ? 1 : normalized < 3.5 ? 2 : normalized < 7.5 ? 5 : 10; | ||
| return niceNormalized * magnitude; | ||
| } | ||
|
|
||
| export function formatStep(value: number, step: number): string { | ||
| const decimals = step > 0 && step < 1 ? Math.min(6, Math.ceil(-Math.log10(step))) : 0; | ||
| return value.toFixed(decimals); | ||
| } | ||
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.