Skip to content

Shorten long lists of property values, with link to expand#969

Merged
osma merged 5 commits intomasterfrom
issue833-shorten-propvals
Apr 9, 2020
Merged

Shorten long lists of property values, with link to expand#969
osma merged 5 commits intomasterfrom
issue833-shorten-propvals

Conversation

@osma
Copy link
Member

@osma osma commented Apr 8, 2020

This PR changes the way property values (e.g. skos:narrower or skos:related) are displayed when there are many of them. If there are more than 10 values (current hardcoded value), the list will be cut to the first 10 and a link [show all X values] will be shown after those. Example:

image

The message is translated - the PR includes Finnish, Swedish and English translations.

Fixes #833

@osma osma added this to the 2.5 milestone Apr 8, 2020
@osma osma self-assigned this Apr 8, 2020
@osma osma requested a review from joelit April 8, 2020 13:25
@codecov
Copy link

codecov bot commented Apr 8, 2020

Codecov Report

Merging #969 into master will not change coverage by %.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #969   +/-   ##
=========================================
  Coverage     58.79%   58.79%           
  Complexity     1505     1505           
=========================================
  Files            32       32           
  Lines          4208     4208           
=========================================
  Hits           2474     2474           
  Misses         1734     1734           

Continue to review full report at Codecov.

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

Copy link
Contributor

@joelit joelit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good. I can foresee a request for hiding long lists again once they are revealed but that can be added later if someone really needs such.

@osma
Copy link
Member Author

osma commented Apr 9, 2020

Thanks @joelit ! Potential further work items before this is merged:

  • increase the cutoff limit (currently set to 10 values)
  • optimize the repeated jQuery expressions

@osma osma mentioned this pull request Apr 9, 2020
@osma osma marked this pull request as ready for review April 9, 2020 07:38
@sonarqubecloud
Copy link

sonarqubecloud bot commented Apr 9, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@osma osma merged commit 50c9ade into master Apr 9, 2020
@osma osma deleted the issue833-shorten-propvals branch April 9, 2020 07:45
joelit pushed a commit that referenced this pull request Apr 9, 2020
updated translations

> PR #969 has been merged and Transifex updated to reflect the msgid changes. @joelit Please reload once more from Transifex, then we can merge this!

Will do!
@joelit joelit mentioned this pull request Nov 21, 2023
60 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tediously long property lists for concepts in certain classification systems

2 participants