Skip to content

Comments

feat: add vulnerability report form#151

Open
martinjagodic wants to merge 9 commits intomainfrom
vulnerability-form
Open

feat: add vulnerability report form#151
martinjagodic wants to merge 9 commits intomainfrom
vulnerability-form

Conversation

@martinjagodic
Copy link
Member

@martinjagodic martinjagodic commented Feb 13, 2026

We need a way to report vulnerabilities; this form will do the job.

  • saves the submission to Netlify Forms and sends us an email.
  • some other helpers and refactors (page-hero, is-hidden classes etc.)

Test here:
https://deploy-preview-151--decap-www.netlify.app/report-vulnerability/

@netlify
Copy link

netlify bot commented Feb 13, 2026

Deploy Preview for decap-www ready!

Name Link
🔨 Latest commit fb266db
🔍 Latest deploy log https://app.netlify.com/projects/decap-www/deploys/6996bad4e81dd10008b4eba4
😎 Deploy Preview https://deploy-preview-151--decap-www.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a new “Report a Security Vulnerability” page to the Hugo-based Decap CMS website, using Netlify Forms for submission handling, and introduces shared UI helpers (page hero + form styling) while refactoring the Community page header.

Changes:

  • Add a new report-vulnerability layout, content page, form partial, and client-side form submission script.
  • Introduce shared page-hero partial and related styling; refactor Community page to use it and adjust front matter/CMS fields accordingly.
  • Add generic form styles and an is-hidden utility class; bump Netlify Hugo version.

Reviewed changes

Copilot reviewed 16 out of 16 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
static/admin/config.yml Updates Community collection fields to match new front matter shape (linkTitle/title/description).
netlify.toml Pins Netlify builds to Hugo 0.155.3.
layouts/report-vulnerability/single.html New page layout wiring page hero, form partial, page content, and page-specific JS.
layouts/partials/page-hero.html New reusable hero partial for page title + description.
layouts/partials/forms/vulnerability-report-form.html New Netlify-backed vulnerability report form markup.
layouts/_default/community.html Refactors Community header to use page-hero.
content/report-vulnerability.md Adds the new vulnerability reporting page and its form field configuration.
content/community.md Adjusts Community front matter to match the new hero model (linkTitle/title/description).
assets/styles/style.scss Adds imports for new forms and page-hero styles; modifies component imports.
assets/styles/layouts/_community.scss Removes old community header spacing now handled by page-hero.
assets/styles/components/_search.scss Small tweak to avoid form margin impacting search form.
assets/styles/components/_page-hero.scss Adds spacing for the new page hero component.
assets/styles/components/_button.scss Adds disabled button styling (used by the form submit button).
assets/styles/_forms.scss Adds global form element styling and success/error message styling.
assets/styles/_base.scss Adds .is-hidden helper class for toggling form UI states.
assets/scripts/vulnerability-form.js Adds client-side POST submission and success/error UI handling.

martinjagodic and others added 2 commits February 13, 2026 11:21
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 18 out of 18 changed files in this pull request and generated 4 comments.

martinjagodic and others added 2 commits February 13, 2026 11:31
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Contributor

@yanthomasdev yanthomasdev left a comment

Choose a reason for hiding this comment

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

Good work @martinjagodic, I have a few suggestions

if (!res.ok) {
throw new Error(`HTTP error! status: ${res.status}`)
}
submitButton.disabled = false
Copy link
Contributor

Choose a reason for hiding this comment

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

No need to reenable the button in the success case since the form is going to be hidden

Suggested change
submitButton.disabled = false

Co-authored-by: Yan <61414485+yanthomasdev@users.noreply.github.com>
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.

2 participants