CIA Compliance Manager API Documentation - v1.0.1
    Preparing search index...

    Function getSecurityLevelPercentage

    • Provides a numerical representation of security levels for UI presentation

      Converts security levels to percentage strings for use in progress bars, gauges, and other visual indicators. Maps 0-4 scale to 0-100% range in 25% increments.

      Parameters

      • level: string

        The security level (string or SecurityLevel enum)

      Returns string

      A percentage string (0%, 25%, 50%, 75%, or 100%)

      getSecurityLevelPercentage('None')        // "0%"
      getSecurityLevelPercentage('Low') // "25%"
      getSecurityLevelPercentage('Moderate') // "50%"
      getSecurityLevelPercentage('High') // "75%"
      getSecurityLevelPercentage('Very High') // "100%"

      // Use in UI components
      <ProgressBar value={getSecurityLevelPercentage(level)} />