Concept page: special display for deprecated concepts#1918
Conversation
|
On further notice, I would consider dropping the bread crumb line, as it does not really offer anything useful here. Then again, this is only true in cases (like at NLF) where the deprecated concept is removed from the hierarchy. As this is not a requirement in the SKOS specification, it's probably safer to display the bread crumb section in case it makes sense for some other controlled vocabularies. Just a thought. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1918 +/- ##
============================================
+ Coverage 70.27% 71.03% +0.75%
- Complexity 1658 1694 +36
============================================
Files 34 34
Lines 4364 4502 +138
============================================
+ Hits 3067 3198 +131
- Misses 1297 1304 +7 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Good catch! Fixed in a91b494
Well, Skosmos 2 displays the breadcrumb and it's also shown in the Skosmos 3 visual design for deprecated concepts. So I think I'm leaving it in, even though it's a bit nonsensical for NLF vocabularies. Added translations (had to adjust message keys, which led to some churn) and a Cypress test. I think this is now ready. |
UnniKohonen
left a comment
There was a problem hiding this comment.
I would remove the .alert-danger bootstrap class but otherwise looks good!
|




Reasons for creating this PR
This implements special display for deprecated concepts: there is a warning box indicating that the concept has been deprecated (with links to replacements if available), and the text within the concept card is shown in a greyish, muted color.
Here is how it looks:
Link to relevant issue(s), if any
Description of the changes in this PR
--muted-colorand--main-content-disabled), matching existing variable naming practiceKnown problems or uncertainties in this PR
I had to adjust the visual design because I found the original design problematic in many ways. Here are things I did:
Checklist
.sr-onlyclass, color contrast)