Skip to content

Show template definition link in container form#417

Draft
horner with Copilot wants to merge 2 commits into
mainfrom
copilot/template-selection-links
Draft

Show template definition link in container form#417
horner with Copilot wants to merge 2 commits into
mainfrom
copilot/template-selection-links

Conversation

Copilot AI commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

The new-container form's template dropdown gave no way to inspect what a template actually contains (installed packages, versions). Users had no path from a selected template to its source definition.

Changes

  • ContainerFormPage.tsx
    • Added a definition source URL to each entry in COMMON_TEMPLATES, pointing at the image's defining source (Dockerfile directory under images/, or the mieweb/ozwell-studio repo).
    • Render a "View template definition" external link below the Template selector, shown only when a built-in template is selected (hidden for the placeholder and Custom…).
const definition = COMMON_TEMPLATES.find((t) => t.value === template)?.definition;
// ...
<a href={definition} target="_blank" rel="noopener noreferrer" ...>
  <ExternalLink className="size-3 shrink-0" aria-hidden="true" />
  <span>View template definition</span>
</a>

Notes

  • NodeJS 24 + Docker (docker-nodejs) links to images/docker, since per images/docker-bake.hcl it reuses the docker Dockerfile with the nodejs base context — no separate images/docker-nodejs directory exists. This matches the existing mapping in docs/developers/docker-images.md.
  • The screenshot annotation "Confirm this has Docker in it" refers to Ozwell Studio's image contents, which is outside this repo (mieweb/ozwell-studio) and not changed here.

Copilot AI linked an issue Jul 17, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Add information on template definition storage Show template definition link in container form Jul 17, 2026
Copilot AI requested a review from horner July 17, 2026 13:08
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.

Template selection links

2 participants