dashboardtemplates

package
v1.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 6, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

templ: version: v0.3.1020

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DashboardContent

func DashboardContent(stats Stats, frameworks []FrameworkSummary, frameworkFilter string, frameworkTotal, frameworkRegCount, frameworkStdCount, frameworkDirCount int, recentActivities []db.ListRecentActivitiesRow, myActivities []db.ListActivitiesForUserRow, myMeasures []db.Measure, riskStats RiskStats, flags middleware.ModuleFlags) templ.Component

Types

type FrameworkSummary

type FrameworkSummary struct {
	ID       string
	Name     string // Short display name (short_name or fallback)
	Ref      string // Full name / version as subtitle (may be empty)
	Type     string // "regulation" | "standard" | "directive"
	Total    int64
	Coverage int
}

type OrgFilterOption

type OrgFilterOption struct {
	ID    string
	Name  string
	Depth int
}

type RiskReviewItem

type RiskReviewItem struct {
	RiskID          string
	AssessmentID    string
	Name            string
	AssessmentName  string
	CurrentScore    int
	HasCurrentScore bool
	ReviewDue       time.Time
	HasReviewDue    bool
}

type RiskStats

type RiskStats struct {
	Total             int64
	RedCount          int64
	YellowCount       int64
	GreenCount        int64
	Matrix            []layout.RiskMatrixCell
	TopRisks          []db.ListTopRisksRow
	ReviewNeededCount int64
	ReviewQueue       []RiskReviewItem
	LowMax            int
	HighMin           int
	OrgOptions        []OrgFilterOption
	OrgSelected       string
	OrgName           string
}

type Stats

type Stats struct {
	FrameworksCount            int64
	RequirementsCount          int64
	MeasuresCount              int64
	ImplementedCount           int64
	CoveredRequirementsCount   int64
	OverdueActivitiesCount     int64
	ActivitiesDueThisWeekCount int64
}

func (Stats) CoveredPct

func (s Stats) CoveredPct() int

func (Stats) ImplementedPct

func (s Stats) ImplementedPct() int

func (Stats) UncoveredRequirementsCount

func (s Stats) UncoveredRequirementsCount() int64

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL