Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

address review (claude): darken classic-noon warning so ANSI yellow reads on light bg

[._.]/ Adam Eivy2e782aac1d14
diff --git a/client/src/lib/terminalTheme.test.js b/client/src/lib/terminalTheme.test.js
index e6d1e24d26..4c6ef6d44d 100644
--- a/client/src/lib/terminalTheme.test.js
+++ b/client/src/lib/terminalTheme.test.js
@@ -100,4 +100,22 @@ describe('buildTerminalTheme', () => {
expect(buildTerminalTheme(COLORS, 'day').selectionBackground).toBe(COLORS.accent + '33');
expect(buildTerminalTheme(COLORS, 'night').selectionBackground).toBe(COLORS.accent + '40');
});
+
+ it('populates every xterm slot with a valid hex in both modes', () => {
+ // A typo'd ANSI_* key would leave a slot `undefined` (an invalid xterm color)
+ // without tripping the mode-equivalence tests above — assert each slot explicitly.
+ const SLOTS = [
+ 'background', 'foreground', 'cursor', 'cursorAccent', 'selectionBackground',
+ 'black', 'red', 'green', 'yellow', 'blue', 'magenta', 'cyan', 'white',
+ 'brightBlack', 'brightRed', 'brightGreen', 'brightYellow', 'brightBlue',
+ 'brightMagenta', 'brightCyan', 'brightWhite',
+ ];
+ for (const mode of ['day', 'night']) {
+ const theme = buildTerminalTheme(COLORS, mode);
+ for (const slot of SLOTS) {
+ // selectionBackground carries an 8-digit alpha suffix; the rest are 6-digit.
+ expect(theme[slot], `${mode} ${slot}`).toMatch(/^#[0-9a-f]{6}([0-9a-f]{2})?$/i);
+ }
+ }
+ });
});
diff --git a/client/src/themes/portosThemes.js b/client/src/themes/portosThemes.js
index 8bef21ebd5..d8aba9594f 100644
--- a/client/src/themes/portosThemes.js
+++ b/client/src/themes/portosThemes.js
@@ -113,6 +113,11 @@ export const THEMES = {
'--port-on-accent': '255 255 255',
...baseStatusColors,
'--port-success': '22 163 74',
+ // Darken warning to amber-700 (+ white on-warning) like the other day themes —
+ // the base bright amber (#f59e0b) washes out as foreground on the light bg,
+ // most visibly as ANSI yellow in the shell terminal, which tracks --port-warning.
+ '--port-warning': '180 83 9',
+ '--port-on-warning': '255 255 255',
'--port-error': '220 38 38',
},
tokens: {