Hub 2.18.0: releases picked from a list on New install and Move onto the monorepo
- components/ReleaseSelect.tsx: Latest (with its version) first, then the newest 10 releases, Show older versions for the rest; marked latest, running now and what each needs. - New install and Move onto the monorepo use it (they were free text); the install's Update popup and the Updates page use it too. Move onto the monorepo lists Events from 2.2.0 (the first monorepo tag). - docs/VERSION-PICKERS-PLAN.md: this and 2.19.0 (agent releases). Frontend only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
|
||||
import React, { useState } from "react";
|
||||
import type { Release } from "@/lib/types";
|
||||
import { PRODUCT_NAMES } from "@/lib/products";
|
||||
import { FormError, Modal, ModalButtons, useSubmit } from "@/components/ui";
|
||||
import { fromInput, toInput } from "@/components/servers";
|
||||
import { ReleaseSelect } from "@/components/ReleaseSelect";
|
||||
import { H, changed, post, productName, withWarnings, type Done, type Install } from "./shared";
|
||||
|
||||
/**
|
||||
@@ -33,10 +33,7 @@ export function UpdateModal({ x, releases, onClose, onDone }: { x: Install; rele
|
||||
<div className="grid gap-3 sm:grid-cols-2">
|
||||
<div>
|
||||
<label className="label" htmlFor="u-v">Release</label>
|
||||
<select id="u-v" className="input" value={upd.version} onChange={e => setUpd({ ...upd, version: e.target.value })}>
|
||||
<option value="">Latest</option>
|
||||
{mine.map(r => <option key={r.id} value={r.version}>{r.version}{r.latest ? " (latest)" : ""}{r.requires?.length ? ` · needs ${r.requires.map(q => `${PRODUCT_NAMES[q.product]} ${q.version}`).join(", ")}` : ""}</option>)}
|
||||
</select>
|
||||
<ReleaseSelect id="u-v" releases={mine} value={upd.version} onChange={version => setUpd({ ...upd, version })} current={x.install?.version || x.version} />
|
||||
<p className="mt-1 text-xs text-slate-500">Now on {x.install?.version || x.version || "an unknown version"}.</p>
|
||||
</div>
|
||||
{asap
|
||||
|
||||
Reference in New Issue
Block a user