@7365admin1/layer-common 4.97.1-staging.741 → 4.97.1-staging.743

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.
@@ -169,7 +169,7 @@ function calculateTotalHours(attendance: any): string {
169
169
  attendance.checkOutTimestamp || attendance.checkOut?.timestamp;
170
170
 
171
171
  if (!checkInTime) return "N/A";
172
- if (!checkOutTime) return "In Progress";
172
+ if (!checkOutTime) return attendance.missedCheckOut ? "Missed check-out" : "In Progress";
173
173
 
174
174
  const checkIn = new Date(checkInTime);
175
175
  const checkOut = new Date(checkOutTime);
@@ -3183,8 +3183,9 @@ function onPhotoChange(event: Event) {
3183
3183
  showToast("Facial enrollment only accepts JPG or PNG images.", "error");
3184
3184
  return;
3185
3185
  }
3186
- if (file.size >= 1024 * 1024) {
3187
- showToast("Facial enrollment images must be smaller than 1 MB.", "error");
3186
+ // DV-2365: 2 MB, the limit core and API-core accept (1 MB before).
3187
+ if (file.size >= 2 * 1024 * 1024) {
3188
+ showToast("This photo is larger than 2 MB. Please choose a smaller photo.", "error");
3188
3189
  return;
3189
3190
  }
3190
3191
 
@@ -187,7 +187,7 @@ function calculateTotalHours(attendance: any): string {
187
187
  attendance.checkOutTimestamp || attendance.checkOut?.timestamp;
188
188
 
189
189
  if (!checkInTime) return "N/A";
190
- if (!checkOutTime) return "In Progress";
190
+ if (!checkOutTime) return attendance.missedCheckOut ? "Missed check-out" : "In Progress";
191
191
 
192
192
  const checkIn = new Date(checkInTime);
193
193
  const checkOut = new Date(checkOutTime);
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.741",
5
+ "version": "4.97.1-staging.743",
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.",