@7365admin1/layer-common 4.97.1-staging.513 → 4.97.1-staging.514

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.
@@ -593,11 +593,12 @@ watch(() => props.initialManagementValues, (saved) => {
593
593
  managementValues.value = { ...loaded, ...managementValues.value };
594
594
  }, { immediate: true });
595
595
 
596
- const remarksRequired = computed(() => !!selectedAction.value);
596
+ // Owner 2026-10-06: remarks are optional for Approve, required to reject or send back.
597
+ const remarksRequired = computed(() => !!selectedAction.value && selectedAction.value !== "approved");
597
598
 
598
599
  // Same wording as the iMA365 review screen, so office and phone read alike.
599
600
  const REVIEW_TEXT: Record<string, { remarks: string; confirm: string }> = {
600
- approved: { remarks: "Remarks (the resident sees this)", confirm: "Confirm approval" },
601
+ approved: { remarks: "Remarks - optional (the resident sees this)", confirm: "Confirm approval" },
601
602
  rejected: { remarks: "Reason for rejection (the resident sees this)", confirm: "Confirm rejection" },
602
603
  resubmission: { remarks: "Reason for resubmission (the resident sees this)", confirm: "Send back to resident" },
603
604
  };
@@ -605,8 +606,8 @@ const remarksLabel = computed(() => REVIEW_TEXT[selectedAction.value]?.remarks ?
605
606
  const confirmLabel = computed(() => REVIEW_TEXT[selectedAction.value]?.confirm ?? "Confirm");
606
607
  const reviewHint = computed(() =>
607
608
  selectedAction.value === "approved" && managementUseItems.value.length
608
- ? "Fill in the For Management Use Only box and your remarks, then confirm."
609
- : "Choose Approve, Request resubmission or Reject, add your remarks, then confirm.",
609
+ ? "Fill in the For Management Use Only box, add remarks if you wish, then confirm."
610
+ : "Choose Approve, Request resubmission or Reject. Remarks are needed to reject or send back. Then confirm.",
610
611
  );
611
612
 
612
613
  const managementComplete = computed(() => {
@@ -616,7 +617,7 @@ const managementComplete = computed(() => {
616
617
 
617
618
  const canConfirm = computed(() =>
618
619
  !!selectedAction.value &&
619
- adminRemarks.value.trim().length > 0 &&
620
+ (!remarksRequired.value || adminRemarks.value.trim().length > 0) &&
620
621
  managementComplete.value
621
622
  );
622
623
 
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.513",
5
+ "version": "4.97.1-staging.514",
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.",