Skip to content
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

Inspector Tabs Updates #7987

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Open

Inspector Tabs Updates #7987

wants to merge 20 commits into from

Conversation

jvigliotta
Copy link
Contributor

Closes #7442, #7959
Combination of two similar PR's

Describe your changes:

Whenever the selection changes, the first tab (highest priority) is auto selected. There may be some cases (editing styles) when we'd want that tab to stay selected as well. Also updates when and where the tabs show based on the items being viewed.

All Submissions:

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?
  • Is this a notable change that will require a special callout in the release notes? For example, will this break compatibility with existing APIs or projects that consume these plugins?

Author Checklist

  • Changes address original issue?
  • Tests included and/or updated with changes?
  • Has this been smoke tested?
  • Have you associated this PR with a type: label? Note: this is not necessarily the same as the original issue.
  • Have you associated a milestone with this PR? Note: leave blank if unsure.
  • Testing instructions included in associated issue OR is this a dependency/testcase change?

Reviewer Checklist

  • Changes appear to address issue?
  • Reviewer has tested changes by following the provided instructions?
  • Changes appear not to be breaking changes?
  • Appropriate automated tests included?
  • Code style and in-line documentation are appropriate?

Copy link

codecov bot commented Jan 15, 2025

Codecov Report

Attention: Patch coverage is 89.39394% with 7 lines in your changes missing coverage. Please review.

Project coverage is 54.54%. Comparing base (5be103e) to head (087fbd3).

Files with missing lines Patch % Lines
src/ui/inspector/InspectorTabs.vue 75.00% 1 Missing and 1 partial ⚠️
...gins/LADTable/LADTableConfigurationViewProvider.js 0.00% 1 Missing ⚠️
src/plugins/LADTable/plugin.js 0.00% 1 Missing ⚠️
...c/plugins/inspectorViews/elements/ElementsPool.vue 0.00% 1 Missing ⚠️
...spectorViews/styles/StylesInspectorViewProvider.js 87.50% 1 Missing ⚠️
...imelist/inspector/TimeListInspectorViewProvider.js 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7987      +/-   ##
==========================================
- Coverage   57.70%   54.54%   -3.16%     
==========================================
  Files         678      678              
  Lines       27428    27439      +11     
  Branches     2691     2694       +3     
==========================================
- Hits        15826    14966     -860     
- Misses      11264    12137     +873     
+ Partials      338      336       -2     
Flag Coverage Δ
e2e-ci 53.34% <86.27%> (-9.48%) ⬇️
e2e-full 23.88% <62.74%> (-18.13%) ⬇️
unit 49.23% <71.21%> (-0.29%) ⬇️
Files with missing lines Coverage Δ
src/api/annotation/AnnotationAPI.js 86.66% <100.00%> (-4.89%) ⬇️
src/api/telemetry/TelemetryAPI.js 89.92% <100.00%> (-0.12%) ⬇️
src/api/types/TypeRegistry.js 73.33% <100.00%> (+1.90%) ⬆️
...gins/LADTable/components/LadTableConfiguration.vue 0.00% <ø> (ø)
...rts/bar/inspector/BarGraphInspectorViewProvider.js 100.00% <100.00%> (ø)
...tter/inspector/ScatterPlotInspectorViewProvider.js 66.66% <100.00%> (-33.34%) ⬇️
src/plugins/conditionWidget/plugin.js 100.00% <100.00%> (ø)
...ns/displayLayout/AlphanumericFormatViewProvider.js 65.21% <100.00%> (ø)
src/plugins/displayLayout/DisplayLayoutType.js 100.00% <ø> (ø)
...ns/displayLayout/components/AlphanumericFormat.vue 0.00% <ø> (ø)
... and 27 more

... and 110 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5be103e...087fbd3. Read the comment docs.

