gr — Public API surface
Types & interfaces
interface ActionNodeData
- file: src/cores/gr/components/procedures/nodes/ActionNode.tsx:29
- kind: interface
- core: gr
- spec: GR-11
- summary: Data payload for a procedure-flow action node (a standard step).Carried on the React Flow node and rendered by . is thestep name; the optional fields describe instructions, the responsible role,and an estimated duration in minutes.
- see:
- ActionNode
- score: 5
type AIGeneratedProcedure
- file: src/cores/gr/ai/procedureSchemas.ts:89
- kind: type
- core: gr
- spec: GR-11
- summary: A complete AI-generated procedure draft returned by the proceduregeneration assistant.Inferred from . Wraps an ordered list of along with categorization, an optional suggestedreview cadence, and a score (0–100) the reviewer uses to gaugehow much editing the draft needs before publishing.
- score: 5
type AIProcedureStep
- file: src/cores/gr/ai/procedureSchemas.ts:50
- kind: type
- core: gr
- spec: GR-11
- summary: A single step within an AI-generated procedure draft.Inferred from . drives whichworkflow node the step becomes (action, decision, reference, verification,or system); optional fields (, , etc.)are populated only when relevant to the step type.
- score: 5
type AuditPrep
- file: src/cores/gr/ai/schemas.ts:136
- kind: type
- core: gr
- spec: GR-06
- summary: AI-generated audit-readiness assessment.Inferred from . Combines an overall (0–100) with a narrative assessment, prioritized gap areas, potentialfindings, and a per-item checklist whose flags whether each item is, , or .
- score: 5
type AuditSeverity
- file: src/cores/gr/components/AuditSeverityBadge.tsx:16
- kind: type
- core: gr
- spec: GR-04
- summary: Severity level of an audit finding, ordered low to critical.Drives the color variant rendered by .
- see:
- AuditSeverityBadge
- score: 5
interface AuditStats
- file: src/cores/gr/hooks/useAuditStats.ts:33
- kind: interface
- core: gr
- spec: GR-04
- summary: Audit summary statistics for the GR overview dashboard.Aggregates counts across audits, findings, and corrective actions: auditlifecycle counts (total / active / upcoming-30-day / completed), open andcritical findings, and open vs overdue corrective actions.
- see:
- useAuditStats
- score: 5
interface BoardMinutes
- file: src/cores/gr/hooks/useBoardMinutes.ts:44
- kind: interface
- core: gr
- spec: GR-15
- summary: A board meeting minutes record ( row).Org-scoped via (RLS-enforced). Carries the meeting date,type, title, attendees, free-text content, approval audit fields, and a bag for org-defined extensions.
- see:
- useBoardMinutesList
- score: 5
interface BoardResolution
- file: src/cores/gr/hooks/useBoardResolutions.ts:47
- kind: interface
- core: gr
- spec: GR-15
- summary: A board resolution record ( row).Org-scoped via (RLS-enforced) and optionally linked to theminutes it was passed under (). Tracks the resolution number,motion/second attribution, for/against/abstain vote tallies, , anda bag for org-defined extensions.
- see:
- useBoardResolutionsList
- score: 5
type CapStatus
- file: src/cores/gr/lib/cap-state-machine.ts:9
- kind: type
- core: gr
- spec: (none)
- summary: Valid CAP statuses
- score: 1
interface CoiAttestation
- file: src/cores/gr/hooks/useCoiAttestations.ts:42
- kind: interface
- core: gr
- spec: GR-15
- summary: A conflict-of-interest attestation record ( row).Org-scoped via (RLS-enforced) and tied to a profile for agiven . Records the person’s role at attestation time,status, whether a conflict was disclosed and its description, submission andacknowledgment audit fields, a bag, and an optional joined summary.
- see:
- useCoiAttestations
- score: 5
interface CoiAttestationCycleWizardDialogProps
- file: src/cores/gr/wizards/coi-cycle/CoiAttestationCycleWizardDialog.tsx:26
- kind: interface
- core: gr
- spec: GR-15
- summary: Props for .Standard controlled-dialog props: toggles visibility and reports the requested open state.
- see:
- CoiAttestationCycleWizardDialog
- score: 5
interface CoiCycleReminderConfig
- file: src/cores/gr/hooks/useCoiMutations.ts:14
- kind: interface
- core: gr
- spec: (none)
- summary: Optional wizard metadata persisted on each new row ().
- score: 2
interface CoiRosterProfile
- file: src/cores/gr/wizards/coi-cycle/hooks/useCoiRoster.ts:26
- kind: interface
- core: gr
- spec: GR-UX-09
- summary: A selectable roster member for the COI attestation cycle wizard.A minimal profile projection (id, name, email) sourced from PF shared tablesonly, used to pick cycle participants without importing the HR core.
- see:
- useCoiRoster
- score: 5
interface CoiRosterStepProps
- file: src/cores/gr/wizards/coi-cycle/steps/CoiRosterStep.tsx:44
- kind: interface
- core: gr
- spec: GR-UX-09
- summary: Props for the COI cycle wizard’s roster-selection step.Receives the eligible and current selection state(, ), reports edits through , andsurfaces validation via . drives the loadingpresentation.
- see:
- CoiRosterStep
- score: 5
interface CoiStats
- file: src/cores/gr/hooks/useCoiStats.ts:32
- kind: interface
- core: gr
- spec: GR-15
- summary: Completion statistics for a COI attestation cycle.Rolls up attestation counts by status (pending / submitted / acknowledged),the number with a disclosed conflict ( / ), and a percentage.
- see:
- useCoiStats
- score: 5
interface ComplianceStats
- file: src/cores/gr/hooks/useComplianceStats.ts:32
- kind: interface
- core: gr
- spec: GR-03
- summary: Compliance summary statistics for the GR overview dashboard.Reports requirement counts (total / compliant / non-compliant), a derived percentage, and outstanding work: overdue compliancechecks plus open and overdue remediations.
- see:
- useComplianceStats
- score: 5
interface ContributeTemplateInput
- file: src/cores/gr/hooks/useContributeTemplate.ts:39
- kind: interface
- core: gr
- spec: GR-12
- summary: Input for saving an approved procedure as a reusable procedure template.Identifies the source procedure () and the template metadata topersist: title, optional description, category, tags, the workflow graph( / ), optional regulatory-body links, and anoptional suggested policy category.
- see:
- useContributeTemplate
- score: 5
interface CreateTemplateValues
- file: src/cores/gr/hooks/useProcedureTemplateMutation.ts:36
- kind: interface
- core: gr
- spec: GR-12
- summary: Values for creating a new procedure template.Carries the template metadata, optional regulatory-body links and tags, andthe workflow graph. A null requests a platform-shared(global) template, which is restricted to platform admins.
- see:
- useProcedureTemplateMutation
- score: 5
interface CycleConfigStepProps
- file: src/cores/gr/wizards/coi-cycle/steps/CycleConfigStep.tsx:35
- kind: interface
- core: gr
- spec: GR-UX-09
- summary: Props for the COI cycle wizard’s configuration step.Holds the cycle’s and with their changecallbacks, the selectable , per-field validation messages(), and to indicate an in-flight checkfor an existing cycle in the chosen year.
- see:
- CycleConfigStep
- score: 5
interface DecisionNodeData
- file: src/cores/gr/components/procedures/nodes/DecisionNode.tsx:31
- kind: interface
- core: gr
- spec: GR-11
- summary: Data payload for a procedure-flow decision node (a branch point).Carried on the React Flow node and rendered by . Each entry in becomes a labeled output branch optionally wired to atarget node; when omitted the renderer defaults to Yes/No branches.
- see:
- DecisionNode
- score: 5
interface DocumentExportDialogProps
- file: src/cores/gr/components/DocumentExportDialog.tsx:38
- kind: interface
- core: gr
- spec: none
- summary: Props for , generic over the source documenttype .The dialog is document-agnostic: callers supply the object, a extractor that maps it to , and a used to filter the available document templates.
- see:
- DocumentExportDialog
- score: 5
interface EvidenceCoverageByCategory
- file: src/cores/gr/hooks/useComplianceEvidenceCoverage.ts:18
- kind: interface
- core: gr
- spec: (none)
- summary: Per-category evidence coverage ratio.
- score: 2
interface EvidenceGap
- file: src/cores/gr/hooks/useComplianceEvidenceCoverage.ts:26
- kind: interface
- core: gr
- spec: (none)
- summary: A regulatory requirement that has no compliance evidence yet.
- score: 2
type ExportFormat
- file: src/cores/gr/utils/qiReportExport.ts:22
- kind: type
- core: gr
- spec: GR-07
- summary: Output format selected when exporting a QI report.
- score: 5
type GapAnalysis
- file: src/cores/gr/ai/schemas.ts:93
- kind: type
- core: gr
- spec: GR-06
- summary: AI-identified compliance gaps with remediation guidance.Inferred from . Each gap is classified by (evidence, check, training, or policy), assigned a risk-based priority, andpaired with a recommendation plus concrete for closing it.
- score: 5
interface GapAnalysisItem
- file: src/cores/gr/hooks/useAccreditationGapAnalysis.ts:36
- kind: interface
- core: gr
- spec: GR-16
- summary: Per-standard gap analysis result for an accreditation.Each item reports a standard’s evidence counts ( /), whether a gap exists (), and human-readable (e.g. no evidence, no verified evidence, some unverified).
- see:
- useAccreditationGapAnalysis
- score: 5
interface GapAnalysisSummary
- file: src/cores/gr/hooks/useAccreditationGapAnalysis.ts:68
- kind: interface
- core: gr
- spec: GR-16
- summary: Aggregated accreditation gap-analysis summary.Wraps the per-standard list with category rollups( keyed by category, each with total/gaps/coverage) plusorganization-wide totals and an percentage.
- see:
- useAccreditationGapAnalysis
- score: 5
interface GrPicklistOption
- file: src/cores/gr/hooks/useGrPicklist.ts:32
- kind: interface
- core: gr
- spec: (none)
- summary: A selectable GR picklist option for dropdowns and filters.
- score: 2
interface ImprovementChecklistItem
- file: src/cores/gr/hooks/useQITemplates.ts:60
- kind: interface
- core: gr
- spec: GR-07
- summary: A checklist item to seed on a QI project created from a template. schedules the item relative to project start, and sets its default priority.
- see:
- QIProjectTemplate
- score: 5
interface InServiceMatrixFilterValue
- file: src/cores/gr/components/inservice/InServiceMatrixFilters.tsx:47
- kind: interface
- core: gr
- spec: GR-19
- summary: Combined filter state for the in-service compliance matrix. selects the mutually-exclusive server-side scope (site ordepartment); only the matching id ( or ) is populated. and apply client-side, where may be aspecific or .
- see:
- InServiceMatrixFilters
- score: 5
type InServiceMatrixScopeMode
- file: src/cores/gr/components/inservice/InServiceMatrixFilters.tsx:24
- kind: type
- core: gr
- spec: (none)
- summary: Mutually-exclusive scope used to drive server-side filtering.
- score: 2
interface InstantiateTemplateInput
- file: src/cores/gr/hooks/useInstantiateTemplate.ts:40
- kind: interface
- core: gr
- spec: GR-12
- summary: Input for instantiating a procedure template into a new procedure.Identifies the source and the new procedure’s metadata (title,description, category, optional site and owner) plus the workflow graph toseed. When is provided, the transactional RPC alsocreates a procedure-to-policy link.
- see:
- useInstantiateTemplate
- score: 5
interface LaunchCoiCycleParams
- file: src/cores/gr/hooks/useCoiMutations.ts:42
- kind: interface
- core: gr
- spec: GR-15
- summary: Parameters for launching a new COI attestation cycle.Names the and the (profile + role) to seedpending attestations for. The optional , , and are persisted into each row’s until GR-15 promotes them to dedicated columns; overrides thedefault success message.
- see:
- useCoiMutations
- score: 5
interface MetricMeasurement
- file: src/cores/gr/hooks/useMetricMeasurements.ts:37
- kind: interface
- core: gr
- spec: GR-07
- summary: A single recorded QI metric measurement ( row).Org-scoped via (RLS-enforced) and tied to a metric by. Captures the on a given ,optional notes, a bag, and creation audit fields.
- see:
- useMetricMeasurements
- score: 5
interface MetricMeasurement
- file: src/cores/gr/utils/qiReportExport.ts:41
- kind: interface
- core: gr
- spec: GR-07
- summary: Minimal metric measurement shape consumed by the QI report exporters.A trimmed view of a measurement (id, metric, value, date, optional notes)sufficient to render metric trend rows in exported PDF/CSV/Excel reports.
- score: 5
interface MetricMeasurementInsert
- file: src/cores/gr/hooks/useMetricMeasurements.ts:66
- kind: interface
- core: gr
- spec: GR-07
- summary: Payload for inserting a new QI metric measurement.The caller supplies only the metric, value, date, and optional notes; and audit fields are filled in server-side.
- see:
- useMetricMeasurements
- score: 5
interface MetricTemplate
- file: src/cores/gr/hooks/useQITemplates.ts:34
- kind: interface
- core: gr
- spec: GR-07
- summary: Definition of a metric to seed when a QI project template is instantiated.Names the metric and how it is measured (method, frequency, unit); only and are required.
- see:
- QIProjectTemplate
- score: 5
interface MetricTrendData
- file: src/cores/gr/hooks/useMetricMeasurements.ts:86
- kind: interface
- core: gr
- spec: GR-07
- summary: A point in a metric’s trend series, shaped for charting.Flattens a to the / pair (plusoptional notes) consumed by trend charts.
- see:
- useMetricMeasurements
- score: 5
interface PDSACycleTemplate
- file: src/cores/gr/hooks/useQITemplates.ts:83
- kind: interface
- core: gr
- spec: GR-07
- summary: A PDSA cycle to seed on a QI project created from a template.Carries the cycle name and an optional Plan-phase description and activitylist.
- see:
- QIProjectTemplate
- score: 5
type PDSAPhase
- file: src/cores/gr/components/PDSAPhaseBadge.tsx:15
- kind: type
- core: gr
- spec: GR-07
- summary: Phase of a PDSA (Plan-Do-Study-Act) quality-improvement cycle.Drives the badge variant rendered by .
- see:
- PDSAPhaseBadge
- score: 5
interface PolicyCategoryOption
- file: src/cores/gr/hooks/usePolicyCategories.ts:46
- kind: interface
- core: gr
- spec: GR-01-EN-01
- summary: A selectable policy-category option for dropdowns and filters. is the stored category key and is the human-readable,title-cased display text.
- see:
- usePolicyCategories
- score: 5
interface PolicySuggestion
- file: src/cores/gr/hooks/usePolicySuggestion.ts:33
- kind: interface
- core: gr
- spec: GR-12
- summary: A lightweight policy candidate offered for procedure-to-policy linkage.A trimmed projection of a row (id, title, status, category)used to populate the policy-linkage dropdown during template instantiation.
- see:
- usePolicySuggestion
- score: 5
interface ProcedurePdfStep
- file: src/cores/gr/lib/procedure-pdf-steps.ts:15
- kind: interface
- core: gr
- spec: (none)
- summary: Minimal step shape required to render the PDF steps body.Compatible with (from ).
- score: 2
interface ProcedureTemplateDetail
- file: src/cores/gr/hooks/useProcedureTemplateDetail.ts:55
- kind: interface
- core: gr
- spec: GR-12
- summary: Full detail of a procedure template, including its workflow graph.Flattens the template row plus its regulatory-body links: holds display names and the linked ids. A null indicates a platform-shared template. Includes the / graph, source procedure reference,suggested policy category, , and audit fields.
- see:
- useProcedureTemplateDetail
- score: 5
interface ProcedureTemplateListFilters
- file: src/cores/gr/hooks/useProcedureTemplateList.ts:29
- kind: interface
- core: gr
- spec: GR-12
- summary: Filter criteria for the procedure-template list query.All fields are optional and combine; matches title/description, and narrow by classification, and restricts to templates carrying the given tags.
- see:
- useProcedureTemplateList
- score: 5
interface ProcedureTemplateListItem
- file: src/cores/gr/hooks/useProcedureTemplateList.ts:74
- kind: interface
- core: gr
- spec: GR-12
- summary: A procedure template as shown in the templates-library list.A list-row projection covering classification, regulatory-body displaynames/ids, tags, version, active flag, and the workflow graph. A null marks a platform-shared (global) template versus anorg-specific one.
- see:
- useProcedureTemplateList
- score: 5
interface QIOverviewStats
- file: src/cores/gr/hooks/useQIStats.ts:31
- kind: interface
- core: gr
- spec: GR-07
- summary: Quality-improvement summary statistics for the GR overview dashboard.Reports active vs completed QI projects, active PDSA cycles, overdueimprovement actions, and how many tracked metrics are trending up() versus down ().
- see:
- useQIStats
- score: 5
interface QIProjectTemplate
- file: src/cores/gr/hooks/useQITemplates.ts:124
- kind: interface
- core: gr
- spec: GR-07
- summary: A reusable quality-improvement project template( row).Org-scoped via (RLS-enforced). Bundles project defaults(objective, scope, duration) with the metric, checklist, and PDSA-cycleblueprints (, ,) that seed a new project on instantiation, plus a bag and audit fields.
- see:
- useQITemplateList
- score: 5
interface QITemplateFormValues
- file: src/cores/gr/hooks/useQITemplates.ts:165
- kind: interface
- core: gr
- spec: GR-07
- summary: Form values for creating or editing a QI project template.The editable subset of — project defaults plus themetric, checklist, and PDSA-cycle blueprints — excluding server-managedfields like id, org, active flag, and audit columns.
- see:
- useQITemplateMutations
- score: 5
interface QITemplateListFilters
- file: src/cores/gr/hooks/useQITemplates.ts:190
- kind: interface
- core: gr
- spec: GR-07
- summary: Filter criteria for the QI project template list query.All fields are optional and combine; and narrow theset and matches the template name/description.
- see:
- useQITemplateList
- score: 5
interface ReadinessInput
- file: src/cores/gr/lib/readiness-score.ts:13
- kind: interface
- core: gr
- spec: (none)
- summary: GR-16: Accreditation Readiness Score ComputationWeighted formula:- Evidence coverage: 40%- Policy currency: 25%- CAP closure rate: 20%- Incident rate (inverse): 15%Each component is 0–100; final score is 0–100.
- score: 2
interface ReadinessResult
- file: src/cores/gr/lib/readiness-score.ts:52
- kind: interface
- core: gr
- spec: GR-16
- summary: Result of an accreditation readiness-score computation. is the weighted blend (evidence 40%, policy 25%, CAP 20%,incident 15%); the remaining fields expose each underlying component score(all 0–100) so the UI can break down what drives the total.
- see:
- computeReadinessScore
- score: 5
interface ReferenceNodeData
- file: src/cores/gr/components/procedures/nodes/ReferenceNode.tsx:28
- kind: interface
- core: gr
- spec: GR-11
- summary: Data payload for a procedure-flow reference node.Carried on the React Flow node and rendered by . Links thestep to supporting documents, forms, and/or other procedures by id anddisplay name.
- see:
- ReferenceNode
- score: 5
type RegulatoryAuditAction
- file: src/cores/gr/utils/regulatoryAudit.ts:12
- kind: type
- core: gr
- spec: (none)
- summary: Valid audit actions for regulatory report status transitions.
- score: 2
interface RegulatoryAuditParams
- file: src/cores/gr/utils/regulatoryAudit.ts:15
- kind: interface
- core: gr
- spec: (none)
- summary: Parameters for logging a regulatory report audit event.
- score: 2
type RequirementSuggestion
- file: src/cores/gr/ai/schemas.ts:51
- kind: type
- core: gr
- spec: GR-06
- summary: AI-suggested compliance requirements returned by the advisor.Inferred from . Each suggestion names aregulatory body (CARF, Joint Commission, State, CMS, SAMHSA, HIPAA), apriority reflecting compliance risk, and a score (0–100) so thereviewer can triage which suggestions to adopt.
- score: 5
type RiskAssessment
- file: src/cores/gr/ai/schemas.ts:176
- kind: type
- core: gr
- spec: GR-05
- summary: AI-generated risk assessment for a single risk register entry.Inferred from . Scores and on a 1–5 scale, derives a (likelihood × impact, 1–25) and anoverall , then recommends a mitigation (avoid, reduce, transfer, or accept) with concrete actions and a confidencescore.
- score: 5
type RiskRating
- file: src/cores/gr/components/RiskRatingBadge.tsx:16
- kind: type
- core: gr
- spec: GR-05
- summary: Overall risk rating for a risk-register entry, ordered critical to low.Drives the badge variant rendered by .
- see:
- RiskRatingBadge
- score: 5
interface SystemNodeData
- file: src/cores/gr/components/procedures/nodes/SystemNode.tsx:27
- kind: interface
- core: gr
- spec: GR-11
- summary: Data payload for a procedure-flow system node (an automated action).Carried on the React Flow node and rendered by . names the automated operation the step represents.
- see:
- SystemNode
- score: 5
interface TrainingLinkContext
- file: src/cores/gr/wizards/training-course/mapper.ts:9
- kind: interface
- core: gr
- spec: (none)
- summary: GR-UX-13: Pure builders for the training-course link rows.Extracted so policy- and requirement-link row shapes are unit-testable withouta DB. keys the requirement column as (not ).
- score: 2
interface TrainingStats
- file: src/cores/gr/hooks/useTrainingStats.ts:28
- kind: interface
- core: gr
- spec: GR-02
- summary: Training summary statistics for the GR overview dashboard.Reports course counts (total / active), enrollment counts by state(completed / overdue / in-progress), a derived percentage,and total CEU credits earned.
- see:
- useTrainingStats
- score: 5
interface UpdateTemplateValues
- file: src/cores/gr/hooks/useProcedureTemplateMutation.ts:64
- kind: interface
- core: gr
- spec: GR-12
- summary: Partial values for updating an existing procedure template.All fields are optional; only supplied fields are changed. Setting replaces all of the template’s regulatory-body links.Core-field changes trigger a DB-side version auto-increment.
- see:
- useProcedureTemplateMutation
- score: 5
interface UseInServiceMatrixOptions
- file: src/cores/gr/hooks/useInServiceMatrix.ts:18
- kind: interface
- core: gr
- spec: (none)
- summary: Options accepted by . Server filters (org/site/role)are forwarded to the RPC; client filters(, , ) are applied in-memory afterthe JSONB matrix is returned to keep the RPC contract narrow.Server-side filters: (), ( → ), and (legacy substring match on ,retained for back-compat).
- score: 2
interface UsePolicyAcknowledgmentFormResult
- file: src/cores/gr/hooks/usePolicyAcknowledgmentForm.ts:44
- kind: interface
- core: gr
- spec: GR-01-EN-02
- summary: Result returned by . is the resolved acknowledgment — either aconfigurable PF-08 form or the code-first default — and distinguishes the two so consumers can pick the right renderer. and track the underlying configurable-form fetch.
- see:
- usePolicyAcknowledgmentForm
- score: 5
interface VerificationNodeData
- file: src/cores/gr/components/procedures/nodes/VerificationNode.tsx:30
- kind: interface
- core: gr
- spec: GR-11
- summary: Data payload for a procedure-flow verification node (a sign-off step).Carried on the React Flow node and rendered by . Capturesthe responsible role, whether a signature is required, and the criteria thatmust be met to verify the step.
- see:
- VerificationNode
- score: 5
interface WhistleblowerReport
- file: src/cores/gr/hooks/useWhistleblowerReports.ts:37
- kind: interface
- core: gr
- spec: GR-15
- summary: A whistleblower report as seen in the compliance-officer list view.Org-scoped via (RLS-enforced). Deliberately omitssensitive columns (report token, free-text description, reporter profile,creator) so list rendering never exposes them; carries only category,status, assignment, resolution notes, and audit timestamps. flags reporter-anonymous submissions.
- see:
- useWhistleblowerReports
- score: 5
Hooks
hook useAccreditationCaps
- file: src/cores/gr/hooks/useAccreditationCaps.ts:21
- kind: hook
- core: gr
- spec: (none)
- summary: Fetches CAPs for a given accreditation, scoped to the current organization.
- score: 4
hook useAccreditationDashboard
- file: src/cores/gr/hooks/useAccreditationDashboard.ts:9
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing accreditation dashboard.
- score: 1
hook useAccreditationDetail
- file: src/cores/gr/hooks/useAccreditationDetail.ts:79
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing accreditation detail.
- score: 1
hook useAccreditationEvidenceByStandard
- file: src/cores/gr/hooks/useAccreditationEvidence.ts:68
- kind: hook
- core: gr
- spec: (none)
- summary: Provides accreditation evidence by standard queries and mutation actions scoped to the current organization.
- score: 4
hook useAccreditationEvidenceBySurvey
- file: src/cores/gr/hooks/useAccreditationEvidence.ts:100
- kind: hook
- core: gr
- spec: (none)
- summary: Provides accreditation evidence by survey queries and mutation actions scoped to the current organization.
- score: 4
hook useAccreditationEvidenceList
- file: src/cores/gr/hooks/useAccreditationEvidence.ts:22
- kind: hook
- core: gr
- spec: (none)
- summary: Provides accreditation evidence list queries and mutation actions scoped to the current organization.
- score: 4
hook useAccreditationEvidenceMutation
- file: src/cores/gr/hooks/useAccreditationEvidence.ts:132
- kind: hook
- core: gr
- spec: (none)
- summary: Provides accreditation evidence mutation queries and mutation actions scoped to the current organization.
- score: 4
hook useAccreditationGapAnalysis
- file: src/cores/gr/hooks/useAccreditationGapAnalysis.ts:84
- kind: hook
- core: gr
- spec: (none)
- summary: Computes gap analysis for an accreditation by checking each standard’s evidence.
- score: 4
hook useAccreditationList
- file: src/cores/gr/hooks/useAccreditationList.ts:16
- kind: hook
- core: gr
- spec: (none)
- summary: Provides accreditation list queries and mutation actions scoped to the current organization.
- score: 4
hook useAccreditationList
- file: src/cores/gr/wizards/tracer-pack/hooks/useAccreditationList.ts:11
- kind: hook
- core: gr
- spec: (none)
- summary: Fetches the list of active accreditations for the current organization.Used in the tracer pack wizard’s accreditation selection step.
- returns: TanStack Query result with active accreditations array
- score: 4
hook useAccreditationMutation
- file: src/cores/gr/hooks/useAccreditationMutation.ts:11
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing accreditation mutation.
- score: 1
hook useAccreditationNotifications
- file: src/cores/gr/hooks/useAccreditationNotifications.ts:24
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing accreditation notifications.
- score: 1
hook useAccreditationReadinessScore
- file: src/cores/gr/hooks/useAccreditationReadinessScore.ts:22
- kind: hook
- core: gr
- spec: (none)
- summary: Computes the live readiness score for a given accreditation.
- score: 4
hook useAccreditationsByBody
- file: src/cores/gr/hooks/useAccreditationList.ts:151
- kind: hook
- core: gr
- spec: (none)
- summary: Provides accreditations by body queries and mutation actions scoped to the current organization.
- score: 4
hook useAccreditationsByStatus
- file: src/cores/gr/hooks/useAccreditationList.ts:120
- kind: hook
- core: gr
- spec: (none)
- summary: Provides accreditations by status queries and mutation actions scoped to the current organization.
- score: 4
hook useAccreditationStandardDetail
- file: src/cores/gr/hooks/useAccreditationStandard.ts:81
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing accreditation standard detail.
- score: 1
hook useAccreditationStandardList
- file: src/cores/gr/hooks/useAccreditationStandard.ts:23
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing accreditation standard list.
- score: 1
hook useAccreditationStandardMutation
- file: src/cores/gr/hooks/useAccreditationStandard.ts:113
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing accreditation standard mutation.
- score: 1
hook useAccreditationStatusReport
- file: src/cores/gr/hooks/useAccreditationReports.ts:19
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing accreditation status report.
- score: 1
hook useAccreditationSurveyDetail
- file: src/cores/gr/hooks/useAccreditationSurvey.ts:75
- kind: hook
- core: gr
- spec: (none)
- summary: Provides accreditation survey detail queries and mutation actions scoped to the current organization.
- score: 4
hook useAccreditationSurveyList
- file: src/cores/gr/hooks/useAccreditationSurvey.ts:23
- kind: hook
- core: gr
- spec: (none)
- summary: Provides accreditation survey list queries and mutation actions scoped to the current organization.
- score: 4
hook useAccreditationSurveyMutation
- file: src/cores/gr/hooks/useAccreditationSurvey.ts:146
- kind: hook
- core: gr
- spec: (none)
- summary: Provides accreditation survey mutation queries and mutation actions scoped to the current organization.
- score: 4
hook useAccreditationTracerPacks
- file: src/cores/gr/hooks/useAccreditationTracerPacks.ts:22
- kind: hook
- core: gr
- spec: (none)
- summary: Fetches tracer packs for a given accreditation.
- score: 4
hook useAcknowledgeRegulatoryReport
- file: src/cores/gr/hooks/useIncidentRegulatoryReports.ts:158
- kind: hook
- core: gr
- spec: (none)
- summary: Mutation: Record acknowledgment receipt for a regulatory report.
- score: 4
hook useActiveContracts
- file: src/cores/gr/hooks/useContractList.ts:95
- kind: hook
- core: gr
- spec: (none)
- summary: Provides active contracts queries and mutation actions scoped to the current organization.
- score: 4
hook useActiveMetrics
- file: src/cores/gr/hooks/useQIMetric.ts:90
- kind: hook
- core: gr
- spec: (none)
- summary: Provides active metrics queries and mutation actions scoped to the current organization.
- score: 4
hook useActivePDSACycles
- file: src/cores/gr/hooks/usePDSACycle.ts:112
- kind: hook
- core: gr
- spec: (none)
- summary: Provides active pdsacycles queries and mutation actions scoped to the current organization.
- score: 4
hook useActiveQIProjects
- file: src/cores/gr/hooks/useQIProjectList.ts:85
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing active qiprojects.
- score: 1
hook useActiveRisks
- file: src/cores/gr/hooks/useRiskList.ts:85
- kind: hook
- core: gr
- spec: (none)
- summary: Provides active risks queries and mutation actions scoped to the current organization.
- score: 4
hook useAIAuditPreparation
- file: src/cores/gr/ai/useAIAuditPreparation.ts:45
- kind: hook
- core: gr
- spec: (none)
- summary: AI-powered audit preparation assistance
- score: 4
hook useAIAuditPrepList
- file: src/cores/gr/ai/useAIAuditPrepList.ts:34
- kind: hook
- core: gr
- spec: (none)
- summary: Query hook for AI audit preparation data
- score: 4
hook useAIAuditPrepMutation
- file: src/cores/gr/ai/useAIAuditPrepMutation.ts:36
- kind: hook
- core: gr
- spec: (none)
- summary: Mutation hook for AI audit preparation data
- score: 4
hook useAIComplianceChat
- file: src/cores/gr/ai/useAIComplianceChat.ts:37
- kind: hook
- core: gr
- spec: (none)
- summary: AI-powered compliance chat assistant
- score: 4
hook useAIComplianceEnabled
- file: src/cores/gr/hooks/useAIComplianceEnabled.ts:20
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing aicompliance enabled.
- score: 1
hook useAIGapAnalysesList
- file: src/cores/gr/ai/useAIGapAnalysesList.ts:36
- kind: hook
- core: gr
- spec: (none)
- summary: Query hook for AI gap analyses
- score: 4
hook useAIGapAnalysesMutation
- file: src/cores/gr/ai/useAIGapAnalysesMutation.ts:36
- kind: hook
- core: gr
- spec: (none)
- summary: Mutation hook for AI gap analyses
- score: 4
hook useAIGapAnalysis
- file: src/cores/gr/ai/useAIGapAnalysis.ts:40
- kind: hook
- core: gr
- spec: (none)
- summary: AI-powered compliance gap analysis
- score: 4
hook useAIProcedureGeneration
- file: src/cores/gr/ai/useAIProcedureGeneration.ts:151
- kind: hook
- core: gr
- spec: (none)
- summary: Creates a React hook that generates structured procedures (workflow nodes and edges) from policy content using an AI service.
- params:
- options — Configuration for procedure generation: - organizationType: Optional organization type to include in AI context - accreditations: Optional list of accreditations to include in AI context - defaultCategory: Optional default procedure category to include in AI context
- returns: An object with: - generateFromPolicy: async function that accepts policy input and returns a GeneratedProcedureResult or when no AI result is produced - data: the latest raw AI output (if any) - isLoading: boolean indicating whether an AI request is in progress - error: any error returned by the underlying AI hook
- score: 4
hook useAIRequirementIdentification
- file: src/cores/gr/ai/useAIRequirementIdentification.ts:41
- kind: hook
- core: gr
- spec: (none)
- summary: AI-powered regulatory requirement identification
- score: 4
hook useAIRiskAssessment
- file: src/cores/gr/ai/useAIRiskAssessment.ts:39
- kind: hook
- core: gr
- spec: (none)
- summary: AI-powered risk assessment assistance
- score: 4
hook useAIRiskAssessmentsList
- file: src/cores/gr/ai/useAIRiskAssessmentsList.ts:34
- kind: hook
- core: gr
- spec: (none)
- summary: Query hook for AI risk assessments
- score: 4
hook useAIRiskAssessmentsMutation
- file: src/cores/gr/ai/useAIRiskAssessmentsMutation.ts:38
- kind: hook
- core: gr
- spec: (none)
- summary: Mutation hook for AI risk assessments
- score: 4
hook useAISuggestionsList
- file: src/cores/gr/ai/useAISuggestionsList.ts:36
- kind: hook
- core: gr
- spec: (none)
- summary: Query hook for AI compliance suggestions
- score: 4
hook useAISuggestionsMutation
- file: src/cores/gr/ai/useAISuggestionsMutation.ts:37
- kind: hook
- core: gr
- spec: (none)
- summary: Mutation hook for AI compliance suggestions
- score: 4
hook useAmendmentsByContract
- file: src/cores/gr/hooks/useContractAmendments.ts:87
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing amendments by contract.
- score: 1
hook useAssignIncident
- file: src/cores/gr/hooks/useIncidentMutation.ts:105
- kind: hook
- core: gr
- spec: (none)
- summary: Assigns an incident to a user for review.
- score: 4
hook useAuditChecklist
- file: src/cores/gr/hooks/useAuditChecklist.ts:11
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing audit checklist.
- score: 1
hook useAuditChecklistMutation
- file: src/cores/gr/hooks/useAuditChecklist.ts:43
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing audit checklist mutation.
- score: 1
hook useAuditCorrectiveActionMutation
- file: src/cores/gr/hooks/useAuditCorrectiveAction.ts:102
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing audit corrective action mutation.
- score: 1
hook useAuditDashboard
- file: src/cores/gr/hooks/useAuditReadiness.ts:133
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing audit dashboard.
- score: 1
hook useAuditDetail
- file: src/cores/gr/hooks/useAuditDetail.ts:9
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing audit detail.
- score: 1
hook useAuditEvidence
- file: src/cores/gr/hooks/useAuditEvidence.ts:11
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing audit evidence.
- score: 1
hook useAuditEvidenceMutation
- file: src/cores/gr/hooks/useAuditEvidence.ts:75
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing audit evidence mutation.
- score: 1
hook useAuditFindingDetail
- file: src/cores/gr/hooks/useAuditFinding.ts:119
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing audit finding detail.
- score: 1
hook useAuditFindingList
- file: src/cores/gr/hooks/useAuditFinding.ts:19
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing audit finding list.
- score: 1
hook useAuditFindingMutation
- file: src/cores/gr/hooks/useAuditFinding.ts:152
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing audit finding mutation.
- score: 1
hook useAuditLinkMutation
- file: src/cores/gr/hooks/useAccreditationAuditLink.ts:204
- kind: hook
- core: gr
- spec: (none)
- summary: Aggregates accreditation-link mutations into one API with per-action pending flags.
- score: 4
hook useAuditList
- file: src/cores/gr/hooks/useAuditList.ts:16
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing audit list.
- score: 1
hook useAuditMutation
- file: src/cores/gr/hooks/useAuditMutation.ts:11
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing audit mutation.
- score: 1
hook useAuditReadiness
- file: src/cores/gr/hooks/useAuditReadiness.ts:16
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing audit readiness.
- score: 1
hook useAuditsByStatus
- file: src/cores/gr/hooks/useAuditList.ts:129
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing audits by status.
- score: 1
hook useAuditStats
- file: src/cores/gr/hooks/useAuditStats.ts:47
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing audit stats.
- score: 1
hook useAuditTeam
- file: src/cores/gr/hooks/useAuditTeam.ts:11
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing audit team.
- score: 1
hook useAuditTeamMutation
- file: src/cores/gr/hooks/useAuditTeam.ts:44
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing audit team mutation.
- score: 1
hook useBenchmarkingAggregates
- file: src/cores/gr/hooks/useBenchmarkingAggregates.ts:31
- kind: hook
- core: gr
- spec: (none)
- summary: Fetches benchmarking aggregate rows. Optional filters narrow byregulatory body type, procedure category, and metric.
- params:
- params — Optional filters; all are passed as clauses.
- returns: React Query result with .
- score: 4
hook useBenchmarkingConsent
- file: src/cores/gr/hooks/useBenchmarkingConsent.ts:28
- kind: hook
- core: gr
- spec: (none)
- summary: Fetches the active (non-revoked) benchmarking consent record for thecurrent organization and exposes opt-in / opt-out mutations.
- returns: Active consent (or null), loading state, and mutation handlers.
- score: 4
hook useBoardMinutesList
- file: src/cores/gr/hooks/useBoardMinutes.ts:74
- kind: hook
- core: gr
- spec: GR-15
- summary: Lists board meeting minutes for the current organization, newest meetingfirst.Wraps ; the query is org-scoped and disabled until an organizationis selected. Uses a 5-minute and 10-minute .
- returns: A TanStack Query result whose is a array, plus , , and the usual query state.
- score: 5
hook useBoardMinutesMutations
- file: src/cores/gr/hooks/useBoardMinutes.ts:108
- kind: hook
- core: gr
- spec: GR-15
- summary: Provides create, update, and approve mutations for board meeting minutes.All mutations are org- and user-scoped, stamp audit fields, surface successand sanitized-error toasts, and invalidate the board-minutes query cache onsuccess. Takes no arguments.
- returns: An object of TanStack mutations: (insert a new record), (patch title/content/status/attendees), and (mark approved with audit stamps).
- score: 5
hook useBoardResolutionMutations
- file: src/cores/gr/hooks/useBoardResolutions.ts:111
- kind: hook
- core: gr
- spec: GR-15
- summary: Provides create and update mutations for board resolutions.Both mutations are org- and user-scoped, stamp audit fields, surface successand sanitized-error toasts, and invalidate the board-resolutions query cacheon success. generates a sequential resolution number viathe RPC. Takes no arguments.
- returns: An object with and TanStack mutations.
- score: 5
hook useBoardResolutionsList
- file: src/cores/gr/hooks/useBoardResolutions.ts:78
- kind: hook
- core: gr
- spec: GR-15
- summary: Lists board resolutions for the current organization, newest first.Wraps ; the query is org-scoped and disabled until an organizationis selected. Uses a 5-minute and 10-minute .
- returns: A TanStack Query result whose is a array, plus , , and the usual query state.
- score: 5
hook useCapMutations
- file: src/cores/gr/hooks/useCapMutations.ts:24
- kind: hook
- core: gr
- spec: (none)
- summary: Provides CAP create, update, and status transition mutations.
- score: 4
hook useCEUCreditList
- file: src/cores/gr/hooks/useCEUCreditList.ts:17
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing ceucredit list.
- score: 1
hook useCEUTranscript
- file: src/cores/gr/hooks/useCEUTranscript.ts:17
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing ceutranscript.
- score: 1
hook useCloseIncident
- file: src/cores/gr/hooks/useIncidentMutation.ts:182
- kind: hook
- core: gr
- spec: (none)
- summary: Closes a resolved incident.
- score: 1
hook useCoiAttestations
- file: src/cores/gr/hooks/useCoiAttestations.ts:74
- kind: hook
- core: gr
- spec: GR-15
- summary: Lists COI attestations for the current organization and a given year,joining each attester’s profile summary.Wraps ; the query is org-scoped and disabled until an organizationis selected. Uses a 5-minute and 10-minute .
- params:
- year — Attestation year to load; defaults to the current calendar year.
- returns: A TanStack Query result whose is a array, plus , , and the usual query state.
- score: 5
hook useCoiCycleWizard
- file: src/cores/gr/wizards/coi-cycle/hooks/useCoiCycleWizard.ts:40
- kind: hook
- core: gr
- spec: (none)
- summary: Wizard state for the COI cycle launch dialog.
- score: 4
hook useCoiMutations
- file: src/cores/gr/hooks/useCoiMutations.ts:98
- kind: hook
- core: gr
- spec: GR-15
- summary: Provides mutations for the COI attestation lifecycle.All mutations are org- and user-scoped, surface success and sanitized-errortoasts, and invalidate the COI attestation, my-attestation, and stats querycaches on success. Takes no arguments.
- returns: An object of TanStack mutations: (seed pending attestations from ), (record a person’s conflict disclosure), and (compliance officer sign-off).
- score: 5
hook useCoiRoster
- file: src/cores/gr/wizards/coi-cycle/hooks/useCoiRoster.ts:35
- kind: hook
- core: gr
- spec: (none)
- summary: Loads org member profiles via → (no HR core imports).
- score: 4
hook useCoiStats
- file: src/cores/gr/hooks/useCoiStats.ts:51
- kind: hook
- core: gr
- spec: GR-15
- summary: Computes completion stats from COI attestations for a given year.
- params:
- year — Attestation year (defaults to current year)
- returns: — is the computed summary for the year; / propagate from the underlying attestation query.
- score: 5
hook useCompletionDetail
- file: src/cores/gr/hooks/useTrainingCompletion.ts:222
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing completion detail.
- score: 1
hook useComplianceCheckList
- file: src/cores/gr/hooks/useComplianceCheck.ts:24
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing compliance check list.
- score: 1
hook useComplianceCheckMutation
- file: src/cores/gr/hooks/useComplianceCheck.ts:125
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing compliance check mutation.
- score: 1
hook useComplianceChecksByRequirement
- file: src/cores/gr/hooks/useComplianceCheck.ts:93
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing compliance checks by requirement.
- score: 1
hook useComplianceDashboard
- file: src/cores/gr/hooks/useComplianceDashboard.ts:15
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing compliance dashboard.
- score: 1
hook useComplianceEffectivenessScore
- file: src/cores/gr/hooks/useComplianceEffectivenessScore.ts:26
- kind: hook
- core: gr
- spec: (none)
- summary: Computes compliance effectiveness scores per procedure category (domain).Groups procedures by category and calculates a weighted effectivenessscore based on coverage (procedures linked to policies) and completion rates.
- returns: React Query result with ComplianceEffectivenessScore array.
- score: 4
hook useComplianceEvidenceByRequirement
- file: src/cores/gr/hooks/useComplianceEvidence.ts:74
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing compliance evidence by requirement.
- score: 1
hook useComplianceEvidenceCoverage
- file: src/cores/gr/hooks/useComplianceEvidenceCoverage.ts:46
- kind: hook
- core: gr
- spec: (none)
- summary: Hook returning evidence coverage metrics and the gap list for the current org.
- score: 4
hook useComplianceEvidenceList
- file: src/cores/gr/hooks/useComplianceEvidence.ts:34
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing compliance evidence list.
- score: 1
hook useComplianceEvidenceMutation
- file: src/cores/gr/hooks/useComplianceEvidence.ts:107
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing compliance evidence mutation.
- score: 1
hook useComplianceHeatmap
- file: src/cores/gr/hooks/useComplianceExecutive.ts:43
- kind: hook
- core: gr
- spec: (none)
- summary: Fetches the live compliance-posture heatmap for the current org.
- params:
- asOf — Optional “as of” date (ISO yyyy-MM-dd); defaults to today server-side.
- score: 4
hook useComplianceLinkMutation
- file: src/cores/gr/hooks/useAccreditationComplianceLink.ts:127
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing compliance link mutation.
- score: 1
hook useComplianceNotifications
- file: src/cores/gr/hooks/useComplianceNotifications.ts:29
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing compliance notifications.
- score: 1
hook useCompliancePostureTrend
- file: src/cores/gr/hooks/useComplianceExecutive.ts:70
- kind: hook
- core: gr
- spec: (none)
- summary: Fetches the dated compliance-score trend series within a date range.
- params:
- start — Range start (ISO yyyy-MM-dd).
- end — Range end (ISO yyyy-MM-dd).
- score: 4
hook useComplianceRemediationByRequirement
- file: src/cores/gr/hooks/useComplianceRemediation.ts:88
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing compliance remediation by requirement.
- score: 1
hook useComplianceRemediationList
- file: src/cores/gr/hooks/useComplianceRemediation.ts:25
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing compliance remediation list.
- score: 1
hook useComplianceRemediationMutation
- file: src/cores/gr/hooks/useComplianceRemediation.ts:120
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing compliance remediation mutation.
- score: 1
hook useComplianceScoreTrend
- file: src/cores/gr/hooks/useComplianceScoreTrend.ts:25
- kind: hook
- core: gr
- spec: (none)
- summary: Fetches compliance-score snapshots for a trailing window and reshapes theminto per-category time series for chart consumption.
- params:
- windowDays — Trailing window in days (30, 90, or 365).
- returns: React Query result with (per-category arrays), , and for trend-delta indicators.
- score: 4
hook useComplianceStats
- file: src/cores/gr/hooks/useComplianceStats.ts:45
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing compliance stats.
- score: 1
hook useComplianceSubmissionList
- file: src/cores/gr/hooks/useComplianceSubmission.ts:24
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing compliance submission list.
- score: 1
hook useComplianceSubmissionMutation
- file: src/cores/gr/hooks/useComplianceSubmission.ts:82
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing compliance submission mutation.
- score: 1
hook useComplianceThresholds
- file: src/cores/gr/hooks/useComplianceExecutive.ts:93
- kind: hook
- core: gr
- spec: (none)
- summary: Reads the org’s compliance banding thresholds from gr_module_settings.
- score: 4
hook useContractAmendmentMutation
- file: src/cores/gr/hooks/useContractAmendments.ts:97
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing contract amendment mutation.
- score: 1
hook useContractAmendments
- file: src/cores/gr/hooks/useContractAmendments.ts:28
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing contract amendments.
- score: 1
hook useContractDashboard
- file: src/cores/gr/hooks/useContractStats.ts:187
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing contract dashboard.
- score: 1
hook useContractDetail
- file: src/cores/gr/hooks/useContractDetail.ts:20
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing contract detail.
- score: 1
hook useContractList
- file: src/cores/gr/hooks/useContractList.ts:22
- kind: hook
- core: gr
- spec: (none)
- summary: Provides contract list queries and mutation actions scoped to the current organization.
- score: 4
hook useContractMilestoneMutation
- file: src/cores/gr/hooks/useContractMilestones.ts:96
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing contract milestone mutation.
- score: 1
hook useContractMilestones
- file: src/cores/gr/hooks/useContractMilestones.ts:28
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing contract milestones.
- score: 1
hook useContractMutation
- file: src/cores/gr/hooks/useContractMutation.ts:18
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing contract mutation.
- score: 1
hook useContractObligationMutation
- file: src/cores/gr/hooks/useContractObligations.ts:122
- kind: hook
- core: gr
- spec: (none)
- summary: Provides contract obligation mutation queries and mutation actions scoped to the current organization.
- score: 4
hook useContractObligations
- file: src/cores/gr/hooks/useContractObligations.ts:28
- kind: hook
- core: gr
- spec: (none)
- summary: Provides contract obligations queries and mutation actions scoped to the current organization.
- score: 4
hook useContractObligationStats
- file: src/cores/gr/hooks/useContractStats.ts:103
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing contract obligation stats.
- score: 1
hook useContractsByStatus
- file: src/cores/gr/hooks/useContractList.ts:115
- kind: hook
- core: gr
- spec: (none)
- summary: Provides contracts by status queries and mutation actions scoped to the current organization.
- score: 4
hook useContractStats
- file: src/cores/gr/hooks/useContractStats.ts:16
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing contract stats.
- score: 1
hook useContractTypeMutation
- file: src/cores/gr/hooks/useContractTypes.ts:60
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing contract type mutation.
- score: 1
hook useContractTypes
- file: src/cores/gr/hooks/useContractTypes.ts:23
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing contract types.
- score: 1
hook useContributeTemplate
- file: src/cores/gr/hooks/useContributeTemplate.ts:56
- kind: hook
- core: gr
- spec: (none)
- summary: Contributes (saves) an approved procedure as a new procedure template.
- score: 4
hook useCorrectiveActionList
- file: src/cores/gr/hooks/useAuditCorrectiveAction.ts:53
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing corrective action list.
- score: 1
hook useCorrectiveActionsByFinding
- file: src/cores/gr/hooks/useAuditCorrectiveAction.ts:16
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing corrective actions by finding.
- score: 1
hook useCreateAuditFromSurvey
- file: src/cores/gr/hooks/useAccreditationAuditLink.ts:130
- kind: hook
- core: gr
- spec: (none)
- summary: Creates a new audit from survey metadata, then links that audit to the survey in a second step.If either step fails, the mutation rejects and surfaces a sanitized error toast.
- score: 4
hook useCreateCorrectiveAction
- file: src/cores/gr/hooks/useIncidentMutation.ts:318
- kind: hook
- core: gr
- spec: (none)
- summary: Creates a corrective action for an incident.
- score: 4
hook useCreateFinding
- file: src/cores/gr/hooks/useIncidentMutation.ts:275
- kind: hook
- core: gr
- spec: (none)
- summary: Adds a finding to an investigation.
- score: 4
hook useCreateImpact
- file: src/cores/gr/hooks/useRegulatoryImpactMutation.ts:35
- kind: hook
- core: gr
- spec: GR-17
- summary: Mutation that adds an impact record to a regulatory change event.Org- and user-scoped; inserts a row (impacttype, optional target, assignee, status, notes), then invalidates the parentevent’s detail cache and toasts on success/error. Takes no arguments.
- returns: A TanStack result whose / accepts .
- score: 5
hook useCreateIncident
- file: src/cores/gr/hooks/useIncidentMutation.ts:27
- kind: hook
- core: gr
- spec: (none)
- summary: Creates a new incident report.
- score: 4
hook useCreateInvestigation
- file: src/cores/gr/hooks/useIncidentMutation.ts:225
- kind: hook
- core: gr
- spec: (none)
- summary: Creates a new investigation for an incident.
- score: 4
hook useCreateMockSurvey
- file: src/cores/gr/hooks/useMockSurveys.ts:55
- kind: hook
- core: gr
- spec: (none)
- summary: Record a new mock survey result.
- score: 4
hook useCreateProjectFromTemplate
- file: src/cores/gr/hooks/useQITemplates.ts:463
- kind: hook
- core: gr
- spec: (none)
- summary: Provides create project from template queries and mutation actions scoped to the current organization.
- score: 4
hook useCreateRegulationAccreditationMap
- file: src/cores/gr/hooks/useRegulationAccreditationMap.ts:72
- kind: hook
- core: gr
- spec: GR-14-EN-01
- summary: Creates an org-scoped regulation → accreditation-body mapping.
- returns: A TanStack mutation accepting a .
- score: 4
hook useCreateRegulationRequirementMap
- file: src/cores/gr/hooks/useRegulationRequirementMap.ts:73
- kind: hook
- core: gr
- spec: GR-14-EN-01
- summary: Creates an org-scoped regulation → requirement mapping.
- returns: A TanStack mutation accepting a .
- score: 4
hook useCreateRegulatorySource
- file: src/cores/gr/hooks/useRegulatorySourceMutation.ts:27
- kind: hook
- core: gr
- spec: GR-17
- summary: Mutation that registers a new monitored regulatory source.Org- and user-scoped; inserts a row, defaulting to true and to 1440, then invalidates thesource list cache and toasts on success/error. Takes no arguments.
- returns: A TanStack result whose / accepts a .
- score: 5
hook useDeleteRegulationAccreditationMap
- file: src/cores/gr/hooks/useRegulationAccreditationMap.ts:153
- kind: hook
- core: gr
- spec: GR-14-EN-01
- summary: Deletes an org-scoped regulation → accreditation-body mapping.
- returns: A TanStack mutation accepting .
- score: 4
hook useDeleteRegulationRequirementMap
- file: src/cores/gr/hooks/useRegulationRequirementMap.ts:154
- kind: hook
- core: gr
- spec: GR-14-EN-01
- summary: Deletes an org-scoped regulation → requirement mapping.
- returns: A TanStack mutation accepting .
- score: 4
hook useDeleteRegulatorySource
- file: src/cores/gr/hooks/useRegulatorySourceMutation.ts:163
- kind: hook
- core: gr
- spec: GR-17
- summary: Mutation that permanently deletes a regulatory source.Org- and user-scoped; removes the row, theninvalidates the source list cache and toasts on success/error. Takes noarguments.
- returns: A TanStack result whose / accepts and resolves to .
- score: 5
hook useDomainCoverage
- file: src/cores/gr/wizards/tracer-pack/hooks/useDomainCoverage.ts:12
- kind: hook
- core: gr
- spec: (none)
- summary: Computes domain (category) coverage statistics for a given accreditation.Returns the number of standards per domain and how many have verified evidence.
- params:
- accreditationId — The accreditation ID to compute coverage for
- returns: TanStack Query result with domain coverage array
- score: 4
hook useDuplicateYearCheck
- file: src/cores/gr/wizards/coi-cycle/hooks/useDuplicateYearCheck.ts:12
- kind: hook
- core: gr
- spec: (none)
- summary: Returns true when at least one row exists for the org + year.
- score: 4
hook useEmployeeCEUCredits
- file: src/cores/gr/hooks/useCEUCreditList.ts:114
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing employee ceucredits.
- score: 1
hook useEmployeeCompletions
- file: src/cores/gr/hooks/useTrainingCompletion.ts:249
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing employee completions.
- score: 1
hook useEmployeeEnrollments
- file: src/cores/gr/hooks/useTrainingEnrollmentList.ts:120
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing employee enrollments.
- score: 1
hook useEvidenceByFinding
- file: src/cores/gr/hooks/useAuditEvidence.ts:43
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing evidence by finding.
- score: 1
hook useEvidenceForDomain
- file: src/cores/gr/wizards/tracer-pack/hooks/useEvidenceForDomain.ts:13
- kind: hook
- core: gr
- spec: (none)
- summary: Fetches evidence items for a specific accreditation domain (category).Used in the tracer pack wizard’s evidence selection step.
- params:
- accreditationId — The accreditation ID
- domain — The domain/category to filter evidence by
- returns: TanStack Query result with evidence items array
- score: 4
hook useExpiringContracts
- file: src/cores/gr/hooks/useContractList.ts:105
- kind: hook
- core: gr
- spec: (none)
- summary: Provides expiring contracts queries and mutation actions scoped to the current organization.
- score: 4
hook useFindingsByAudit
- file: src/cores/gr/hooks/useAuditFinding.ts:87
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing findings by audit.
- score: 1
hook useGenerateRegulatoryReport
- file: src/cores/gr/hooks/useIncidentRegulatoryReports.ts:213
- kind: hook
- core: gr
- spec: (none)
- summary: Mutation: Generate a regulatory report package via edge function.
- score: 4
hook useGenerateTracerPack
- file: src/cores/gr/hooks/useAccreditationTracerPacks.ts:52
- kind: hook
- core: gr
- spec: (none)
- summary: Generate a tracer pack for a given domain/category.
- score: 4
hook useGrantNomRollup
- file: src/cores/gr/hooks/useGrantNomRollup.ts:93
- kind: hook
- core: gr
- spec: (none)
- summary: Reads the server-side RPC for the current organization.The RPC applies PF-96 small-cell suppression before returning rows.Powers the “SAMHSA Grants” tab of the GR-28-EN-01 Program Reporting page.
- score: 4
hook useGRModuleSettings
- file: src/cores/gr/hooks/useGRModuleSettings.ts:18
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing GR module settings at the organization levelUses context for organizationId - standardized pattern
- score: 1
hook useGrPicklist
- file: src/cores/gr/hooks/useGrPicklist.ts:52
- kind: hook
- core: gr
- spec: (none)
- summary: Hook returning a GR picklist’s options plus a label resolver thatgracefully handles values no longer present in the active picklist.
- params:
- picklistName — Dotted picklist name (e.g. ).
- organizationId — Optional org override; defaults to the current org.
- score: 4
hook useHighRisks
- file: src/cores/gr/hooks/useRiskList.ts:116
- kind: hook
- core: gr
- spec: (none)
- summary: Provides high risks queries and mutation actions scoped to the current organization.
- score: 4
hook useIncidentDetail
- file: src/cores/gr/hooks/useIncidentDetail.ts:26
- kind: hook
- core: gr
- spec: (none)
- summary: Fetches a single incident with all related entities.
- params:
- incidentId — The incident UUID to fetch
- returns: Query result with full incident detail
- score: 4
hook useIncidentList
- file: src/cores/gr/hooks/useIncidentList.ts:20
- kind: hook
- core: gr
- spec: (none)
- summary: Fetches a filtered list of incidents for the current organization.
- params:
- filters — Optional filters (category, severity, status, site, date range, search)
- returns: Query result with incident list items
- score: 4
hook useIncidentRegulatoryReports
- file: src/cores/gr/hooks/useIncidentRegulatoryReports.ts:24
- kind: hook
- core: gr
- spec: (none)
- summary: Fetches regulatory reporting obligations for a given incident.Uses the which includes a computed column.
- score: 4
hook useIncidentStats
- file: src/cores/gr/hooks/useIncidentStats.ts:17
- kind: hook
- core: gr
- spec: (none)
- summary: Fetches aggregate incident statistics for the current organization.
- returns: Stats: total, open, critical, under_investigation, overdue_actions
- score: 4
hook useInServiceCompliancePct
- file: src/cores/gr/hooks/useInServiceMatrix.ts:141
- kind: hook
- core: gr
- spec: (none)
- summary: GR-19: Weighted organization (or site) in-service compliance percentage.Returns a numeric 0–100 value (or when no employees / courses).
- score: 4
hook useInServiceMatrix
- file: src/cores/gr/hooks/useInServiceMatrix.ts:85
- kind: hook
- core: gr
- spec: (none)
- summary: GR-19: In-Service Compliance Matrix.Calls the SECURITY DEFINER RPC and returns theemployee × course compliance grid scoped to the active organization.Results are cached for 5 minutes (,) per AGENTS.md rule 4.Re-exported from so non-GR cores never import GRdirectly.
- score: 4
hook useInstantiateTemplate
- file: src/cores/gr/hooks/useInstantiateTemplate.ts:56
- kind: hook
- core: gr
- spec: (none)
- summary: Instantiates a procedure template into a new gr_procedures record.
- score: 4
hook useLatestAssessment
- file: src/cores/gr/hooks/useRiskAssessment.ts:63
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing latest assessment.
- score: 1
hook useLinkedAudits
- file: src/cores/gr/hooks/useAccreditationAuditLink.ts:16
- kind: hook
- core: gr
- spec: (none)
- summary: Returns audits linked to a survey, including joined audit/site context for display.
- score: 4
hook useLinkedComplianceRequirements
- file: src/cores/gr/hooks/useAccreditationComplianceLink.ts:16
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing linked compliance requirements.
- score: 1
hook useLinkStandardToCompliance
- file: src/cores/gr/hooks/useAccreditationComplianceLink.ts:48
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing link standard to compliance.
- score: 1
hook useLinkSurveyToAudit
- file: src/cores/gr/hooks/useAccreditationAuditLink.ts:49
- kind: hook
- core: gr
- spec: (none)
- summary: Links an existing audit to a survey and invalidates related survey/audit dashboards.
- score: 4
hook useMetricComparison
- file: src/cores/gr/hooks/useMetricMeasurements.ts:307
- kind: hook
- core: gr
- spec: (none)
- summary: Provides metric comparison queries and mutation actions scoped to the current organization.
- score: 4
hook useMetricMeasurementMutation
- file: src/cores/gr/hooks/useMetricMeasurements.ts:210
- kind: hook
- core: gr
- spec: (none)
- summary: Provides metric measurement mutation queries and mutation actions scoped to the current organization.
- score: 4
hook useMetricMeasurements
- file: src/cores/gr/hooks/useMetricMeasurements.ts:107
- kind: hook
- core: gr
- spec: (none)
- summary: Provides metric measurements queries and mutation actions scoped to the current organization.
- score: 4
hook useMetricsByTrend
- file: src/cores/gr/hooks/useQIMetric.ts:121
- kind: hook
- core: gr
- spec: (none)
- summary: Provides metrics by trend queries and mutation actions scoped to the current organization.
- score: 4
hook useMetricTrendData
- file: src/cores/gr/hooks/useMetricMeasurements.ts:148
- kind: hook
- core: gr
- spec: (none)
- summary: Provides metric trend data queries and mutation actions scoped to the current organization.
- score: 4
hook useMilestonesByContract
- file: src/cores/gr/hooks/useContractMilestones.ts:86
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing milestones by contract.
- score: 1
hook useMockSurveys
- file: src/cores/gr/hooks/useMockSurveys.ts:25
- kind: hook
- core: gr
- spec: (none)
- summary: Fetches mock surveys for a given accreditation.
- score: 4
hook useMyCEUCredits
- file: src/cores/gr/hooks/useCEUCreditList.ts:60
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing my ceucredits.
- score: 1
hook useMyCEUTranscript
- file: src/cores/gr/hooks/useCEUTranscript.ts:100
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing my ceutranscript.
- score: 1
hook useMyCoiAttestation
- file: src/cores/gr/hooks/useMyCoiAttestation.ts:18
- kind: hook
- core: gr
- spec: (none)
- summary: Fetches the current user’s COI attestation for a given year.
- params:
- year — Attestation year (defaults to current year)
- score: 4
hook useMyEnrollments
- file: src/cores/gr/hooks/useTrainingEnrollmentList.ts:62
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing my enrollments.
- score: 1
hook useMyImprovements
- file: src/cores/gr/hooks/useQIImprovement.ts:165
- kind: hook
- core: gr
- spec: (none)
- summary: Provides my improvements queries and mutation actions scoped to the current organization.
- score: 4
hook useMyPDSACycles
- file: src/cores/gr/hooks/useMyPDSACycles.ts:12
- kind: hook
- core: gr
- spec: (none)
- summary: Fetch PDSA cycles where the current user is participating:- Created by the user, OR- Project owner is the user
- score: 4
hook useMyProcedureExecutions
- file: src/cores/gr/hooks/useProcedureExecution.ts:103
- kind: hook
- core: gr
- spec: (none)
- summary: Fetches procedure executions executed by the current user within the current organization.
- params:
- filters — Optional filters to narrow results (e.g., , ).
- returns: A React Query whose is an array of ; will be an empty array when there is no current user.
- example: | const data, isLoading = useMyProcedureExecutions( status: ‘in_progress’ );
- score: 4
hook useMyQIProjects
- file: src/cores/gr/hooks/useMyQIProjects.ts:10
- kind: hook
- core: gr
- spec: (none)
- summary: Fetch QI projects where the current user is the owner
- score: 4
hook useObligationsByContract
- file: src/cores/gr/hooks/useContractObligations.ts:102
- kind: hook
- core: gr
- spec: (none)
- summary: Provides obligations by contract queries and mutation actions scoped to the current organization.
- score: 4
hook useOverdueImprovements
- file: src/cores/gr/hooks/useQIImprovement.ts:131
- kind: hook
- core: gr
- spec: (none)
- summary: Provides overdue improvements queries and mutation actions scoped to the current organization.
- score: 4
hook useOverdueMitigations
- file: src/cores/gr/hooks/useRiskMitigation.ts:44
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing overdue mitigations.
- score: 1
hook useOverdueObligations
- file: src/cores/gr/hooks/useContractObligations.ts:112
- kind: hook
- core: gr
- spec: (none)
- summary: Provides overdue obligations queries and mutation actions scoped to the current organization.
- score: 4
hook useOverrideChangeSeverity
- file: src/cores/gr/hooks/useRegulatoryChangeMutation.ts:29
- kind: hook
- core: gr
- spec: GR-17
- summary: Mutation that manually overrides a regulatory change event’s severity.Org- and user-scoped; sets and records the overridereason and updater, then invalidates the list and detail caches and toastson success/error. Takes no arguments.
- returns: A TanStack result whose / accepts .
- score: 5
hook usePDSACycleDetail
- file: src/cores/gr/hooks/usePDSACycle.ts:83
- kind: hook
- core: gr
- spec: (none)
- summary: Provides pdsacycle detail queries and mutation actions scoped to the current organization.
- score: 4
hook usePDSACycleList
- file: src/cores/gr/hooks/usePDSACycle.ts:14
- kind: hook
- core: gr
- spec: (none)
- summary: Provides pdsacycle list queries and mutation actions scoped to the current organization.
- score: 4
hook usePDSACycleMutation
- file: src/cores/gr/hooks/usePDSACycleMutation.ts:14
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing pdsacycle mutation.
- score: 1
hook usePDSACyclesByProject
- file: src/cores/gr/hooks/usePDSACycle.ts:56
- kind: hook
- core: gr
- spec: (none)
- summary: Provides pdsacycles by project queries and mutation actions scoped to the current organization.
- score: 4
hook usePolicyAcknowledgmentForm
- file: src/cores/gr/hooks/usePolicyAcknowledgmentForm.ts:114
- kind: hook
- core: gr
- spec: (none)
- summary: Hook that resolves the acknowledgment form for a policy.
- params:
- acknowledgmentFormId — (FK to ). When /, the default form is returned.
- score: 4
hook usePolicyAcknowledgmentList
- file: src/cores/gr/hooks/usePolicyAcknowledgmentList.ts:17
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing policy acknowledgment list.
- score: 1
hook usePolicyAcknowledgmentMutation
- file: src/cores/gr/hooks/usePolicyAcknowledgmentMutation.ts:10
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing policy acknowledgment mutation.
- score: 1
hook usePolicyAssignmentList
- file: src/cores/gr/hooks/usePolicyAssignment.ts:11
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing policy assignment list.
- score: 1
hook usePolicyAssignmentMutation
- file: src/cores/gr/hooks/usePolicyAssignment.ts:58
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing policy assignment mutation.
- score: 1
hook usePolicyCategories
- file: src/cores/gr/hooks/usePolicyCategories.ts:63
- kind: hook
- core: gr
- spec: (none)
- summary: Hook returning policy category picklist data plus a label resolverthat gracefully handles values no longer present in the active picklist.
- score: 4
hook usePolicyCoverageHeatmap
- file: src/cores/gr/hooks/usePolicyCoverageHeatmap.ts:22
- kind: hook
- core: gr
- spec: (none)
- summary: Fetches policy coverage data by joining policies with linked proceduresand their execution summaries.
- returns: React Query result with PolicyCoverageRow array.
- score: 4
hook usePolicyCreationWizard
- file: src/cores/gr/wizards/policy-creation/hooks/usePolicyCreationWizard.ts:14
- kind: hook
- core: gr
- spec: (none)
- summary: Persists a new draft policy with initial version and optional regulatory links.
- score: 4
hook usePolicyCustomFields
- file: src/cores/gr/hooks/usePolicyCustomFields.ts:24
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for fetching active custom field definitions for .
- returns: TanStack Query result with .
- score: 1
hook usePolicyDetail
- file: src/cores/gr/hooks/usePolicyDetail.ts:9
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing policy detail.
- score: 1
hook usePolicyList
- file: src/cores/gr/hooks/usePolicyList.ts:16
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing policy list.
- score: 1
hook usePolicyMutation
- file: src/cores/gr/hooks/usePolicyMutation.ts:11
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing policy mutation.
- score: 1
hook usePolicyNotificationMutation
- file: src/cores/gr/hooks/usePolicyNotifications.ts:27
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing policy notification mutation.
- score: 1
hook usePolicyStats
- file: src/cores/gr/hooks/usePolicyStats.ts:9
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing policy stats.
- score: 1
hook usePolicySuggestion
- file: src/cores/gr/hooks/usePolicySuggestion.ts:46
- kind: hook
- core: gr
- spec: (none)
- summary: Fetches active policies matching an optional category for policy linkage dropdowns.
- params:
- category — Optional category to filter policies by.
- returns: React Query result with matching policies.
- score: 4
hook usePolicyVersionMutation
- file: src/cores/gr/hooks/usePolicyVersion.ts:46
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing policy version mutation.
- score: 1
hook usePolicyVersions
- file: src/cores/gr/hooks/usePolicyVersion.ts:11
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing policy versions.
- score: 1
hook useProcedureAnalytics
- file: src/cores/gr/hooks/useProcedureAnalytics.ts:26
- kind: hook
- core: gr
- spec: (none)
- summary: Fetches procedure execution analytics via the SECURITY DEFINER RPC.
- params:
- filters — Optional category/search filters applied client-side.
- returns: React Query result with data, KPIs, and standard loading/error states.
- score: 4
hook useProcedureDetail
- file: src/cores/gr/hooks/useProcedureDetail.ts:34
- kind: hook
- core: gr
- spec: (none)
- summary: Fetches full procedure details (including versions, steps, profiles, policy and site relations) scoped to the current organization.Provides a React Query hook that returns the procedure detail identified by , or if the procedure is not found. The query is isolated by the current organization to ensure cache separation.
- params:
- procedureId — The procedure’s ID to fetch, or to disable the query.
- returns: The React Query result containing .
- example: | const data: procedure, isLoading, error = useProcedureDetail(procedureId);
- score: 4
hook useProcedureExecutionDetail
- file: src/cores/gr/hooks/useProcedureExecution.ts:156
- kind: hook
- core: gr
- spec: (none)
- summary: Return the procedure execution record for the given execution ID within the current organization. Fetches a single procedure execution (with related procedure, executing profile, and version) scoped to the current organization and user. If is not provided or the row is not found, the hook resolves to .
- params:
- executionId — The ID of the procedure execution to fetch; may be to disable the query.
- returns: The matching or if not found or is not provided.
- example: | const data: execution, isLoading = useProcedureExecutionDetail(‘execution-uuid’);
- score: 4
hook useProcedureExecutionMutation
- file: src/cores/gr/hooks/useProcedureExecution.ts:219
- kind: hook
- core: gr
- spec: (none)
- summary: Provides mutation hooks to start, update progress, complete, and cancel GR procedure executions. Returns an object with four react-query mutations scoped to the current user and organization. Each mutation performs the corresponding database operation on , invalidates related query caches on success, and surfaces user-facing toasts for success and error states.
- returns: An object with the following mutations:- : mutation to create a new procedure execution.- : mutation to update and optionally for an execution.- : mutation to mark an execution and set .- : mutation to mark an execution and optionally set a cancellation reason.
- example: | const startExecution, updateStepProgress, completeExecution, cancelExecution = useProcedureExecutionMutation();// StartstartExecution.mutate( procedureId: ‘proc_123’, procedureVersionId: ‘v1’ );// Update progressupdateStepProgress.mutate( executionId: ‘exec_123’, stepProgress: step1: ‘done’ );// CompletecompleteExecution.mutate( executionId: ‘exec_123’ );// CancelcancelExecution.mutate( executionId: ‘exec_123’, reason: ‘No longer needed’ );
- score: 4
hook useProcedureExecutions
- file: src/cores/gr/hooks/useProcedureExecution.ts:45
- kind: hook
- core: gr
- spec: (none)
- summary: Fetches procedure execution list for a given procedure scoped to the current organization and user. Performs a paged query (via React Query) against and includes related , , and fields. The query is disabled when , the current user, or the current organization is not available.
- params:
- procedureId — The ID of the procedure to fetch executions for. If undefined, the hook returns an empty list and the query is disabled.
- filters — Optional filters to apply: , , , and to restrict results by status, executor, or started_at range.
- returns: UseQueryResultProcedureExecutionListItem[], unknown - React Query result that resolves to an array of .
- example: | const data, isLoading = useProcedureExecutions(‘procedure-123’, status: ‘in_progress’ );
- score: 4
hook useProcedureList
- file: src/cores/gr/hooks/useProcedureList.ts:36
- kind: hook
- core: gr
- spec: (none)
- summary: Fetches a list of procedures for the current organization, applying optional filters, joined relations (owner, policy, site), and search/review_due logic.
- params:
- filters — Optional filters to restrict the returned procedures (category, status, policy_id, site_id, owner_id, search, review_due).
- returns: A React Query result whose is an array of (available when the query succeeds). The query is enabled only when a current user and organization are present.
- example: | // Get all proceduresconst data, isLoading, error = useProcedureList(); // Filter by category and statusconst data = useProcedureList( category: ‘clinical’, status: ‘approved’ );
- score: 4
hook useProcedureMutation
- file: src/cores/gr/hooks/useProcedureMutation.ts:43
- kind: hook
- core: gr
- spec: (none)
- summary: Provides mutations for managing GR procedures with organization-scoped defense-in-depth filtering. Returns a set of React Query mutations that perform CRUD and workflow actions against the table while enforcing organization_id constraints to ensure operations are scoped to the current organization. Each mutation shows success or error toast notifications and invalidates the relevant procedure queries on success.
- returns: An object with the following mutation properties:- — mutation to create a procedure.- — mutation to update a procedure by id.- — mutation to delete a procedure by id.- — mutation to approve a procedure by id.- — mutation to set a procedure’s status to review by id.- — mutation to create a version snapshot for a procedure.
- example: | const createProcedure, updateProcedure, deleteProcedure = useProcedureMutation();// CreatecreateProcedure.mutate( title: ‘New SOP’, category: ‘clinical’ );// UpdateupdateProcedure.mutate( id: ‘uuid’, data: title: ‘Updated Title’ );// DeletedeleteProcedure.mutate( id: ‘uuid’ );
- score: 4
hook useProcedureStepAnalytics
- file: src/cores/gr/hooks/useProcedureStepAnalytics.ts:22
- kind: hook
- core: gr
- spec: (none)
- summary: Fetches step-level execution analytics for a single procedure.
- params:
- procedureId — The procedure to load step analytics for. Hook is disabled when undefined.
- returns: React Query result with step rows ordered by .
- score: 4
hook useProcedureTemplateDetail
- file: src/cores/gr/hooks/useProcedureTemplateDetail.ts:97
- kind: hook
- core: gr
- spec: (none)
- summary: Fetches a single procedure template by ID.
- params:
- templateId — The template ID, or undefined to disable.
- returns: React Query result with template detail or null.
- score: 4
hook useProcedureTemplateList
- file: src/cores/gr/hooks/useProcedureTemplateList.ts:125
- kind: hook
- core: gr
- spec: (none)
- summary: Fetches procedure templates visible to the current user (global + org-specific).
- params:
- filters — Optional filters for search, category, regulatory body, and tags.
- returns: React Query result with template list data.
- score: 4
hook useProcedureTemplateMutation
- file: src/cores/gr/hooks/useProcedureTemplateMutation.ts:80
- kind: hook
- core: gr
- spec: (none)
- summary: Provides create, update, and deactivate mutations for procedure templates.
- score: 4
hook useQIDashboard
- file: src/cores/gr/hooks/useQIDashboard.ts:9
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing qidashboard.
- score: 1
hook useQIEnabled
- file: src/cores/gr/hooks/useQIEnabled.ts:6
- kind: hook
- core: gr
- spec: (none)
- summary: Check if QI (Quality Improvement) feature is enabled for the current organization
- score: 4
hook useQIImprovementList
- file: src/cores/gr/hooks/useQIImprovement.ts:15
- kind: hook
- core: gr
- spec: (none)
- summary: Provides qiimprovement list queries and mutation actions scoped to the current organization.
- score: 4
hook useQIImprovementMutation
- file: src/cores/gr/hooks/useQIImprovementMutation.ts:11
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing qiimprovement mutation.
- score: 1
hook useQIImprovementsByPDSACycle
- file: src/cores/gr/hooks/useQIImprovement.ts:103
- kind: hook
- core: gr
- spec: (none)
- summary: Provides qiimprovements by pdsacycle queries and mutation actions scoped to the current organization.
- score: 4
hook useQIImprovementsByProject
- file: src/cores/gr/hooks/useQIImprovement.ts:74
- kind: hook
- core: gr
- spec: (none)
- summary: Provides qiimprovements by project queries and mutation actions scoped to the current organization.
- score: 4
hook useQIMetricList
- file: src/cores/gr/hooks/useQIMetric.ts:14
- kind: hook
- core: gr
- spec: (none)
- summary: Provides qimetric list queries and mutation actions scoped to the current organization.
- score: 4
hook useQIMetricMutation
- file: src/cores/gr/hooks/useQIMetricMutation.ts:11
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing qimetric mutation.
- score: 1
hook useQIMetricsByProject
- file: src/cores/gr/hooks/useQIMetric.ts:59
- kind: hook
- core: gr
- spec: (none)
- summary: Provides qimetrics by project queries and mutation actions scoped to the current organization.
- score: 4
hook useQINotifications
- file: src/cores/gr/hooks/useQINotifications.ts:23
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing qinotifications.
- score: 1
hook useQIProjectDetail
- file: src/cores/gr/hooks/useQIProjectDetail.ts:9
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing qiproject detail.
- score: 1
hook useQIProjectList
- file: src/cores/gr/hooks/useQIProjectList.ts:16
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing qiproject list.
- score: 1
hook useQIProjectMutation
- file: src/cores/gr/hooks/useQIProjectMutation.ts:11
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing qiproject mutation.
- score: 1
hook useQIProjectsByCategory
- file: src/cores/gr/hooks/useQIProjectList.ts:116
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing qiprojects by category.
- score: 1
hook useQIStats
- file: src/cores/gr/hooks/useQIStats.ts:43
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing qistats.
- score: 1
hook useQITemplateDetail
- file: src/cores/gr/hooks/useQITemplates.ts:254
- kind: hook
- core: gr
- spec: (none)
- summary: Provides qitemplate detail queries and mutation actions scoped to the current organization.
- score: 4
hook useQITemplateList
- file: src/cores/gr/hooks/useQITemplates.ts:203
- kind: hook
- core: gr
- spec: (none)
- summary: Provides qitemplate list queries and mutation actions scoped to the current organization.
- score: 4
hook useQITemplateMutation
- file: src/cores/gr/hooks/useQITemplates.ts:295
- kind: hook
- core: gr
- spec: (none)
- summary: Provides qitemplate mutation queries and mutation actions scoped to the current organization.
- score: 4
hook useRecordKbRefreshAttempt
- file: src/cores/gr/hooks/useRegulatoryImpactMutation.ts:134
- kind: hook
- core: gr
- spec: (none)
- summary: Records a manual KB refresh attempt for a impact.Appends to JSONB and updates the status fields.The actual PF-61 ingestion call is deferred until the upstream contractis finalized; this hook captures the operator-initiated attempt log sothe UI can show retry history.
- score: 4
hook useRegulationAccreditationMapList
- file: src/cores/gr/hooks/useRegulationAccreditationMap.ts:35
- kind: hook
- core: gr
- spec: GR-14-EN-01
- summary: Lists regulation → accreditation-body mappings visible to the currentorganization (org overrides + platform defaults, platform last).
- returns: A TanStack Query result whose is a .
- score: 4
hook useRegulationRequirementMapList
- file: src/cores/gr/hooks/useRegulationRequirementMap.ts:29
- kind: hook
- core: gr
- spec: GR-14-EN-01
- summary: Lists regulation → requirement mappings visible to the current organization:org-scoped overrides plus platform defaults (organization_id NULL), withplatform defaults ordered last and the joined requirement title surfaced.
- returns: A TanStack Query result whose is a .
- score: 4
hook useRegulatoryBodyList
- file: src/cores/gr/hooks/useRegulatoryBody.ts:17
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing regulatory body list.
- score: 1
hook useRegulatoryBodyMutation
- file: src/cores/gr/hooks/useRegulatoryBody.ts:60
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing regulatory body mutation.
- score: 1
hook useRegulatoryChangeEvent
- file: src/cores/gr/hooks/useRegulatoryChangeEvents.ts:83
- kind: hook
- core: gr
- spec: GR-17
- summary: Loads a single regulatory change event with its full source, impacts, andsnapshot history.Wraps ; the query is org-scoped and disabled until both anorganization and are present. Fetches the event, its impacts, and itssnapshots in parallel and composes them into one detail object. Resolves to when the id is missing or no matching event exists. Uses a 5-minute and 10-minute .
- params:
- id — The regulatory change event id to load, or undefined to disable the query.
- returns: A TanStack Query result whose is a (with and ) or , plus , , and the usual query state.
- score: 5
hook useRegulatoryChangeEvents
- file: src/cores/gr/hooks/useRegulatoryChangeEvents.ts:33
- kind: hook
- core: gr
- spec: GR-17
- summary: Lists regulatory change events for the current organization, newest detectedfirst, with each event’s source summary joined.Wraps ; the query is org-scoped and disabled until an organizationis selected. Optional narrow by source, status, severity, detecteddate range, and a title/summary text search. Uses a 5-minute and10-minute .
- params:
- filters — Optional filters applied server-side to the change-event query.
- returns: A TanStack Query result whose is a array, plus , , and the usual query state.
- score: 5
hook useRegulatoryComplianceStats
- file: src/cores/gr/hooks/useRegulatoryComplianceStats.ts:15
- kind: hook
- core: gr
- spec: (none)
- summary: Fetches org-wide regulatory reporting obligation statistics.
- score: 4
hook useRegulatoryReportById
- file: src/cores/gr/hooks/useIncidentRegulatoryReports.ts:61
- kind: hook
- core: gr
- spec: (none)
- summary: GR-14-EN-01: Loads a single regulatory report by its id (org-scoped).Backs the click-through target for the on auto-created compliance evidence: the badge links to theoriginating report, and this hook resolves that report (incl. its parent) so the detail page can render it and link back to the incident.
- params:
- reportId — , or undefined to disable.
- returns: A TanStack Query result whose is a or .
- score: 4
hook useRegulatoryRequirementDetail
- file: src/cores/gr/hooks/useRegulatoryRequirement.ts:102
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing regulatory requirement detail.
- score: 1
hook useRegulatoryRequirementList
- file: src/cores/gr/hooks/useRegulatoryRequirement.ts:16
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing regulatory requirement list.
- score: 1
hook useRegulatoryRequirementMutation
- file: src/cores/gr/hooks/useRegulatoryRequirementMutation.ts:11
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing regulatory requirement mutation.
- score: 1
hook useRegulatorySource
- file: src/cores/gr/hooks/useRegulatorySources.ts:72
- kind: hook
- core: gr
- spec: GR-17
- summary: Loads a single regulatory source by id for the current organization.Wraps ; the query is org-scoped and disabled until both anorganization and are present, and resolves to when the id ismissing or no matching source exists. Uses a 5-minute and10-minute .
- params:
- id — The regulatory source id to load, or undefined to disable the query.
- returns: A TanStack Query result whose is a or , plus , , and the usual query state.
- score: 5
hook useRegulatorySourceList
- file: src/cores/gr/hooks/useRegulatorySources.ts:27
- kind: hook
- core: gr
- spec: GR-17
- summary: Lists monitored regulatory sources for the current organization, ordered byname.Wraps ; the query is org-scoped and disabled until an organizationis selected. Optional narrow by active flag, source type,jurisdiction, and a name/URL text search. Uses a 5-minute and10-minute .
- params:
- filters — Optional filters applied server-side to the source query.
- returns: A TanStack Query result whose is a array, plus , , and the usual query state.
- score: 5
hook useRemediationSummary
- file: src/cores/gr/hooks/useComplianceDashboard.ts:191
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing remediation summary.
- score: 1
hook useRenewalTrackingReport
- file: src/cores/gr/hooks/useAccreditationReports.ts:219
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing renewal tracking report.
- score: 1
hook useResolveIncident
- file: src/cores/gr/hooks/useIncidentMutation.ts:140
- kind: hook
- core: gr
- spec: (none)
- summary: Resolves an incident with a resolution summary.
- score: 4
hook useReviewRegulatoryChange
- file: src/cores/gr/hooks/useRegulatoryChangeMutation.ts:78
- kind: hook
- core: gr
- spec: GR-17
- summary: Mutation that records a review decision (approve or dismiss) on a regulatorychange event.Org- and user-scoped; sets the new status, optional review notes, andreviewer audit fields, then invalidates the list and detail caches andtoasts the outcome. Takes no arguments.
- returns: A TanStack result whose / accepts .
- score: 5
hook useRiskAssessmentMutation
- file: src/cores/gr/hooks/useRiskAssessment.ts:96
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing risk assessment mutation.
- score: 1
hook useRiskAssessments
- file: src/cores/gr/hooks/useRiskAssessment.ts:32
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing risk assessments.
- score: 1
hook useRiskAssessmentWizard
- file: src/cores/gr/wizards/risk-assessment/useRiskAssessmentWizard.ts:93
- kind: hook
- core: gr
- spec: (none)
- summary: Orchestrates the GR Risk Assessment wizard (GR-UX-04).
- score: 4
hook useRiskDashboard
- file: src/cores/gr/hooks/useRiskDashboard.ts:14
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing risk dashboard.
- score: 1
hook useRiskDetail
- file: src/cores/gr/hooks/useRiskDetail.ts:9
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing risk detail.
- score: 1
hook useRiskHeatmap
- file: src/cores/gr/hooks/useRiskDashboard.ts:116
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing risk heatmap.
- score: 1
hook useRiskLinkMutation
- file: src/cores/gr/hooks/useRiskLink.ts:44
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing risk link mutation.
- score: 1
hook useRiskLinks
- file: src/cores/gr/hooks/useRiskLink.ts:11
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing risk links.
- score: 1
hook useRiskList
- file: src/cores/gr/hooks/useRiskList.ts:16
- kind: hook
- core: gr
- spec: (none)
- summary: Provides risk list queries and mutation actions scoped to the current organization.
- score: 4
hook useRiskMitigationMutation
- file: src/cores/gr/hooks/useRiskMitigation.ts:77
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing risk mitigation mutation.
- score: 1
hook useRiskMitigations
- file: src/cores/gr/hooks/useRiskMitigation.ts:12
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing risk mitigations.
- score: 1
hook useRiskMutation
- file: src/cores/gr/hooks/useRiskMutation.ts:11
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing risk mutation.
- score: 1
hook useRiskNotifications
- file: src/cores/gr/hooks/useRiskNotifications.ts:27
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing risk notifications.
- score: 1
hook useRisksByCategory
- file: src/cores/gr/hooks/useRiskList.ts:148
- kind: hook
- core: gr
- spec: (none)
- summary: Provides risks by category queries and mutation actions scoped to the current organization.
- score: 4
hook useRisksByFinding
- file: src/cores/gr/hooks/useLinkedRisks.ts:35
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing risks by finding.
- score: 1
hook useRisksByPolicy
- file: src/cores/gr/hooks/useLinkedRisks.ts:103
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing risks by policy.
- score: 1
hook useRisksByRequirement
- file: src/cores/gr/hooks/useLinkedRisks.ts:69
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing risks by requirement.
- score: 1
hook useRiskStats
- file: src/cores/gr/hooks/useRiskStats.ts:14
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing risk stats.
- score: 1
hook useStandardComplianceReport
- file: src/cores/gr/hooks/useAccreditationReports.ts:90
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing standard compliance report.
- score: 1
hook useStartChangeReview
- file: src/cores/gr/hooks/useRegulatoryChangeMutation.ts:127
- kind: hook
- core: gr
- spec: GR-17
- summary: Mutation that moves a regulatory change event into the status.Org- and user-scoped; updates the status and updater, then invalidates thelist and detail caches and toasts on error. Takes no arguments.
- returns: A TanStack result whose / accepts .
- score: 5
hook useStateComplianceChat
- file: src/cores/gr/hooks/useStateComplianceChat.ts:37
- kind: hook
- core: gr
- spec: (none)
- summary: Returns a chat interface for state-aware GR compliance Q&A.The resolved jurisdiction profile is attached to under the key. Skills can read this in their system prompttemplate. While the profile is loading, the chat still mounts but thejurisdiction context is — the skill should fall back to afederal-baseline-only response in that case.
- score: 4
hook useSubmitRegulatoryReport
- file: src/cores/gr/hooks/useIncidentRegulatoryReports.ts:89
- kind: hook
- core: gr
- spec: (none)
- summary: Mutation: Mark a regulatory report as submitted.
- score: 4
hook useSurveyPreparationReport
- file: src/cores/gr/hooks/useAccreditationReports.ts:150
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing survey preparation report.
- score: 1
hook useToggleRegulatorySource
- file: src/cores/gr/hooks/useRegulatorySourceMutation.ts:120
- kind: hook
- core: gr
- spec: GR-17
- summary: Mutation that pauses or resumes polling of a regulatory source.Org- and user-scoped; flips the source’s flag, then invalidatesthe source list and detail caches and toasts “resumed”/“paused” accordingly.Takes no arguments.
- returns: A TanStack result whose / accepts .
- score: 5
hook useTrainingCompletion
- file: src/cores/gr/hooks/useTrainingCompletion.ts:21
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing training completion.
- score: 1
hook useTrainingCourseDetail
- file: src/cores/gr/hooks/useTrainingCourseList.ts:82
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing training course detail.
- score: 1
hook useTrainingCourseList
- file: src/cores/gr/hooks/useTrainingCourseList.ts:16
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing training course list.
- score: 1
hook useTrainingCourseMutation
- file: src/cores/gr/hooks/useTrainingCourseMutation.ts:15
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing training course mutation.
- score: 1
hook useTrainingCourseWizard
- file: src/cores/gr/wizards/training-course/useTrainingCourseWizard.ts:20
- kind: hook
- core: gr
- spec: (none)
- summary: Manages wizard navigation, validation, and draft persistence.
- score: 4
hook useTrainingEnrollmentList
- file: src/cores/gr/hooks/useTrainingEnrollmentList.ts:17
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing training enrollment list.
- score: 1
hook useTrainingEnrollmentMutation
- file: src/cores/gr/hooks/useTrainingEnrollmentMutation.ts:15
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing training enrollment mutation.
- score: 1
hook useTrainingNotificationMutation
- file: src/cores/gr/hooks/useTrainingNotifications.ts:27
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing training notification mutation.
- score: 1
hook useTrainingStats
- file: src/cores/gr/hooks/useTrainingStats.ts:42
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing training stats.
- score: 1
hook useUnlinkStandardFromCompliance
- file: src/cores/gr/hooks/useAccreditationComplianceLink.ts:98
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing unlink standard from compliance.
- score: 1
hook useUnlinkSurveyFromAudit
- file: src/cores/gr/hooks/useAccreditationAuditLink.ts:93
- kind: hook
- core: gr
- spec: (none)
- summary: Removes an audit-to-survey link and refreshes affected survey/audit query data.
- score: 4
hook useUpcomingAudits
- file: src/cores/gr/hooks/useAuditList.ts:91
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing upcoming audits.
- score: 1
hook useUpcomingDeadlines
- file: src/cores/gr/hooks/useComplianceDashboard.ts:148
- kind: hook
- core: gr
- spec: (none)
- summary: Hook for managing upcoming deadlines.
- score: 1
hook useUpcomingRenewals
- file: src/cores/gr/hooks/useAccreditationList.ts:82
- kind: hook
- core: gr
- spec: (none)
- summary: Provides upcoming renewals queries and mutation actions scoped to the current organization.
- score: 4
hook useUpcomingSurveys
- file: src/cores/gr/hooks/useAccreditationSurvey.ts:108
- kind: hook
- core: gr
- spec: (none)
- summary: Provides upcoming surveys queries and mutation actions scoped to the current organization.
- score: 4
hook useUpdateComplianceThresholds
- file: src/cores/gr/hooks/useComplianceExecutive.ts:126
- kind: hook
- core: gr
- spec: (none)
- summary: Updates the org’s banding thresholds and invalidates heatmap/threshold caches.
- score: 4
hook useUpdateCorrectiveAction
- file: src/cores/gr/hooks/useIncidentMutation.ts:373
- kind: hook
- core: gr
- spec: (none)
- summary: Updates a corrective action (status, completion).
- score: 4
hook useUpdateImpact
- file: src/cores/gr/hooks/useRegulatoryImpactMutation.ts:87
- kind: hook
- core: gr
- spec: GR-17
- summary: Mutation that updates a regulatory change impact’s assignment, status, ornotes.Org- and user-scoped; patches the supplied fields plus the updater, theninvalidates the parent event’s detail cache and toasts on success/error.Takes no arguments.
- returns: A TanStack result whose / accepts .
- score: 5
hook useUpdateIncident
- file: src/cores/gr/hooks/useIncidentMutation.ts:67
- kind: hook
- core: gr
- spec: (none)
- summary: Updates an existing incident.
- score: 1
hook useUpdateRegulationAccreditationMap
- file: src/cores/gr/hooks/useRegulationAccreditationMap.ts:114
- kind: hook
- core: gr
- spec: GR-14-EN-01
- summary: Updates an org-scoped regulation → accreditation-body mapping.
- returns: A TanStack mutation accepting .
- score: 4
hook useUpdateRegulationRequirementMap
- file: src/cores/gr/hooks/useRegulationRequirementMap.ts:115
- kind: hook
- core: gr
- spec: GR-14-EN-01
- summary: Updates an org-scoped regulation → requirement mapping.
- returns: A TanStack mutation accepting .
- score: 4
hook useUpdateRegulatorySource
- file: src/cores/gr/hooks/useRegulatorySourceMutation.ts:75
- kind: hook
- core: gr
- spec: GR-17
- summary: Mutation that updates an existing regulatory source’s configuration.Org- and user-scoped; applies the supplied partial fields (defensivelydropping any client-sent ) plus the updater, theninvalidates the source list and detail caches and toasts on success/error.Takes no arguments.
- returns: A TanStack result whose / accepts .
- score: 5
hook useWhistleblowerMutations
- file: src/cores/gr/hooks/useWhistleblowerMutations.ts:31
- kind: hook
- core: gr
- spec: GR-15
- summary: Provides the status-transition mutation for whistleblower reports.Org- and user-scoped; updates a report’s status (and optional resolutionnotes / assignee), writes a fire-and-forget entry, surfacessuccess and sanitized-error toasts, and invalidates the whistleblower-reportsquery cache on success. Takes no arguments.
- returns: An object with the TanStack mutation, whose / accepts .
- score: 5
hook useWhistleblowerReports
- file: src/cores/gr/hooks/useWhistleblowerReports.ts:65
- kind: hook
- core: gr
- spec: GR-15
- summary: Lists whistleblower reports for the current organization (compliance-officerview), newest first.Wraps ; the query is org- and user-scoped, gated additionally on, and selects an explicit safe column subset. Records afire-and-forget access entry when results are returned. Usesa 5-minute and 10-minute .
- params:
- hasPermission — When false, disables the query (the caller’s permission check); defaults to true.
- returns: A TanStack Query result whose is a array, plus , , and the usual query state.
- score: 5
Components
component AccreditationBodyBadge
- file: src/cores/gr/components/AccreditationBodyBadge.tsx:39
- kind: component
- core: gr
- spec: (none)
- summary: Renders a styled badge for an accreditation body.
- score: 2
component AccreditationCard
- file: src/cores/gr/components/AccreditationCard.tsx:22
- kind: component
- core: gr
- spec: (none)
- summary: Utility for accreditation card.
- score: 1
component AccreditationDashboard
- file: src/cores/gr/pages/AccreditationDashboard.tsx:39
- kind: component
- core: gr
- spec: (none)
- summary: Utility for accreditation dashboard.
- score: 1
component AccreditationDetail
- file: src/cores/gr/pages/AccreditationDetail.tsx:47
- kind: component
- core: gr
- spec: (none)
- summary: Utility for accreditation detail.
- score: 1
component AccreditationFormDialog
- file: src/cores/gr/components/AccreditationFormDialog.tsx:47
- kind: component
- core: gr
- spec: (none)
- summary: Utility for accreditation form dialog.
- score: 1
component AccreditationList
- file: src/cores/gr/pages/AccreditationList.tsx:26
- kind: component
- core: gr
- spec: (none)
- summary: Utility for accreditation list.
- score: 1
component AccreditationReports
- file: src/cores/gr/pages/AccreditationReports.tsx:23
- kind: component
- core: gr
- spec: (none)
- summary: Utility for accreditation reports.
- score: 1
component AccreditationStandardCard
- file: src/cores/gr/components/AccreditationStandardCard.tsx:25
- kind: component
- core: gr
- spec: (none)
- summary: Utility for accreditation standard card.
- score: 1
component AccreditationStandardFormDialog
- file: src/cores/gr/components/AccreditationStandardFormDialog.tsx:40
- kind: component
- core: gr
- spec: (none)
- summary: Utility for accreditation standard form dialog.
- score: 1
component AccreditationStatusBadge
- file: src/cores/gr/components/AccreditationStatusBadge.tsx:27
- kind: component
- core: gr
- spec: (none)
- summary: Utility for accreditation status badge.
- score: 1
component AccreditationSurveyCard
- file: src/cores/gr/components/AccreditationSurveyCard.tsx:25
- kind: component
- core: gr
- spec: (none)
- summary: Utility for accreditation survey card.
- score: 1
component AccreditationSurveyFormDialog
- file: src/cores/gr/components/AccreditationSurveyFormDialog.tsx:41
- kind: component
- core: gr
- spec: (none)
- summary: Utility for accreditation survey form dialog.
- score: 1
component AcknowledgeRegulatoryReportDialog
- file: src/cores/gr/components/incidents/AcknowledgeRegulatoryReportDialog.tsx:32
- kind: component
- core: gr
- spec: (none)
- summary: Dialog for recording agency acknowledgment of a submitted report.
- score: 2
component AddCorrectiveActionDialog
- file: src/cores/gr/components/incidents/AddCorrectiveActionDialog.tsx:33
- kind: component
- core: gr
- spec: (none)
- summary: Dialog for creating a corrective action.
- score: 2
component AddFindingDialog
- file: src/cores/gr/components/incidents/AddFindingDialog.tsx:33
- kind: component
- core: gr
- spec: (none)
- summary: Dialog for adding a finding to an investigation.
- score: 2
component AIAuditPrep
- file: src/cores/gr/pages/AIAuditPrep.tsx:27
- kind: component
- core: gr
- spec: (none)
- summary: Utility for aiaudit prep.
- score: 1
component AIAuditPrepSkeleton
- file: src/cores/gr/components/ai/skeletons/AIAuditPrepSkeleton.tsx:11
- kind: component
- core: gr
- spec: (none)
- summary: Utility for aiaudit prep skeleton.
- score: 1
component AIComplianceChatPanel
- file: src/cores/gr/components/ai/AIComplianceChatPanel.tsx:45
- kind: component
- core: gr
- spec: (none)
- summary: Utility for aicompliance chat panel.
- score: 1
component AIComplianceQuickActions
- file: src/cores/gr/components/ai/AIComplianceQuickActions.tsx:44
- kind: component
- core: gr
- spec: (none)
- summary: Utility for aicompliance quick actions.
- score: 1
component AIGapAnalysis
- file: src/cores/gr/pages/AIGapAnalysis.tsx:26
- kind: component
- core: gr
- spec: (none)
- summary: Utility for aigap analysis.
- score: 1
component AIGapAnalysisSkeleton
- file: src/cores/gr/components/ai/skeletons/AIGapAnalysisSkeleton.tsx:11
- kind: component
- core: gr
- spec: (none)
- summary: Utility for aigap analysis skeleton.
- score: 1
component AIProcedureGenerator
- file: src/cores/gr/components/procedures/AIProcedureGenerator.tsx:78
- kind: component
- core: gr
- spec: (none)
- summary: Renders a modal UI that generates a procedure from a selected policy using AI and lets the user apply the generated procedure.Provides a dialog-driven workflow: select a policy, optionally add context, request AI generation, review the generated procedure summary (title, category, steps, confidence, notes), and apply the result to the caller via the callback. While AI enablement is being checked the component shows a loading trigger; if AI is disabled the component renders nothing.
- params:
- props — Component props. - onGenerated: Callback invoked with the generated procedure payload when the user applies a generated procedure. The payload includes , , , , , optional , and optional . - trigger: Optional custom trigger element to open the generator dialog. If omitted, a default “Generate with AI” button is rendered. - disabled: When true, disables the trigger UI so the dialog cannot be opened.
- example: | AIProcedureGenerator onGenerated=(procedure) = // create or update a procedure with the returned data /Accessibility:- Uses a modal dialog pattern (focus is managed by the Dialog component). Ensure the provided is keyboard-accessible if supplied.- Form controls include labels and ARIA-friendly structure via the underlying UI primitives.
- score: 4
component AiQuestionSimulatorSheet
- file: src/cores/gr/components/accreditation/tracer/AiQuestionSimulatorSheet.tsx:70
- kind: component
- core: gr
- spec: (none)
- summary: AI-powered surveyor question simulator for accreditation readiness.
- score: 2
component AIRiskAssessment
- file: src/cores/gr/pages/AIRiskAssessment.tsx:26
- kind: component
- core: gr
- spec: (none)
- summary: Utility for airisk assessment.
- score: 1
component AIRiskAssessmentSkeleton
- file: src/cores/gr/components/ai/skeletons/AIRiskAssessmentSkeleton.tsx:11
- kind: component
- core: gr
- spec: (none)
- summary: Utility for airisk assessment skeleton.
- score: 1
component AISuggestionsDashboard
- file: src/cores/gr/pages/AISuggestionsDashboard.tsx:31
- kind: component
- core: gr
- spec: (none)
- summary: Utility for aisuggestions dashboard.
- score: 1
component AISuggestionsDashboardSkeleton
- file: src/cores/gr/components/ai/skeletons/AISuggestionsDashboardSkeleton.tsx:11
- kind: component
- core: gr
- spec: (none)
- summary: Utility for aisuggestions dashboard skeleton.
- score: 1
component AISuggestionsList
- file: src/cores/gr/components/ai/AISuggestionsList.tsx:33
- kind: component
- core: gr
- spec: (none)
- summary: Utility for aisuggestions list.
- score: 1
component AmendmentFormDialog
- file: src/cores/gr/components/contracts/AmendmentFormDialog.tsx:42
- kind: component
- core: gr
- spec: (none)
- summary: Utility for amendment form dialog.
- score: 1
component AmendmentList
- file: src/cores/gr/components/contracts/AmendmentList.tsx:24
- kind: component
- core: gr
- spec: (none)
- summary: Utility for amendment list.
- score: 1
component AuditCard
- file: src/cores/gr/components/AuditCard.tsx:22
- kind: component
- core: gr
- spec: (none)
- summary: Utility for audit card.
- score: 1
component AuditChecklistStep
- file: src/cores/gr/wizards/audit-setup/steps/AuditChecklistStep.tsx:32
- kind: component
- core: gr
- spec: (none)
- summary: Audit checklist preparation — seeds from regulatory requirements, allows add/remove/edit.
- score: 2
component AuditCorrectiveActionFormDialog
- file: src/cores/gr/components/AuditCorrectiveActionFormDialog.tsx:38
- kind: component
- core: gr
- spec: (none)
- summary: Utility for audit corrective action form dialog.
- score: 1
component AuditDetail
- file: src/cores/gr/pages/AuditDetail.tsx:38
- kind: component
- core: gr
- spec: (none)
- summary: Utility for audit detail.
- score: 1
component AuditFindingFormDialog
- file: src/cores/gr/components/AuditFindingFormDialog.tsx:41
- kind: component
- core: gr
- spec: (none)
- summary: Utility for audit finding form dialog.
- score: 1
component AuditFindingList
- file: src/cores/gr/pages/AuditFindingList.tsx:22
- kind: component
- core: gr
- spec: (none)
- summary: Utility for audit finding list.
- score: 1
component AuditFindingStatusBadge
- file: src/cores/gr/components/AuditFindingStatusBadge.tsx:27
- kind: component
- core: gr
- spec: (none)
- summary: Utility for audit finding status badge.
- score: 1
component AuditFormDialog
- file: src/cores/gr/components/AuditFormDialog.tsx:41
- kind: component
- core: gr
- spec: (none)
- summary: Utility for audit form dialog.
- score: 1
component AuditLinkDialog
- file: src/cores/gr/components/AuditLinkDialog.tsx:33
- kind: component
- core: gr
- spec: (none)
- summary: Utility for audit link dialog.
- score: 1
component AuditList
- file: src/cores/gr/pages/AuditList.tsx:27
- kind: component
- core: gr
- spec: (none)
- summary: Utility for audit list.
- score: 1
component AuditReadiness
- file: src/cores/gr/pages/AuditReadiness.tsx:24
- kind: component
- core: gr
- spec: (none)
- summary: Utility for audit readiness.
- score: 1
component AuditSetupWizardPage
- file: src/cores/gr/wizards/audit-setup/AuditSetupWizardPage.tsx:22
- kind: component
- core: gr
- spec: (none)
- summary: Full-page GR Audit Setup wizard powered by PF-41 ModuleWizardRenderer.Creates gr_audits, gr_audit_team_assignments, and gr_audit_checklists.
- score: 2
component AuditSeverityBadge
- file: src/cores/gr/components/AuditSeverityBadge.tsx:39
- kind: component
- core: gr
- spec: (none)
- summary: Utility for audit severity badge.
- score: 1
component AuditStatusBadge
- file: src/cores/gr/components/AuditStatusBadge.tsx:27
- kind: component
- core: gr
- spec: (none)
- summary: Utility for audit status badge.
- score: 1
component AuditTeamStep
- file: src/cores/gr/wizards/audit-setup/steps/AuditTeamStep.tsx:33
- kind: component
- core: gr
- spec: (none)
- summary: Audit team assignment step — lead auditor required, optional members with roles.
- score: 2
component AuditTypeBadge
- file: src/cores/gr/components/AuditTypeBadge.tsx:28
- kind: component
- core: gr
- spec: (none)
- summary: Utility for audit type badge.
- score: 1
component BenchmarkingOptInDialog
- file: src/cores/gr/components/analytics/BenchmarkingOptInDialog.tsx:28
- kind: component
- core: gr
- spec: (none)
- summary: Modal dialog presenting the benchmarking policy and capturing typed consent.
- score: 2
component BenchmarkingPanel
- file: src/cores/gr/components/analytics/BenchmarkingPanel.tsx:28
- kind: component
- core: gr
- spec: (none)
- summary: Panel rendering benchmarking opt-in state and cross-org aggregate bands.
- score: 2
component BoardMinutesFormDialog
- file: src/cores/gr/components/governance/BoardMinutesFormDialog.tsx:37
- kind: component
- core: gr
- spec: GR-15
- summary: Modal dialog for creating a board meeting minutes record.Captures the meeting title, date, type (regular, special, annual, oremergency), and optional content, then persists it via. Resets its fields and closes on success.
- params:
- props — Component props. - open: Whether the dialog is open. - onOpenChange: Callback invoked with the new open state.
- score: 5
component BoardMinutesTab
- file: src/cores/gr/components/governance/BoardMinutesTab.tsx:38
- kind: component
- core: gr
- spec: GR-15
- summary: Tab listing board meeting minutes with create and approval actions.Loads minutes via , renders them in a status-badgedtable, and lets permitted users open to add arecord or approve a draft via . Shows skeletonswhile loading and a sanitized error state on failure. Takes no props.
- score: 5
component BoardResolutionFormDialog
- file: src/cores/gr/components/governance/BoardResolutionFormDialog.tsx:37
- kind: component
- core: gr
- spec: GR-15
- summary: Modal dialog for recording a board resolution and its vote tally.Captures the resolution title, optional description, outcome (pending,passed, failed, or tabled), and for/against/abstain vote counts, thenpersists it via . Closes on success.
- params:
- props — Component props. - open: Whether the dialog is open. - onOpenChange: Callback invoked with the new open state.
- score: 5
component BoardResolutionsTab
- file: src/cores/gr/components/governance/BoardResolutionsTab.tsx:38
- kind: component
- core: gr
- spec: GR-15
- summary: Tab listing board resolutions with their vote outcomes.Loads resolutions via , renders them in anoutcome-badged table, and lets permitted users open to record a new resolution. Showsskeletons while loading and a sanitized error state on failure. Takes noprops.
- score: 5
component CapDetailSheet
- file: src/cores/gr/components/accreditation/tracer/CapDetailSheet.tsx:24
- kind: component
- core: gr
- spec: (none)
- summary: Slide-over sheet showing CAP details and status actions.
- score: 2
component CapsTab
- file: src/cores/gr/components/accreditation/tracer/CapsTab.tsx:24
- kind: component
- core: gr
- spec: (none)
- summary: CAPs list tab content.
- score: 1
component CapStatusBadge
- file: src/cores/gr/components/accreditation/tracer/CapStatusBadge.tsx:23
- kind: component
- core: gr
- spec: (none)
- summary: Renders a semantic badge for a CAP status.
- score: 2
component CEUTranscript
- file: src/cores/gr/pages/CEUTranscript.tsx:20
- kind: component
- core: gr
- spec: (none)
- summary: Utility for ceutranscript.
- score: 1
component CEUTranscriptExportDialog
- file: src/cores/gr/components/CEUTranscriptExportDialog.tsx:41
- kind: component
- core: gr
- spec: (none)
- summary: Dialog that lets users export a CEU transcript as a PDF.Renders an export dialog preconfigured for the CEU transcript document and forwards open state and callbacks.The transcript is given a synthetic (the employee id) to satisfy the shared dialog’s source constraint.
- params:
- props — Component props - open: Whether the dialog is open - onOpenChange: Callback invoked with the new open state when the dialog is opened or closed - transcript: The CEU transcript to export; used to populate the document title, metadata, and content
- returns: The configured export dialog element
- example: | CEUTranscriptExportDialog open=isOpen onOpenChange=setIsOpen transcript=transcript/Accessibility:- Ensure is controlled by a visible trigger and that focus is managed when the dialog opens and closes.
- score: 4
component CoiAcknowledgmentDialog
- file: src/cores/gr/components/governance/CoiAcknowledgmentDialog.tsx:23
- kind: component
- core: gr
- spec: (none)
- summary: Dialog for compliance officer to acknowledge a submitted COI attestation.
- score: 2
component CoiAttestationCycleWizardDialog
- file: src/cores/gr/wizards/coi-cycle/CoiAttestationCycleWizardDialog.tsx:34
- kind: component
- core: gr
- spec: (none)
- summary: Four-step wizard to launch an annual COI attestation cycle ().
- score: 2
component CoiAttestationForm
- file: src/cores/gr/components/governance/CoiAttestationForm.tsx:39
- kind: component
- core: gr
- spec: (none)
- summary: Dialog for submitting a COI attestation.
- score: 2
component CoiAttestationsTab
- file: src/cores/gr/components/governance/CoiAttestationsTab.tsx:31
- kind: component
- core: gr
- spec: (none)
- summary: Renders the COI attestation list with filters and action dialogs.
- score: 2
component CoiDashboardStats
- file: src/cores/gr/components/governance/CoiDashboardStats.tsx:16
- kind: component
- core: gr
- spec: (none)
- summary: COI completion stats cards.
- score: 1
component CoiRosterStep
- file: src/cores/gr/wizards/coi-cycle/steps/CoiRosterStep.tsx:56
- kind: component
- core: gr
- spec: (none)
- summary: Searchable roster with per-row role and multi-select.
- score: 2
component CoiRosterStepAdapter
- file: src/cores/gr/wizards/coi-cycle/steps/CoiRosterStepAdapter.tsx:31
- kind: component
- core: gr
- spec: GR-UX-09
- summary: Registry adapter that bridges to the PF-41 wizardstep contract.Reads the roster inputs (profiles, loading flag, selection, roles, error)out of the generic wizard bag and writes the user’s rosterselection back through under the and keys.
- params:
- props — PF-41 . - values: The wizard’s accumulated value bag (roster inputs are read from here). - onChange: Callback to write a wizard field by key.
- score: 5
component ComplianceCategoryBadge
- file: src/cores/gr/components/ComplianceCategoryBadge.tsx:42
- kind: component
- core: gr
- spec: (none)
- summary: Utility for compliance category badge.
- score: 1
component ComplianceCheckDialog
- file: src/cores/gr/components/ComplianceCheckDialog.tsx:48
- kind: component
- core: gr
- spec: (none)
- summary: Utility for compliance check dialog.
- score: 1
component ComplianceCheckTable
- file: src/cores/gr/components/ComplianceCheckTable.tsx:47
- kind: component
- core: gr
- spec: (none)
- summary: Utility for compliance check table.
- score: 1
component ComplianceDashboard
- file: src/cores/gr/pages/ComplianceDashboard.tsx:35
- kind: component
- core: gr
- spec: (none)
- summary: Utility for compliance dashboard.
- score: 1
component ComplianceDrillDownSheet
- file: src/cores/gr/components/compliance-dashboard/ComplianceDrillDownSheet.tsx:54
- kind: component
- core: gr
- spec: (none)
- summary: Drill-down sheet for a selected heatmap cell.
- score: 2
component ComplianceExecutiveDashboard
- file: src/cores/gr/pages/ComplianceExecutiveDashboard.tsx:29
- kind: component
- core: gr
- spec: (none)
- summary: GR-21 executive compliance dashboard.
- score: 2
component ComplianceHeatmap
- file: src/cores/gr/components/compliance-dashboard/ComplianceHeatmap.tsx:35
- kind: component
- core: gr
- spec: (none)
- summary: Executive compliance-posture heatmap grid.
- score: 2
component ComplianceLinkDialog
- file: src/cores/gr/components/ComplianceLinkDialog.tsx:29
- kind: component
- core: gr
- spec: (none)
- summary: Utility for compliance link dialog.
- score: 1
component CompliancePriorityBadge
- file: src/cores/gr/components/CompliancePriorityBadge.tsx:24
- kind: component
- core: gr
- spec: (none)
- summary: Utility for compliance priority badge.
- score: 1
component ComplianceRequirementWizardPage
- file: src/cores/gr/wizards/compliance-requirement/ComplianceRequirementWizardPage.tsx:30
- kind: component
- core: gr
- spec: (none)
- summary: GR-UX-05: Full-page Compliance Requirement Setup wizard powered by PF-41. Aligns with GR-UX-06/07/08 precedent.- Authoritative insert via .- Ancillary inserts to (initial scheduled check) and (document requirements) are non-fatal: failures surface a warning toast and do not roll back the requirement.- Telemetry: PHI-free (IDs, step indices, timing only).
- score: 2
component ComplianceScoreCards
- file: src/cores/gr/components/analytics/ComplianceScoreCards.tsx:24
- kind: component
- core: gr
- spec: (none)
- summary: GR-13: Compliance effectiveness score cards per domain.
- score: 2
component ComplianceScoreTrendCard
- file: src/cores/gr/components/analytics/ComplianceScoreTrendCard.tsx:30
- kind: component
- core: gr
- spec: (none)
- summary: Card displaying per-category compliance score trend over the selected window.
- score: 2
component ComplianceStatusBadge
- file: src/cores/gr/components/ComplianceStatusBadge.tsx:27
- kind: component
- core: gr
- spec: (none)
- summary: Utility for compliance status badge.
- score: 1
component ComplianceThresholdDialog
- file: src/cores/gr/components/compliance-dashboard/ComplianceThresholdDialog.tsx:25
- kind: component
- core: gr
- spec: (none)
- summary: Threshold configuration dialog. The form is a child mounted only while open, so its inputs seed from the loaded thresholds via the useState initializer (a fresh mount per open) — no setState-in-effect.
- score: 2
component ComplianceTrendChart
- file: src/cores/gr/components/compliance-dashboard/ComplianceTrendChart.tsx:22
- kind: component
- core: gr
- spec: (none)
- summary: Org-wide compliance-score trend line.
- score: 2
component ContractAmendmentCard
- file: src/cores/gr/components/contracts/ContractAmendmentCard.tsx:34
- kind: component
- core: gr
- spec: (none)
- summary: Utility for contract amendment card.
- score: 1
component ContractCard
- file: src/cores/gr/components/contracts/ContractCard.tsx:24
- kind: component
- core: gr
- spec: (none)
- summary: Utility for contract card.
- score: 1
component ContractCreationWizardPage
- file: src/cores/gr/wizards/contract-creation/ContractCreationWizardPage.tsx:23
- kind: component
- core: gr
- spec: (none)
- summary: Full-page GR contract creation flow powered by PF-41 ModuleWizardRenderer.
- score: 2
component ContractDashboard
- file: src/cores/gr/pages/ContractDashboard.tsx:25
- kind: component
- core: gr
- spec: (none)
- summary: Utility for contract dashboard.
- score: 1
component ContractDetailPage
- file: src/cores/gr/pages/ContractDetailPage.tsx:42
- kind: component
- core: gr
- spec: (none)
- summary: Utility for contract detail page.
- score: 1
component ContractDocumentsStep
- file: src/cores/gr/wizards/contract-creation/steps/ContractDocumentsStep.tsx:21
- kind: component
- core: gr
- spec: (none)
- summary: GR-UX-10 custom wizard step for primary contract document selection.
- score: 2
component ContractExpirationWidget
- file: src/cores/gr/components/contracts/ContractExpirationWidget.tsx:30
- kind: component
- core: gr
- spec: (none)
- summary: Utility for contract expiration widget.
- score: 1
component ContractFormDialog
- file: src/cores/gr/components/contracts/ContractFormDialog.tsx:124
- kind: component
- core: gr
- spec: (none)
- summary: Utility for contract form dialog.
- score: 1
component ContractListPage
- file: src/cores/gr/pages/ContractListPage.tsx:49
- kind: component
- core: gr
- spec: (none)
- summary: Utility for contract list page.
- score: 1
component ContractMilestoneCard
- file: src/cores/gr/components/contracts/ContractMilestoneCard.tsx:23
- kind: component
- core: gr
- spec: (none)
- summary: Utility for contract milestone card.
- score: 1
component ContractObligationCard
- file: src/cores/gr/components/contracts/ContractObligationCard.tsx:23
- kind: component
- core: gr
- spec: (none)
- summary: Utility for contract obligation card.
- score: 1
component ContractStatsWidget
- file: src/cores/gr/components/contracts/ContractStatsWidget.tsx:31
- kind: component
- core: gr
- spec: (none)
- summary: Utility for contract stats widget.
- score: 1
component ContractStatusBadge
- file: src/cores/gr/components/contracts/ContractStatusBadge.tsx:31
- kind: component
- core: gr
- spec: (none)
- summary: Utility for contract status badge.
- score: 1
component ContractTable
- file: src/cores/gr/components/contracts/ContractTable.tsx:60
- kind: component
- core: gr
- spec: (none)
- summary: Utility for contract table.
- score: 1
component ContractTypeBadge
- file: src/cores/gr/components/contracts/ContractTypeBadge.tsx:29
- kind: component
- core: gr
- spec: (none)
- summary: Utility for contract type badge.
- score: 1
component CorrectiveActionList
- file: src/cores/gr/pages/CorrectiveActionList.tsx:27
- kind: component
- core: gr
- spec: (none)
- summary: Utility for corrective action list.
- score: 1
component CorrectiveActionsTab
- file: src/cores/gr/components/incidents/CorrectiveActionsTab.tsx:35
- kind: component
- core: gr
- spec: (none)
- summary: Tab content displaying corrective actions with overdue highlighting.
- score: 2
component CourseDetailsStep
- file: src/cores/gr/wizards/training-course/steps/CourseDetailsStep.tsx:22
- kind: component
- core: gr
- spec: (none)
- summary: Course details step: title, description, category, delivery method, course code, required flag.
- score: 2
component CreateCapDialog
- file: src/cores/gr/components/accreditation/tracer/CreateCapDialog.tsx:31
- kind: component
- core: gr
- spec: (none)
- summary: Dialog to create a new CAP.
- score: 1
component CreateProjectFromTemplateDialog
- file: src/cores/gr/components/templates/CreateProjectFromTemplateDialog.tsx:41
- kind: component
- core: gr
- spec: (none)
- summary: Utility for create project from template dialog.
- score: 1
component CreateQIFromFindingDialog
- file: src/cores/gr/components/CreateQIFromFindingDialog.tsx:42
- kind: component
- core: gr
- spec: (none)
- summary: Utility for create qifrom finding dialog.
- score: 1
component CreateQIFromRequirementDialog
- file: src/cores/gr/components/CreateQIFromRequirementDialog.tsx:38
- kind: component
- core: gr
- spec: (none)
- summary: Utility for create qifrom requirement dialog.
- score: 1
component CreditsDurationStep
- file: src/cores/gr/wizards/training-course/steps/CreditsDurationStep.tsx:20
- kind: component
- core: gr
- spec: (none)
- summary: Credits and duration step: duration, passing score, CEU credits/category, validity, recurrence, content URL.
- score: 2
component CycleConfigStep
- file: src/cores/gr/wizards/coi-cycle/steps/CycleConfigStep.tsx:48
- kind: component
- core: gr
- spec: (none)
- summary: Attestation year and due date with inline validation messaging.
- score: 2
component DocumentationStep
- file: src/cores/gr/wizards/compliance-requirement/steps/DocumentationStep.tsx:45
- kind: component
- core: gr
- spec: (none)
- summary: Documentation step — define evidence requirements for compliance.
- score: 2
component DocumentExportDialog
- file: src/cores/gr/components/DocumentExportDialog.tsx:91
- kind: component
- core: gr
- spec: (none)
- summary: Modal dialog for configuring and export a source document as a PDF.Presents controls to choose a document template and a letterhead, toggle an approvalsignature block, preview the composed document, and generate a templated PDF that opensin a new tab when created. Handles loading and generation states and surfaces successand error toasts.
- params:
- props — Component props - - Whether the dialog is open. - - Callback invoked with the new open state. - - The source document object (must include an ). - - Dialog title text. - - Short label used in error messages (e.g., “Invoice”). - - Template type used to filter available templates. - - Function that extracts exportable content from (should return ). - - Human-readable name shown in the dialog description.
- example: | DocumentExportDialog open=open onOpenChange=setOpen source=invoice title=“Export Invoice” sourceLabel=“Invoice” templateType=“invoice” getContent=(src) = extractExportContent(src) documentName=invoice.number/Accessibility:- All form controls are labelled ( components with associated s).- Dialog wrapper is semantic and traps focus while open.
- score: 4
component DocumentRetentionTab
- file: src/cores/gr/components/governance/DocumentRetentionTab.tsx:29
- kind: component
- core: gr
- spec: GR-15
- summary: Tab surfacing data-retention policies and active legal holds for governancerecords.Reads retention policies and legal holds from the platform layer, filters policies to GR governance entitytypes (COI attestations, whistleblower reports, board minutes, boardresolutions), and lists currently active holds. Gated behind the permission. Takes no props.
- score: 5
component EvidenceDocumentSelector
- file: src/cores/gr/components/EvidenceDocumentSelector.tsx:30
- kind: component
- core: gr
- spec: (none)
- summary: Utility for evidence document selector.
- score: 1
component EvidenceLinkerDialog
- file: src/cores/gr/components/EvidenceLinkerDialog.tsx:43
- kind: component
- core: gr
- spec: (none)
- summary: Utility for evidence linker dialog.
- score: 1
component ExecutiveComplianceReport
- file: src/cores/gr/components/compliance-dashboard/ExecutiveComplianceReport.tsx:40
- kind: component
- core: gr
- spec: (none)
- summary: Board-ready executive compliance report with branded PDF export.
- score: 2
component ExportToQISheet
- file: src/cores/gr/components/analytics/ExportToQISheet.tsx:32
- kind: component
- core: gr
- spec: (none)
- summary: GR-13: Export to QI pre-fill sheet.
- score: 2
component FormsReportsHubPage
- file: src/cores/gr/pages/FormsReportsHubPage.tsx:36
- kind: component
- core: gr
- spec: (none)
- summary: Forms & Reports hub page. Renders the governance forms and reports tabstrip via the shared primitive.
- score: 2
component GapAnalysisTab
- file: src/cores/gr/components/accreditation/tracer/GapAnalysisTab.tsx:23
- kind: component
- core: gr
- spec: (none)
- summary: Gap analysis tab showing standards coverage and gaps by category.
- score: 2
component GenerateTracerPackDialog
- file: src/cores/gr/components/accreditation/tracer/GenerateTracerPackDialog.tsx:28
- kind: component
- core: gr
- spec: (none)
- summary: Dialog to generate a new tracer pack.
- score: 2
component GovernanceControlsPage
- file: src/cores/gr/pages/GovernanceControlsPage.tsx:25
- kind: component
- core: gr
- spec: (none)
- summary: Main governance controls page with URL-synced tabs.
- score: 2
component GRFormsPage
- file: src/cores/gr/pages/GRFormsPage.tsx:22
- kind: component
- core: gr
- spec: none
- summary: Route page listing the Governance core’s configurable forms.Delegates to the shared PF-08 , scoped to GR(), wiring the “create form” path and the FWforms-create permission. Takes no props.
- score: 5
component GROverview
- file: src/cores/gr/pages/GROverview.tsx:36
- kind: component
- core: gr
- spec: (none)
- summary: Utility for groverview.
- score: 1
component GRReportsHubPage
- file: src/cores/gr/pages/GRReportsHubPage.tsx:47
- kind: component
- core: gr
- spec: (none)
- summary: Landing page for GR “Reports” nav — deep-links to existing report surfaces behind permission gates.
- score: 2
component GRSettingsForm
- file: src/cores/gr/components/GRSettingsForm.tsx:57
- kind: component
- core: gr
- spec: (none)
- summary: Utility for grsettings form.
- score: 1
component GRSettingsPage
- file: src/cores/gr/pages/GRSettingsPage.tsx:23
- kind: component
- core: gr
- spec: (none)
- summary: Utility for grsettings page.
- score: 1
component IncidentDashboardWidget
- file: src/cores/gr/components/incidents/IncidentDashboardWidget.tsx:16
- kind: component
- core: gr
- spec: (none)
- summary: Dashboard widget showing incident overview stats.
- score: 2
component IncidentDetailPage
- file: src/cores/gr/pages/IncidentDetailPage.tsx:34
- kind: component
- core: gr
- spec: (none)
- summary: Incident detail page with tabbed layout.
- score: 2
component IncidentListPage
- file: src/cores/gr/pages/IncidentListPage.tsx:31
- kind: component
- core: gr
- spec: (none)
- summary: Main incident list page with stats, filters, and table.
- score: 2
component IncidentReportingWizardPage
- file: src/cores/gr/wizards/incident-reporting/IncidentReportingWizardPage.tsx:27
- kind: component
- core: gr
- spec: (none)
- summary: GR-UX-06: Full-page Incident Reporting wizard powered by PF-41 ModuleWizardRenderer.Inserts a single row. Regulatory reports are createdautomatically by the existing trigger pipeline(which invokes ). The wizarddoes NOT insert into directly.
- score: 2
component InServiceCompliancePage
- file: src/cores/gr/pages/InServiceCompliancePage.tsx:38
- kind: component
- core: gr
- spec: (none)
- summary: Mandatory In-Service Compliance Monitor page.
- score: 2
component InServiceMatrixFilters
- file: src/cores/gr/components/inservice/InServiceMatrixFilters.tsx:79
- kind: component
- core: gr
- spec: GR-19
- summary: Filter bar for the in-service compliance matrix.Renders a scope toggle (Site vs Department), an employee search box, thescope-specific site/department selector, and a status selector, plus a Clearfilters action. Switching scope clears the inactive scope’s id to keep theserver-side filter mutually exclusive. Department options are loadedorg-scoped from . Emits the full to on every change.
- params:
- props — Component props. - value: Current filter state. - onChange: Callback invoked with the next filter state.
- score: 5
component InServiceMatrixStatCards
- file: src/cores/gr/components/inservice/InServiceMatrixStatCards.tsx:65
- kind: component
- core: gr
- spec: GR-19
- summary: Scorecard tiles summarizing in-service compliance for the matrix.Derives KPI tiles from the supplied matrix: the count of employees, pluscell counts for compliant, due-soon, and overdue statuses, alongside aweighted compliance percentage whose tone shifts (success / warning /destructive) based on the value. Renders skeleton tiles while loading.
- params:
- props — Component props. - matrix: The computed in-service matrix, or undefined while loading. - compliancePct: Weighted compliance percentage, or null/undefined when unavailable. - isLoading: Whether to render loading skeletons.
- score: 5
component InServiceMatrixTable
- file: src/cores/gr/components/inservice/InServiceMatrixTable.tsx:65
- kind: component
- core: gr
- spec: GR-19
- summary: Responsive grid of in-service training compliance by employee and course.On desktop renders a sticky-header table with employees as rows and coursesas columns, each cell showing an with a tooltipdetailing status, last-completed, due date, and verification method. Onmobile (under 768px) it collapses to a per-employee accordion. Showsskeletons while loading and an empty state when there are no rows or courses.
- params:
- props — Component props. - matrix: The computed in-service matrix, or undefined while loading. - isLoading: Whether to render loading skeletons.
- score: 5
component InServiceStatusBadge
- file: src/cores/gr/components/inservice/InServiceStatusBadge.tsx:36
- kind: component
- core: gr
- spec: GR-19
- summary: Accessible badge for an in-service compliance cell status.Pairs color (badge variant) with an icon and glyph so the matrix stayslegible for color-blind users. The variant renders an icon-onlybadge with an for use inside dense matrix cells.
- params:
- props — Component props. - status: The cell status to display. - className: Optional additional CSS classes. - compact: When true, render a compact icon-only badge.
- score: 5
component InvestigationTab
- file: src/cores/gr/components/incidents/InvestigationTab.tsx:33
- kind: component
- core: gr
- spec: (none)
- summary: Tab content displaying investigation details and findings.
- score: 2
component JurisdictionBadge
- file: src/cores/gr/components/ai/JurisdictionBadge.tsx:35
- kind: component
- core: gr
- spec: (none)
- summary: Visual indicator of the active PF-96 jurisdiction profile for AI compliance chat.
- score: 2
component LinkedQISection
- file: src/cores/gr/components/LinkedQISection.tsx:29
- kind: component
- core: gr
- spec: (none)
- summary: Utility for linked qisection.
- score: 1
component LinkedRisksSection
- file: src/cores/gr/components/LinkedRisksSection.tsx:36
- kind: component
- core: gr
- spec: (none)
- summary: Utility for linked risks section.
- score: 1
component MetricComparisonChart
- file: src/cores/gr/components/charts/MetricComparisonChart.tsx:28
- kind: component
- core: gr
- spec: (none)
- summary: Utility for metric comparison chart.
- score: 1
component MetricGoalProgressChart
- file: src/cores/gr/components/charts/MetricGoalProgressChart.tsx:27
- kind: component
- core: gr
- spec: (none)
- summary: Utility for metric goal progress chart.
- score: 1
component MetricTrendChart
- file: src/cores/gr/components/charts/MetricTrendChart.tsx:38
- kind: component
- core: gr
- spec: (none)
- summary: Utility for metric trend chart.
- score: 1
component MilestoneFormDialog
- file: src/cores/gr/components/contracts/MilestoneFormDialog.tsx:39
- kind: component
- core: gr
- spec: (none)
- summary: Utility for milestone form dialog.
- score: 1
component MilestoneList
- file: src/cores/gr/components/contracts/MilestoneList.tsx:26
- kind: component
- core: gr
- spec: (none)
- summary: Utility for milestone list.
- score: 1
component MilestoneStatusBadge
- file: src/cores/gr/components/contracts/MilestoneStatusBadge.tsx:30
- kind: component
- core: gr
- spec: (none)
- summary: Utility for milestone status badge.
- score: 1
component MitigationStatusBadge
- file: src/cores/gr/components/MitigationStatusBadge.tsx:26
- kind: component
- core: gr
- spec: (none)
- summary: Utility for mitigation status badge.
- score: 1
component MockSurveysTab
- file: src/cores/gr/components/accreditation/tracer/MockSurveysTab.tsx:23
- kind: component
- core: gr
- spec: (none)
- summary: Mock surveys listing with trend data.
- score: 2
component MyGovernanceHubPage
- file: src/cores/gr/pages/MyGovernanceHubPage.tsx:37
- kind: component
- core: gr
- spec: (none)
- summary: My Governance hub page. Renders the personal acknowledgments, training,and CEU transcript tab strip via the shared primitive.
- score: 2
component MyPolicyAcknowledgments
- file: src/cores/gr/pages/MyPolicyAcknowledgments.tsx:23
- kind: component
- core: gr
- spec: (none)
- summary: Utility for my policy acknowledgments.
- score: 1
component MyQIDashboard
- file: src/cores/gr/pages/MyQIDashboard.tsx:25
- kind: component
- core: gr
- spec: (none)
- summary: Utility for my qidashboard.
- score: 1
component MyTraining
- file: src/cores/gr/pages/MyTraining.tsx:23
- kind: component
- core: gr
- spec: (none)
- summary: Utility for my training.
- score: 1
component ObligationFormDialog
- file: src/cores/gr/components/contracts/ObligationFormDialog.tsx:65
- kind: component
- core: gr
- spec: (none)
- summary: Utility for obligation form dialog.
- score: 1
component ObligationList
- file: src/cores/gr/components/contracts/ObligationList.tsx:26
- kind: component
- core: gr
- spec: (none)
- summary: Utility for obligation list.
- score: 1
component ObligationStatusBadge
- file: src/cores/gr/components/contracts/ObligationStatusBadge.tsx:31
- kind: component
- core: gr
- spec: (none)
- summary: Utility for obligation status badge.
- score: 1
component PDSAActPhaseForm
- file: src/cores/gr/components/PDSAActPhaseForm.tsx:28
- kind: component
- core: gr
- spec: (none)
- summary: Utility for pdsaact phase form.
- score: 1
component PDSACycleCard
- file: src/cores/gr/components/PDSACycleCard.tsx:28
- kind: component
- core: gr
- spec: (none)
- summary: Utility for pdsacycle card.
- score: 1
component PDSACycleDetail
- file: src/cores/gr/components/PDSACycleDetail.tsx:26
- kind: component
- core: gr
- spec: (none)
- summary: Utility for pdsacycle detail.
- score: 1
component PDSACycleFormDialog
- file: src/cores/gr/components/PDSACycleFormDialog.tsx:30
- kind: component
- core: gr
- spec: (none)
- summary: Utility for pdsacycle form dialog.
- score: 1
component PDSACycleStatusBadge
- file: src/cores/gr/components/PDSACycleStatusBadge.tsx:25
- kind: component
- core: gr
- spec: (none)
- summary: Utility for pdsacycle status badge.
- score: 1
component PDSADoPhaseForm
- file: src/cores/gr/components/PDSADoPhaseForm.tsx:27
- kind: component
- core: gr
- spec: (none)
- summary: Utility for pdsado phase form.
- score: 1
component PDSAPhaseBadge
- file: src/cores/gr/components/PDSAPhaseBadge.tsx:45
- kind: component
- core: gr
- spec: (none)
- summary: Displays a PDSA (Plan-Do-Study-Act) cycle phase badge with appropriate styling.
- params:
- phase — The PDSA phase value. Accepted values: ‘plan’ | ‘do’ | ‘study’ | ‘act’
- className — Optional additional CSS classes to apply to the badge
- returns: A React element rendering the phase badge with variant styling based on the phaseFallback behavior: If an unrecognized phase value is passed to the internal factory,it will render with the default outline variant.
- score: 2
component PDSAPlanPhaseForm
- file: src/cores/gr/components/PDSAPlanPhaseForm.tsx:28
- kind: component
- core: gr
- spec: (none)
- summary: Utility for pdsaplan phase form.
- score: 1
component PDSAStudyPhaseForm
- file: src/cores/gr/components/PDSAStudyPhaseForm.tsx:27
- kind: component
- core: gr
- spec: (none)
- summary: Utility for pdsastudy phase form.
- score: 1
component PolicyAcknowledgmentDialog
- file: src/cores/gr/components/PolicyAcknowledgmentDialog.tsx:35
- kind: component
- core: gr
- spec: (none)
- summary: Utility for policy acknowledgment dialog.GR-01-EN-02: When the acknowledgment row carries an (FK to ), the configurable PF-08 form isrendered via and its submitted values are persisted to. Otherwise the built-in defaultread-confirmation checkbox is shown and a payload is recorded.
- score: 1
component PolicyAcknowledgmentFormsPage
- file: src/cores/gr/pages/settings/PolicyAcknowledgmentFormsPage.tsx:30
- kind: component
- core: gr
- spec: GR-01-EN-02
- summary: Settings page listing the GR-owned forms that can serve as a policy’sacknowledgment form.Renders an explanatory alert plus the shared PF-08 scopedto with a policy-acknowledgment create path. Formslisted here can be attached to a policy via. Takes no props.
- score: 5
component PolicyAcknowledgmentTable
- file: src/cores/gr/components/PolicyAcknowledgmentTable.tsx:32
- kind: component
- core: gr
- spec: (none)
- summary: Utility for policy acknowledgment table.
- score: 1
component PolicyAcknowledgmentTracker
- file: src/cores/gr/pages/PolicyAcknowledgmentTracker.tsx:22
- kind: component
- core: gr
- spec: (none)
- summary: Utility for policy acknowledgment tracker.
- score: 1
component PolicyAssignmentDialog
- file: src/cores/gr/components/PolicyAssignmentDialog.tsx:54
- kind: component
- core: gr
- spec: (none)
- summary: Utility for policy assignment dialog.
- score: 1
component PolicyAssignmentList
- file: src/cores/gr/components/PolicyAssignmentList.tsx:25
- kind: component
- core: gr
- spec: (none)
- summary: Utility for policy assignment list.
- score: 1
component PolicyCard
- file: src/cores/gr/components/PolicyCard.tsx:22
- kind: component
- core: gr
- spec: (none)
- summary: Utility for policy card.
- score: 1
component PolicyCategoryBadge
- file: src/cores/gr/components/PolicyCategoryBadge.tsx:27
- kind: component
- core: gr
- spec: (none)
- summary: Utility for policy category badge.
- score: 1
component PolicyCoverageTable
- file: src/cores/gr/components/analytics/PolicyCoverageTable.tsx:21
- kind: component
- core: gr
- spec: (none)
- summary: GR-13: Policy coverage heatmap table with tier badges.
- score: 2
component PolicyCreationWizardDialog
- file: src/cores/gr/wizards/policy-creation/PolicyCreationWizardDialog.tsx:58
- kind: component
- core: gr
- spec: (none)
- summary: GR-UX-12: four-step dialog wizard for creating draft policies.
- score: 2
component PolicyCustomFieldsPage
- file: src/cores/gr/pages/settings/PolicyCustomFieldsPage.tsx:51
- kind: component
- core: gr
- spec: GR-01-EN-02
- summary: Settings page for managing custom field definitions on policies.Loads and mutates custom-field definitions via the platformcustom-fields hooks, presenting them in a table with create, edit, anddelete actions. Fields defined here populate the bag onpolicy records. Takes no props.
- score: 5
component PolicyDetail
- file: src/cores/gr/pages/PolicyDetail.tsx:39
- kind: component
- core: gr
- spec: (none)
- summary: Utility for policy detail.
- score: 1
component PolicyDocumentStep
- file: src/cores/gr/wizards/policy-creation/steps/PolicyDocumentStep.tsx:25
- kind: component
- core: gr
- spec: (none)
- summary: Step 2: attach optional policy document via PF-11 upload hook.
- params:
- props — Component props - data: Current wizard form data - onDataChange: Callback to update wizard form data
- returns: React component for policy document upload step
- score: 2
component PolicyExportDialog
- file: src/cores/gr/components/PolicyExportDialog.tsx:90
- kind: component
- core: gr
- spec: (none)
- summary: Renders a configured DocumentExportDialog that exports the given policy to a PDF.The dialog is labeled “Export Policy to PDF” and uses the policy data to build PDF content via .
- params:
- props — Component props - open: Whether the export dialog is open - onOpenChange: Callback invoked when the dialog open state should change - policy: The policy object to export
- returns: The rendered export dialog element configured for the provided policy
- example: | PolicyExportDialog open=isDialogOpen onOpenChange=setDialogOpen policy=selectedPolicy/Accessibility: the dialog is labeled for assistive technologies as “Export Policy to PDF”; ensure the provided manages focus when opening/closing for keyboard and screen-reader users.
- score: 4
component PolicyFormDialog
- file: src/cores/gr/components/PolicyFormDialog.tsx:49
- kind: component
- core: gr
- spec: (none)
- summary: Utility for policy form dialog.
- score: 1
component PolicyLibrary
- file: src/cores/gr/pages/PolicyLibrary.tsx:92
- kind: component
- core: gr
- spec: (none)
- summary: Utility for policy library.
- score: 1
component PolicyReviewDashboard
- file: src/cores/gr/pages/PolicyReviewDashboard.tsx:32
- kind: component
- core: gr
- spec: (none)
- summary: Utility for policy review dashboard.
- score: 1
component PolicyReviewStep
- file: src/cores/gr/wizards/policy-creation/steps/PolicyReviewStep.tsx:27
- kind: component
- core: gr
- spec: (none)
- summary: Step 4: read-only summary with per-section edit navigation.
- params:
- props — Component props - data: Complete wizard form data to review - onEditStep: Callback to navigate back to a specific step for editing
- returns: React component for policy review step
- score: 2
component PolicySelector
- file: src/cores/gr/components/procedures/PolicySelector.tsx:42
- kind: component
- core: gr
- spec: (none)
- summary: A dropdown popover that lets users choose an approved policy from a searchable list.Renders a button showing the currently selected policy title (or a placeholder) and apopover containing a searchable list of approved policies. Selecting an item invokes with the policy’s id, title, and available content, then closes the popover.Accessibility:- The trigger button uses and exposes to reflect open state.- Ensure keyboard focus and screen-reader access are preserved when integrating this component. - value: The id of the currently selected policy (optional). - onSelect: Callback invoked when a policy is selected. Receives an object with , , and . - disabled: If true, disables the selector control.
- returns: The rendered PolicySelector component.
- example: | PolicySelector value=“policy-123” onSelect=(policy) = console.log(‘selected’, policy)/
- score: 5
component PolicyStatusBadge
- file: src/cores/gr/components/PolicyStatusBadge.tsx:24
- kind: component
- core: gr
- spec: (none)
- summary: Utility for policy status badge.
- score: 1
component PolicyVersionDialog
- file: src/cores/gr/components/PolicyVersionDialog.tsx:28
- kind: component
- core: gr
- spec: (none)
- summary: Utility for policy version dialog.
- score: 1
component PolicyVersionHistory
- file: src/cores/gr/components/PolicyVersionHistory.tsx:24
- kind: component
- core: gr
- spec: (none)
- summary: Utility for policy version history.
- score: 1
component ProcedureAnalyticsDashboardPage
- file: src/cores/gr/pages/ProcedureAnalyticsDashboardPage.tsx:47
- kind: component
- core: gr
- spec: (none)
- summary: GR-13: Procedure Analytics Dashboard page component.
- score: 2
component ProcedureAnalyticsTable
- file: src/cores/gr/components/analytics/ProcedureAnalyticsTable.tsx:35
- kind: component
- core: gr
- spec: (none)
- summary: GR-13: Sortable analytics table with Export to QI action.
- score: 2
component ProcedureCanvas
- file: src/cores/gr/components/procedures/ProcedureCanvas.tsx:45
- kind: component
- core: gr
- spec: (none)
- summary: Renders a procedure workflow canvas with edit and read-only modes, and automatically forces read-only on small screens.
- params:
- props — Component props. - nodes: Procedure workflow nodes to display. - edges: Procedure workflow edges to display. - readOnly: If true, forces the canvas into read-only mode; defaults to false. - onNodesChange: Called with the updated node array when nodes change. - onEdgesChange: Called with the updated edge array when edges change. - onNodeClick: Called when a node is clicked. - className: Optional container CSS class names.
- returns: The procedure workflow canvas wrapped with a React Flow provider.
- example: | ProcedureCanvas nodes=nodes edges=edges onNodesChange=setNodes onEdgesChange=setEdges/Accessibility: container uses role=“application” and an aria-label that indicates whether the canvas is in “viewer” (read-only) or “editor” mode.
- score: 4
component ProcedureCard
- file: src/cores/gr/components/procedures/ProcedureCard.tsx:42
- kind: component
- core: gr
- spec: (none)
- summary: Renders a compact, accessible card that displays a procedure’s title, status, category, and optional metadata.The card shows procedure number, site, truncated description, owner, step count, effective date, and review date(with an overdue indicator when the review date is in the past). The card supports click activation and keyboardactivation via Enter or Space.Accessibility: the card exposes role=“button”, tabIndex=0, an aria-label with the procedure title, and keyboardhandling for Enter/Space to activate the provided onClick handler.
- params:
- props — Component props - procedure: The procedure data to render (title, status, category, optional procedure_number, site, description, owner, workflow_nodes, effective_date, and review_date). - onClick: Optional click handler invoked when the card is activated via mouse or keyboard.
- returns: The rendered card element representing the provided procedure.
- example: | ProcedureCard procedure=procedureItem onClick=() = navigateToProcedure(procedureItem.id)/
- score: 4
component ProcedureCategoryBadge
- file: src/cores/gr/components/procedures/ProcedureCategoryBadge.tsx:52
- kind: component
- core: gr
- spec: (none)
- summary: Renders a color-coded badge for a procedure category.Looks up a display label and Tailwind color classes for known categories and falls backto a capitalized label and a default color when the category is unknown. - category: The procedure category key (e.g., “clinical”, “imaging”). If the key is not found in the internal mappings, the component will display the category string with the first character capitalized. - className: Optional additional CSS classes to apply to the Badge container.Accessibility: The badge’s content is plain text and exposed to assistive technologies as rendered; ensure provided category strings are meaningful and localized when needed.
- returns: A JSX element rendering an outlined Badge styled for the specified category.
- example: | ProcedureCategoryBadge category=“clinical” /
- score: 5
component ProcedureDetailPage
- file: src/cores/gr/pages/ProcedureDetailPage.tsx:35
- kind: component
- core: gr
- spec: (none)
- summary: Display a detailed view of a single procedure with header, permission-based actions, and tabs for Overview, Steps, Versions, and Executions.
- score: 2
component ProcedureEditPage
- file: src/cores/gr/pages/ProcedureEditPage.tsx:49
- kind: component
- core: gr
- spec: (none)
- summary: Page component that provides a full editor for creating or editing a procedure, including a metadata form and a visual workflow canvas.
- score: 2
component ProcedureExportDialog
- file: src/cores/gr/components/ProcedureExportDialog.tsx:90
- kind: component
- core: gr
- spec: (none)
- summary: Dialog that lets users export a Procedure as a PDF.Renders an export dialog preconfigured for procedure documents and forwards open state and callbacks.
- params:
- props — Component props - open: Whether the dialog is open - onOpenChange: Callback invoked with the new open state when the dialog is opened or closed - procedure: The procedure to export; used to populate the document title, metadata, and content
- returns: The configured export dialog element
- example: | ProcedureExportDialog open=isOpen onOpenChange=(next) = setIsOpen(next) procedure=procedure/Accessibility:- Ensure is controlled by a visible trigger and that focus is managed when the dialog opens and closes.
- score: 4
component ProcedureListPage
- file: src/cores/gr/pages/ProcedureListPage.tsx:55
- kind: component
- core: gr
- spec: (none)
- summary: Renders the Procedures list page with search, category/status filters, grid/list view toggle, and navigation for creating or opening procedures.The page fetches procedures using current filters and a deferred search term, shows loading skeletons while fetching, an empty state with CTA when no procedures exist, and an error alert if loading fails. The “Add Procedure” action is shown only when the current user has the permission.Accessibility:- Search input and filter triggers include descriptive attributes.- View mode buttons include for screen-reader clarity.
- params:
- props — This component accepts no props; it is self-contained and uses in-module hooks for data, state, and navigation.
- example: | ProcedureListPage /
- score: 4
component ProcedureStatusBadge
- file: src/cores/gr/components/procedures/ProcedureStatusBadge.tsx:39
- kind: component
- core: gr
- spec: (none)
- summary: Renders a colored status badge for a procedure based on the provided status key.The component looks up a label and visual variant from the internal mapand falls back to showing the raw string with the variant for unknown keys.
- params:
- props — Component props - status: Procedure status key used to determine the badge label and variant (e.g., , ). If the key is not recognized, the raw string is used as the label. - className: Optional additional CSS class names to apply to the badge container.
- returns: A Badge element displaying the status label with the configured visual variant.
- example: | ProcedureStatusBadge status=“approved” /The badge provides a visible textual label for screen readers; ensure color is not the only means of conveying important status information.
- score: 4
component ProcedureStepDrilldownDialog
- file: src/cores/gr/components/analytics/ProcedureStepDrilldownDialog.tsx:39
- kind: component
- core: gr
- spec: (none)
- summary: Dialog showing step-level execution analytics for a single procedure.
- params:
- procedureId — Procedure to load. Hook is disabled until provided.
- procedureTitle — Title shown in the dialog header.
- open — Controlled open state.
- onOpenChange — Open-state change handler.
- score: 2
component ProcedureTemplateCard
- file: src/cores/gr/components/ProcedureTemplateCard.tsx:33
- kind: component
- core: gr
- spec: (none)
- summary: Renders a single procedure template as a card with metadata and actions.
- score: 2
component ProcedureTemplateContributeDialog
- file: src/cores/gr/components/ProcedureTemplateContributeDialog.tsx:43
- kind: component
- core: gr
- spec: (none)
- summary: Dialog for contributing (saving) a procedure as a template.
- score: 2
component ProcedureTemplateFilters
- file: src/cores/gr/components/ProcedureTemplateFilters.tsx:35
- kind: component
- core: gr
- spec: (none)
- summary: Renders filter controls for the procedure template library.
- score: 2
component ProcedureTemplateGrid
- file: src/cores/gr/components/ProcedureTemplateGrid.tsx:47
- kind: component
- core: gr
- spec: (none)
- summary: Renders a responsive grid of procedure template cards.
- score: 2
component ProcedureTemplateInstantiateDialog
- file: src/cores/gr/components/ProcedureTemplateInstantiateDialog.tsx:51
- kind: component
- core: gr
- spec: (none)
- summary: Dialog for instantiating a procedure template into a new procedure.
- score: 2
component ProcedureTemplatePreviewDialog
- file: src/cores/gr/components/ProcedureTemplatePreviewDialog.tsx:26
- kind: component
- core: gr
- spec: (none)
- summary: Displays a read-only preview of a procedure template with workflow canvas.
- score: 2
component ProcedureTemplatesPage
- file: src/cores/gr/pages/ProcedureTemplatesPage.tsx:27
- kind: component
- core: gr
- spec: (none)
- summary: Procedure Templates Library browse page.
- score: 2
component QIDashboard
- file: src/cores/gr/pages/QIDashboard.tsx:41
- kind: component
- core: gr
- spec: (none)
- summary: Utility for qidashboard.
- score: 1
component QIImprovementCard
- file: src/cores/gr/components/QIImprovementCard.tsx:20
- kind: component
- core: gr
- spec: (none)
- summary: Utility for qiimprovement card.
- score: 1
component QIImprovementFormDialog
- file: src/cores/gr/components/QIImprovementFormDialog.tsx:38
- kind: component
- core: gr
- spec: (none)
- summary: Utility for qiimprovement form dialog.
- score: 1
component QIImprovementStatusBadge
- file: src/cores/gr/components/QIImprovementStatusBadge.tsx:25
- kind: component
- core: gr
- spec: (none)
- summary: Utility for qiimprovement status badge.
- score: 1
component QIMetricCard
- file: src/cores/gr/components/QIMetricCard.tsx:28
- kind: component
- core: gr
- spec: (none)
- summary: Utility for qimetric card.
- score: 1
component QIMetricFormDialog
- file: src/cores/gr/components/QIMetricFormDialog.tsx:54
- kind: component
- core: gr
- spec: (none)
- summary: Utility for qimetric form dialog.
- score: 1
component QIMetricMeasurementDialog
- file: src/cores/gr/components/QIMetricMeasurementDialog.tsx:21
- kind: component
- core: gr
- spec: (none)
- summary: Utility for qimetric measurement dialog.
- score: 1
component QiMetricsStep
- file: src/cores/gr/wizards/qi-project/steps/QiMetricsStep.tsx:58
- kind: component
- core: gr
- spec: (none)
- summary: Custom step for defining quality metrics in the QI project wizard.
- score: 2
component QIMetricTrendBadge
- file: src/cores/gr/components/QIMetricTrendBadge.tsx:30
- kind: component
- core: gr
- spec: (none)
- summary: Utility for qimetric trend badge.
- score: 1
component QIProjectCard
- file: src/cores/gr/components/QIProjectCard.tsx:21
- kind: component
- core: gr
- spec: (none)
- summary: Utility for qiproject card.
- score: 1
component QIProjectCategoryBadge
- file: src/cores/gr/components/QIProjectCategoryBadge.tsx:24
- kind: component
- core: gr
- spec: (none)
- summary: Utility for qiproject category badge.
- score: 1
component QIProjectDetail
- file: src/cores/gr/pages/QIProjectDetail.tsx:37
- kind: component
- core: gr
- spec: (none)
- summary: Utility for qiproject detail.
- score: 1
component QIProjectFormDialog
- file: src/cores/gr/components/QIProjectFormDialog.tsx:41
- kind: component
- core: gr
- spec: (none)
- summary: Utility for qiproject form dialog.
- score: 1
component QIProjectList
- file: src/cores/gr/pages/QIProjectList.tsx:43
- kind: component
- core: gr
- spec: (none)
- summary: Utility for qiproject list.
- score: 1
component QIProjectSourceBadge
- file: src/cores/gr/components/QIProjectSourceBadge.tsx:16
- kind: component
- core: gr
- spec: (none)
- summary: Renders a “Source: GR-13 procedure gap” badge when the projectwas created by the procedure-gap consumer. Returns null otherwise.
- score: 2
component QIProjectStatusBadge
- file: src/cores/gr/components/QIProjectStatusBadge.tsx:26
- kind: component
- core: gr
- spec: (none)
- summary: Utility for qiproject status badge.
- score: 1
component QiProjectWizardPage
- file: src/cores/gr/wizards/qi-project/QiProjectWizardPage.tsx:21
- kind: component
- core: gr
- spec: (none)
- summary: Full-page GR QI Project creation flow powered by PF-41 ModuleWizardRenderer.
- score: 2
component QIReports
- file: src/cores/gr/pages/QIReports.tsx:36
- kind: component
- core: gr
- spec: (none)
- summary: Utility for qireports.
- score: 1
component QITemplateFormDialog
- file: src/cores/gr/components/templates/QITemplateFormDialog.tsx:31
- kind: component
- core: gr
- spec: (none)
- summary: Utility for qitemplate form dialog.
- score: 1
component QITemplates
- file: src/cores/gr/pages/QITemplates.tsx:23
- kind: component
- core: gr
- spec: (none)
- summary: Utility for qitemplates.
- score: 1
component QITrendAnalysisPanel
- file: src/cores/gr/components/charts/QITrendAnalysisPanel.tsx:27
- kind: component
- core: gr
- spec: (none)
- summary: Utility for qitrend analysis panel.
- score: 1
component ReadinessScoreTab
- file: src/cores/gr/components/accreditation/tracer/ReadinessScoreTab.tsx:25
- kind: component
- core: gr
- spec: (none)
- summary: Readiness score overview with component breakdown.
- score: 2
component RecordMockSurveyDialog
- file: src/cores/gr/components/accreditation/tracer/RecordMockSurveyDialog.tsx:31
- kind: component
- core: gr
- spec: (none)
- summary: Dialog to record a mock survey result.
- score: 2
component RegulationAccreditationMapDialog
- file: src/cores/gr/components/RegulationAccreditationMapDialog.tsx:54
- kind: component
- core: gr
- spec: GR-14-EN-01
- summary: Modal dialog for adding or editing a regulation → accreditation-body mapping.Operates in create or edit mode depending on whether is supplied,seeding fields from the row when editing. Captures the regulation citation,the accreditation body (from the fixed body vocabulary), and optional notes,persisting via the create/update mapping mutations.
- params:
- props — Dialog props: , , and the optional row to edit (omit or pass null to create).
- score: 4
component RegulationAccreditationMapPage
- file: src/cores/gr/pages/RegulationAccreditationMapPage.tsx:48
- kind: component
- core: gr
- spec: GR-14-EN-01
- summary: Route page listing and managing regulation → accreditation-body mappings.Loads mappings via ; admins with can add, edit, and delete org rows.Platform-default rows (organization_id NULL) render read-only with a”Platform default” badge. Takes no props.
- score: 5
component RegulationRequirementMapDialog
- file: src/cores/gr/components/RegulationRequirementMapDialog.tsx:55
- kind: component
- core: gr
- spec: GR-14-EN-01
- summary: Modal dialog for adding or editing a regulation → requirement mapping.Operates in create or edit mode depending on whether is supplied,seeding fields from the row when editing. Captures the regulation citation,the target requirement (selected from the org’s regulatory requirements), andoptional notes, persisting via the create/update mapping mutations.
- params:
- props — Dialog props: , , and the optional row to edit (omit or pass null to create).
- score: 4
component RegulationRequirementMapPage
- file: src/cores/gr/pages/RegulationRequirementMapPage.tsx:48
- kind: component
- core: gr
- spec: GR-14-EN-01
- summary: Route page listing and managing regulation → requirement mappings.Loads mappings via ; admins with can add, edit, and delete org rows.Platform-default rows (organization_id NULL) render read-only with a”Platform default” badge. Takes no props.
- score: 5
component RegulatoryBodyStep
- file: src/cores/gr/wizards/compliance-requirement/steps/RegulatoryBodyStep.tsx:22
- kind: component
- core: gr
- spec: (none)
- summary: Custom step: pick a regulatory body for the requirement.
- score: 2
component RegulatoryChangeDetailPage
- file: src/cores/gr/pages/RegulatoryChangeDetailPage.tsx:43
- kind: component
- core: gr
- spec: GR-17
- summary: Route page showing the full detail of a single regulatory change event.Reads the event id from the route params, loads it via, and renders its summary, impacts, andsnapshot history. Permitted users () can open thereview sheet to approve or dismiss the change. Takes no props.
- score: 5
component RegulatoryChangeReviewSheet
- file: src/cores/gr/components/RegulatoryChangeReviewSheet.tsx:50
- kind: component
- core: gr
- spec: GR-17
- summary: Confirmation sheet for approving or dismissing a regulatory change event.The prop selects the action: moves the change to theapproved queue, any other value dismisses it. Lets the reviewer add optionalnotes, then submits via and closes on success.Renders as a right-side sheet on desktop and full-screen on mobile.
- params:
- props — Component props. - open: Whether the sheet is open. - onOpenChange: Callback invoked with the new open state. - changeEventId: Identifier of the regulatory change event being reviewed. - decision: The review decision to apply (e.g. or ). - changeTitle: Optional change title shown in the sheet header.
- score: 5
component RegulatoryChangeSeverityBadge
- file: src/cores/gr/components/RegulatoryChangeSeverityBadge.tsx:43
- kind: component
- core: gr
- spec: GR-17
- summary: Badge displaying a regulatory change’s severity with an icon, label, andcolor (icon + label so color is not the sole indicator per WCAG 1.4.1).When is true, appends a “(manual)” marker to signal theseverity was set by a human rather than the automated classifier.
- params:
- props — Component props. - severity: The regulatory change severity (low, medium, high, critical). - overridden: When true, marks the severity as manually overridden. - className: Optional additional CSS classes.
- score: 5
component RegulatoryChangesPage
- file: src/cores/gr/pages/RegulatoryChangesPage.tsx:63
- kind: component
- core: gr
- spec: GR-17
- summary: Route page listing regulatory change events with status-tab filtering.Drives a URL-synced status tab (all / detected / under-review / approved /dismissed) and loads the filtered set plus an unfiltered set (for tabcounts) via . Rows navigate to the changedetail page. Takes no props.
- score: 5
component RegulatoryChangeStatusBadge
- file: src/cores/gr/components/RegulatoryChangeStatusBadge.tsx:35
- kind: component
- core: gr
- spec: GR-17
- summary: Badge showing a regulatory change event’s lifecycle status.Maps each status (detected, under_review, approved, dismissed) to a labeled variant.
- params:
- props — Component props. - status: The regulatory change event status to display. - className: Optional additional CSS classes.
- score: 5
component RegulatoryComplianceDashboardWidget
- file: src/cores/gr/components/incidents/RegulatoryComplianceDashboardWidget.tsx:17
- kind: component
- core: gr
- spec: (none)
- summary: Dashboard widget showing regulatory reporting obligation stats.
- score: 2
component RegulatoryReportDetailPage
- file: src/cores/gr/pages/RegulatoryReportDetailPage.tsx:41
- kind: component
- core: gr
- spec: GR-14-EN-01
- summary: Route page rendering one regulatory report and a link to its incident.Reads the report id from the route params, loads the report via, and offers a “View incident” action thatnavigates to the parent incident-detail surface (where the fullregulatory-reports tab lives). Takes no props.
- score: 5
component RegulatoryReportsTab
- file: src/cores/gr/components/incidents/RegulatoryReportsTab.tsx:37
- kind: component
- core: gr
- spec: (none)
- summary: Renders the regulatory reporting obligations tab content.
- score: 2
component RegulatorySourceDetailPage
- file: src/cores/gr/pages/RegulatorySourceDetailPage.tsx:33
- kind: component
- core: gr
- spec: GR-17
- summary: Route page showing a monitored regulatory source and its detected changes.Reads the source id from the route params, loads the source via, and lists the change events originating from itvia filtered by . Takes noprops.
- score: 5
component RegulatorySourceFormDialog
- file: src/cores/gr/components/RegulatorySourceFormDialog.tsx:59
- kind: component
- core: gr
- spec: GR-17
- summary: Modal dialog for registering or editing a monitored regulatory source.Operates in create or edit mode depending on whether is supplied,seeding its fields from the source when editing. Captures the source name,URL, type (RSS, HTTP, sitemap, or manual), regulatory body, jurisdiction,poll interval, and active flag, then persists via or .
- params:
- props — Component props. - open: Whether the dialog is open. - onOpenChange: Callback invoked with the new open state. - source: Existing source to edit; omit or pass null to create a new one.
- score: 5
component RegulatorySourcesPage
- file: src/cores/gr/pages/RegulatorySourcesPage.tsx:44
- kind: component
- core: gr
- spec: GR-17
- summary: Route page listing and managing monitored regulatory sources.Loads sources via with a name/URL search box.Admin users () can register, edit (via), pause/resume, and delete sources using thetoggle and delete mutations. Takes no props.
- score: 5
component RegulatorySourceStatusBadge
- file: src/cores/gr/components/RegulatorySourceStatusBadge.tsx:41
- kind: component
- core: gr
- spec: GR-17
- summary: Badge conveying a monitored regulatory source’s health.Derives a health state from the two flags: inactive renders “Paused”,active-with-error renders “Errored”, and active-without-error renders”Healthy”.
- params:
- props — Component props. - isActive: Whether the source is actively polled. - hasError: Whether the source’s last poll recorded an error. - className: Optional additional CSS classes.
- score: 5
component RemediationCard
- file: src/cores/gr/components/RemediationCard.tsx:20
- kind: component
- core: gr
- spec: (none)
- summary: Utility for remediation card.
- score: 1
component RemediationFormDialog
- file: src/cores/gr/components/RemediationFormDialog.tsx:37
- kind: component
- core: gr
- spec: (none)
- summary: Utility for remediation form dialog.
- score: 1
component RemediationStatusBadge
- file: src/cores/gr/components/RemediationStatusBadge.tsx:26
- kind: component
- core: gr
- spec: (none)
- summary: Utility for remediation status badge.
- score: 1
component RemediationTracker
- file: src/cores/gr/pages/RemediationTracker.tsx:34
- kind: component
- core: gr
- spec: (none)
- summary: Utility for remediation tracker.
- score: 1
component ReminderScheduleStep
- file: src/cores/gr/wizards/coi-cycle/steps/ReminderScheduleStep.tsx:24
- kind: component
- core: gr
- spec: (none)
- summary: Displays computed reminder dates; optional toggles when settings exist.
- score: 2
component ReportIncidentDialog
- file: src/cores/gr/components/incidents/ReportIncidentDialog.tsx:39
- kind: component
- core: gr
- spec: (none)
- summary: Dialog for reporting a new incident.
- score: 2
component RequirementCard
- file: src/cores/gr/components/RequirementCard.tsx:23
- kind: component
- core: gr
- spec: (none)
- summary: Utility for requirement card.
- score: 1
component RequirementDetail
- file: src/cores/gr/pages/RequirementDetail.tsx:47
- kind: component
- core: gr
- spec: (none)
- summary: Utility for requirement detail.
- score: 1
component RequirementFormDialog
- file: src/cores/gr/components/RequirementFormDialog.tsx:81
- kind: component
- core: gr
- spec: (none)
- summary: Utility for requirement form dialog.
- score: 1
component RequirementLibrary
- file: src/cores/gr/pages/RequirementLibrary.tsx:89
- kind: component
- core: gr
- spec: (none)
- summary: Utility for requirement library.
- score: 1
component ReviewActivateStep
- file: src/cores/gr/wizards/training-course/steps/ReviewActivateStep.tsx:32
- kind: component
- core: gr
- spec: (none)
- summary: Review step: summary of all wizard data with activate toggle.
- score: 2
component ReviewLaunchStep
- file: src/cores/gr/wizards/coi-cycle/steps/ReviewLaunchStep.tsx:28
- kind: component
- core: gr
- spec: (none)
- summary: Read-only summary of wizard inputs with jump-back actions.
- score: 2
component ReviewStep
- file: src/cores/gr/wizards/compliance-requirement/steps/ReviewStep.tsx:21
- kind: component
- core: gr
- spec: (none)
- summary: Review step — summary of all wizard data before submission.
- score: 2
component RiskAssessmentFormDialog
- file: src/cores/gr/components/RiskAssessmentFormDialog.tsx:52
- kind: component
- core: gr
- spec: (none)
- summary: Utility for risk assessment form dialog.
- score: 1
component RiskAssessmentWizardPage
- file: src/cores/gr/wizards/risk-assessment/RiskAssessmentWizardPage.tsx:36
- kind: component
- core: gr
- spec: (none)
- summary: Risk Assessment Wizard page.
- score: 1
component RiskCard
- file: src/cores/gr/components/RiskCard.tsx:22
- kind: component
- core: gr
- spec: (none)
- summary: Utility for risk card.
- score: 1
component RiskCategoryBadge
- file: src/cores/gr/components/RiskCategoryBadge.tsx:31
- kind: component
- core: gr
- spec: (none)
- summary: Utility for risk category badge.
- score: 1
component RiskDetail
- file: src/cores/gr/pages/RiskDetail.tsx:36
- kind: component
- core: gr
- spec: (none)
- summary: Utility for risk detail.
- score: 1
component RiskFormDialog
- file: src/cores/gr/components/RiskFormDialog.tsx:48
- kind: component
- core: gr
- spec: (none)
- summary: Utility for risk form dialog.
- score: 1
component RiskLinkManager
- file: src/cores/gr/components/RiskLinkManager.tsx:32
- kind: component
- core: gr
- spec: (none)
- summary: Utility for risk link manager.
- score: 1
component RiskList
- file: src/cores/gr/pages/RiskList.tsx:55
- kind: component
- core: gr
- spec: (none)
- summary: Utility for risk list.
- score: 1
component RiskMitigationCard
- file: src/cores/gr/components/RiskMitigationCard.tsx:23
- kind: component
- core: gr
- spec: (none)
- summary: Utility for risk mitigation card.
- score: 1
component RiskMitigationFormDialog
- file: src/cores/gr/components/RiskMitigationFormDialog.tsx:44
- kind: component
- core: gr
- spec: (none)
- summary: Utility for risk mitigation form dialog.
- score: 1
component RiskRatingBadge
- file: src/cores/gr/components/RiskRatingBadge.tsx:39
- kind: component
- core: gr
- spec: (none)
- summary: Utility for risk rating badge.
- score: 1
component RiskStatusBadge
- file: src/cores/gr/components/RiskStatusBadge.tsx:26
- kind: component
- core: gr
- spec: (none)
- summary: Utility for risk status badge.
- score: 1
component RiskStrategyBadge
- file: src/cores/gr/components/RiskStrategyBadge.tsx:29
- kind: component
- core: gr
- spec: (none)
- summary: Utility for risk strategy badge.
- score: 1
component ScheduleStep
- file: src/cores/gr/wizards/compliance-requirement/steps/ScheduleStep.tsx:33
- kind: component
- core: gr
- spec: (none)
- summary: Schedule step — frequency, deadlines, and optional custom recurrence.
- score: 2
component SeverityBadge
- file: src/cores/gr/components/incidents/SeverityBadge.tsx:33
- kind: component
- core: gr
- spec: (none)
- summary: Renders a severity badge with semantic color coding per CONTEXT.md.Accepts arbitrary strings (defensive against late-bound enumvalues from the database) — falls back to a variant with the raw string as the label when the key is missing.
- score: 2
component StandardComplianceBadge
- file: src/cores/gr/components/StandardComplianceBadge.tsx:25
- kind: component
- core: gr
- spec: (none)
- summary: Utility for standard compliance badge.
- score: 1
component StatusBadge
- file: src/cores/gr/components/incidents/StatusBadge.tsx:26
- kind: component
- core: gr
- spec: (none)
- summary: Renders an incident status badge with semantic color coding.
- score: 2
component SubmitRegulatoryReportDialog
- file: src/cores/gr/components/incidents/SubmitRegulatoryReportDialog.tsx:35
- kind: component
- core: gr
- spec: (none)
- summary: Dialog for submitting a regulatory report to an agency.
- score: 2
component SurveyStatusBadge
- file: src/cores/gr/components/SurveyStatusBadge.tsx:27
- kind: component
- core: gr
- spec: (none)
- summary: Utility for survey status badge.
- score: 1
component TracerEvidenceStep
- file: src/cores/gr/wizards/tracer-pack/steps/TracerEvidenceStep.tsx:56
- kind: component
- core: gr
- spec: (none)
- summary: Tracer pack wizard step for reviewing and selecting evidence items.Displays evidence for the selected domain with verification status indicators.
- params:
- props — Component props - accreditationId: Selected accreditation ID - domain: Selected domain/category - evidenceUpdates: Map of evidence ID to verification status updates - onEvidenceUpdatesChange: Callback to update evidence verification statuses
- returns: React component for evidence selection step
- score: 2
component TracerPacksTab
- file: src/cores/gr/components/accreditation/tracer/TracerPacksTab.tsx:22
- kind: component
- core: gr
- spec: (none)
- summary: Tracer packs listing and generation.
- score: 2
component TracerReadinessHub
- file: src/cores/gr/components/accreditation/TracerReadinessHub.tsx:21
- kind: component
- core: gr
- spec: (none)
- summary: Hub container for all GR-16 tracer readiness sub-tabs.
- score: 2
component TrainingCategoryBadge
- file: src/cores/gr/components/TrainingCategoryBadge.tsx:27
- kind: component
- core: gr
- spec: (none)
- summary: Utility for training category badge.
- score: 1
component TrainingCompletionDialog
- file: src/cores/gr/components/TrainingCompletionDialog.tsx:43
- kind: component
- core: gr
- spec: (none)
- summary: Utility for training completion dialog.
- score: 1
component TrainingContentStep
- file: src/cores/gr/wizards/training-course/steps/TrainingContentStep.tsx:24
- kind: component
- core: gr
- spec: (none)
- summary: Content step: select policies to link and prerequisite courses.
- score: 2
component TrainingCourseCard
- file: src/cores/gr/components/TrainingCourseCard.tsx:21
- kind: component
- core: gr
- spec: (none)
- summary: Utility for training course card.
- score: 1
component TrainingCourseFormDialog
- file: src/cores/gr/components/TrainingCourseFormDialog.tsx:46
- kind: component
- core: gr
- spec: (none)
- summary: Utility for training course form dialog.
- score: 1
component TrainingCourseWizardDialog
- file: src/cores/gr/wizards/training-course/TrainingCourseWizardDialog.tsx:32
- kind: component
- core: gr
- spec: (none)
- summary: Training Course Setup Wizard dialog.
- score: 2
component TrainingDetail
- file: src/cores/gr/pages/TrainingDetail.tsx:27
- kind: component
- core: gr
- spec: (none)
- summary: Utility for training detail.
- score: 1
component TrainingEnrollmentDialog
- file: src/cores/gr/components/TrainingEnrollmentDialog.tsx:37
- kind: component
- core: gr
- spec: (none)
- summary: Utility for training enrollment dialog.
- score: 1
component TrainingEnrollmentTable
- file: src/cores/gr/components/TrainingEnrollmentTable.tsx:28
- kind: component
- core: gr
- spec: (none)
- summary: Utility for training enrollment table.
- score: 1
component TrainingLibrary
- file: src/cores/gr/pages/TrainingLibrary.tsx:40
- kind: component
- core: gr
- spec: (none)
- summary: Utility for training library.
- score: 1
component TrainingStatusBadge
- file: src/cores/gr/components/TrainingStatusBadge.tsx:28
- kind: component
- core: gr
- spec: (none)
- summary: Utility for training status badge.
- score: 1
component WhistleblowerIntakePage
- file: src/cores/gr/pages/WhistleblowerIntakePage.tsx:62
- kind: component
- core: gr
- spec: (none)
- summary: Public anonymous whistleblower intake form.
- score: 2
component WhistleblowerReportsTab
- file: src/cores/gr/components/governance/WhistleblowerReportsTab.tsx:40
- kind: component
- core: gr
- spec: GR-15
- summary: Compliance-officer tab listing whistleblower reports and their investigationstatus.Gated on the permission, which also drives whether is enabled. Renders reports in a status-badgedtable and lets an officer open to advance areport through its lifecycle (received → acknowledged → investigating →resolved → closed). Shows skeletons while loading and a sanitized errorstate on failure. Takes no props.
- score: 5
component WhistleblowerStatusDialog
- file: src/cores/gr/components/governance/WhistleblowerStatusDialog.tsx:51
- kind: component
- core: gr
- spec: GR-15
- summary: Modal dialog for transitioning a whistleblower report’s investigationstatus.Lets a compliance officer pick a new status (received, acknowledged,investigating, resolved, closed), record resolution notes, and acknowledge anon-retaliation attestation, then persists the change via. Re-syncs its fields whenever the selected reportchanges. Closes on success.
- params:
- props — Component props. - reportId: Identifier of the whistleblower report being updated. - currentStatus: Current status used to seed the selector. - currentNotes: Existing resolution notes used to seed the field. - open: Whether the dialog is open. - onOpenChange: Callback invoked with the new open state.
- score: 5
Functions & utilities
function applyInServiceMatrixClientFilters
- file: src/cores/gr/hooks/useInServiceMatrix.ts:42
- kind: function
- core: gr
- spec: (none)
- summary: Pure helper exported for unit testing. Applies client-side / / filters to a server-returnedmatrix without touching the network.
- score: 4
function bandCellStatus
- file: src/cores/gr/lib/complianceBanding.ts:29
- kind: function
- core: gr
- spec: (none)
- summary: Band a compliance score into a cell status using the org’s thresholds.Mirrors the SQL: a score = compliantPct (or a cell with no countablerequirements, signaled by score === 100 with total 0) is ;= atRiskPct is ; otherwise .
- params:
- score — Compliance score percentage (0–100).
- thresholds — Compliant/at-risk percent cutoffs.
- returns: The derived cell status.
- score: 4
function buildAuditReportContent
- file: src/cores/gr/templates/audit-report-content.ts:25
- kind: function
- core: gr
- spec: (none)
- summary: Provides build audit report content functionality.
- score: 4
function buildCEUTranscriptContent
- file: src/cores/gr/templates/ceu-transcript-content.ts:11
- kind: function
- core: gr
- spec: (none)
- summary: Provides build CEU transcript content functionality.
- score: 4
function buildComplianceContext
- file: src/cores/gr/ai/prompts.ts:146
- kind: function
- core: gr
- spec: (none)
- summary: Build context string for AI prompts
- score: 4
function buildEvidenceRows
- file: src/cores/gr/wizards/compliance-requirement/mapper.ts:96
- kind: function
- core: gr
- spec: (none)
- summary: Build one evidence row per document requirement (empty array when none).
- score: 4
function buildInitialComplianceCheckRow
- file: src/cores/gr/wizards/compliance-requirement/mapper.ts:54
- kind: function
- core: gr
- spec: (none)
- summary: Build the initial scheduled compliance check, or when no schedule datewas provided. // are required NOT-NULL columns;an open scheduled check is modeled as .
- score: 4
function buildPolicyLinkRows
- file: src/cores/gr/wizards/training-course/mapper.ts:31
- kind: function
- core: gr
- spec: (none)
- summary: One row per selected policy (empty array when none).
- score: 4
function buildProcedureGenerationContext
- file: src/cores/gr/ai/procedurePrompts.ts:53
- kind: function
- core: gr
- spec: (none)
- summary: Build a concise context header for procedure generation from policy metadata. Constructs a newline-separated string containing any provided policy metadata fields (policy title, category, organization type, and accreditations) in a readable “Key: Value” format. Fields that are omitted or empty are skipped.
- params:
- params — The input metadata object - policyTitle: Optional policy title to include - policyContent: Optional full policy content (not included in the returned context) - category: Optional category to include - organizationType: Optional organization type to include - accreditations: Optional list of accreditations; when present and non-empty, they are joined with commas
- returns: A newline-separated string of included metadata entries (e.g., ), or an empty string if no fields are provided
- score: 4
function buildProcedureGenerationUserPrompt
- file: src/cores/gr/ai/procedurePrompts.ts:94
- kind: function
- core: gr
- spec: (none)
- summary: Constructs the user-facing prompt used to generate a step-by-step procedure from a policy. Builds a formatted prompt containing the policy title, policy content, and optional additional context, plus explicit instructions for producing a comprehensive procedure (title, purpose, ordered steps with types, responsible roles, time estimates, verification points, and decision branches).
- params:
- params — The parameters for prompt construction - policyTitle: The policy’s title - policyContent: The full text of the policy to be converted into a procedure - additionalContext: Optional supplemental context to include in the prompt
- returns: The complete prompt string ready to be supplied to the procedure generation system
- example: | const prompt = buildProcedureGenerationUserPrompt( policyTitle: “Medication Administration”, policyContent: “All medications must be administered according to provider orders…”, additionalContext: “Facility: Sunrise Care; Accreditation: HIPAA”);
- score: 4
function buildProcedureStepsText
- file: src/cores/gr/lib/procedure-pdf-steps.ts:39
- kind: function
- core: gr
- spec: (none)
- summary: Build the “Procedure Steps” body text for the procedure PDF export.Steps are ordered by . Each step renders as a numbered block: followed by an indented instructions line when present. Forsteps whose is OR whose is, a signature/date placeholder line is appended (AC-8 then-clause).
- params:
- steps — Procedure steps to render (e.g. rows).
- returns: A single newline-delimited string suitable for the PDF “Procedure Steps” section.
- score: 4
function buildRequirementCustomFields
- file: src/cores/gr/wizards/compliance-requirement/mapper.ts:13
- kind: function
- core: gr
- spec: (none)
- summary: Wizard-only fields that have no column on .
- score: 4
function buildRequirementLinkRows
- file: src/cores/gr/wizards/training-course/mapper.ts:44
- kind: function
- core: gr
- spec: (none)
- summary: One row per selected regulatory requirement(empty array when none) — GR-UX-13 AC-5.
- score: 4
function buildRiskAssessmentContent
- file: src/cores/gr/templates/risk-assessment-content.ts:20
- kind: function
- core: gr
- spec: (none)
- summary: Provides build risk assessment content functionality.
- score: 4
function buildTrainingCertificateContent
- file: src/cores/gr/templates/training-certificate-content.ts:10
- kind: function
- core: gr
- spec: (none)
- summary: Provides build training certificate content functionality.
- score: 4
function calculateRiskScoreAndRating
- file: src/cores/gr/hooks/useRiskAssessment.ts:12
- kind: function
- core: gr
- spec: (none)
- summary: Calculate risk score and rating from likelihood and impactMatches database trigger logic
- score: 4
function canAdvanceFromDocumentsStep
- file: src/cores/gr/wizards/contract-creation/hooks/useContractWizardValidation.ts:105
- kind: function
- core: gr
- spec: (none)
- summary: Validates whether user can advance from the documents step.Missing primary document generates a warning (not an error).
- params:
- primaryDocumentId — ID of the uploaded primary document
- returns: Validation result with warning if no document attached
- score: 4
function cellStatusClasses
- file: src/cores/gr/lib/complianceBanding.ts:54
- kind: function
- core: gr
- spec: (none)
- summary: Semantic token classes for a heatmap cell by status. Returns full literalclass strings (never interpolated) so Tailwind’s static scanner keeps them.
- score: 4
function cellStatusLabel
- file: src/cores/gr/lib/complianceBanding.ts:39
- kind: function
- core: gr
- spec: (none)
- summary: Human-readable label for a cell status (text-not-color, WCAG 2.2 AA).
- score: 4
function computeCompletionRate
- file: src/cores/gr/lib/stepAnalyticsFormulas.ts:17
- kind: function
- core: gr
- spec: (none)
- summary: Compute completion rate (%) given completed and total executions.Returns 0 when total is 0 (no division-by-zero).
- params:
- completed — Number of completed step executions.
- total — Total number of step executions.
- returns: Rate rounded to one decimal place.
- score: 4
function computeReadinessScore
- file: src/cores/gr/lib/readiness-score.ts:72
- kind: function
- core: gr
- spec: (none)
- summary: Compute the accreditation readiness score.
- score: 4
function computeReminderDates
- file: src/cores/gr/wizards/coi-cycle/utils/reminderDates.ts:47
- kind: function
- core: gr
- spec: (none)
- summary: Computes D-30, D-14, D-7, D-1 reminder dates from an ISO date string ().
- score: 4
function computeSkipRate
- file: src/cores/gr/lib/stepAnalyticsFormulas.ts:30
- kind: function
- core: gr
- spec: (none)
- summary: Compute skip rate (%) given skipped and total executions.Returns 0 when total is 0.
- params:
- skipped — Number of skipped step executions.
- total — Total number of step executions.
- returns: Rate rounded to one decimal place.
- score: 4
function convertStepsToWorkflow
- file: src/cores/gr/ai/useAIProcedureGeneration.ts:61
- kind: function
- core: gr
- spec: (none)
- summary: Transform an array of AI-generated procedure steps into React Flow-compatible nodes and edges. Produces positioned workflow nodes and connecting edges from each , creating one node per step and edges that connect consecutive steps. For steps of type with multiple , a separate outgoing edge is created per option (all edges currently target the next step).
- params:
- steps — Array of AI-generated procedure steps; each step must include fields such as , , , and optional .
- returns: An object with (an array of ) and (an array of ) ready for rendering in React Flow.
- example: | // const nodes, edges = convertStepsToWorkflow(aiSteps);
- score: 4
function exportImprovementReport
- file: src/cores/gr/utils/qiReportExport.ts:406
- kind: function
- core: gr
- spec: (none)
- summary: Implements export improvement report behavior.
- score: 4
function exportInServiceMatrixToCsv
- file: src/cores/gr/utils/exportInServiceMatrixCsv.ts:35
- kind: function
- core: gr
- spec: (none)
- summary: Build CSV content for the in-service matrix and trigger a browser download.One row per employee × course pair.
- score: 4
function exportMetricHistoryReport
- file: src/cores/gr/utils/qiReportExport.ts:312
- kind: function
- core: gr
- spec: (none)
- summary: Implements export metric history report behavior.
- score: 4
function exportPDSACycleReport
- file: src/cores/gr/utils/qiReportExport.ts:231
- kind: function
- core: gr
- spec: (none)
- summary: Implements export pdsacycle report behavior.
- score: 4
function exportQIProjectReport
- file: src/cores/gr/utils/qiReportExport.ts:159
- kind: function
- core: gr
- spec: (none)
- summary: Implements export qiproject report behavior.
- score: 4
function formatAvgTimeOnStep
- file: src/cores/gr/lib/stepAnalyticsFormulas.ts:45
- kind: function
- core: gr
- spec: (none)
- summary: Format average seconds-on-step into a compact human label.- / → - second → - seconds → - otherwise →
- params:
- seconds — Average seconds spent on the step (may be null).
- returns: Display string.
- score: 4
function getInServiceStatusMeta
- file: src/cores/gr/components/inservice/inServiceStatusMeta.ts:36
- kind: function
- core: gr
- spec: GR-19
- summary: Resolves the display metadata (label, icon, badge variant, and glyph) for anin-service compliance cell status.Falls back to the metadata when the status has no mapping, socallers always receive a renderable result.
- params:
- status — The in-service matrix cell status to look up.
- returns: The describing how to render the status.
- score: 5
function getNextCapStatuses
- file: src/cores/gr/lib/cap-state-machine.ts:37
- kind: function
- core: gr
- spec: (none)
- summary: Get the list of valid next statuses from a given status.
- score: 4
function getReadinessLevel
- file: src/cores/gr/lib/readiness-score.ts:122
- kind: function
- core: gr
- spec: (none)
- summary: Get a human-readable readiness level from a score.
- score: 4
function getSkipRateTier
- file: src/cores/gr/lib/stepAnalyticsFormulas.ts:61
- kind: function
- core: gr
- spec: (none)
- summary: Determine skip-rate severity tier for icon + label rendering.Never use color alone — UI pairs this with an icon and text label.
- params:
- skipRatePct — Skip rate percentage (0–100).
- returns: ‘low’ (10%), ‘moderate’ (10–25%), or ‘high’ (25%).
- score: 4
function getSubmitButtonLabel
- file: src/cores/gr/wizards/contract-creation/hooks/useContractWizardValidation.ts:122
- kind: function
- core: gr
- spec: (none)
- summary: Returns appropriate submit button label based on target contract status.
- params:
- targetStatus — The target status for the contract (‘draft’ or ‘pending_approval’)
- returns: Button label string
- score: 4
function hasRiskAssessmentDraft
- file: src/cores/gr/wizards/risk-assessment/useRiskAssessmentWizard.ts:500
- kind: function
- core: gr
- spec: (none)
- summary: Convenience: check whether a draft exists without instantiating the hook.
- score: 4
function isPrerequisiteSafe
- file: src/cores/gr/wizards/training-course/validation.ts:45
- kind: function
- core: gr
- spec: (none)
- summary: Detects cycles in prerequisite graph.Returns true if adding as a prerequisite of the new coursewould NOT create a cycle (i.e., it’s safe).
- score: 4
function isValidCapTransition
- file: src/cores/gr/lib/cap-state-machine.ts:30
- kind: function
- core: gr
- spec: (none)
- summary: Check if a transition from one status to another is valid.
- score: 4
function loadAccreditationEvidence
- file: src/cores/gr/hooks/useAccreditationDetail.ts:38
- kind: function
- core: gr
- spec: (none)
- summary: Load all evidence for an accreditation. rows arelinked EITHER to a standard () OR a survey () — thetable CHECK enforces exactly one. Survey-linked auto-evidence (attached by theGR-14-EN-01 regulatory-report consumer) was previously dropped because the readfiltered on only (#1375). This loads both link types and merges +de-dupes by id (newest first) so survey-linked evidence surfaces in the Evidencetab. Both reads are explicitly org-scoped (defense in depth atop RLS).Exported (with an injectable client) so the merge/scoping can be exerciseddirectly in integration tests without mounting the full hook (react-query +OrganizationContext).
- score: 4
function logRegulatoryReportAudit
- file: src/cores/gr/utils/regulatoryAudit.ts:29
- kind: function
- core: gr
- spec: (none)
- summary: Logs a regulatory report status transition to pf_audit_logs.Non-fatal — errors are silently caught and reported to Sentryso they never block the submit/acknowledge flow.
- score: 4
function mapWizardDataToPayload
- file: src/cores/gr/wizards/contract-creation/mapper.ts:36
- kind: function
- core: gr
- spec: (none)
- summary: Maps wizard form data to a contract creation payload.Field names mirror the seeded template (the source of truth). The single column carries the entered value; defaults to USD; is the DB enum ( is theoptional FK, resolved by the page when a matching lookuprow exists). only accepts the DB enum values (//); the wizard never offers .
- params:
- data — Complete wizard form data from all steps
- contractTypeId — Optional resolved FK for the selected enum
- returns: CreateContractPayload ready for submission to useContractMutation.createContract
- score: 4
function registerGRWizardSteps
- file: src/cores/gr/wizards/registerGRWizardSteps.ts:12
- kind: function
- core: gr
- spec: (none)
- summary: Registers GR-specific custom wizard step components during module bootstrap.Currently registers , ,and via the PF-41 API.
- see:
- registerWizardStep
- score: 4
function registerTrainingCourseWizardSteps
- file: src/cores/gr/wizards/training-course/registerTrainingCourseWizardSteps.ts:12
- kind: function
- core: gr
- spec: (none)
- summary: Registers GR training course wizard custom step components.
- score: 4
function requiresFinancialFields
- file: src/cores/gr/wizards/contract-creation/hooks/useContractWizardValidation.ts:53
- kind: function
- core: gr
- spec: (none)
- summary: Determines if financial fields are required for the selected contract type.Prefers an explicit flag on the matching row, then falls back to the enum-based heuristic ( / ).
- params:
- context — Selected contract-type enum and the contract-types lookup list
- returns: true if financial fields are required, false otherwise
- score: 4
function resolveReminderOffsetsFromSettings
- file: src/cores/gr/wizards/coi-cycle/utils/reminderDates.ts:25
- kind: function
- core: gr
- spec: (none)
- summary: Reads reminder offsets from .Falls back to default offsets when missing or invalid.
- score: 4
function validateCapTransition
- file: src/cores/gr/lib/cap-state-machine.ts:46
- kind: function
- core: gr
- spec: (none)
- summary: Validate that a transition to ‘verified_closed’ includes closure evidence.
- returns: Error message or null if valid.
- score: 4
function validateDateOrdering
- file: src/cores/gr/wizards/contract-creation/hooks/useContractWizardValidation.ts:74
- kind: function
- core: gr
- spec: (none)
- summary: Validates that the expiration date is on or after the effective date.
- params:
- effectiveDate — Effective (start) date string (YYYY-MM-DD)
- expirationDate — Expiration (end) date string (YYYY-MM-DD)
- returns: Validation result with errors if expiration effective
- score: 4
function validateFinalSubmit
- file: src/cores/gr/wizards/contract-creation/hooks/useContractWizardValidation.ts:133
- kind: function
- core: gr
- spec: (none)
- summary: Validates the wizard data before final submission.Checks for missing required fields and financial fields when required by contract type.
- params:
- data — Partial wizard form data
- context — Contract type context for financial requirements
- returns: Validation result with errors for missing required fields
- score: 4