You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 8e03224
Browse filesBrowse the repository at this point in the historyBrowse files
ui: put templates first on the templates page and mark unbuilt ones (#1255)
* ui: put templates first on the templates page and mark unbuilt ones
The templates page opened on the rolling warm-pool policy table, usually
empty, had no page title, and listed the templates themselves third. A
template with no published release (never built, or every build failed)
showed "latest" in its Hash column, the same as a built template's tag.
The Network column's tags and Edit link overflowed into the Base Snap
toggle.
The page now has a title with the refresh action, and lists templates,
then releases, node availability and warm-pool policies. A template with
no release shows "not built" with an explanation. The Hash and Network
columns are wide enough for their contents.
* ui: decide "no release" from the template releases
The Hash column called a template "not built" when its content_hash was
null. That field comes from builder inventory, not from releases, so a
published template that no builder node reports showed "not built", and
the rule was not what the previous commit's message described.
A present template now shows "no release" only when the releases have
loaded and none names it. The tooltip says it may never have been built,
every build may have failed, or its releases were unpublished. A
published template without a build hash shows a dash, with a tooltip
saying it is published.
Correction to the previous commit's message: it is not layout only. Its
Hash column change is a behavior change, and its "not built" rule
tested the build hash, not whether a release exists.
<Tooltiptitle="No release has been published for this template: it may never have been built, every build may have failed, or its releases were unpublished.">
1419
+
<Tagstyle={{marginInlineEnd: 0}}>no release</Tag>
1420
+
</Tooltip>
1421
+
);
1422
+
}
1423
+
returnreleasedTemplateNames.has(record.name) ? (
1424
+
<Tooltiptitle="Published; no builder node reports a build hash for it.">
1425
+
<Texttype="secondary">—</Text>
1426
+
</Tooltip>
1427
+
) : <Texttype="secondary">—</Text>;
1428
+
},
1402
1429
},
1403
1430
{
1404
1431
title: 'Runtime',
@@ -1452,9 +1479,9 @@ export default function TemplatesPage() {
0 commit comments