Skip to content

Render interactive catalog resources in an in-app HTML viewer - #477

Merged
soyalejolopez merged 1 commit into
microsoft:masterfrom
soyalejolopez:alejanl-microsoft-fantastic-invention
Jul 21, 2026
Merged

Render interactive catalog resources in an in-app HTML viewer#477
soyalejolopez merged 1 commit into
microsoft:masterfrom
soyalejolopez:alejanl-microsoft-fantastic-invention

Conversation

@soyalejolopez

Copy link
Copy Markdown
Member

Summary

Interactive catalog resources now render their HTML page inside the app instead of only linking out to GitHub.

The two interactive resources — Copilot Agents Guide and Agents Cost Calculator — get a new "View" button on their detail card. Clicking it opens the rendered page in a modal (window-inside-a-window) with a header that includes an "Open in new tab" link and a close control.

What changed

  • New "View" button on the detail view for interactive resources; View becomes the primary action and Open on GitHub moves to secondary.
  • In-app viewer modal with header (resource name, "Open in new tab ↗", close ✕) and an iframe rendering the local index.html.
  • Embed path is derived from each resource's source (README.md -> index.html), so no catalog.json schema changes are required.
  • Closes via ✕, backdrop click, or Esc; iframe resets and page scroll unlocks on close.
  • Vanilla JS + existing CSS variables, so it's automatically correct in light/dark themes.

Testing

Served the site locally and verified: card -> View opens the modal, the iframe renders the live tool, the "Open in new tab" link resolves to the correct page, and Esc/backdrop/✕ all close cleanly. Only index.html is modified.

Interactive resources (Copilot Agents Guide, Agents Cost Calculator) now
render their HTML page in an in-app modal (window-in-window) with a header
that links to the full page in a new tab, instead of only linking to GitHub.
The embed path is derived from each resource's source (README.md -> index.html),
so no catalog.json schema changes are required.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: dad50700-e239-43cc-8994-b475682137c4
@soyalejolopez
soyalejolopez force-pushed the alejanl-microsoft-fantastic-invention branch from 4c27395 to dbf1bb8 Compare July 21, 2026 16:56
@soyalejolopez
soyalejolopez merged commit 047eb88 into microsoft:master Jul 21, 2026
1 check passed
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.

2 participants