@7365admin1/layer-common 4.124.1 → 4.124.2

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @iservice365/layer-common
2
2
 
3
+ ## 4.124.2
4
+
5
+ ### Patch Changes
6
+
7
+ - aefd40e: Robot detail: Cancel now says the robot drives back to its charger (core sends it home after a cancel), and the confirm offers "Stop here" to leave it where it stops.
8
+
3
9
  ## 4.124.1
4
10
 
5
11
  ### Patch Changes
@@ -3270,11 +3276,11 @@ Monthly report: a month that had patrols opens the list of that month's patrol r
3270
3276
  `utils/console-tier.ts` + `composables/useConsoleTier.ts` mirror the server's
3271
3277
  own rule from two endpoints the console already calls, unprojected:
3272
3278
 
3273
- GET /api/members/user/:user/app/admin the Seven365 staff membership
3274
- GET /api/roles/id/:role that membership's role document
3279
+ GET /api/members/user/:user/app/admin the Seven365 staff membership
3280
+ GET /api/roles/id/:role that membership's role document
3275
3281
 
3276
- owner = member.type === "admin" && role.type === "admin" && role.default === true
3277
- staff = member.type === "admin" && role.type === "admin"
3282
+ owner = member.type === "admin" && role.type === "admin" && role.default === true
3283
+ staff = member.type === "admin" && role.type === "admin"
3278
3284
 
3279
3285
  `role.default` is the marker because it is the only property of a platform
3280
3286
  staff role no API caller can set - `role.controller.ts` validates create and
@@ -245,6 +245,8 @@
245
245
  <div class="hero-dialog__body">{{ confirming.text.body }}</div>
246
246
  <div class="hero-dialog__actions">
247
247
  <v-btn variant="outlined" @click="confirmOpen = false">Don't send</v-btn>
248
+ <!-- Cancel sends the robot home (core 2026-10-15); this keeps it where it stops. -->
249
+ <v-btn v-if="confirming.kind === 'cancel'" variant="outlined" @click="confirmSend(true)">Stop here</v-btn>
248
250
  <v-btn color="primary" variant="flat" :disabled="!!confirming.zones && !confirming.zoneNames?.length" @click="confirmSend">{{ confirming.text.action }}</v-btn>
249
251
  </div>
250
252
  </div>
@@ -796,10 +798,10 @@ function pickRoute(id: unknown) {
796
798
  c.what = /^patrol/i.test(name) ? name : `patrolling ${name}`;
797
799
  c.text = commandConfirm("area", { type: "security", name: record.value?.name, route: { name, stops }, map });
798
800
  }
799
- function confirmSend() {
801
+ function confirmSend(stayHere = false) {
800
802
  const c = confirming.value;
801
803
  confirmOpen.value = false;
802
- if (c) run(c.kind, c.body, c.what);
804
+ if (c) run(c.kind, stayHere === true ? { ...c.body, stayHere: true } : c.body, c.what);
803
805
  }
804
806
 
805
807
  /** The robot's plan image size for its floor, for turning plan clicks into pixels. */
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.124.1",
5
+ "version": "4.124.2",
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.",
@@ -1767,7 +1767,7 @@ export function commandConfirm(
1767
1767
  return: `${who} stops what it is doing and drives back to its charger.`,
1768
1768
  pause: `${who} stops where it is and waits. Press Resume to carry on.`,
1769
1769
  resume: `${who} carries on with the job it paused.`,
1770
- cancel: `${who} stops the current job and stays where it is. It will not carry on by itself.`,
1770
+ cancel: `${who} stops the current job and drives back to its charger. Choose "Stop here" to leave it where it stops instead.`,
1771
1771
  navigate: at ? `${who} drives to ${at}.` : `${who} drives to the point you pick.`,
1772
1772
  relocalize: at
1773
1773
  ? `${who} is told it is standing at ${at}. Only do this if it really is there - a wrong position gets it lost.`