refactor: remove dead code — orphaned files, unused types and functions

Delete 3 orphaned files (SubNav, TopBar, problems.ts), remove 4 unused
type definitions from pmr.ts (ViewId, NavItem, ReferralFormData, Problem),
trim types/index.ts to only Phase, and remove unused utility functions
(calculateSkillOffset, formatBootLine, getProfileContent, DotColorName).
This commit is contained in:
2026-02-17 02:24:40 +00:00
parent 1b19087782
commit 5eb46b02d8
8 changed files with 1 additions and 516 deletions
-5
View File
@@ -5,16 +5,11 @@ import type {
EducationCopyEntry,
ExperienceEducationUICopy,
LatestResultsCopy,
ProfileContent,
QuickActionCopyEntry,
SidebarCopy,
SkillsUICopy,
} from '@/types/profile-content'
export function getProfileContent(): DeepReadonly<ProfileContent> {
return profileContent
}
export function getProfileSummaryText(): string {
return profileContent.profile.patientSummaryNarrative
}
-2
View File
@@ -7,8 +7,6 @@ export const DOT_COLORS = {
purple: '#7C3AED',
} as const
export type DotColorName = keyof typeof DOT_COLORS
/** KPI color variants (subset of DOT_COLORS) */
export const KPI_COLORS: Record<'green' | 'amber' | 'teal', string> = {
green: DOT_COLORS.green,
-9
View File
@@ -1,12 +1,3 @@
export function calculateSkillOffset(level: number, radius: number): number {
const circumference = 2 * Math.PI * radius
return circumference * (1 - level / 100)
}
export function formatBootLine(text: string): string {
return text
}
export function hexToRgba(hex: string, opacity: number): string {
const r = parseInt(hex.slice(1, 3), 16)
const g = parseInt(hex.slice(3, 5), 16)