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): lower diff-highlight bg opacity to match same-hue port-* convention

[._.]/ Adam Eivy2930346f1d4d
diff --git a/client/src/components/ui/HunkDiff.test.jsx b/client/src/components/ui/HunkDiff.test.jsx
index b505026a3f..adf2a732e4 100644
--- a/client/src/components/ui/HunkDiff.test.jsx
+++ b/client/src/components/ui/HunkDiff.test.jsx
@@ -15,8 +15,8 @@ describe('HunkDiff', () => {
const oldText = `${lines('top', 3)}\nThe cat sat here\n${lines('bottom', 3)}`;
const newText = `${lines('top', 3)}\nThe dog sat here\n${lines('bottom', 3)}`;
const { container } = render(<HunkDiff oldText={oldText} newText={newText} />);
- const removed = container.querySelectorAll('.bg-port-error\\/50');
- const added = container.querySelectorAll('.bg-port-success\\/50');
+ const removed = container.querySelectorAll('.bg-port-error\\/20');
+ const added = container.querySelectorAll('.bg-port-success\\/20');
expect(removed).toHaveLength(1);
expect(added).toHaveLength(1);
expect(removed[0].textContent).toBe('cat');
@@ -41,7 +41,7 @@ describe('HunkDiff', () => {
const oldText = `${body}\nmiddle cat paragraph\n${body}`;
const newText = `${body}\nmiddle dog paragraph\n${body}`;
const { container } = render(<HunkDiff oldText={oldText} newText={newText} />);
- const removed = container.querySelectorAll('.bg-port-error\\/50');
+ const removed = container.querySelectorAll('.bg-port-error\\/20');
expect(removed).toHaveLength(1);
expect(removed[0].textContent).toBe('cat');
expect(screen.queryByText(/Diff too large/)).not.toBeInTheDocument();
diff --git a/client/src/components/ui/InlineDiff.test.jsx b/client/src/components/ui/InlineDiff.test.jsx
index d9b9380620..48df358dc1 100644
--- a/client/src/components/ui/InlineDiff.test.jsx
+++ b/client/src/components/ui/InlineDiff.test.jsx
@@ -25,8 +25,8 @@ describe('InlineDiff', () => {
it('highlights only the changed words inside each row, not the unchanged ones', () => {
const { container } = render(<InlineDiff oldText="The cat sat" newText="The dog sat" />);
// Removed-word span lives inside the red row.
- const removedSpans = container.querySelectorAll('.text-port-error .bg-port-error\\/50');
- const addedSpans = container.querySelectorAll('.text-port-success .bg-port-success\\/50');
+ const removedSpans = container.querySelectorAll('.text-port-error .bg-port-error\\/20');
+ const addedSpans = container.querySelectorAll('.text-port-success .bg-port-success\\/20');
expect(removedSpans).toHaveLength(1);
expect(addedSpans).toHaveLength(1);
expect(removedSpans[0].textContent).toBe('cat');
@@ -45,7 +45,7 @@ describe('InlineDiff', () => {
const { container } = render(<InlineDiff oldText={buildHuge('a')} newText={buildHuge('b')} />);
expect(screen.getByText(/Diff too large/i)).toBeInTheDocument();
// No per-word highlight spans — just the two flat color blocks.
- expect(container.querySelectorAll('.bg-port-error\\/50, .bg-port-success\\/50')).toHaveLength(0);
+ expect(container.querySelectorAll('.bg-port-error\\/20, .bg-port-success\\/20')).toHaveLength(0);
});
it('stays within the LCS path when one side is short, even if the other is long', () => {
diff --git a/client/src/components/ui/SideBySideDiff.test.jsx b/client/src/components/ui/SideBySideDiff.test.jsx
index 038d11de3a..29354652f9 100644
--- a/client/src/components/ui/SideBySideDiff.test.jsx
+++ b/client/src/components/ui/SideBySideDiff.test.jsx
@@ -18,8 +18,8 @@ describe('SideBySideDiff', () => {
it('highlights removed words on the left and added words on the right', () => {
const { container } = render(<SideBySideDiff oldText="The cat sat" newText="The dog sat" />);
- const removed = container.querySelectorAll('.bg-port-error\\/50');
- const added = container.querySelectorAll('.bg-port-success\\/50');
+ const removed = container.querySelectorAll('.bg-port-error\\/20');
+ const added = container.querySelectorAll('.bg-port-success\\/20');
expect(removed).toHaveLength(1);
expect(added).toHaveLength(1);
expect(removed[0].textContent).toBe('cat');
@@ -30,7 +30,7 @@ describe('SideBySideDiff', () => {
const build = (p) => Array.from({ length: 2500 }, (_, i) => `${p}${i}`).join(' ');
const { container } = render(<SideBySideDiff oldText={build('a')} newText={build('b')} />);
expect(screen.getByText(/Diff too large/i)).toBeInTheDocument();
- expect(container.querySelectorAll('.bg-port-error\\/50, .bg-port-success\\/50')).toHaveLength(0);
+ expect(container.querySelectorAll('.bg-port-error\\/20, .bg-port-success\\/20')).toHaveLength(0);
});
it('treats null/undefined as empty (identical → empty label)', () => {
diff --git a/client/src/components/ui/diffRuns.jsx b/client/src/components/ui/diffRuns.jsx
index 9868bd193c..31476a3c08 100644
--- a/client/src/components/ui/diffRuns.jsx
+++ b/client/src/components/ui/diffRuns.jsx
@@ -7,7 +7,7 @@
export const renderRuns = (runs, added) =>
runs.map((run, i) => (run.changed ? (
- <span key={i} className={added ? 'bg-port-success/50 text-port-success' : 'bg-port-error/50 text-port-error'}>
+ <span key={i} className={added ? 'bg-port-success/20 text-port-success' : 'bg-port-error/20 text-port-error'}>
{run.text}
</span>
) : (