Skip to content

DAST Site validation - Add Validation Component - Frontend

Summary

This issue is for adding the presentational compontents (toggle, inputs, form, etc.) to the site profile creation / update page.

Design

Implementation Plan

  • The Validation section should be hidden as long as the Target URL is invalid
  • Add GlToggle and section that is expanded / collapsed based on the toggle's state
  • Default to the toggle set to false but if the site has been verified it should be set to true
  • Within the section:
    • Show an alert if the current profile has not been validated
      • Enabling the toggle, or changing the Target URL while the toggle is enabled should trigger a GraphQL query to verify whether the site has already been validated (TODO: agree on schema)
    • Step 1:
      • Add GlFormGroup which contains a button that lets the user download the text file specific to the project (?profile)
    • Step 2:
      • Add GlFormGroup which contains a text input (prepending the targetURL)
  • Specs
Edited by Paul Gascou-Vaillancourt