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:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user