Skip to content

fix: let the agentic task view fill the page - #53

Merged
carlosvin merged 3 commits into
mainfrom
cursor/agentic-view-layout-7949
Oct 10, 2026
Merged

carlosvin merged 3 commits into
mainfrom
cursor/agentic-view-layout-7949

Conversation

@carlosvin

@carlosvin carlosvin commented Oct 8, 2026 •

Copy link
Copy Markdown
Owner

Summary

The agentic task list sat in a narrow card stack, and Netlify’s injected HUD badge (“Powered by Netlify”) covered the last card inside the sandbox iframe. MCP UI still renders in that sandboxed iframe. The frame now uses the column under the header, and the list can be a table or a card grid.

  • Remove the Netlify HUD script and #nl-badge-frame / #nl-hud-frame from the app document and from sandbox_proxy.html.
  • Widen the conversation column and composer to the space under the header (capped at 1440px). The guest reports its height only, so the iframe stays full width and only as tall as the content.
  • showTasksView takes presentation. "table" draws a table when the user asks for one. "cards" or omitting it keeps the responsive card grid. The presentation is not passed to the repository filter.
  • Pass the shell color scheme into the guest. Each card is a button. In the table, the title cell holds the button; the row itself is not focusable, and a click anywhere on the row activates that button. The accessible name includes status, priority, and assignee.

The host can register more ui:// documents, but this guest only paints a card grid, a table, or one task. A chart would be a new registered view with its own structured data. The model does not author the markup.

Screenshots

Task list as a table
Task list in three columns
Same list in the dark color scheme
Task list on a narrow viewport
Agentic shell with the wide composer

Tests

  • src/services/mcpUi/taskViewDom.test.ts renders both presentations and checks that a table-row click target is the title button
  • pnpm test:skill-evals — 35 passed
  • pnpm exec tsc --noEmit
  • Playwright: a presentation: "table" result renders five rows and no card list; presentation: "cards" renders the grid. The Netlify badge frame is removed from the sandbox document and the shell.

To show artifacts inline, enable in settings.

Open in Web Open in Cursor 

The task list now uses the width under the header, lays cards out in a
responsive grid, and sizes the sandbox to its content. The guest follows
the shell color scheme, and the injected Netlify HUD badge is removed so
it no longer covers the last card.

Co-authored-by: carlosvin <carlosvin@gmail.com>
@netlify

netlify Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for fullstack-promptable-prompt-first ready!

Name Link
🔨 Latest commit ce719ed
🔍 Latest deploy log https://app.netlify.com/projects/fullstack-promptable-prompt-first/deploys/6ac7a4faadf6290008eb953a
😎 Deploy Preview https://deploy-preview-53--fullstack-promptable-prompt-first.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for fullstack-promptable-agentic ready!

Name Link
🔨 Latest commit ce719ed
🔍 Latest deploy log https://app.netlify.com/projects/fullstack-promptable-agentic/deploys/6ac7a4fa81fc3800086ef732
😎 Deploy Preview https://deploy-preview-53--fullstack-promptable-agentic.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for fullstack-promptable-app-example ready!

Name Link
🔨 Latest commit ce719ed
🔍 Latest deploy log https://app.netlify.com/projects/fullstack-promptable-app-example/deploys/6ac7a4faf4f6440008529383
😎 Deploy Preview https://deploy-preview-53--fullstack-promptable-app-example.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

showTasksView now takes a presentation. A request for a table returns
rows in a table; cards stay the default grid. The choice is stripped
before the repository filter.

Co-authored-by: carlosvin <carlosvin@gmail.com>
@carlosvin
carlosvin marked this pull request as ready for review October 8, 2026 11:19
Copilot AI balanced review requested due to automatic review settings October 8, 2026 11:19

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Interactive table rows lack proper control semantics, and the new rendering branch has no executable behavioral test.

2 open findings
What changed in this PR

Expands the agentic task view to use the available page width, adds card/table presentations, synchronizes themes, and removes Netlify HUD overlays.

Changes:

  • Adds responsive task grids and an optional interactive table.
  • Makes MCP frames fluid-height/full-width with host theme synchronization.
  • Removes injected Netlify HUD elements from host and sandbox documents.
File Description
.agents/​skills/​agentic-ux/​SKILL.md Updates the agentic UX contract.
public/​mcp-task-view.js Adds table rendering, sizing, theming, and accessibility behavior.
public/​sandbox_proxy.html Updates the sandbox frame title.
public/​sandbox_proxy.js Removes injected Netlify HUD elements.
src/​components/​AgenticMcp/​AgenticMcpRenderer.module.css Adds fluid frame styling.
src/​components/​AgenticMcp/​AgenticMcpRenderer.test.tsx Tests frame width, title, and theme forwarding.
src/​components/​AgenticMcp/​AgenticMcpRenderer.tsx Passes host context and controls frame sizing.
src/​components/​AgenticShell/​AgenticShell.tsx Widens the composer area.
src/​components/​AgenticShell/​AgenticThread.module.css Defines the wider shared stage.
src/​components/​AgenticShell/​AgenticThread.tsx Applies the wider thread layout.
src/​routes/​__root.tsx Starts host-document HUD cleanup.
src/​routes/​api/​chat.ts Instructs the agent to select table or cards.
src/​services/​ai/​taskViewsMcp.server.test.ts Tests presentation/filter separation.
src/​services/​ai/​taskViewsMcp.server.ts Adds presentation-aware task view results.
src/​services/​mcpUi/​mcpUiResource.test.ts Checks new guest capabilities.
src/​services/​mcpUi/​views/​task-view.html Adds responsive grid/table and theme styles.
src/​services/​schemas/​schemas.ts Defines the presentation input schema.
src/​utils/​netlifyHud.test.ts Tests HUD removal and observation.
src/​utils/​netlifyHud.ts Implements reusable HUD cleanup.

🧠 Review effort: Balanced


Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.

Comment thread public/mcp-task-view.js Outdated
Comment thread public/mcp-task-view.js
A focusable table row is not a control. The title cell now holds a button.

Row clicks resolve to that button. A DOM test covers both presentations.

Co-authored-by: carlosvin <carlosvin@gmail.com>
@cursor
cursor Bot force-pushed the cursor/agentic-view-layout-7949 branch from 58e4d12 to ce719ed Compare October 8, 2026 14:13
@carlosvin
carlosvin merged commit 448f987 into main Oct 10, 2026
7 checks passed
@carlosvin
carlosvin deleted the cursor/agentic-view-layout-7949 branch October 10, 2026 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants