Skip to content

feat: label nightly and main images and show the build date - #99

Merged
vthwang merged 1 commit into
mainfrom
farm/channel-tags
Oct 15, 2026
Merged

vthwang merged 1 commit into
mainfrom
farm/channel-tags

Conversation

@geoffturk

@geoffturk geoffturk commented Oct 15, 2026 •

Copy link
Copy Markdown
Member

Summary

Companion to ic3software/vtafarm-api#83. The API now reports which versioned image the nightly and main tags point to, plus each image's creation time, alongside the existing latest flag.

  • src/lib/api.ts: one exported ImageOption type (tag, image, latest?, nightly?, main?, created?) replaces the five identical inline copies.
  • src/lib/utils.ts: new imageLabel() renders a picker row as the tag, the channel(s) pointing at it in brackets, then the build date, e.g. 0.10.0-cf959b0 [nightly] 2026-10-15.
  • Every picker uses it: the four selects in CreateVTAView, plus PlatformStackView, UpgradeModal, LoadTestingView and SessionVersionsCard.

Visible side effect: the admin views used (latest) in parentheses and now show [latest] like the portal, so the label reads the same everywhere. Default selection is unchanged (the latest row).

Without the API change the rows render exactly as before: the new fields are optional.

Testing

Verified end to end against the local API running the companion branch: the VTA picker shows 0.60.0-fd1621d9 [nightly] 2026-10-15 and a date on every row. pnpm install --frozen-lockfile, tsc -b and eslint on the touched files pass in a node:26-alpine container.

The API now reports which versioned image the nightly and main tags point to, plus each image's creation time, alongside the existing latest flag. Replace the five inline copies of the image row type with one exported ImageOption, and render every picker row through a shared imageLabel helper that prints the tag, the channel(s) pointing at it in brackets and the build date, e.g. "0.10.0-cf959b0 [nightly] 2026-10-15".

The admin views used "(latest)" in parentheses; they now show "[latest]" like the portal, so the label reads the same everywhere.

Signed-off-by: Geoff Turk <geoff@ic3.dev>

Signed-off-by: vthwang <vthwang.work@gmail.com>
@vthwang
vthwang merged commit 478e6c8 into main Oct 15, 2026
1 check passed
@vthwang
vthwang deleted the farm/channel-tags branch October 15, 2026 19:15
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