Skip to content

fix(cve5): add guidance for ASF-specific detail fields - #296

Open
Anurag-S1ngh wants to merge 1 commit into
apache:mainfrom
Anurag-S1ngh:fix/279-asf-details-guidance
Open

Anurag-S1ngh wants to merge 1 commit into
apache:mainfrom
Anurag-S1ngh:fix/279-asf-details-guidance

Conversation

@Anurag-S1ngh

Copy link
Copy Markdown

Summary

Makes the info icon next to ASF-specific details show a tooltip and adds guidance for the Defects and Advisory fields.

Changes

  • Set infoText on the ASF source object and descriptions on the two fields in custom/cve5/conf.js
  • Honour options.infoText on object titles in the editor UI
  • Regenerate public/js/vg-editor.js

Testing

  • npm run unittest: passes
  • Confirmed the merged schema contains the new text
  • Editor bundle is in sync with src

Closes #279

@raboof raboof left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm not sure it makes sense to add the infoText feature - just the descriptions might be sufficient, WDYT?

@Anurag-S1ngh

Copy link
Copy Markdown
Author

infoText already exists here: the editor uses it for field labels, and conf.js uses it for packageURL, so this just extends it to the section title. The report is specifically about the info icon on that title, which comes from vgi-info in cve5.schema.json; descriptions do nothing for it. I would keep both. If the icon is not wanted, I can remove vgi-info and drop the ui.js change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ASF-specific details fields

2 participants