Skip to content

fix(cve5): use a success icon for the publish confirmation - #304

Open
Anurag-S1ngh wants to merge 1 commit into
apache:mainfrom
Anurag-S1ngh:fix/114-success-alert-icon
Open

Anurag-S1ngh wants to merge 1 commit into
apache:mainfrom
Anurag-S1ngh:fix/114-success-alert-icon

Conversation

@Anurag-S1ngh

Copy link
Copy Markdown

Summary

The publish confirmation now shows a success icon instead of the warning triangle, and every other alert resets back to the warning icon.

Changes

  • Let showAlert take a kind and pick the vgi-ok or vgi-alert class
  • Pass success from the publish confirmation in default/cve5/portal.js
  • Regenerate public/js/vg-editor.js

Testing

  • npm run unittest: passes
  • Syntax checks pass; the dialog still needs a browser look

Closes #114

@raboof

raboof commented Nov 19, 2026

Copy link
Copy Markdown
Member

wouldn't this make sense for upstream (https://github.com/Vulnogram/Vulnogram)?

@Anurag-S1ngh

Copy link
Copy Markdown
Author

The alert dialog and showAlert are upstream code, and upstream 1.0.5 still hardcodes the vgi-alert class, so the bug exists there too. I am fine sending an equivalent change upstream.

The reason I opened it here is timing. The last upstream merge on this fork was 1.0.3 in May, upstream is now on 1.0.5, and master has moved showAlert into public/js/vg-alert.js with a rewritten publish flow. Waiting for a merge would leave #114 broken here with no date attached, and this is the publishing flow the report is about.

Proposal: land this small fix here now, and I open a separate PR upstream against master with the same change. If you would rather close this and do upstream only, say so.

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.

Push success box is an error box

2 participants