Overlay 2.0 (#12)

This commit is contained in:
2026-03-01 02:36:51 -08:00
committed by GitHub
parent 45df3c466b
commit 44c7761c7c
397 changed files with 15139 additions and 7127 deletions

View File

@@ -61,6 +61,25 @@ export function buildConfigWarningNotificationBody(
].join('\n');
}
export function buildConfigWarningDialogDetails(
configPath: string,
warnings: ConfigValidationWarning[],
): string {
const lines = warnings.map(
(warning, index) =>
`${index + 1}. ${warning.path}: ${warning.message} actual=${formatConfigValue(warning.value)} fallback=${formatConfigValue(warning.fallback)}`,
);
return [
'SubMiner detected config validation issues.',
`File: ${configPath}`,
'',
...lines,
'',
'Defaults were applied where possible.',
].join('\n');
}
export function buildConfigParseErrorDetails(configPath: string, parseError: string): string {
return [
'Failed to parse config file at:',