Add SemVer VERSION, Jenkins CI/CD, and release 0.1.1.
Ship Harbor/Hub push with latest+version tags, deploy to ovirt.devops.org.ru, and show the package version badge in Help → About.
This commit is contained in:
+28
-1
@@ -797,7 +797,12 @@
|
||||
stroke: none;
|
||||
}
|
||||
|
||||
|
||||
.help-about-meta {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 0.45rem 0.65rem;
|
||||
margin: 0;
|
||||
padding: 0 14px 12px;
|
||||
font-size: 11px;
|
||||
@@ -811,6 +816,22 @@
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.help-about-version {
|
||||
flex-shrink: 0;
|
||||
padding: 0.22rem 0.55rem;
|
||||
border-radius: 999px;
|
||||
border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
|
||||
background: color-mix(in srgb, var(--accent) 14%, transparent);
|
||||
color: var(--accent);
|
||||
font-family: var(--mono);
|
||||
font-size: 10px;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.03em;
|
||||
line-height: 1;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
|
||||
.help-panel {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
@@ -3835,6 +3856,7 @@
|
||||
major: 45,
|
||||
majors: [],
|
||||
runtimeVersion: null,
|
||||
appVersion: null,
|
||||
catalog: null,
|
||||
method: null,
|
||||
pathValues: {},
|
||||
@@ -5734,6 +5756,7 @@
|
||||
function buildAboutHtml() {
|
||||
const version = state.runtimeVersion || "—";
|
||||
const catalogMajor = state.major || "—";
|
||||
const appVersion = state.appVersion ? `v${state.appVersion}` : "v—";
|
||||
return `
|
||||
<div class="help-about-panel">
|
||||
<div class="help-report-head">
|
||||
@@ -5743,7 +5766,10 @@
|
||||
automation, and infrastructure tooling without a real hypervisor cluster.
|
||||
</p>
|
||||
<p class="help-about-meta">
|
||||
Runtime <code>${escapeHtml(version)}</code> · catalog <code>${escapeHtml(seriesLabel(catalogMajor))}</code>
|
||||
<span class="help-about-version" title="Simulator package version">${escapeHtml(appVersion)}</span>
|
||||
<span>
|
||||
Runtime <code>${escapeHtml(version)}</code> · catalog <code>${escapeHtml(String(catalogMajor))}</code>
|
||||
</span>
|
||||
</p>
|
||||
</div>
|
||||
<div class="help-report-head">
|
||||
@@ -6876,6 +6902,7 @@
|
||||
// Accept both {majors:[…]} and a bare array for compatibility.
|
||||
const majors = Array.isArray(p) ? p : (p.majors || []);
|
||||
state.runtimeVersion = Array.isArray(p) ? null : (p.runtime_version || null);
|
||||
state.appVersion = Array.isArray(p) ? null : (p.app_version || null);
|
||||
state.majors = majors;
|
||||
setText(els.statRuntime, state.runtimeVersion || "—");
|
||||
const storedMajor = readStoredMajor();
|
||||
|
||||
@@ -12,6 +12,7 @@ from app.db.pool import AsyncpgDatabase
|
||||
from app.dependencies import get_database
|
||||
from app.ovirt.demo_datacenter import CLUSTER_SIZES, normalize_cluster_size, seed_ovirt_demo
|
||||
from app.ovirt.seed import clear_ovirt_state, ovirt_demo_summary, seed_ovirt
|
||||
from app.version import get_app_version
|
||||
from app.web.assets import console_html
|
||||
|
||||
router = APIRouter(tags=["Simulator"])
|
||||
@@ -47,6 +48,7 @@ async def ui_versions(request: Request) -> JSONResponse:
|
||||
majors = ovirt_series_majors(runtime_version)
|
||||
return JSONResponse(
|
||||
{
|
||||
"app_version": get_app_version(),
|
||||
"majors": majors,
|
||||
"runtime_version": runtime_version,
|
||||
"default_major": next(
|
||||
|
||||
Reference in New Issue
Block a user