- Alphanumeric formatting tab set to default priority while editing, low priority during browse.
- Good styling for Format tab contents in browse mode.
- Properties tab set to low priority during editing, default during browse.
- Make Elements pool visible in browse mode, omit edit capabilities.
- Edit and browse mode priorities for Properties and Elements.
- Adjusted edit and browse mode priorities for Properties and Elements.
- Priority set for Gantt view.
@charlesh88
Copy link
Contributor

charlesh88 commented Jan 16, 2025

Todos

@jvigliotta

  • Priority doesn't appear to update when switching from browse to edit - it's only triggering on navigation or sub-object selection. So if I'm in the main view of a composable object, and I click to edit it, I'd expect the priority of a tab to be evaluated and for the Inspector to update. We need this, for example, to allow Properties as high priority during browse, and low priority when editing.
  • The Styles tab is working oddly now in main views: it's now appearing for some domain objects. I have two Display Layouts and it appears for one but not the other:

Screenshot 2025-01-15 at 5 31 55 PM

Screenshot 2025-01-15 at 5 32 08 PM

  • Show Annotations for Overlay and Stacked plots.
  • Fix LAD Table Set Config tab problem.
  • Properties tab should not show for non-domain objects.
  • Add objectStyles to older domain objects that weren't previously initialized with them in their configuration.
  • Add objectStyles to initialize functions for view types that @charlesh88 can't figure out how to do:
    • Telemetry Table
  • Notebook should only show Annotations tab when an entry is selected, and as the first tab.

@charlesh88

  • Add objectStyles {} to stylable domain object initializers.

@charlesh88
Copy link
Contributor

Have pushed work:

  • Alphanumeric formatting tab set to default priority while editing, low priority during browse.
  • Good styling for Format tab contents in browse mode.
  • Make Elements pool visible in browse mode, omit edit capabilities.
  • Priorities set for Properties and Elements tabs in browse and edit modes: high/low and low/high, respectively.

jvigliotta and others added 6 commits January 16, 2025 08:50
… tab shows for them, setting it for older versions
- Priorities set for Graph, Lad Table, Scatter Plot, Telem Tables and Time List views.
- Changed several Inspector tab names to 'Config'; tests and other code changed to target `key` instead of `name`:
  - LAD Table
  - Time List - will need regression testing for change noted re. `key` above.
- Created browse mode read-only Inspector views:
  - LAD Table, Lad Table set.
  - Telemetry Table.
  and `showTab` functions; `showTab` has just been set to true for now.
to prevent it from displaying when no filters can be set.
- Changed AnnotationsViewProvider.js canView to return false if editor.isEditing.
- Plot plugin.js now adds configuration.objectStyles {} for overlay and stacked plots on initialize.
- FiltersView now displays a message for telem sources that don't have filter criteria available.
- Code cleanup in FiltersInspectorViewProvider.js to remove metadata checks that never evaluated.
- Annotations tab now set to never display when a view is being edited.
@charlesh88
Copy link
Contributor

charlesh88 commented Jan 17, 2025

Pushed:

  • Priorities set for Graph, Lad Table, Scatter Plot, Telem Tables and Time List views.
  • Changed several Inspector tab names to 'Config'; e2e tests updated where needed:
    • LAD Table.
    • Time List.
  • Created browse mode read-only Inspector views:
    • LAD Table, Lad Table set.
    • Telemetry Table.
  • Changed AnnotationsViewProvider.js canView to return false if editor.isEditing.
  • Added objectStyles: {} to initialize functions for multiple objects:
    • Condition Widget
    • Gauge
    • LAD Table
    • Overlay and Stacked Plots
  • FiltersView now displays a message for telem sources that don't have filter criteria available.
  • Code cleanup in FiltersInspectorViewProvider.js to remove metadata checks that never evaluated.

- Added `objectStyles: {}` to initialize functions for multiple objects:
  - Condition Widget
  - Gauge
  - LAD Table
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.

Highest priority inspector tab is not auto selected
2 participants