NatLibFi / Skosmos

Thesaurus and controlled vocabulary browser using SKOS and SPARQL
Other
218 stars 94 forks source link

Concept page mappings: style and visibility fixes #1613

Closed osma closed 3 months ago

osma commented 3 months ago

Reasons for creating this PR

The layout and styling of concept mappings was wrong after opening the vocabulary home page and clicking on links that perform a partial page load. Also, when switching between concepts, the mappings didn't update immediately, so the wrong (stale) set of mappings could be shown.

This PR addresses the above problems by adjusting the template structure of the concept-mappings Vue component and making the display of the div element with the actual mappings conditional on the existence of mappings.

Link to relevant issue(s), if any

Description of the changes in this PR

Known problems or uncertainties in this PR

image

Checklist

codecov[bot] commented 3 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 70.58%. Comparing base (f22c504) to head (3e66b74). Report is 5 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1613 +/- ## ========================================= Coverage 70.58% 70.58% Complexity 1647 1647 ========================================= Files 32 32 Lines 4321 4321 ========================================= Hits 3050 3050 Misses 1271 1271 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

sonarcloud[bot] commented 3 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

osma commented 3 months ago

Fixed the mappings initialization and added the spinner to the TODO list in the conccept page issue. Merging this now.