-
Notifications
You must be signed in to change notification settings - Fork 15
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
improve software categories #1143
Conversation
b77b4f1
to
6b520c0
Compare
|
Categories which are marked as `is_highlight` are visually brought out. In the software edit view they get an extra dropdown menu and in the software view they have an extra section in the main content area. Categories on different levels in the hierarchy could have different extra properties. These are now aggregated in one database column `properties` of type JSONB.
6b520c0
to
afff730
Compare
Use ontology mapping techniques like exactMatch from SKOS. https://www.w3.org/TR/skos-reference/#mapping
…gories frontend/components/software/edit/links/AutosaveSoftwareCategories.tsx
Implementation of table representation is moved into another PR to speed up community feature PR |
@fembau To fix failing unit test please add empty categories array to const softwarePageData = {
slug: 'test-slug',
software: softwareItem,
citationInfo: SoftwareCitationItems,
keywords: apiKeywordsBySoftware,
licenseInfo,
repositoryInfo: repoInfo,
mentions: apiMentions,
testimonials: apiTestimonial,
contributors: apiContributors,
relatedTools: apiRelatedSoftware,
relatedProjects: apiRelatedProjects,
isMaintainer: false,
organisations: apiOrganisationsOfSoftware,
// add categories to mock data
categories:[]
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work, thank you 👍
frontend/components/software/edit/links/AutosaveSoftwareCategories.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work! I placed few minor suggestions based on sonar cloud advice.
|
|
How to test:
see #984