fix: address the rc.14 review
Settings no longer makes a folder an archive on its own: a typed or picked folder without archive.json is made one only after a confirmation naming it, and Settings > Import keeps this PC's archive folder and never creates one. A half-typed path or another PC's drive letter could otherwise get .chronos and sidecars written unasked. The server's structure check creates nothing in a root that lost its archive.json (an unmounted disk's empty mount point) and reports it unavailable; /health re-checks when its last check is over 10 s old, so a fix on the host shows without a dashboard read. The admin board reads the server newest first with Order off, counts Published over the server's total, and a Shift range runs along the lane picked in. Admin sizes keep number and unit together. A sent workspace render whose file left exports/ is no longer listed as missing. Desktop Board cards put their actions under the text while the player is open. Start-up range errors name the CHRONOS_* variable; the deploy guide documents the parallelism clamp and the log rule. Refs #29 #31 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
159a8e6939
commit
2c15ee0e09
25 files changed
+336
-53
No files matched your search
@@ -116,11 +116,21 @@ public sealed partial class AdminVideosTests(TestContext context)
|
||||
Assert.Contains(@"data-view=""board"" aria-pressed=""${view === ""board""}"" data-i18n-title=""Admin.Videos.View.Board.Tip""", page);
|
||||
Assert.Contains(@"return stored === ""list"" || stored === ""board"" ? stored : ""cards"";", page);
|
||||
Assert.Contains(" board: `<svg", await server.Client.GetStringAsync("/admin/icons.js"));
|
||||
// Two lanes, newest first whatever the order chosen, each with its count; Workspace holds the renders a PC's workspace
|
||||
// sent here (a project named, produced by a machine other than this server), marked Sent.
|
||||
Assert.Contains("const newest = [...rows].sort((a, b) => (Date.parse(b.created) - Date.parse(a.created))", page);
|
||||
Assert.Contains(@"return lane(""Published"", newest, false) + lane(""Workspace"", sent, true);", page);
|
||||
Assert.Contains(@"<span class=""pill num"">${escapeHtml(formatNumber(items.length))}</span>", page);
|
||||
// Two lanes, newest first whatever the order chosen: the board reads the server newest first, with Order off and
|
||||
// saying why (rc.14 review: re-sorting the page read in another order left the newest out). Published counts the
|
||||
// server's total; Workspace holds the renders a PC's workspace sent here (a project named, produced by a machine
|
||||
// other than this server), marked Sent, counted among those read ("+" while more can be read).
|
||||
Assert.Contains(@"return view === ""board"" ? ""newest"" : filters.sort;", page);
|
||||
Assert.Contains(@"if (sortShown() !== ""newest"") p.set(""sort"", sortShown());", page);
|
||||
Assert.Contains(@"sort.disabled = view === ""board"";", page);
|
||||
Assert.Contains(@"""Admin.Videos.Sort.Board.Tip""", page);
|
||||
Assert.Contains(@"return lane(""Published"", rows, false, formatNumber(total ?? rows.length))", page);
|
||||
Assert.Contains(@"+ lane(""Workspace"", sent, true, `${formatNumber(sent.length)}${cursor ? ""+"" : """"}`);", page);
|
||||
// A Shift range runs along the lane picked in, as its cards are shown.
|
||||
Assert.Contains(@"order: (el) => view === ""board"" && el?.closest("".board-lane"")", page);
|
||||
Assert.Contains("if (shift) selection.range(key, order(el));", await server.Client.GetStringAsync("/admin/pages/library/shared.js"));
|
||||
// Sizes keep their number and unit together, as the desktop's (issue #28).
|
||||
Assert.Contains(@"format(value)} ${units[unit]}`;", await server.Client.GetStringAsync("/admin/ui.js"));
|
||||
Assert.Contains("export function boardLane(v, serverName)", page);
|
||||
Assert.Contains(@"return v.projectId && producer && producer !== String(serverName ?? """") ? ""workspace"" : ""published"";", page);
|
||||
Assert.Contains(@"${workspace ? sentChip(v) : """"}${stateChips(v)}", page);
|
||||
|
||||
Reference in new issue
Block a user