question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Metric Attribute list side bar

See original GitHub issue

Feature request

Let’s incrementally change our UI. Next stop, move the metric attribute list to the right side.

Currently the metric attribute list can be opened by clicking on the file path indicator. In the settings this is called the detail panel. This issue replaces this detail panel and it can be removed.

Description

The new metric side bar is useful when users want to check out other metrics beside the three selected ones for size, height and color: “this building has high complexity, bad line coverage but how often is it actually changed?”. The features are:

  • Is on the right side
  • opens if a user has selected a building (orangy), closes if she deselects a buildings or if he presses the close symbol
  • will only show metrics for the selected building
  • it can be scrolled, just like before, to check out all the other metrics.
  • the name and basic metrics are “frozen”, so we don’t lose this information while looking at other metrics
  • the window should be horizontally very slim
  • ~If the user clicks on the file path it opens vertically, like a tree view. Unlike a tree view it can only be expanded fully and minimized fully. And unlike our regular tree view on the upper left side it does not~
  • Show the URL in a tooltip when hovering the nodeLink icon
  • Hide AttributeSideBar onFileSelectionStateChanged and onBlacklistChanged
  • the full path requires a lot of horizontal space. So we won’t show the complete file path and instead only the fitting parts. The path is now word-wrap and shown over multiple lines.
  • Fix scrolling behaviour when fixed header is getting longer due to long strings visible over multiple lines.
  • Move the viewCube component when the sideBar is opened to be on the left of it (see comment below)
  • Move the legendPanel when the sideBar is opened to be on the left of it (see comment below)
  • For the above metrics table: Show two metrics in a row (see comment below)
  • Move the link icon next to the selected nodename
  • Move the close icon to the top right corner
  • Color the delta value background box according to the node.deltas["theMetric"] and settings.appSettings.invertColors in light green or red. This would currently mean 4 times duplicated code inside the html file.

show the complete structure, but only the path to this specific file.

The result looks something like this:

Metric-Bar

While I do like the radial buttons proposed in the screen shot I think we should implement these buttons with a later story.

Inspiration

I was inspired by this UI mockup:

UI-Refactoring

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:14 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
Richarghcommented, Aug 2, 2019

I updated the description 😃

  • only show metrics for the selected building

–> yes

  • I am not yet convinced to “duplicate” the treeView though.

Wasn’t the intention. I only wanted to show the path to the selected file using the vertical space instead of the horizontal space. Instead of showing the path like this:

/root/de/maibornwolff/codecharta/visualization/app/settings/services/foo/service.spec.ts

we can show it like this:

root
  de.maibornwolff.codecharta.visualization --> compatacted because the folders are empty
   app
      settings
         services
           foo
             service.spec.ts
0reactions
fatihicommented, Oct 21, 2019

Oh that’s nice! In that case could you link them together?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bars: Multiple Metric Charts - Logi Analytics
Multiple metric bar charts are based on multiple metrics and one attribute. They are supported by all Composer data connectors.
Read more >
Creating standard calculated metrics and attributes
For a list of all available calculated metrics and attributes, see Calculation ... click the calculations icon ( ) on the right sidebar....
Read more >
Defining Metrics Reference Sheet
Returns the number of unique values belonging to some attribute. Figure 3 Add project elements to your MAQL metric definitions using the sidebar....
Read more >
Define Metrics in Reports - FieldAware
Metrics are used to build reports. They are the numerical values displayed in reports. They represent aggregations of facts and attributes.
Read more >
Using a time dimension for attributes and metrics - Support
Put the attribute or metric in edit mode by clicking or to the left of the attribute or metric. In the control bar...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found