-
Notifications
You must be signed in to change notification settings - Fork 30
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
Feature/1066/metric descriptors in ribbon bar #3273
Feature/1066/metric descriptors in ribbon bar #3273
Conversation
...BarPrimaryMetrics/attributeSideBarPrimaryMetric/attributeSideBarPrimaryMetric.component.html
Outdated
Show resolved
Hide resolved
…ly selected metric
…ptor input instead of `metric.descriptor` #1066
legend*Selectors and reduced secondaryMetric.selectors
none; attributeDescriptor
I was so free to push the needed adjustment for the area metric chooser with this commit. The mocked store is really stupid (which is nice, as it separates concerns and is performant). It is just a mocked value and a stream of dispatched actions. For UI changes we need to update the mocked value manually. Or use the real store instead of the mocked store. Also see there official testing guide https://v8.ngrx.io/guide/store/testing ;) I guess it previously worked as the selected value was just the displayed value. |
@shaman-apprentice I noticed the e2e-tests do not perform very well when run in parallel (compared to main). They are unstable and take forever. |
visualization/app/codeCharta/ui/attributeSideBar/attributeSideBar.component.spec.ts
Outdated
Show resolved
Hide resolved
visualization/app/codeCharta/util/simplePipes/attributeDescriptorTooltip.pipe.spec.ts
Outdated
Show resolved
Hide resolved
That's fine
I checked out the branch this morning and did an npm i and npm run dev. I used the map you have provided to me a few weeks ago. I am wondering why the hints are shown in the sidebar but not in the legend for the same metric.
Thank you! Let's discuss this in person.
When I load the map you have provided to me, the text in the metric choosers is looking like this. We can have a look together but it might be a bug. |
My bad. The bugs are gone after rebuilding/pulling the current state. Sorry. |
(AD = attributeDescriptor) So in the legend all information is already displayed, and there is nothing more that could be a tooltip, which is different from the sidebar, because we only show the metric key there and can add the title to the tooltip. |
Add test for legend links; Remove unused styles; #1066
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Early approve: I only read the code and did no testing. Cool feature and nice work! 👍
.../attributeSideBar/attributeSideBarPrimaryMetrics/attributeSideBarPrimaryMetrics.component.ts
Outdated
Show resolved
Hide resolved
...buteSideBar/attributeSideBarSecondaryMetrics/attributeSideBarSecondaryMetrics.component.html
Outdated
Show resolved
Hide resolved
...ributeSideBar/attributeSideBarSecondaryMetrics/attributeSideBarSecondaryMetrics.component.ts
Show resolved
Hide resolved
visualization/app/codeCharta/ui/legendPanel/legendPanel.component.spec.ts
Outdated
Show resolved
Hide resolved
visualization/app/codeCharta/ui/legendPanel/legendPanel.component.spec.ts
Outdated
Show resolved
Hide resolved
visualization/app/codeCharta/util/simplePipes/SimplePipesModule.ts
Outdated
Show resolved
Hide resolved
visualization/app/codeCharta/util/simplePipes/attributeDescriptorTooltip.pipe.ts
Outdated
Show resolved
Hide resolved
When a test fails, there will be a lot of timeout hits before failing. That is why they take forever if failing. When they are stable if executed in serial I wouldn't spent too much time into it, but invest the time into the ongoing migration to Playwright (JFI: @Hall-Ma @ce-bo ) |
Refactor constructors, Improve delta check; Format html tags
[CodeCharta Analysis] Kudos, SonarCloud Quality Gate passed! |
[CodeCharta Visualization] Kudos, SonarCloud Quality Gate passed! |
Attribute Descriptors / Metric Descriptors for the Ribbon Bar (Metric Choosers) & Metric Links in Sidebar
Closes #1066
Description
This adds a tooltip (in form of a html title tag) to the metric choosers in the ribbon bar.
Metric Chooser entries will get a clear name display in form of a subtitle.
Metric names in the sidebar will be changed to external links that refer to the documentation if such an field exists in the attributeDescriptors.
Screenshots