@yuneta/gobj-ui 7.28.3 → 7.29.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/README.md +18 -18
  2. package/dist/gobj-ui.cjs.js +6 -6
  3. package/dist/gobj-ui.es.js +6 -6
  4. package/package.json +2 -2
  5. package/scripts/validate-locales.mjs +3 -3
  6. package/src/c_g6_nodes_tree.js +3 -3
  7. package/src/c_yui_gobj_tree_js.js +1 -1
  8. package/src/c_yui_shell.js +2 -2
  9. package/src/c_yui_treedb_graph.js +1 -1
  10. package/src/c_yui_treedb_schema.js +1 -1
  11. package/src/c_yui_treedb_topics.js +1 -1
  12. package/src/data_as_text.wiring.test.js +7 -8
  13. package/src/form_close_asks_for_edits.wiring.test.js +2 -2
  14. package/src/form_json_editor_names.js +1 -1
  15. package/src/form_json_editor_names.wiring.test.js +1 -1
  16. package/src/form_table_edits_ask.wiring.test.js +1 -1
  17. package/src/form_table_validator.wiring.test.js +2 -2
  18. package/src/form_template_field.wiring.test.js +2 -2
  19. package/src/g6_canvas_tab_order.wiring.test.js +4 -4
  20. package/src/g6_long_press_clock.test.js +2 -2
  21. package/src/g6_nodes_tree_controls.test.js +4 -4
  22. package/src/g6_nodes_tree_focus.wiring.test.js +3 -3
  23. package/src/g6_nodes_tree_i18n_keys.test.js +2 -2
  24. package/src/g6_patches_first_graph.wiring.test.js +1 -1
  25. package/src/gclass_head_text.wiring.test.js +3 -3
  26. package/src/gobj_tree_remote.wiring.test.js +2 -2
  27. package/src/i18n_key_functions.js +3 -3
  28. package/src/i18n_key_functions.test.js +29 -29
  29. package/src/lib_graph.css +1 -1
  30. package/src/lib_maplibre_relocalize.test.js +1 -1
  31. package/src/modal_guard_back.wiring.test.js +2 -2
  32. package/src/named_controls.wiring.test.js +8 -8
  33. package/src/nav_item_badge.wiring.test.js +2 -2
  34. package/src/overlay_marker_after_back.wiring.test.js +8 -14
  35. package/src/route_map_model.test.js +2 -2
  36. package/src/route_resolver.test.js +9 -9
  37. package/src/schema_editor_openers.wiring.test.js +1 -2
  38. package/src/schema_editor_reload.wiring.test.js +4 -4
  39. package/src/schema_import.js +1 -1
  40. package/src/schema_import.test.js +3 -3
  41. package/src/schema_validate.test.js +1 -1
  42. package/src/selector_from_data.wiring.test.js +1 -1
  43. package/src/shell_toolbar_helpers.test.js +1 -1
  44. package/src/table_editor_name.wiring.test.js +2 -2
  45. package/src/tabulator.css +1 -1
  46. package/src/tabulator_css.test.js +1 -1
  47. package/src/treedb_json_drill.wiring.test.js +2 -2
  48. package/src/treedb_topics_transport.wiring.test.js +1 -1
  49. package/src/uplot_ink.test.js +1 -1
  50. package/src/window_layer.wiring.test.js +6 -6
  51. package/src/yui_asset.test.js +1 -1
  52. package/src/yui_badge.test.js +1 -1
  53. package/src/yui_dev.js +2 -2
  54. package/src/yui_dev_controls.test.js +2 -2
  55. package/src/yui_dev_copy.test.js +2 -2
  56. package/src/yui_row_search.test.js +6 -6
  57. package/src/yui_selector.js +1 -1
  58. package/src/yui_tab_routes.test.js +5 -5
  59. package/src/yui_tabulator_i18n.test.js +1 -1
  60. package/vite-plugin-yuneta-html.js +1 -1
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * The header of C_YUI_GCLASS shows what a REMOTE description says:
5
5
  * the gclass name and the instance's current state are data, so
6
- * they are text, never markup (REV-CLOUD V4.2).
6
+ * they are text, never markup.
7
7
  *
8
8
  * Copyright (c) 2026, ArtGins.
9
9
  * All Rights Reserved.
@@ -61,7 +61,7 @@ describe("C_YUI_GCLASS header", () => {
61
61
  expect($c.querySelector("img")).toBe(null);
62
62
  });
63
63
 
