@7365admin1/layer-common 3.0.28 → 3.0.30-staging.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.
@@ -0,0 +1,36 @@
1
+ name: Publish Staging
2
+ on:
3
+ push:
4
+ branches:
5
+ - staging
6
+
7
+ concurrency: ${{ github.workflow }}-${{ github.ref }}
8
+
9
+ jobs:
10
+ publish:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - uses: actions/checkout@v4
14
+
15
+ - uses: actions/setup-node@v4
16
+ with:
17
+ node-version: 20.x
18
+ cache: "yarn"
19
+ cache-dependency-path: yarn.lock
20
+
21
+ - run: yarn install --immutable
22
+
23
+ - run: yarn build
24
+
25
+ - name: Create .npmrc for publishing
26
+ run: |
27
+ echo '//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}' > ~/.npmrc
28
+
29
+ - name: Set staging prerelease version
30
+ run: |
31
+ BASE=$(node -p "const [x,y,z]=require('./package.json').version.split('-')[0].split('.'); [x,y,+z+1].join('.')")
32
+ npm version "$BASE-staging.${{ github.run_number }}" --no-git-tag-version
33
+ node -p "'Publishing ' + require('./package.json').version"
34
+
35
+ - name: Publish to npm with staging tag
36
+ run: npm publish --tag staging --registry https://registry.npmjs.org
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @iservice365/layer-common
2
2
 
3
+ ## 3.0.29
4
+
5
+ ### Patch Changes
6
+
7
+ - a71f9c4: Update Package Version
8
+
3
9
  ## 3.0.28
4
10
 
5
11
  ### Patch Changes
@@ -60,19 +60,31 @@
60
60
  </div>
61
61
  </div>
62
62
 
63
- <!-- Visitor Credentials -->
63
+ <div v-if="details.userType">
64
+ <div class="text-caption text-grey">User Type</div>
65
+ <div class="text-body-2 font-weight-medium">{{ details.userType }}</div>
66
+ </div>
67
+
68
+ <!-- Visitor / Resident Credentials -->
64
69
  <template v-if="details.userCred">
65
70
  <v-divider />
66
- <div class="text-caption font-weight-bold text-grey-darken-2 text-uppercase">Visitor Information</div>
71
+ <div class="text-caption font-weight-bold text-grey-darken-2 text-uppercase">
72
+ {{ details.userType ?? "Visitor Information" }}
73
+ </div>
74
+
75
+ <div v-if="details.userCred.email">
76
+ <div class="text-caption text-grey">Email</div>
77
+ <div class="text-body-2 font-weight-medium">{{ details.userCred.email }}</div>
78
+ </div>
67
79
 
68
- <div>
80
+ <div v-if="details.userCred.nric">
69
81
  <div class="text-caption text-grey">NRIC</div>
70
- <div class="text-body-2 font-weight-medium">{{ details.userCred.nric ?? "N/A" }}</div>
82
+ <div class="text-body-2 font-weight-medium">{{ details.userCred.nric }}</div>
71
83
  </div>
72
84
 
73
- <div>
85
+ <div v-if="details.userCred.contact">
74
86
  <div class="text-caption text-grey">Contact</div>
75
- <div class="text-body-2 font-weight-medium">{{ details.userCred.contact ?? "N/A" }}</div>
87
+ <div class="text-body-2 font-weight-medium">{{ details.userCred.contact }}</div>
76
88
  </div>
77
89
 
78
90
  <div v-if="details.userCred.company">
@@ -125,7 +137,7 @@
125
137
  <div class="d-flex flex-column align-center" style="width: 20px; flex-shrink: 0;">
126
138
  <div
127
139
  class="timeline-dot rounded-circle mt-1"
128
- :class="entry.visitorId ? 'bg-blue' : 'bg-orange'"
140
+ :class="(entry.type === 'assigned' || entry.visitorId) ? 'bg-blue' : 'bg-orange'"
129
141
  />
130
142
  <div
131
143
  v-if="idx < sortedHistory.length - 1"
@@ -139,20 +151,21 @@
139
151
  <v-chip
140
152
  size="x-small"
141
153
  variant="tonal"
142
- :color="entry.visitorId ? 'blue' : 'orange'"
143
- :prepend-icon="entry.visitorId ? 'mdi-account-arrow-right' : 'mdi-arrow-u-left-top'"
154
+ :color="(entry.type === 'assigned' || entry.visitorId) ? 'blue' : 'orange'"
155
+ :prepend-icon="(entry.type === 'assigned' || entry.visitorId) ? 'mdi-account-arrow-right' : 'mdi-arrow-u-left-top'"
144
156
  >
145
- {{ entry.visitorId ? "Assigned" : "Returned" }}
157
+ {{ (entry.type === 'assigned' || entry.visitorId) ? "Assigned" : "Returned" }}
146
158
  </v-chip>
147
159
  <span class="text-caption text-grey">{{ formatDate(entry.createdAt) }}</span>
148
160
  </div>
149
161
 
150
162
  <!-- Assignment entry -->
151
- <template v-if="entry.visitorId">
163
+ <template v-if="entry.type === 'assigned' || entry.visitorId">
152
164
  <div class="text-body-2 font-weight-medium">{{ entry.name ?? "N/A" }}</div>
153
165
  <div class="text-caption text-grey-darken-1">
154
166
  <span v-if="entry.nric">NRIC: {{ entry.nric }}</span>
155
167
  <span v-if="entry.contact" class="ml-2">· {{ entry.contact }}</span>
168
+ <span v-if="entry.email && !entry.nric && !entry.contact">{{ entry.email }}</span>
156
169
  </div>
157
170
  <div class="text-caption text-grey-darken-1">
158
171
  <span v-if="entry.company">{{ entry.company }}</span>
@@ -536,6 +536,7 @@ async function confirmAssign() {
536
536
  unit: props.unit._id,
537
537
  type: selectedCardType.value,
538
538
  acm_url: encryptedAcmUrl.value,
539
+ id: props.selectedCardInUnit?._id,
539
540
  });
540
541
  emit("assign-to-person", {
541
542
  card: props.selectedCardInUnit,