Skip to content

Show template definition link in container form#417

Merged
runleveldev merged 2 commits into
mainfrom
copilot/template-selection-links
Jul 23, 2026
Merged

Show template definition link in container form#417
runleveldev merged 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
@runleveldev
runleveldev marked this pull request as ready for review July 23, 2026 18:04
Copilot AI review requested due to automatic review settings July 23, 2026 18:04
@runleveldev
runleveldev merged commit 25023ad into main Jul 23, 2026
8 checks passed
@runleveldev
runleveldev deleted the copilot/template-selection-links branch July 23, 2026 18:09

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds a direct path from the “Template” selection in the new-container flow to the underlying template/image definition so users can inspect what a template contains (packages/versions), improving transparency of built-in templates.

Changes:

  • Extended COMMON_TEMPLATES entries with a definition URL pointing to the template’s source.
  • Rendered a conditional “View template definition” external link beneath the Template selector when a built-in template is selected.

Comment on lines +507 to +512
<a
href={definition}
target="_blank"
rel="noopener noreferrer"
className="inline-flex w-fit items-center gap-1 text-xs text-(--color-primary,#1d4ed8) hover:underline"
>
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

4 participants