Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
fix(mcp-host): keep the dashboard chart grid inside a phone screen
marcotebc1a80ec0f58b
diff --git a/mcp-host/src/workflow/__tests__/internalTools.dashboard.fidelity.test.ts b/mcp-host/src/workflow/__tests__/internalTools.dashboard.fidelity.test.tsindex 2540eda34..8f3ea7f5a 100644--- a/mcp-host/src/workflow/__tests__/internalTools.dashboard.fidelity.test.ts+++ b/mcp-host/src/workflow/__tests__/internalTools.dashboard.fidelity.test.ts@@ -91,6 +91,14 @@ describe('custom list blocks', () => {})})+describe('narrow screens', () => {+ it('lets every grid column shrink to the screen, so a phone does not scroll sideways', async () => {+ const { html } = await render({ data: { title: 'T', kpis: [{ label: 'k', value: 1 }] } })+ expect(html).toMatch(/minmax\(min\(360px, 100%\), 1fr\)/)+ expect(html).not.toMatch(/minmax\(\d+px,/)+ })+})+describe('arguments nothing draws', () => {it('lists fields a fixed template does not read, and keys a callout block does not take', async () => {const brief = await render({diff --git a/mcp-host/src/workflow/internalTools.ts b/mcp-host/src/workflow/internalTools.tsindex bd7e5c284..0a375b76a 100644--- a/mcp-host/src/workflow/internalTools.ts+++ b/mcp-host/src/workflow/internalTools.ts@@ -3608,7 +3608,7 @@ em, i { font-style: italic; }.kpi-grid {display: grid;- grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));+ grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));gap: 16px;margin-bottom: 28px;}@@ -3682,7 +3682,7 @@ em, i { font-style: italic; }.chart-grid {display: grid;- grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));+ grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));gap: 16px;margin-bottom: 28px;}@@ -3835,7 +3835,7 @@ em, i { font-style: italic; }.health-grid {display: grid;- grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));+ grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));gap: 12px;margin-bottom: 28px;}