@7365admin1/layer-common 4.97.1-staging.592 → 4.97.1-staging.593
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.
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
ADD / EDIT AN EXTRA CHECK - four short steps: What, Where, When, Who is told.
|
|
3
3
|
|
|
4
4
|
The last step shows one sentence saying exactly what will be created
|
|
5
|
-
("Adds 1 extra check to 3 areas (24 units) at 08:00 every weekday ... next:
|
|
5
|
+
("Adds 1 extra check to each of 3 areas (24 units) at 08:00 every weekday ... next:
|
|
6
6
|
Wed 21 Oct"). The form checks what the server checks (utils/schedule-task.ts)
|
|
7
7
|
so a schedule that would never run is caught before saving; whatever the
|
|
8
8
|
server still refuses is shown in its own words.
|
|
@@ -85,8 +85,10 @@
|
|
|
85
85
|
<v-stepper-window-item :value="2">
|
|
86
86
|
<div class="st-step">
|
|
87
87
|
<p class="st-step__help">
|
|
88
|
-
Pick the areas to check.
|
|
89
|
-
one
|
|
88
|
+
Pick the areas to check. Each time this check is due, every
|
|
89
|
+
picked area gets exactly one extra round on the Daily
|
|
90
|
+
Checklist (one more tick box per unit) - one round, however
|
|
91
|
+
many normal visits the area has each day.
|
|
90
92
|
</p>
|
|
91
93
|
<InputLabel for="selected-areas" title="Areas" required />
|
|
92
94
|
<v-select
|
|
@@ -16,9 +16,11 @@
|
|
|
16
16
|
that.
|
|
17
17
|
</li>
|
|
18
18
|
<li>
|
|
19
|
-
An <strong>extra check</strong> adds one more round of
|
|
20
|
-
that checklist
|
|
21
|
-
or repeating (every day, weekdays,
|
|
19
|
+
An <strong>extra check</strong> adds exactly one more round of
|
|
20
|
+
ticks to that checklist each time it is due, in the areas you pick,
|
|
21
|
+
at the time you set - once, or repeating (every day, weekdays,
|
|
22
|
+
chosen days, or monthly). One extra check is one round per area,
|
|
23
|
+
however many normal visits that area has each day.
|
|
22
24
|
</li>
|
|
23
25
|
<li>
|
|
24
26
|
At that time, staff get a phone notification and see the extra
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@7365admin1/layer-common",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "4.97.1-staging.
|
|
5
|
+
"version": "4.97.1-staging.593",
|
|
6
6
|
"author": "7365admin1",
|
|
7
7
|
"main": "./nuxt.config.ts",
|
|
8
8
|
"//files": "What a consumer extending this layer actually loads. Without this npm ships the whole working tree - the changesets, the CI workflows, the render harness in tools/ and any scratch directory that happened to exist at publish time. Nuxt resolves a layer by directory, so every runtime directory below has to stay listed; adding a new top-level runtime directory means adding it here too.",
|
package/utils/schedule-task.ts
CHANGED
|
@@ -268,7 +268,8 @@ export function buildSummary(
|
|
|
268
268
|
now: Date = new Date(),
|
|
269
269
|
): string {
|
|
270
270
|
const year = sgtParts(now).date.slice(0, 4);
|
|
271
|
-
|
|
271
|
+
// One extra check = exactly one more round per picked area each time it runs (not one per normal visit).
|
|
272
|
+
const areas = f.areaCount === 1 ? "1 area" : `each of ${f.areaCount} areas`;
|
|
272
273
|
const units = `${unitCount} unit${unitCount === 1 ? "" : "s"}`;
|
|
273
274
|
const next = nextRunDate(f, now);
|
|
274
275
|
const nextText = next ? `${DAYS[weekdayOf(next)]} ${fmtDate(next, year)}` : "never";
|