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

Since Navigator 4.5.5 suddenly there's an underline color when metadata is filled #400

Open
rubinatorz opened this issue Jan 11, 2022 · 2 comments
Labels
enhancement New feature or request Points: 3 3 agile story points seeking feedback Seeking feedback from the community on this issue

Comments

@rubinatorz
Copy link

hi there!

Since latest 4.5.5 release of the Navigator, all layers suddenly have underlines for techniques:

Screenshot 2022-01-11 at 14 34 23

Before this new Navigator version, you only get an underline when you have filled in a comment. But now, it will also give an underline when having metadata.

I see this is done on purpose in this commit:
bc4ad9f#diff-e49d1d934cc9d96bce820fb261164a66e14c3c90fa2364ff83b6d12201992182

There's now a function getTechniqueUnderlineColor that determines the underline when this condition is true:
tvm.comment.length > 0 || tvm.metadata.length > 0 || this.hasNotes()

Instead of only when no comment is filled in (how it was before):
<span [style.border-color]="configService.getFeature('comment_underline') ? configService.comment_color: ''" [style.color]="getTechniqueTextColor()">

This change has a huge impact. It makes Navigator layers, and thus also the layers of users using DeTT&CT, significantly less attractive and hence less usable for presenting results. See examples beneath how it looks like when you create layers with DeTT&CT.

We propose to undo this change of underlining. Or give a possibility to influence this.

Screenshot 2022-01-11 at 14 46 07

Screenshot 2022-01-11 at 14 46 15

Screenshot 2022-01-11 at 14 46 23

Regards,
Ruben

@clemiller
Copy link
Contributor

clemiller commented Jan 11, 2022

Hi @rubinatorz,

Thanks for your comment! You're correct this was a purposeful change - to include an underline on a technique when it has metadata attached. This was a feature we'd previously had on the Navigator long ago, but it was dropped at some point. We re-added it to make it possible to see if metadata exists at a glance. To disable the metadata underline, you can change the comment_underline setting to false in the config file or via the "create customized Navigator" interface. However, this does disable the underline for comments as well, so I definitely agree it would be beneficial to provide a way to influence this behavior.

Since we'd like to retain the underline feature for metadata, I'd propose that we add a new metadata_underline setting in the configuration file that would allow users to separately turn off the underline shown on techniques with assigned metadata. This would de-couple the comment & metadata underline feature and therefore wouldn't impact any comment underline effects that are displayed. I'm curious to hear your thoughts on this & if this would be sufficient to address this issue.

@rubinatorz
Copy link
Author

hi @clemiller

I agree having a separate setting for the metadata underline is useful. However, in our opinion it's more useful to influence this settings via the layer JSON (LayerObject). DeTT&CT outputs JSON layers and when loading these you don't want to change the URL every time.

We, and many people I guess, always use the Github hosted version of Navigator, so we are not able to use a custom config file.

Regards,
Ruben

@clemiller clemiller added enhancement New feature or request seeking feedback Seeking feedback from the community on this issue labels Jan 11, 2022
@clemiller clemiller added this to the Version 4.6.0 milestone Jan 11, 2022
@clemiller clemiller added the Points: 3 3 agile story points label Apr 27, 2022
@clemiller clemiller removed this from the Version 5.0.0 milestone Feb 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Points: 3 3 agile story points seeking feedback Seeking feedback from the community on this issue
Projects
None yet
Development

No branches or pull requests

2 participants