64
- test("the method chips are text (V3.1 #4)", () => {
64
+ test("the method chips are text", () => {
65
65
  const view = gobj_create("gclass_methods_text", "C_YUI_GCLASS", {
66
66
  description: {id: "C_X", gcflag: [], attrs: [], commands: [],
67
67
  gclass_methods: [EVIL], internal_methods: [EVIL],
@@ -77,7 +77,7 @@ describe("C_YUI_GCLASS header", () => {
77
77
  expect($c.querySelector("img")).toBe(null);
78
78
  });
79
79
 
80
- test("the error of the raw dump is text (V3.1 #4)", () => {
80
+ test("the error of the raw dump is text", () => {
81
81
  const description = {
82
82
  id: "C_X", gcflag: [], attrs: [], commands: [],
83
83
  gclass_methods: [], internal_methods: [],
@@ -576,7 +576,7 @@ describe("C_YUI_GOBJ_TREE_JS, source local", () => {
576
576
  });
577
577
  });
578
578
 
579
- /* REV-CLOUD V40.2: a read asked BEFORE a set, answered after it, is
579
+ /* A read asked BEFORE a set, answered after it, is
580
580
  * not the set's answer. A host that says which set an answer follows
581
581
  * (`set_id`, echoed from EV_SET_TRACE_LEVEL; null for a plain read)
582
582
  * is taken at its word; one that says nothing is matched by gclass,
@@ -690,7 +690,7 @@ describe("C_YUI_GOBJ_TREE_JS, source remote: a host that says which set it answe
690
690
  expect(problems()).toEqual([]);
691
691
  });
692
692
 
693
- /* REV-CLOUD V41.2.1: the host REPLACES the pending read of a gclass
693
+ /* The host REPLACES the pending read of a gclass
694
694
  * with the one of a newer set of that gclass, so the read the
695
695
  * viewer waits for (the yuno's, of an older set) never comes. */
696
696
  test("a newer set of the gclass the viewer waits for: it waits for the newer one", async () => {
@@ -9,7 +9,7 @@
9
9
  * "EV_COPY_ALL", "copy json")` -- reaches t() inside the function,
10
10
  * by a parameter, where no scan of `t("...")` can see it. Up to
11
11
  * gobj-ui 7.26.27 such a key was invisible to validate-locales,
12
- * and several shipped untranslated (REV-CLOUD V20.5.1). This table
12
+ * and several shipped untranslated. This table
13
13
  * names every such function: validate-locales reads the string
14
14
  * literals given at these positions as keys the source asks for,
15
15
  * in the app's own source and in the gobj-ui modules it mounts.
@@ -93,8 +93,8 @@
93
93
  * validate-locales an app's own code. Publishing a list exempts
94
94
  * no module.
95
95
  *
96
- * The table is COMPLETE and CORRECT, and the same test proves both
97
- * (REV-CLOUD V21.4.1, V22): it finds every function of the library
96
+ * The table is COMPLETE and CORRECT, and the same test proves both:
97
+ * it finds every function of the library
98
98
  * that hands one of its parameters -- or what it reads from one:
99
99
  * `opts.title`, `opts?.title`, a destructured `{label}` (in the
100
100
  * parameter or in the body), each `items[].name`, `arguments[1]`,
@@ -9,20 +9,20 @@
9
9
  * of its key positions, or an exported `<NAME>_I18N_KEYS` list of the
10
10
  * module. Anything else -- a key in a `let`, a table, a computed name
11
11
  * -- renders raw and never changes language, with the build green.
12
- * That shipped (REV-CLOUD V20.5.1: "expand loaded", "click to load",
12
+ * That shipped ("expand loaded", "click to load",
13
13
  * "please select some row", ...).
14
14
  *
15
15
  * So, read as syntax trees with the validator's own reader:
16
16
  *
17
17
  * - the table names functions that exist where it says, with
18
18
  * positions it can follow;
19
- * - the table is COMPLETE (REV-CLOUD V21.4.1): every function that
19
+ * - the table is COMPLETE: every function that
20
20
  * hands one of its parameters -- or what it reads from one -- to a
21
21
  * place a key is read is in it, when something calls it by name;
22
22
  * one nothing calls by name (an FSM action, a callback) marks what
23
23
  * it hands on. The search runs to a fixpoint, and fails naming the
24
24
  * entry to add;
25
- * - the table is CORRECT (V22): the same search started from no
25
+ * - the table is CORRECT: the same search started from no
26
26
  * table finds every entry, at every position, with the same
27
27
  * `exported` -- an entry nothing forwards to fails;
28
28
  * - a position the table declares the FALLBACK of others
@@ -33,8 +33,8 @@
33
33
  * (CODE_KEY_MODULES), and those are the modules that write one;
34
34
  * - the reader gives up on no value of the library (a chain too
35
35
  * deep, a const that leads back to itself, too many values);
36
- * - a parameter handed on through what no position can name (V22:
37
- * `k.toLowerCase()`, a concatenation, `Object.entries(opts)`, a
36
+ * - a parameter handed on through what no position can name
37
+ * (`k.toLowerCase()`, a concatenation, `Object.entries(opts)`, a
38
38
  * rest parameter walked, `arguments[i]`, an array pattern) fails,
39
39
  * unless it is marked where it is handed;
40
40
  * - THE RULE, per call, in every module: each value a key position
@@ -46,11 +46,11 @@
46
46
  * Anything else fails, naming the file and the line; so does a
47
47
  * translated text -- t("..."), tr(), an alias of t, a string built
48
48
  * from one (`t("k") + ":"`) -- marked or not. A translator handed
49
- * as a callback (V23.5: `keys.map(t)`, `promise.then(t)`) is held
49
+ * as a callback (`keys.map(t)`, `promise.then(t)`) is held
50
50
  * the same way, each element it walks a key position;
51
51
  * - no module hands a TRANSLATED text to any other place a key is
52
52
  * read -- t(), an i18n / code / data-i18n* value, a data-i18n*
53
- * attribute --, marked or not (V24.5.2: up to 7.26.41 only a
53
+ * attribute --, marked or not (up to 7.26.41 only a
54
54
  * marked one failed);
55
55
  * - every marker is one and stands where a key is read; the lists
56
56
  * it names are published by its module or one it imports; the
@@ -58,8 +58,8 @@
58
58
  * included (or a member or an element read from one), whose
59
59
  * every literal is read, and which fails when it holds nothing
60
60
  * but literals (a const not written as one); a `data` marker on
61
- * what the reader follows to keys fails (V21.4.2), and so does
62
- * one that would hide a key (V22: a call mixing keys and data, an
61
+ * what the reader follows to keys fails, and so does
62
+ * one that would hide a key (a call mixing keys and data, an
63
63
  * array of string literals);
64
64
  * - every published list is readable (an `export const` array of
65
65
  * literals), never mutated, lower-case ASCII, has no duplicate
@@ -73,7 +73,7 @@
73
73
  * marker: no list is an orphan;
74
74
  * - every key of every list is PINNED: dropping it from the list
75
75
  * fails COVERAGE or the marker check, or the module reads it
76
- * anyway (REV-CLOUD V20: 17 keys were pinned by nothing).
76
+ * anyway (17 keys were pinned by nothing).
77
77
  *
78
78
  * Copyright (c) 2026, ArtGins.
79
79
  * All Rights Reserved.
@@ -642,7 +642,7 @@ function with_key_dropped(lists, name, key)
642
642
  * callers give there is a key the validator reads ONLY when the
643
643
  * function is in I18N_KEY_FUNCTIONS: up to 7.26.28 39 were not (the
644
644
  * review named 17 of them), 6 entries lacked positions, and a literal
645
- * handed to one would have gone unasked (REV-CLOUD V21.4.1).
645
+ * handed to one would have gone unasked.
646
646
  *
647
647
  * - A forwarder called by NAME -- in its module, or exported -- goes
648
648
  * in the table, with that position.
@@ -653,7 +653,7 @@ function with_key_dropped(lists, name, key)
653
653
  * - What a gobj keeps in its `priv` is its own state: a caller hands
654
654
  * the gobj, never what its priv holds. A path through the priv of
655
655
  * a parameter is no position of the function.
656
- * - A parameter handed on through what NO position can name (V22) --
656
+ * - A parameter handed on through what NO position can name --
657
657
  * a key transformed (`k.toLowerCase()`, a concatenation, a template),
658
658
  * an iteration of `Object.entries(opts)`, a rest parameter walked or
659
659
  * read by a computed index, `arguments` --, unmarked, is OPAQUE: the
@@ -1123,12 +1123,12 @@ describe("I18N_KEY_FUNCTIONS: the table", () => {
1123
1123
  });
1124
1124
  });
1125
1125
 
1126
- describe("REV-CLOUD V21.4.1: every forwarder is in the table", () => {
1126
+ describe("every forwarder is in the table", () => {
1127
1127
  test("every function that hands a parameter to a place a key is read, in every module", () => {
1128
1128
  expect(forwarders_report(find_forwarders())).toEqual([]);
1129
1129
  }, SLOW_SCAN_MS);
1130
1130
 
1131
- test("REV-CLOUD V22: the table is CORRECT -- every entry is a hand-off the library shows", () => {
1131
+ test("the table is CORRECT -- every entry is a hand-off the library shows", () => {
1132
1132
  expect(table_errors(find_forwarders(MODULES, ast_of, []).found)).toEqual([]);
1133
1133
  }, SLOW_SCAN_MS);
1134
1134
 
@@ -1436,7 +1436,7 @@ describe("the reader the rule and the validator share", () => {
1436
1436
  expect(r.keys.has("a parameter of another function")).toBe(false);
1437
1437
  });
1438
1438
 
1439
- test("REV-CLOUD V20 (js3_v lists #1): a marker on a member or an element of a let follows the let", () => {
1439
+ test("a marker on a member or an element of a let follows the let", () => {
1440
1440
  let scan = (lines) => scan_ast(parse_source([`export const X_I18N_KEYS = ["in it"];`, ...lines].join("\n")),
1441
1441
  {lib_module: "x.js"});
1442
1442
  let whys = (r) => r.marker_errors.map((e) => `${e.line}: ${e.why}`);
@@ -1523,7 +1523,7 @@ describe("the reader the rule and the validator share", () => {
1523
1523
  });
1524
1524
  });
1525
1525
 
1526
- describe("REV-CLOUD V21.4.2-3: the data marker is a claim; DOM is no key; a translated text is no key", () => {
1526
+ describe("the data marker is a claim; DOM is no key; a translated text is no key", () => {
1527
1527
  let module = "x.js";
1528
1528
  let head = [
1529
1529
  `import {yui_shell_show_info, yui_shell_show_modal} from "./shell_modals.js";`,
@@ -1587,7 +1587,7 @@ describe("REV-CLOUD V21.4.2-3: the data marker is a claim; DOM is no key; a tran
1587
1587
  });
1588
1588
  });
1589
1589
 
1590
- describe("REV-CLOUD V20.5 repro, on the real module", () => {
1590
+ describe("a review's repro, on the real module", () => {
1591
1591
  let original = readFileSync(join(SRC, "c_yui_treedb_topics.js"), "utf8");
1592
1592
  let call = `actions.push(card_action_anchor(\n "TREEDB_CARD_TABLE", "yi-table", "table", fill(routes.table)));`;
1593
1593
 
@@ -1623,7 +1623,7 @@ describe("REV-CLOUD V20.5 repro, on the real module", () => {
1623
1623
  });
1624
1624
  });
1625
1625
 
1626
- describe("REV-CLOUD V20 (js2_va #1): a marker on a let does not let it pass unread", () => {
1626
+ describe("a marker on a let does not let it pass unread", () => {
1627
1627
  let original = readFileSync(join(SRC, "c_yui_treedb_topic_with_form.js"), "utf8");
1628
1628
  let decl = ` const title = (mode === "create")? "new" : ((mode === "view")? "view" : "edit");`;
1629
1629
  let use = ` title: title,`;
@@ -1776,7 +1776,7 @@ describe("the published *_I18N_KEYS lists", () => {
1776
1776
  expect(unpinned_keys(all_lists(), COVERAGE)).toEqual([]);
1777
1777
  });
1778
1778
 
1779
- test("the pin check fails when it should (REV-CLOUD V20, js2_va #2)", () => {
1779
+ test("the pin check fails when it should", () => {
1780
1780
  let lists = all_lists();
1781
1781
 
1782
1782
  /* Without the coverage this round added, the keys the review found
@@ -1800,13 +1800,13 @@ describe("the published *_I18N_KEYS lists", () => {
1800
1800
  /* ...and with it, the review's repro -- a key dropped from its
1801
1801
  * list -- fails the coverage of that list */
1802
1802
  /* "app" (the route map's root when the app names no brand) is pinned
1803
- * twice since V21.4.1: the marker moved to the call of render_node()
1803
+ * twice since 7.26.29: the marker moved to the call of render_node()
1804
1804
  * follows the `let root` it marks, and the list must hold its label */
1805
1805
  expect(reported("SHELL_ROUTE_MAP_I18N_KEYS", "app")).toBe(false);
1806
1806
  let route_map_refs = scan_of("shell_route_map.js").marker_refs
1807
1807
  .filter((ref) => ref.lists.includes("SHELL_ROUTE_MAP_I18N_KEYS"));
1808
1808
  expect(route_map_refs.flatMap((ref) => ref.keys)).toContain("app");
1809
- /* ...and "this field is required" since V22: field_validation_key()
1809
+ /* ...and "this field is required" since 7.26.32: field_validation_key()
1810
1810
  * returns it OR the json field's own error, and the list marker on
1811
1811
  * the `let key` that holds the call holds that key to its lists */
1812
1812
  expect(reported("C_YUI_FORM_I18N_KEYS", "this field is required")).toBe(false);
@@ -1866,7 +1866,7 @@ describe("the published *_I18N_KEYS lists", () => {
1866
1866
  });
1867
1867
  });
1868
1868
 
1869
- describe("REV-CLOUD V20 (js3_v lists #2): a COVERAGE source is read the way the validator reads", () => {
1869
+ describe("a COVERAGE source is read the way the validator reads", () => {
1870
1870
  let lists = all_lists();
1871
1871
  let form = COVERAGE.find((e) => e.list === "C_YUI_FORM_I18N_KEYS");
1872
1872
  let route_map = COVERAGE.find((e) => e.list === "SHELL_ROUTE_MAP_I18N_KEYS");
@@ -1940,7 +1940,7 @@ describe("REV-CLOUD V20 (js3_v lists #2): a COVERAGE source is read the way the
1940
1940
  });
1941
1941
  });
1942
1942
 
1943
- describe("REV-CLOUD V22.1: a recursive helper is read once, and never hangs the reader", () => {
1943
+ describe("a recursive helper is read once, and never hangs the reader", () => {
1944
1944
  let module = "x.js";
1945
1945
  let head = [`import {yui_shell_show_info} from "./shell_modals.js";`];
1946
1946
  let rule = (lines) => rule_report(parse_as([...head, ...lines].join("\n"), module), module);
@@ -2002,7 +2002,7 @@ describe("REV-CLOUD V22.1: a recursive helper is read once, and never hangs the
2002
2002
  });
2003
2003
  });
2004
2004
 
2005
- describe("REV-CLOUD V22.2: what the search for forwarders sees, and what fails it", () => {
2005
+ describe("what the search for forwarders sees, and what fails it", () => {
2006
2006
  let module = "x.js";
2007
2007
  let found_in = (lines) => {
2008
2008
  let ast = parse_as(lines.join("\n"), module);
@@ -2082,13 +2082,13 @@ describe("REV-CLOUD V22.2: what the search for forwarders sees, and what fails i
2082
2082
  "shell_modals.js yui_shell_show_warning: `exported: false`, and the module exports it",
2083
2083
  expect.stringMatching(/^c_yui_nav\.js no_such_forwarder \[0\]: no hand-off the search finds/)
2084
2084
  ]));
2085
- /* ...as the real table was, before V22: an action label that went
2085
+ /* ...as the real table was, before 7.26.32: an action label that went
2086
2086
  * through a DOM property, a flag that hid an export */
2087
2087
  expect(table_errors(found)).toEqual([]);
2088
2088
  }, SLOW_SCAN_MS);
2089
2089
  });
2090
2090
 
2091
- describe("REV-CLOUD V22.3-4: the data marker hides no key; one notion of a translator", () => {
2091
+ describe("the data marker hides no key; one notion of a translator", () => {
2092
2092
  let module = "x.js";
2093
2093
  let head = [`import {yui_shell_show_info} from "./shell_modals.js";`,
2094
2094
  `import {t as tt} from "i18next";`];
@@ -2166,7 +2166,7 @@ describe("REV-CLOUD V22.3-4: the data marker hides no key; one notion of a trans
2166
2166
  .toEqual([`${module}:5 yui_shell_show_info() [1]: k`]);
2167
2167
  });
2168
2168
 
2169
- test("REV-CLOUD V22.5: no published list of the library is a let, and none is mutated", () => {
2169
+ test("no published list of the library is a let, and none is mutated", () => {
2170
2170
  let wrong = [];
2171
2171
  for(let module of MODULES) {
2172
2172
  let ast = ast_of(module);
@@ -2183,7 +2183,7 @@ describe("REV-CLOUD V22.3-4: the data marker hides no key; one notion of a trans
2183
2183
  });
2184
2184
  });
2185
2185
 
2186
- describe("REV-CLOUD V23.5: a translator as a callback, by destructuring; setAttributeNS; t() compositions; aliases", () => {
2186
+ describe("a translator as a callback, by destructuring; setAttributeNS; t() compositions; aliases", () => {
2187
2187
  let module = "x.js";
2188
2188
  let head = [`import {yui_shell_show_info} from "./shell_modals.js";`,
2189
2189
  `import i18next from "i18next";`];
@@ -2304,7 +2304,7 @@ describe("REV-CLOUD V23.5: a translator as a callback, by destructuring; setAttr
2304
2304
  });
2305
2305
  });
2306
2306
 
2307
- describe("REV-CLOUD V24.5: every write counts; a translated text fails unmarked too; the callbacks, exactly; .bind()", () => {
2307
+ describe("every write counts; a translated text fails unmarked too; the callbacks, exactly; .bind()", () => {
2308
2308
  let module = "x.js";
2309
2309
  let head = [`import {yui_shell_show_info} from "./shell_modals.js";`,
2310
2310
  `import i18next from "i18next";`];
package/src/lib_graph.css CHANGED
@@ -474,7 +474,7 @@
474
474
  /* The DOM toolbar's `pressed_state` lives in `yui_toolbar.css` now, and
475
475
  * not here: a pressed toggle is a TOOLBAR thing, and while the rule sat
476
476
  * in this file it reached an app only if the app mounted a graph -- the
477
- * stylesheet rides the JS import. yunovatios copied the rule into its
477
+ * stylesheet rides the JS import. One app copied the rule into its
478
478
  * own `app.css` under a third name for exactly that reason. The G6
479
479
  * plugin toolbar's own item keeps its rule above, where the plugin is. */
480
480
 
@@ -7,7 +7,7 @@
7
7
  * (`Map.Title`, a region a keyboard focuses) and of a default
8
8
  * marker (`Marker.Title`). Up to 7.26.34 they stayed in the
9
9
  * language the map was built in -- "Mapa" in an English app after
10
- * a switch (REV-CLOUD V23.5.6). A name an app gave a marker is its
10
+ * a switch. A name an app gave a marker is its
11
11
  * own, and is left alone.
12
12
  *
13
13
  * Copyright (c) 2026, ArtGins.
@@ -11,8 +11,8 @@
11
11
  * promise, and the modal takes its entry back once the question
12
12
  * is over.
13
13
  *
14
- * And what the promise SETTLES with is the answer (REV-CLOUD V24.5,
15
- * Info): `true` closes the modal; anything else -- what a question
14
+ * And what the promise SETTLES with is the answer:
15
+ * `true` closes the modal; anything else -- what a question
16
16
  * that closed the modal itself on "yes" settles with, `false`, a
17
17
  * rejection -- is the veto it was. Up to 7.26.41 any promise was a
18
18
  * veto, so an `async () => true` left a modal nobody could close.
@@ -1,7 +1,7 @@
1
1
  /***********************************************************************
2
2
  * named_controls.wiring.test.js
3
3
  *
4
- * Controls the library drew without a name (REV-CLOUD V23.5.6):
4
+ * Controls the library drew without a name:
5
5
  * each carries a `title` AND an `aria-label` now, through t() and
6
6
  * with its key where the key is the library's, as every control.
7
7
  *
@@ -20,8 +20,8 @@
20
20
  * - the ✕ of an option of a Tom Select ("Remove", in English,
21
21
  * title only, out of the keyboard's reach);
22
22
  * - an item of C_YUI_NAV without a `name`, in every layout: its
23
- * raw id was its aria-label, with no key and no title
24
- * (REV-CLOUD V24.5.4). Its id is its KEY now, or its
23
+ * raw id was its aria-label, with no key and no title.
24
+ * Its id is its KEY now, or its
25
25
  * `aria_label` when it declares one.
26
26
  *
27
27
  * The real gclasses on a document double; G6 and Tom Select as
@@ -350,7 +350,7 @@ describe("a link of the site map", () => {
350
350
  expect($link.getAttribute("aria-current")).toBe(null);
351
351
  });
352
352
 
353
- /* One rule names an item everywhere (REV-CLOUD V24.5.4): up to
353
+ /* One rule names an item everywhere: up to
354
354
  * 7.26.41 a row was labelled `name || wordmark || id || route`, so an
355
355
  * entry that declares only an `aria_label` read its id in the map, the
356
356
  * language button "ES/EN", a menu's id and a route were asked of the
@@ -439,13 +439,13 @@ describe("the links of a nav", () => {
439
439
  {id: "i", icon: "yi-eye", route: "/i"}
440
440
  ]);
441
441
  expect_named($c.querySelector('a[data-item-id="b"]'), "devices");
442
- /* Its id, AS A KEY (REV-CLOUD V24.5.4): up to 7.26.41 the raw
442
+ /* Its id, AS A KEY: up to 7.26.41 the raw
443
443
  * id was its aria-label, with no key and no title. */
444
444
  expect_named($c.querySelector('a[data-item-id="i"]'), "i");
445
445
  });
446
446
 
447
- /* The same in every layout that draws an item (REV-CLOUD V24.5.4:
448
- * c_yui_nav.js item_li, item_iconbar, the tabs, and the cards of
447
+ /* The same in every layout that draws an item
448
+ * (c_yui_nav.js item_li, item_iconbar, the tabs, and the cards of
449
449
  * nav_cards_helpers.js). */
450
450
  for(const layout of ["vertical", "icon-bar", "tabs", "cards", "breadcrumb"]) {
451
451
  test(`an item without a \`name\` (${layout}): named by its id as a key, or by its \`aria_label\``, () => {
@@ -531,7 +531,7 @@ describe("the links of a nav", () => {
531
531
  });
532
532
  });
533
533
 
534
- describe("the items of the toolbar: what the nav got (REV-CLOUD V24.5.4)", () => {
534
+ describe("the items of the toolbar: what the nav got", () => {
535
535
  /* A shell whose toolbar is `items`, on the page. */
536
536
  function toolbar_shell(items)
537
537
  {
@@ -626,7 +626,7 @@ describe("the toolbar badge takes a tone too", () => {
626
626
  });
627
627
 
628
628
  /*
629
- * REV-CLOUD V23.5.5: what a READER gets. Up to 7.26.34 the badge was its
629
+ * What a READER gets. Up to 7.26.34 the badge was its
630
630
  * own live region: the count was never part of the item's name, the
631
631
  * region said a bare number, it was hidden while empty (so 0 -> 1 was
632
632
  * most likely never said), and inside a <button> (the toolbar, an
@@ -769,7 +769,7 @@ describe("a reader gets the count with the name of what it counts", () => {
769
769
  });
770
770
  });
771
771
 
772
- describe("REV-CLOUD V24.5.3: every change is said, as it reads", () => {
772
+ describe("every change is said, as it reads", () => {
773
773
  async function english(extra)
774
774
  {
775
775
  const i18next = (await import("i18next")).default;
@@ -515,7 +515,7 @@ describe("an overlay registered while a back() of ours is in flight", () => {
515
515
  });
516
516
  });
517
517
 
518
- describe("a routed shell, a realistic history (V5)", () => {
518
+ describe("a routed shell, a realistic history", () => {
519
519
  test("Back closes a keep_on_navigate panel after a replace navigation", async () => {
520
520
  const app = gobj_create("vapp1", "C_TEST_MARKER_APP", {}, yuno);
521
521
  gobj_start(app);
@@ -659,9 +659,6 @@ describe("a routed shell, a realistic history (V5)", () => {
659
659
  });
660
660
  });
661
661
 
662
- /*
663
- * Sixth check of the review (V6).
664
- */
665
662
  /* The test app declares no route event: what the shell says is what
666
663
  * these tests read. */
667
664
  function shell_warnings()
@@ -669,7 +666,7 @@ function shell_warnings()
669
666
  return errors().filter((m) => m.includes("C_YUI_SHELL"));
670
667
  }
671
668
 
672
- describe("a link is not a Back (V6.1)", () => {
669
+ describe("a link is not a Back", () => {
673
670
  test("a link back to the hash a kept panel was opened on keeps it open", async () => {
674
671
  const app = gobj_create("v6app1", "C_TEST_MARKER_APP", {}, yuno);
675
672
  gobj_start(app);
@@ -748,7 +745,7 @@ describe("a link is not a Back (V6.1)", () => {
748
745
  });
749
746
  });
750
747
 
751
- describe("a route waiting for a back() of ours (V6.2)", () => {
748
+ describe("a route waiting for a back() of ours", () => {
752
749
  test("a newer route replaces the waiting one, and says so", async () => {
753
750
  const app = gobj_create("v6app4", "C_TEST_MARKER_APP", {}, yuno);
754
751
  gobj_start(app);
@@ -848,10 +845,7 @@ describe("a route waiting for a back() of ours (V6.2)", () => {
848
845
  });
849
846
  });
850
847
 
851
- /*
852
- * Seventh check of the review (V7).
853
- */
854
- describe("only the entry stamped for the top overlay is its floor (V7.1, V7.3)", () => {
848
+ describe("only the entry stamped for the top overlay is its floor", () => {
855
849
  test("Forward onto an entry stamped for another overlay does not close the panel", async () => {
856
850
  const app = gobj_create("v7app1", "C_TEST_MARKER_APP", {}, yuno);
857
851
  gobj_start(app);
@@ -935,7 +929,7 @@ describe("only the entry stamped for the top overlay is its floor (V7.1, V7.3)",
935
929
  });
936
930
  });
937
931
 
938
- describe("a back() given up on that lands after all (V7.2)", () => {
932
+ describe("a back() given up on that lands after all", () => {
939
933
  test("its late landing is said out loud", async () => {
940
934
  const app = gobj_create("v7app4", "C_TEST_MARKER_APP", {}, yuno);
941
935
  gobj_start(app);
@@ -964,7 +958,7 @@ describe("a back() given up on that lands after all (V7.2)", () => {
964
958
  });
965
959
  });
966
960
 
967
- describe("V8: the edges of the stamp and of the late landing", () => {
961
+ describe("the edges of the stamp and of the late landing", () => {
968
962
  test("a late back() lands on the marker of an overlay opened during the wait: said too", async () => {
969
963
  const app = gobj_create("v8app1", "C_TEST_MARKER_APP", {}, yuno);
970
964
  gobj_start(app);
@@ -1006,13 +1000,13 @@ describe("V8: the edges of the stamp and of the late landing", () => {
1006
1000
  const entry = yui_shell_register_overlay(shell, () => {});
1007
1001
  expect(session.entries[0].state).toBe(app_state);
1008
1002
  expect(shell_warnings().filter(m => m.includes("not a plain object")).length).toBe(1);
1009
- /* V9.3: no marker, so no Back of the reader's is spent on it. */
1003
+ /* No marker, so no Back of the reader's is spent on it. */
1010
1004
  expect(entry.no_marker).toBe(true);
1011
1005
  expect(session.entries.length).toBe(1);
1012
1006
  });
1013
1007
  });
1014
1008
 
1015
- describe("V9: the warning of a late back() has a window", () => {
1009
+ describe("the warning of a late back() has a window", () => {
1016
1010
  test("a landing on the dead marker long after giving up is the reader's Back: no warning", async () => {
1017
1011
  const app = gobj_create("v9app1", "C_TEST_MARKER_APP", {}, yuno);
1018
1012
  gobj_start(app);
@@ -11,7 +11,7 @@ import { build_nav_map } from "./route_map_model.js";
11
11
 
12
12
  const view = (gclass) => ({ stage: "main", gclass: gclass });
13
13
 
14
- /* A config + index shaped like a small wattyzer-style app:
14
+ /* A config + index shaped like a small application:
15
15
  * toolbar (brand + account dropdown), a primary menu with a submenu,
16
16
  * a second menu, and a route table with URL-only routes. */
17
17
  function make_input(extra)
@@ -280,7 +280,7 @@ test("'you are here' lands on the owner, never on a reference", () => {
280
280
 
281
281
 
282
282
  /***************************************************************
283
- * one rule names an item everywhere (REV-CLOUD V24.5.4)
283
+ * one rule names an item everywhere
284
284
  *
285
285
  * A row of the map is labelled as its CONTROL is named: a menu
286
286
  * entry as the nav names it (c_yui_nav.js: `name`, else
@@ -13,11 +13,11 @@ import { resolve_route, normalize_route } from "./route_resolver.js";
13
13
  function make_index() {
14
14
  const view = (gclass) => ({ stage: "main", gclass: gclass });
15
15
  return {
16
- "/": { item: null, target: view("C_WZ_VIEW") },
17
- "/monitoring/realtime": { item: null, target: view("C_WZ_MONITORING") },
16
+ "/": { item: null, target: view("C_APP_VIEW") },
17
+ "/monitoring/realtime": { item: null, target: view("C_APP_MONITORING") },
18
18
  "/system": { item: { submenu: { items: [] } }, target: null },
19
- "/system/db/wattyzer": { item: null, target: view("C_WZ_TREEDB") },
20
- "/user/preference": { item: null, target: view("C_WZ_PREFERENCES") },
19
+ "/system/db/myapp": { item: null, target: view("C_APP_TREEDB") },
20
+ "/user/preference": { item: null, target: view("C_APP_PREFERENCES") },
21
21
  "/user/logout": { item: null, target: { kind: "action", event: "EV_LOGOUT" } },
22
22
  };
23
23
  }
@@ -29,26 +29,26 @@ describe("resolve_route", () => {
29
29
  const r = resolve_route(idx, "/monitoring/realtime");
30
30
  expect(r.matched_route).toBe("/monitoring/realtime");
31
31
  expect(r.subpath).toBe("");
32
- expect(r.entry.target.gclass).toBe("C_WZ_MONITORING");
32
+ expect(r.entry.target.gclass).toBe("C_APP_MONITORING");
33
33
  });
34
34
 
35
35
  test("exact root '/' matches exactly (not via walk)", () => {
36
36
  const r = resolve_route(idx, "/");
37
37
  expect(r.matched_route).toBe("/");
38
38
  expect(r.subpath).toBe("");
39
- expect(r.entry.target.gclass).toBe("C_WZ_VIEW");
39
+ expect(r.entry.target.gclass).toBe("C_APP_VIEW");
40
40
  });
41
41
 
42
42
  test("3rd level → nearest declared ancestor + subpath", () => {
43
43
  const r = resolve_route(idx, "/user/preference/language");
44
44
  expect(r.matched_route).toBe("/user/preference");
45
45
  expect(r.subpath).toBe("language");
46
- expect(r.entry.target.gclass).toBe("C_WZ_PREFERENCES");
46
+ expect(r.entry.target.gclass).toBe("C_APP_PREFERENCES");
47
47
  });
48
48
 
49
49
  test("deeper dynamic tail is preserved whole", () => {
50
- const r = resolve_route(idx, "/system/db/wattyzer/topic/42");
51
- expect(r.matched_route).toBe("/system/db/wattyzer");
50
+ const r = resolve_route(idx, "/system/db/myapp/topic/42");
51
+ expect(r.matched_route).toBe("/system/db/myapp");
52
52
  expect(r.subpath).toBe("topic/42");
53
53
  });
54
54
 
@@ -1,8 +1,7 @@
1
1
  /***********************************************************************
2
2
  * schema_editor_openers.wiring.test.js
3
3
  *
4
- * What opens something in C_YUI_SCHEMA_EDITOR is a NAMED control
5
- * (REV-CLOUD V24.5.4):
4
+ * What opens something in C_YUI_SCHEMA_EDITOR is a NAMED control:
6
5
  *
7
6
  * - a card of the treedbs screen (a treedb, the leftovers of a
8
7
  * deletion) is a role=button with a title and an aria-label,
@@ -1056,7 +1056,7 @@ describe("the import plan", () => {
1056
1056
  });
1057
1057
  });
1058
1058
 
1059
- describe("the import panel says what each conflict is about (REV-CLOUD V17.3.5)", () => {
1059
+ describe("the import panel says what each conflict is about", () => {
1060
1060
 
1061
1061
  test("the bad name of a hook map is printed, and the hook column it is written in", () => {
1062
1062
  const {editor, host} = build("i3", "db");
@@ -1752,7 +1752,7 @@ describe("the reason a load failed", () => {
1752
1752
 
1753
1753
 
1754
1754
  /*
1755
- * The two name rules (REV-CLOUD V14.2): a name the treedb refuses is
1755
+ * The two name rules: a name the treedb refuses is
1756
1756
  * said at once, with its key, and nothing is written; a '/' in a column
1757
1757
  * is not refused (a column is a key, not a directory).
1758
1758
  */
@@ -1784,8 +1784,8 @@ describe("names the treedb refuses", () => {
1784
1784
 
1785
1785
 
1786
1786
  /*
1787
- * The name field says whether the LAST save refused its name (REV-CLOUD
1788
- * V15.4): set by every refusal of the name, cleared by a save that gets
1787
+ * The name field says whether the LAST save refused its name:
1788
+ * set by every refusal of the name, cleared by a save that gets
1789
1789
  * past them. It was set by the rule only, and never cleared.
1790
1790
  */
1791
1791
  describe("aria-invalid of the name field", () => {
@@ -254,7 +254,7 @@ function plan_import(treedb, incoming, options)
254
254
  if(hook && typeof hook === "object" && !Array.isArray(hook)) {
255
255
  /* The parent's hook column the bad name comes from: a
256
256
  * conflict that said only `child.fkey` did not say where
257
- * to fix it (REV-CLOUD V17.3.5). */
257
+ * to fix it. */
258
258
  let from_hook = `${name || ""}.${in_col.name}`;
259
259
  for(let [child_topic, fkey_col] of Object.entries(hook)) {
260
260
  /* The conflict names the BAD name (the child topic, its
@@ -255,7 +255,7 @@ describe("the empty collections the store answers with", () => {
255
255
  });
256
256
 
257
257
 
258
- describe("names the treedb refuses stop the plan before any write (REV-CLOUD V14.2)", () => {
258
+ describe("names the treedb refuses stop the plan before any write", () => {
259
259
  test("a topic a/b, a topic .., a column x`y: conflicts, no writes", () => {
260
260
  let plan = plan_import(null, {
261
261
  id: "db", schema_version: "1",
@@ -284,7 +284,7 @@ describe("names the treedb refuses stop the plan before any write (REV-CLOUD V14
284
284
  });
285
285
 
286
286
 
287
- describe("the import reads the hook map and the treedb id (REV-CLOUD V15.4)", () => {
287
+ describe("the import reads the hook map and the treedb id", () => {
288
288
  test("a hook to an fkey x`y or to a topic a/b that no column declares: conflicts", () => {
289
289
  let plan = plan_import(null, {
290
290
  id: "db", schema_version: "1",
@@ -312,7 +312,7 @@ describe("the import reads the hook map and the treedb id (REV-CLOUD V15.4)", ()
312
312
  });
313
313
 
314
314
 
315
- describe("a conflict names the bad name (REV-CLOUD V16.5)", () => {
315
+ describe("a conflict names the bad name", () => {
316
316
  test("the child topic and the fkey of a hook map, and a dict column's inner id", () => {
317
317
  let plan = plan_import(null, {
318
318
  id: "db", schema_version: "1",
@@ -289,7 +289,7 @@ describe("only one hook may name a fkey column", () => {
289
289
  });
290
290
 
291
291
 
292
- describe("the two name rules (REV-CLOUD V14.2)", () => {
292
+ describe("the two name rules", () => {
293
293
  test("a column with the delimiter is an error; a '/' in a column is fine", () => {
294
294
  let bad = validate_schema(schema({extra_col:
295
295
  {id: "db.users.x`y", value: "x`y", order: 3, type: "string",