@frigear-nu/shifts 0.1.3 → 0.1.4
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/dist/module.json +1 -1
- package/dist/module.mjs +5 -3
- package/dist/runtime/app/components/ShiftBulkSlideover.vue +4 -2
- package/dist/runtime/app/components/ShiftCheckInCard.vue +6 -3
- package/dist/runtime/app/components/ShiftFeedSlideover.vue +8 -6
- package/dist/runtime/app/components/ShiftNowCard.vue +2 -2
- package/dist/runtime/app/components/ShiftPerksCard.vue +2 -1
- package/dist/runtime/app/components/ShiftSlideover.vue +2 -1
- package/dist/runtime/app/pages/lead.vue +14 -7
- package/dist/runtime/app/pages/shift.vue +10 -5
- package/dist/runtime/app/tabs/HomeSwaps.vue +6 -3
- package/dist/runtime/app/tabs/Shifts.vue +16 -8
- package/dist/runtime/dashboard.d.ts +2 -2
- package/dist/runtime/dashboard.js +5 -0
- package/dist/runtime/i18n/lang/da.json +31 -2
- package/dist/runtime/i18n/lang/en.json +31 -2
- package/package.json +29 -25
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -8,7 +8,7 @@ import { SHIFTS_DEFAULT_PAGES, SHIFTS_HUB_SHIFT_SEGMENT, SHIFTS_HOME_TAB, shifts
|
|
|
8
8
|
import { resolveCrewHomePath } from '@frigear-nu/crew/utils';
|
|
9
9
|
import { isValidTimeZone } from '@frigear-nu/module-kit/time';
|
|
10
10
|
import { normalizeReminderBatch, normalizeReminderOffsets } from '../dist/runtime/utils/reminders.js';
|
|
11
|
-
import {
|
|
11
|
+
import { shiftsDashboardItems, SHIFTS_DASHBOARD } from '../dist/runtime/dashboard.js';
|
|
12
12
|
import { extendNotificationTopics } from '@frigear-nu/notify/utils';
|
|
13
13
|
import { shiftsNotificationTopics } from '../dist/runtime/notifications.js';
|
|
14
14
|
import { normalizeAutomationBatch } from '../dist/runtime/utils/checkin.js';
|
|
@@ -277,8 +277,10 @@ const module$1 = defineNuxtModule({
|
|
|
277
277
|
}
|
|
278
278
|
extendNotificationTopics(nuxt, shiftsNotificationTopics);
|
|
279
279
|
if (hasNuxtModule("@frigear-nu/dashboard")) {
|
|
280
|
-
const { extendDashboard } = await import('@frigear-nu/dashboard/utils');
|
|
281
|
-
|
|
280
|
+
const { extendDashboard, extendHubDashboard } = await import('@frigear-nu/dashboard/utils');
|
|
281
|
+
const dashboardItems = shiftsDashboardItems((path) => resolver.resolve(path));
|
|
282
|
+
extendDashboard(nuxt, SHIFTS_DASHBOARD, dashboardItems);
|
|
283
|
+
extendHubDashboard(nuxt, dashboardItems, { except: SHIFTS_DASHBOARD });
|
|
282
284
|
}
|
|
283
285
|
}
|
|
284
286
|
});
|
|
@@ -125,21 +125,23 @@ async function save(event) {
|
|
|
125
125
|
type="time"
|
|
126
126
|
:aria-label="t('admin.slotEnd', 'Ends')"
|
|
127
127
|
/>
|
|
128
|
-
<
|
|
128
|
+
<TooltipButton
|
|
129
129
|
v-if="state.slots.length > 1"
|
|
130
130
|
icon="i-lucide-x"
|
|
131
131
|
color="neutral"
|
|
132
132
|
variant="ghost"
|
|
133
133
|
:aria-label="t('admin.removeSlot', 'Remove time slot')"
|
|
134
|
+
:tooltip="t('admin.removeSlotHint', 'No shifts are made for this time slot')"
|
|
134
135
|
@click="state.slots.splice(index, 1)"
|
|
135
136
|
/>
|
|
136
137
|
</div>
|
|
137
|
-
<
|
|
138
|
+
<TooltipButton
|
|
138
139
|
icon="i-lucide-plus"
|
|
139
140
|
color="neutral"
|
|
140
141
|
variant="outline"
|
|
141
142
|
class="self-start"
|
|
142
143
|
:label="t('admin.addSlot', 'Add time slot')"
|
|
144
|
+
:tooltip="t('admin.addSlotHint', 'Make shifts at another time of day too')"
|
|
143
145
|
@click="addSlot"
|
|
144
146
|
/>
|
|
145
147
|
</div>
|
|
@@ -156,12 +156,13 @@ const columns = computed(() => [
|
|
|
156
156
|
>
|
|
157
157
|
<div class="flex items-center justify-between gap-2">
|
|
158
158
|
<span class="text-highlighted text-sm font-semibold">{{ teamName(item.teamId) }}</span>
|
|
159
|
-
<
|
|
159
|
+
<TooltipButton
|
|
160
160
|
icon="i-lucide-x"
|
|
161
161
|
color="neutral"
|
|
162
162
|
variant="ghost"
|
|
163
163
|
size="sm"
|
|
164
164
|
:aria-label="t('checkIn.removeOverride', 'Remove the override of {team}', { team: teamName(item.teamId) })"
|
|
165
|
+
:tooltip="t('checkIn.removeOverrideHint', 'Once saved, the team checks in like everyone else')"
|
|
165
166
|
@click="overrides.splice(index, 1)"
|
|
166
167
|
/>
|
|
167
168
|
</div>
|
|
@@ -191,10 +192,11 @@ const columns = computed(() => [
|
|
|
191
192
|
</div>
|
|
192
193
|
<template #footer>
|
|
193
194
|
<div class="flex justify-end gap-2">
|
|
194
|
-
<
|
|
195
|
+
<TooltipButton
|
|
195
196
|
color="neutral"
|
|
196
197
|
variant="outline"
|
|
197
198
|
:label="t('checkIn.reset', 'Discard changes')"
|
|
199
|
+
:tooltip="t('checkIn.resetHint', 'Throw away your unsaved changes')"
|
|
198
200
|
@click="reset"
|
|
199
201
|
/>
|
|
200
202
|
<UButton
|
|
@@ -212,9 +214,10 @@ const columns = computed(() => [
|
|
|
212
214
|
:loading="status === 'pending' && !stations.length"
|
|
213
215
|
>
|
|
214
216
|
<template #actions>
|
|
215
|
-
<
|
|
217
|
+
<TooltipButton
|
|
216
218
|
icon="i-lucide-plus"
|
|
217
219
|
:label="t('stations.create', 'Add station')"
|
|
220
|
+
:tooltip="t('stations.createHint', 'Set up a QR screen where a team checks in')"
|
|
218
221
|
:disabled="!teams.length"
|
|
219
222
|
@click="addStation"
|
|
220
223
|
/>
|
|
@@ -84,12 +84,12 @@ async function copy(value) {
|
|
|
84
84
|
:ui="{ trailing: 'pe-1' }"
|
|
85
85
|
>
|
|
86
86
|
<template #trailing>
|
|
87
|
-
<
|
|
87
|
+
<TooltipButton
|
|
88
88
|
color="neutral"
|
|
89
89
|
variant="link"
|
|
90
90
|
size="sm"
|
|
91
91
|
icon="i-lucide-copy"
|
|
92
|
-
:
|
|
92
|
+
:tooltip="t('feed.copyHint', 'Copy the link to the clipboard')"
|
|
93
93
|
@click="copy(minted.webcalUrl)"
|
|
94
94
|
/>
|
|
95
95
|
</template>
|
|
@@ -106,12 +106,12 @@ async function copy(value) {
|
|
|
106
106
|
:ui="{ trailing: 'pe-1' }"
|
|
107
107
|
>
|
|
108
108
|
<template #trailing>
|
|
109
|
-
<
|
|
109
|
+
<TooltipButton
|
|
110
110
|
color="neutral"
|
|
111
111
|
variant="link"
|
|
112
112
|
size="sm"
|
|
113
113
|
icon="i-lucide-copy"
|
|
114
|
-
:
|
|
114
|
+
:tooltip="t('feed.copyHint', 'Copy the link to the clipboard')"
|
|
115
115
|
@click="copy(minted.url)"
|
|
116
116
|
/>
|
|
117
117
|
</template>
|
|
@@ -141,21 +141,23 @@ async function copy(value) {
|
|
|
141
141
|
</p>
|
|
142
142
|
|
|
143
143
|
<div class="flex flex-wrap gap-2">
|
|
144
|
-
<
|
|
144
|
+
<TooltipButton
|
|
145
145
|
:loading="busy"
|
|
146
146
|
:color="minted ? 'neutral' : 'primary'"
|
|
147
147
|
:variant="minted ? 'outline' : 'solid'"
|
|
148
148
|
:icon="status.active ? 'i-lucide-refresh-cw' : 'i-lucide-link'"
|
|
149
149
|
:label="status.active ? t('feed.replace', 'Replace link') : t('feed.create', 'Create calendar link')"
|
|
150
|
+
:tooltip="status.active ? t('feed.replaceHint', 'The old link stops working; calendars must subscribe again') : t('feed.createHint', 'Get a private link your calendar app can subscribe to')"
|
|
150
151
|
@click="mint"
|
|
151
152
|
/>
|
|
152
|
-
<
|
|
153
|
+
<TooltipButton
|
|
153
154
|
v-if="status.active"
|
|
154
155
|
:disabled="busy"
|
|
155
156
|
color="error"
|
|
156
157
|
variant="outline"
|
|
157
158
|
icon="i-lucide-trash-2"
|
|
158
159
|
:label="t('feed.revoke', 'Revoke link')"
|
|
160
|
+
:tooltip="t('feed.revokeHint', 'The link stops working at once and calendars stop updating')"
|
|
159
161
|
@click="revoke"
|
|
160
162
|
/>
|
|
161
163
|
</div>
|
|
@@ -21,11 +21,11 @@ const nameOf = (person) => person.name ?? `#${person.userId}`;
|
|
|
21
21
|
:loading="loading"
|
|
22
22
|
>
|
|
23
23
|
<template #actions>
|
|
24
|
-
<
|
|
24
|
+
<TooltipButton
|
|
25
25
|
icon="i-lucide-rotate-ccw"
|
|
26
26
|
color="neutral"
|
|
27
27
|
variant="ghost"
|
|
28
|
-
:
|
|
28
|
+
:tooltip="t('now.refreshHint', 'Reload who is working right now')"
|
|
29
29
|
@click="refresh()"
|
|
30
30
|
/>
|
|
31
31
|
</template>
|
|
@@ -42,9 +42,10 @@ const columns = computed(() => [
|
|
|
42
42
|
:loading="status === 'pending' && !perks.length"
|
|
43
43
|
>
|
|
44
44
|
<template #actions>
|
|
45
|
-
<
|
|
45
|
+
<TooltipButton
|
|
46
46
|
icon="i-lucide-plus"
|
|
47
47
|
:label="t('perks.create', 'Add perk')"
|
|
48
|
+
:tooltip="t('perks.createHint', 'Volunteers earn it for every shift they attend')"
|
|
48
49
|
@click="add"
|
|
49
50
|
/>
|
|
50
51
|
</template>
|
|
@@ -266,12 +266,13 @@ const capacityLabel = computed(() => current.value.effectiveCapacity === null ?
|
|
|
266
266
|
/>
|
|
267
267
|
</div>
|
|
268
268
|
</div>
|
|
269
|
-
<
|
|
269
|
+
<TooltipButton
|
|
270
270
|
size="sm"
|
|
271
271
|
color="neutral"
|
|
272
272
|
variant="outline"
|
|
273
273
|
:disabled="!candidate.eligible"
|
|
274
274
|
:label="t('admin.assignAction', 'Assign {name}', { name: candidate.name ?? '' })"
|
|
275
|
+
:tooltip="t('admin.assignActionHint', 'Puts them on this shift at once')"
|
|
275
276
|
@click="assign(candidate)"
|
|
276
277
|
/>
|
|
277
278
|
</li>
|
|
@@ -82,11 +82,12 @@ useHead({ title: () => t("lead.title", "Lead {team}", { team: team.value ? tr(te
|
|
|
82
82
|
:description="team ? tr(team.operationName) : t('lead.description', 'Your team\'s shifts, attendance and swaps.')"
|
|
83
83
|
>
|
|
84
84
|
<template #links>
|
|
85
|
-
<
|
|
85
|
+
<TooltipButton
|
|
86
86
|
icon="i-lucide-megaphone"
|
|
87
87
|
color="neutral"
|
|
88
88
|
variant="outline"
|
|
89
89
|
:label="t('broadcast.leadAction', 'Message team')"
|
|
90
|
+
:tooltip="t('broadcast.leadActionHint', 'Send a message to everyone on this team')"
|
|
90
91
|
@click="actions.broadcastToTeam(teamId, team ? tr(team.teamName) : '')"
|
|
91
92
|
/>
|
|
92
93
|
<UButton
|
|
@@ -132,15 +133,17 @@ useHead({ title: () => t("lead.title", "Lead {team}", { team: team.value ? tr(te
|
|
|
132
133
|
>
|
|
133
134
|
{{ t("swaps.noLongerAllowed", "No longer allowed by the schedule's settings: reject it.") }}
|
|
134
135
|
</span>
|
|
135
|
-
<
|
|
136
|
+
<TooltipButton
|
|
136
137
|
color="neutral"
|
|
137
138
|
variant="outline"
|
|
138
139
|
:label="t('swaps.rejectAction', 'Reject swap')"
|
|
140
|
+
:tooltip="t('swaps.rejectActionHint', 'Both keep their shifts; the shift is open for offers again')"
|
|
139
141
|
@click="reject(swap)"
|
|
140
142
|
/>
|
|
141
|
-
<
|
|
143
|
+
<TooltipButton
|
|
142
144
|
v-if="actions.swapAllowed(swap)"
|
|
143
145
|
:label="t('swaps.approveAction', 'Approve swap')"
|
|
146
|
+
:tooltip="t('swaps.approveActionHint', 'The shifts change hands as the two agreed')"
|
|
144
147
|
@click="approve(swap)"
|
|
145
148
|
/>
|
|
146
149
|
</div>
|
|
@@ -204,20 +207,22 @@ useHead({ title: () => t("lead.title", "Lead {team}", { team: team.value ? tr(te
|
|
|
204
207
|
variant="subtle"
|
|
205
208
|
:label="exceptionLabel(item)"
|
|
206
209
|
/>
|
|
207
|
-
<
|
|
210
|
+
<TooltipButton
|
|
208
211
|
v-if="item.assignment.status !== 'attended'"
|
|
209
212
|
size="xs"
|
|
210
213
|
color="neutral"
|
|
211
214
|
variant="outline"
|
|
212
215
|
:label="t('admin.markAttended', 'Mark attended')"
|
|
216
|
+
:tooltip="t('admin.markAttendedHint', 'Record that they worked this shift')"
|
|
213
217
|
@click="mark(item.assignment, 'attended')"
|
|
214
218
|
/>
|
|
215
|
-
<
|
|
219
|
+
<TooltipButton
|
|
216
220
|
v-if="item.assignment.status === 'assigned'"
|
|
217
221
|
size="xs"
|
|
218
222
|
color="neutral"
|
|
219
223
|
variant="ghost"
|
|
220
224
|
:label="t('admin.markNoShow', 'Mark no-show')"
|
|
225
|
+
:tooltip="t('admin.markNoShowHint', 'Record that they did not turn up for this shift')"
|
|
221
226
|
@click="mark(item.assignment, 'no_show')"
|
|
222
227
|
/>
|
|
223
228
|
</div>
|
|
@@ -271,20 +276,22 @@ useHead({ title: () => t("lead.title", "Lead {team}", { team: team.value ? tr(te
|
|
|
271
276
|
:label="statusLabel(assignee.status)"
|
|
272
277
|
:colors="{ assigned: 'info', attended: 'success', no_show: 'error' }"
|
|
273
278
|
/>
|
|
274
|
-
<
|
|
279
|
+
<TooltipButton
|
|
275
280
|
v-if="assignee.status !== 'attended'"
|
|
276
281
|
size="xs"
|
|
277
282
|
color="neutral"
|
|
278
283
|
variant="outline"
|
|
279
284
|
:label="t('admin.markAttended', 'Mark attended')"
|
|
285
|
+
:tooltip="t('admin.markAttendedHint', 'Record that they worked this shift')"
|
|
280
286
|
@click="mark(assignee, 'attended')"
|
|
281
287
|
/>
|
|
282
|
-
<
|
|
288
|
+
<TooltipButton
|
|
283
289
|
v-if="assignee.status !== 'no_show'"
|
|
284
290
|
size="xs"
|
|
285
291
|
color="neutral"
|
|
286
292
|
variant="ghost"
|
|
287
293
|
:label="t('admin.markNoShow', 'Mark no-show')"
|
|
294
|
+
:tooltip="t('admin.markNoShowHint', 'Record that they did not turn up for this shift')"
|
|
288
295
|
@click="mark(assignee, 'no_show')"
|
|
289
296
|
/>
|
|
290
297
|
</div>
|
|
@@ -405,18 +405,20 @@ useHead({ title: () => t("shift.title", "My shift") });
|
|
|
405
405
|
v-if="offer.status === 'offered' && swap.status === 'offered' && canAccept(offer)"
|
|
406
406
|
class="flex gap-2"
|
|
407
407
|
>
|
|
408
|
-
<
|
|
408
|
+
<TooltipButton
|
|
409
409
|
color="neutral"
|
|
410
410
|
variant="outline"
|
|
411
411
|
size="sm"
|
|
412
412
|
:loading="busy"
|
|
413
413
|
:label="t('shift.rejectOffer', 'Turn down offer')"
|
|
414
|
+
:tooltip="t('shift.rejectOfferHint', 'You keep the shift; other offers stay open')"
|
|
414
415
|
@click="decide(offer, false)"
|
|
415
416
|
/>
|
|
416
|
-
<
|
|
417
|
+
<TooltipButton
|
|
417
418
|
size="sm"
|
|
418
419
|
:loading="busy"
|
|
419
420
|
:label="t('shift.acceptOffer', 'Accept offer')"
|
|
421
|
+
:tooltip="t('shift.acceptOfferHint', 'The shift goes to them, after a lead approves if needed')"
|
|
420
422
|
@click="decide(offer, true)"
|
|
421
423
|
/>
|
|
422
424
|
</div>
|
|
@@ -440,29 +442,32 @@ useHead({ title: () => t("shift.title", "My shift") });
|
|
|
440
442
|
#footer
|
|
441
443
|
>
|
|
442
444
|
<div class="flex flex-wrap justify-end gap-2">
|
|
443
|
-
<
|
|
445
|
+
<TooltipButton
|
|
444
446
|
v-if="swap && swap.status !== 'accepted'"
|
|
445
447
|
color="neutral"
|
|
446
448
|
variant="outline"
|
|
447
449
|
:loading="busy"
|
|
448
450
|
:label="t('shift.withdrawSwap', 'Withdraw swap')"
|
|
451
|
+
:tooltip="t('shift.withdrawSwapHint', 'You keep the shift and the offers you got are turned down')"
|
|
449
452
|
@click="withdrawSwap"
|
|
450
453
|
/>
|
|
451
454
|
<template v-else-if="canOpenSwap">
|
|
452
|
-
<
|
|
455
|
+
<TooltipButton
|
|
453
456
|
v-if="kinds.includes('release')"
|
|
454
457
|
:color="kinds.includes('trade') ? 'neutral' : 'primary'"
|
|
455
458
|
:variant="kinds.includes('trade') ? 'outline' : 'solid'"
|
|
456
459
|
icon="i-lucide-hand"
|
|
457
460
|
:loading="busy"
|
|
458
461
|
:label="t('shift.openRelease', 'Give shift away')"
|
|
462
|
+
:tooltip="t('shift.openReleaseHint', 'Others on your team can offer to take it over')"
|
|
459
463
|
@click="openSwap('release')"
|
|
460
464
|
/>
|
|
461
|
-
<
|
|
465
|
+
<TooltipButton
|
|
462
466
|
v-if="kinds.includes('trade')"
|
|
463
467
|
icon="i-lucide-arrow-left-right"
|
|
464
468
|
:loading="busy"
|
|
465
469
|
:label="t('shift.openTrade', 'Offer shift for a trade')"
|
|
470
|
+
:tooltip="t('shift.openTradeHint', 'Others on your team can offer one of their shifts for it')"
|
|
466
471
|
@click="openSwap('trade')"
|
|
467
472
|
/>
|
|
468
473
|
</template>
|
|
@@ -155,10 +155,11 @@ async function withdraw(swap) {
|
|
|
155
155
|
class="w-full"
|
|
156
156
|
/>
|
|
157
157
|
</UFormField>
|
|
158
|
-
<
|
|
158
|
+
<TooltipButton
|
|
159
159
|
:loading="busy"
|
|
160
160
|
:disabled="!giving[swap.id] && !swap.wantedAssignmentId"
|
|
161
161
|
:label="t('swaps.tradeAction', 'Offer a trade')"
|
|
162
|
+
:tooltip="t('swaps.tradeActionHint', 'The owner decides whether to take your shift for theirs')"
|
|
162
163
|
@click="offer(swap)"
|
|
163
164
|
/>
|
|
164
165
|
</div>
|
|
@@ -166,9 +167,10 @@ async function withdraw(swap) {
|
|
|
166
167
|
v-else-if="!swap.myOffer"
|
|
167
168
|
class="flex justify-end"
|
|
168
169
|
>
|
|
169
|
-
<
|
|
170
|
+
<TooltipButton
|
|
170
171
|
:loading="busy"
|
|
171
172
|
:label="t('swaps.offerAction', 'Take the shift over')"
|
|
173
|
+
:tooltip="t('swaps.offerActionHint', 'The owner decides whether to give you the shift')"
|
|
172
174
|
@click="offer(swap)"
|
|
173
175
|
/>
|
|
174
176
|
</div>
|
|
@@ -179,12 +181,13 @@ async function withdraw(swap) {
|
|
|
179
181
|
<span class="text-muted text-sm">
|
|
180
182
|
{{ swap.myOffer.offeredShift ? t("swaps.youGive", "You give {team}, {when}", { team: tr(swap.myOffer.offeredShift.teamName), when: format.range(swap.myOffer.offeredShift.startsAt, swap.myOffer.offeredShift.endsAt) }) : t("swaps.youTake", "You take the shift over") }}
|
|
181
183
|
</span>
|
|
182
|
-
<
|
|
184
|
+
<TooltipButton
|
|
183
185
|
color="neutral"
|
|
184
186
|
variant="outline"
|
|
185
187
|
size="sm"
|
|
186
188
|
:loading="busy"
|
|
187
189
|
:label="t('swaps.withdrawOffer', 'Withdraw offer')"
|
|
190
|
+
:tooltip="t('swaps.withdrawOfferHint', 'Your offer is taken back and you keep your own shifts')"
|
|
188
191
|
@click="withdraw(swap)"
|
|
189
192
|
/>
|
|
190
193
|
</div>
|
|
@@ -210,32 +210,36 @@ async function reject(swap) {
|
|
|
210
210
|
/>
|
|
211
211
|
</div>
|
|
212
212
|
<div class="flex flex-wrap gap-2">
|
|
213
|
-
<
|
|
213
|
+
<TooltipButton
|
|
214
214
|
color="neutral"
|
|
215
215
|
variant="outline"
|
|
216
216
|
icon="i-lucide-pencil"
|
|
217
217
|
:label="t('admin.editSchedule', 'Edit schedule')"
|
|
218
|
+
:tooltip="t('admin.editScheduleHint', 'Change the name and the limits per shift and day')"
|
|
218
219
|
@click="edit"
|
|
219
220
|
/>
|
|
220
|
-
<
|
|
221
|
+
<TooltipButton
|
|
221
222
|
color="neutral"
|
|
222
223
|
variant="outline"
|
|
223
224
|
icon="i-lucide-copy"
|
|
224
225
|
:label="t('admin.copyShort', 'Copy shifts')"
|
|
226
|
+
:tooltip="t('admin.copyShortHint', 'Copy the roles and shifts of another schedule into this one')"
|
|
225
227
|
@click="copy"
|
|
226
228
|
/>
|
|
227
|
-
<
|
|
229
|
+
<TooltipButton
|
|
228
230
|
color="neutral"
|
|
229
231
|
variant="outline"
|
|
230
232
|
icon="i-lucide-calendar-plus"
|
|
231
233
|
:label="t('admin.bulkTitle', 'Create shifts')"
|
|
234
|
+
:tooltip="t('admin.bulkTitleHint', 'Make shifts for one team over a range of days')"
|
|
232
235
|
:disabled="!teams.length"
|
|
233
236
|
@click="bulk"
|
|
234
237
|
/>
|
|
235
|
-
<
|
|
238
|
+
<TooltipButton
|
|
236
239
|
v-if="selected?.status === 'draft'"
|
|
237
240
|
icon="i-lucide-send"
|
|
238
241
|
:label="t('admin.publishAction', 'Publish schedule')"
|
|
242
|
+
:tooltip="t('admin.publishActionHint', 'Volunteers see their shifts; it cannot go back to draft')"
|
|
239
243
|
@click="publish"
|
|
240
244
|
/>
|
|
241
245
|
</div>
|
|
@@ -326,9 +330,10 @@ async function reject(swap) {
|
|
|
326
330
|
:description="t('admin.rolesDescription', 'Roles such as team lead or bartender, with the lowest team role that may hold them.')"
|
|
327
331
|
>
|
|
328
332
|
<template #actions>
|
|
329
|
-
<
|
|
333
|
+
<TooltipButton
|
|
330
334
|
icon="i-lucide-plus"
|
|
331
335
|
:label="t('admin.createRole', 'Add shift role')"
|
|
336
|
+
:tooltip="t('admin.createRoleHint', 'Add a role such as team lead that people hold on a shift')"
|
|
332
337
|
:disabled="!teams.length"
|
|
333
338
|
@click="addRole"
|
|
334
339
|
/>
|
|
@@ -420,15 +425,17 @@ async function reject(swap) {
|
|
|
420
425
|
>
|
|
421
426
|
{{ t("swaps.noLongerAllowed", "No longer allowed by the schedule's settings: reject it.") }}
|
|
422
427
|
</span>
|
|
423
|
-
<
|
|
428
|
+
<TooltipButton
|
|
424
429
|
color="neutral"
|
|
425
430
|
variant="outline"
|
|
426
431
|
:label="t('swaps.rejectAction', 'Reject swap')"
|
|
432
|
+
:tooltip="t('swaps.rejectActionHint', 'Both keep their shifts; the shift is open for offers again')"
|
|
427
433
|
@click="reject(swap)"
|
|
428
434
|
/>
|
|
429
|
-
<
|
|
435
|
+
<TooltipButton
|
|
430
436
|
v-if="actions.swapAllowed(swap)"
|
|
431
437
|
:label="t('swaps.approveAction', 'Approve swap')"
|
|
438
|
+
:tooltip="t('swaps.approveActionHint', 'The shifts change hands as the two agreed')"
|
|
432
439
|
@click="approve(swap)"
|
|
433
440
|
/>
|
|
434
441
|
</div>
|
|
@@ -444,9 +451,10 @@ async function reject(swap) {
|
|
|
444
451
|
:loading="schedulesStatus === 'pending' && !schedules.length"
|
|
445
452
|
>
|
|
446
453
|
<template #actions>
|
|
447
|
-
<
|
|
454
|
+
<TooltipButton
|
|
448
455
|
icon="i-lucide-plus"
|
|
449
456
|
:label="t('admin.newSchedule', 'New schedule')"
|
|
457
|
+
:tooltip="t('admin.newScheduleHint', 'Start a draft schedule; volunteers see it once published')"
|
|
450
458
|
:disabled="!hasOperation"
|
|
451
459
|
@click="newSchedule"
|
|
452
460
|
/>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { DashboardItem } from '@frigear-nu/dashboard/types';
|
|
2
|
-
/** The dashboard shifts adds its items to when `@frigear-nu/dashboard` is installed. */
|
|
2
|
+
/** The dashboard shifts adds its items to when `@frigear-nu/dashboard` is installed (and the hub's, `extendHubDashboard`). */
|
|
3
3
|
export declare const SHIFTS_DASHBOARD = "crew.home";
|
|
4
4
|
/**
|
|
5
|
-
* The items shifts adds to `crew.home
|
|
5
|
+
* The items shifts adds to `crew.home` and the hub. `resolve` turns a path relative to `module.ts` into an absolute one. Kept apart
|
|
6
6
|
* from the module so a test can register them without a Nuxt build.
|
|
7
7
|
*/
|
|
8
8
|
export declare function shiftsDashboardItems(resolve: (path: string) => string): DashboardItem[];
|
|
@@ -8,6 +8,8 @@ export function shiftsDashboardItems(resolve) {
|
|
|
8
8
|
title: "My next shift",
|
|
9
9
|
titleKey: "shifts.dashboard.next",
|
|
10
10
|
order: 20,
|
|
11
|
+
// The shift's time, team and place, and a button to its pass.
|
|
12
|
+
size: { cols: 2, minCols: 1 },
|
|
11
13
|
permission: shiftsAccess.permissions.read
|
|
12
14
|
},
|
|
13
15
|
{
|
|
@@ -16,6 +18,8 @@ export function shiftsDashboardItems(resolve) {
|
|
|
16
18
|
title: "My team on shift now",
|
|
17
19
|
titleKey: "shifts.dashboard.onNow",
|
|
18
20
|
order: 30,
|
|
21
|
+
// A row per team with a lead badge and the names of who is on.
|
|
22
|
+
size: { cols: 2, minCols: 1 },
|
|
19
23
|
permission: shiftsAccess.permissions.read
|
|
20
24
|
},
|
|
21
25
|
{
|
|
@@ -24,6 +28,7 @@ export function shiftsDashboardItems(resolve) {
|
|
|
24
28
|
title: "Open swaps",
|
|
25
29
|
titleKey: "shifts.dashboard.swaps",
|
|
26
30
|
order: 40,
|
|
31
|
+
size: { cols: 1, maxCols: 2 },
|
|
27
32
|
permission: shiftsAccess.permissions.read
|
|
28
33
|
}
|
|
29
34
|
];
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
"shifts": {
|
|
15
15
|
"admin": {
|
|
16
16
|
"addSlot": "Tilføj tidsrum",
|
|
17
|
+
"addSlotHint": "Opret også vagter på et andet tidspunkt af dagen",
|
|
17
18
|
"allTeams": "Alle hold",
|
|
18
19
|
"alreadyOn": "På vagten",
|
|
19
20
|
"anyRole": "Alle på holdet",
|
|
@@ -26,6 +27,7 @@
|
|
|
26
27
|
"peerHelp": "Et bytte er gennemført, så snart ejeren accepterer et tilbud."
|
|
27
28
|
},
|
|
28
29
|
"assignAction": "Sæt {name} på",
|
|
30
|
+
"assignActionHint": "Sætter personen på vagten med det samme",
|
|
29
31
|
"assignAnyway": "Sæt på alligevel",
|
|
30
32
|
"assignFailed": "Kunne ikke sætte {name} på",
|
|
31
33
|
"assignPerson": "Sæt en person på",
|
|
@@ -37,6 +39,7 @@
|
|
|
37
39
|
"bulkDescription": "Hvert tidsrum på hver dag, for ét hold. Tiderne er lokal tid i {zone}; et tidsrum der slutter før det starter, slutter næste dag.",
|
|
38
40
|
"bulkSubmit": "Opret {count} vagter",
|
|
39
41
|
"bulkTitle": "Opret vagter",
|
|
42
|
+
"bulkTitleHint": "Opret vagter for ét hold over en række dage",
|
|
40
43
|
"cancelAssignment": "Fjern fra vagt",
|
|
41
44
|
"cancelAssignmentDescription": "Pladsen bliver ledig, og et åbent bytte af den annulleres.",
|
|
42
45
|
"cancelAssignmentTitle": "Tag {name} af vagten?",
|
|
@@ -46,6 +49,7 @@
|
|
|
46
49
|
"copied": "Kopierede vagterne til {name}",
|
|
47
50
|
"copyDescription": "Kopierer vagtrollerne og vagterne, ikke hvem der tager dem, samt dækning, overdragelse og godkendelse, som erstatter denne vagtplans. Hold fra en anden operation matches på navn.",
|
|
48
51
|
"copyShort": "Kopiér vagter",
|
|
52
|
+
"copyShortHint": "Kopiér roller og vagter fra en anden vagtplan ind i denne",
|
|
49
53
|
"copySubmit": "Kopiér vagter",
|
|
50
54
|
"copyTitle": "Kopiér fra en anden vagtplan",
|
|
51
55
|
"coverage": "Dækning",
|
|
@@ -57,6 +61,7 @@
|
|
|
57
61
|
"flexibleHelp": "Frivillige må give vagter væk og overtage andres."
|
|
58
62
|
},
|
|
59
63
|
"createRole": "Tilføj vagtrolle",
|
|
64
|
+
"createRoleHint": "Tilføj en rolle som holdleder, som folk har på en vagt",
|
|
60
65
|
"createSchedule": "Opret vagtplan",
|
|
61
66
|
"deleteRole": "Slet vagtrolle",
|
|
62
67
|
"deleteRoleDescription": "En rolle som vagter eller tildelinger bruger, kan ikke slettes.",
|
|
@@ -73,6 +78,7 @@
|
|
|
73
78
|
"draftNote": "Kladde: frivillige ser ikke vagtplanen, før du offentliggør den.",
|
|
74
79
|
"editRole": "Redigér vagtrolle",
|
|
75
80
|
"editSchedule": "Redigér vagtplan",
|
|
81
|
+
"editScheduleHint": "Ret navnet og grænserne pr. vagt og dag",
|
|
76
82
|
"endsAfterStart": "En vagt skal slutte efter den starter.",
|
|
77
83
|
"endsAt": "Slutter",
|
|
78
84
|
"filledOf": "{filled} af {capacity}",
|
|
@@ -94,7 +100,9 @@
|
|
|
94
100
|
},
|
|
95
101
|
"lastDay": "Sidste dag",
|
|
96
102
|
"markAttended": "Markér mødt",
|
|
103
|
+
"markAttendedHint": "Registrér, at personen har taget vagten",
|
|
97
104
|
"markNoShow": "Markér udeblevet",
|
|
105
|
+
"markNoShowHint": "Registrér, at personen ikke mødte op til vagten",
|
|
98
106
|
"marked": "Markerede {name} {status}",
|
|
99
107
|
"maxPerShift": "Maksimum pr. vagt",
|
|
100
108
|
"maxPerShiftHelp": "Bruges når en vagt ikke har en kapacitet. Tom er ingen grænse.",
|
|
@@ -108,6 +116,7 @@
|
|
|
108
116
|
"nameRequired": "Giv vagtplanen et navn.",
|
|
109
117
|
"newRole": "Ny vagtrolle",
|
|
110
118
|
"newSchedule": "Ny vagtplan",
|
|
119
|
+
"newScheduleHint": "Start en kladde; frivillige ser den, når den er offentliggjort",
|
|
111
120
|
"noCandidates": "Ingen på holdet passer. Folk skal have en godkendt plads eller en rolle tilføjet i Hold.",
|
|
112
121
|
"noFeature": "Intet sted på pladskortet",
|
|
113
122
|
"noPendingSwaps": "Ingen bytter venter på godkendelse.",
|
|
@@ -127,12 +136,14 @@
|
|
|
127
136
|
"openShift": "Åbn vagt",
|
|
128
137
|
"people": "Personer",
|
|
129
138
|
"publishAction": "Offentliggør vagtplan",
|
|
139
|
+
"publishActionHint": "Frivillige ser deres vagter; den kan ikke blive kladde igen",
|
|
130
140
|
"publishDescription": "Frivillige ser deres vagter i den og kan bytte dem. En offentliggjort vagtplan kan ikke blive kladde igen.",
|
|
131
141
|
"publishFailed": "Kunne ikke offentliggøre vagtplanen",
|
|
132
142
|
"publishTitle": "Offentliggør {name}?",
|
|
133
143
|
"published": "Offentliggjorde {name}",
|
|
134
144
|
"rangeInvalid": "Den sidste dag skal være samme dag som eller efter den første.",
|
|
135
145
|
"removeSlot": "Fjern tidsrum",
|
|
146
|
+
"removeSlotHint": "Der oprettes ingen vagter i dette tidsrum",
|
|
136
147
|
"roleDeleted": "Slettede {name}",
|
|
137
148
|
"roleDescription": "En rolle folk har på en vagt, som holdleder eller bartender, med den laveste holdrolle der må have den.",
|
|
138
149
|
"roleNameRequired": "Giv rollen et navn.",
|
|
@@ -210,6 +221,7 @@
|
|
|
210
221
|
"emptyDescription": "Skriv til et hold, eller til dem med en rolle og op på det.",
|
|
211
222
|
"failed": "Beskeden kunne ikke sendes",
|
|
212
223
|
"leadAction": "Skriv til holdet",
|
|
224
|
+
"leadActionHint": "Send en besked til alle på holdet",
|
|
213
225
|
"leadAudience": "Alle på {team}.",
|
|
214
226
|
"leadTitle": "Skriv til {team}",
|
|
215
227
|
"message": "Besked",
|
|
@@ -273,7 +285,9 @@
|
|
|
273
285
|
"overrides": "Pr. hold",
|
|
274
286
|
"overridesHint": "Et hold kan tjekke ind på en anden måde, fx ved sin egen bar.",
|
|
275
287
|
"removeOverride": "Fjern undtagelsen for {team}",
|
|
288
|
+
"removeOverrideHint": "Når du gemmer, tjekker holdet ind som alle andre",
|
|
276
289
|
"reset": "Kassér ændringer",
|
|
290
|
+
"resetHint": "Kassér dine ugemte ændringer",
|
|
277
291
|
"save": "Gem indstillinger for tjek ind",
|
|
278
292
|
"saveFailed": "Kunne ikke gemme indstillingerne for tjek ind",
|
|
279
293
|
"saved": "Gemte tjek ind for {name}",
|
|
@@ -318,9 +332,10 @@
|
|
|
318
332
|
"activeUnused": "Oprettet {made}, endnu ikke læst. Det vises ikke igen: erstat det for at få et nyt.",
|
|
319
333
|
"close": "Luk",
|
|
320
334
|
"copied": "Linket er kopieret",
|
|
321
|
-
"
|
|
335
|
+
"copyHint": "Kopiér linket til udklipsholderen",
|
|
322
336
|
"copyFailed": "Kunne ikke kopiere: markér linket og kopiér det manuelt",
|
|
323
337
|
"create": "Opret kalenderlink",
|
|
338
|
+
"createHint": "Få et privat link, som din kalenderapp kan abonnere på",
|
|
324
339
|
"description": "Dine vagter som kalenderabonnement til Apple Kalender, Google Kalender eller Outlook. Linket er hemmeligt: alle, der har det, kan se dine vagter.",
|
|
325
340
|
"https": "Webadresse",
|
|
326
341
|
"httpsHelp": "Til kalendere, der spørger efter en URL.",
|
|
@@ -330,9 +345,11 @@
|
|
|
330
345
|
"onceTitle": "Kopiér linket nu",
|
|
331
346
|
"open": "Åbn i min kalenderapp",
|
|
332
347
|
"replace": "Erstat link",
|
|
348
|
+
"replaceHint": "Det gamle link holder op med at virke; kalendere skal abonnere igen",
|
|
333
349
|
"replaceDescription": "Det gamle link holder op med at virke: kalendere, der abonnerer på det, opdateres ikke, før du abonnerer med det nye.",
|
|
334
350
|
"replaceTitle": "Erstat kalenderlinket?",
|
|
335
351
|
"revoke": "Træk link tilbage",
|
|
352
|
+
"revokeHint": "Linket holder straks op med at virke, og kalendere opdateres ikke mere",
|
|
336
353
|
"revokeDescription": "Kalendere, der abonnerer på det, opdateres ikke mere. Du kan oprette et nyt link når som helst.",
|
|
337
354
|
"revokeFailed": "Kalenderlinket kunne ikke trækkes tilbage",
|
|
338
355
|
"revokeTitle": "Træk kalenderlinket tilbage?",
|
|
@@ -384,7 +401,7 @@
|
|
|
384
401
|
"loadFailed": "Kunne ikke hente hvem der arbejder.",
|
|
385
402
|
"noLead": "Ingen leder på vagt",
|
|
386
403
|
"nobody": "ingen",
|
|
387
|
-
"
|
|
404
|
+
"refreshHint": "Hent igen, hvem der arbejder lige nu",
|
|
388
405
|
"title": "På vagt nu"
|
|
389
406
|
},
|
|
390
407
|
"offerStatuses": {
|
|
@@ -398,6 +415,7 @@
|
|
|
398
415
|
"amountMin": "Mindst 1.",
|
|
399
416
|
"cardDescription": "Det frivillige får for hver vagt, de møder op til, givet når vagten slutter. Voucher-appen udleverer det.",
|
|
400
417
|
"create": "Tilføj fordel",
|
|
418
|
+
"createHint": "Frivillige optjener det for hver vagt, de møder op til",
|
|
401
419
|
"delete": "Slet fordel",
|
|
402
420
|
"deleteDescription": "Vagter giver den ikke længere. En fordel, som nogen allerede har optjent, kan ikke slettes: ret den i stedet.",
|
|
403
421
|
"deleteFailed": "Fordelen kunne ikke slettes",
|
|
@@ -465,6 +483,7 @@
|
|
|
465
483
|
},
|
|
466
484
|
"shift": {
|
|
467
485
|
"acceptOffer": "Acceptér tilbud",
|
|
486
|
+
"acceptOfferHint": "Vagten går til dem, efter en leders godkendelse hvis det kræves",
|
|
468
487
|
"back": "Mine vagter",
|
|
469
488
|
"cannotSwap": "Denne vagt kan ikke byttes nu.",
|
|
470
489
|
"details": "Vagt",
|
|
@@ -483,7 +502,9 @@
|
|
|
483
502
|
"offerRejected": "Afviste tilbuddet fra {name}",
|
|
484
503
|
"offerTake": "Overtager din vagt",
|
|
485
504
|
"openRelease": "Giv vagten væk",
|
|
505
|
+
"openReleaseHint": "Andre på dit hold kan tilbyde at overtage den",
|
|
486
506
|
"openTrade": "Tilbyd vagten til bytte",
|
|
507
|
+
"openTradeHint": "Andre på dit hold kan tilbyde en af deres vagter for den",
|
|
487
508
|
"operation": "Operation",
|
|
488
509
|
"pass": "Check-in-pas",
|
|
489
510
|
"passAlt": "QR-kode til check-in",
|
|
@@ -501,6 +522,7 @@
|
|
|
501
522
|
"perkUpcoming": "Det får du",
|
|
502
523
|
"perks": "Det giver vagten",
|
|
503
524
|
"rejectOffer": "Afvis tilbud",
|
|
525
|
+
"rejectOfferHint": "Du beholder vagten; andre tilbud forbliver åbne",
|
|
504
526
|
"role": "Rolle",
|
|
505
527
|
"status": "Status",
|
|
506
528
|
"swap": "Bytte",
|
|
@@ -521,6 +543,7 @@
|
|
|
521
543
|
"when": "Hvornår",
|
|
522
544
|
"where": "Hvor",
|
|
523
545
|
"withdrawSwap": "Træk bytte tilbage",
|
|
546
|
+
"withdrawSwapHint": "Du beholder vagten, og de tilbud, du har fået, afvises",
|
|
524
547
|
"withdrawSwapDescription": "Du beholder vagten. De tilbud du har fået, afvises.",
|
|
525
548
|
"withdrawSwapTitle": "Træk byttet tilbage?"
|
|
526
549
|
},
|
|
@@ -537,6 +560,7 @@
|
|
|
537
560
|
"stations": {
|
|
538
561
|
"cardDescription": "Skærme med en QR-kode, der skifter hvert 30. sekund. Åbn en på en tablet ved baren; holdets ledere kan også åbne den.",
|
|
539
562
|
"create": "Tilføj station",
|
|
563
|
+
"createHint": "Opsæt en QR-skærm, hvor et hold tjekker ind",
|
|
540
564
|
"delete": "Slet station",
|
|
541
565
|
"deleteDescription": "Skærmen holder op med at virke med det samme. Frivillige tjekker ind ved en anden station, med placering eller hos en leder.",
|
|
542
566
|
"deleteFailed": "Kunne ikke slette stationen",
|
|
@@ -578,6 +602,7 @@
|
|
|
578
602
|
},
|
|
579
603
|
"swaps": {
|
|
580
604
|
"approveAction": "Godkend bytte",
|
|
605
|
+
"approveActionHint": "Vagterne skifter hænder, som de to har aftalt",
|
|
581
606
|
"approveFailed": "Kunne ikke godkende byttet",
|
|
582
607
|
"approved": "Godkendte byttet af {name}s vagt",
|
|
583
608
|
"description": "Vagter, andre vil bytte eller give væk, som du kan tage. Et bytte kræver en af dine egne vagter til gengæld.",
|
|
@@ -591,12 +616,14 @@
|
|
|
591
616
|
"noLongerAllowed": "Ikke længere tilladt af vagtplanens indstillinger: afvis det.",
|
|
592
617
|
"nothingToTrade": "Du har ingen kommende vagt at bytte.",
|
|
593
618
|
"offerAction": "Overtag vagten",
|
|
619
|
+
"offerActionHint": "Ejeren beslutter, om du får vagten",
|
|
594
620
|
"offerFailed": "Kunne ikke give tilbuddet",
|
|
595
621
|
"offerWithdrawFailed": "Kunne ikke trække tilbuddet tilbage",
|
|
596
622
|
"offerWithdrawn": "Trak dit tilbud tilbage",
|
|
597
623
|
"offered": "Tilbød at tage {name}s vagt",
|
|
598
624
|
"pickShift": "Vælg en af dine vagter",
|
|
599
625
|
"rejectAction": "Afvis bytte",
|
|
626
|
+
"rejectActionHint": "Begge beholder deres vagter; vagten er åben for tilbud igen",
|
|
600
627
|
"rejectDescription": "Begge beholder deres vagter, og vagten er åben for andre tilbud igen.",
|
|
601
628
|
"rejectFailed": "Kunne ikke afvise byttet",
|
|
602
629
|
"rejectTitle": "Afvis dette bytte?",
|
|
@@ -604,10 +631,12 @@
|
|
|
604
631
|
"seeOffers": "Se tilbud",
|
|
605
632
|
"title": "Åbne bytter",
|
|
606
633
|
"tradeAction": "Tilbyd et bytte",
|
|
634
|
+
"tradeActionHint": "Ejeren beslutter, om din vagt skal byttes for deres",
|
|
607
635
|
"tradeOffered": "Tilbød {name} et bytte",
|
|
608
636
|
"tradesWith": "{from} bytter den med {to} for {team}, {when}",
|
|
609
637
|
"wants": "Vil have din vagt på {team}, {when}",
|
|
610
638
|
"withdrawOffer": "Træk tilbud tilbage",
|
|
639
|
+
"withdrawOfferHint": "Dit tilbud trækkes tilbage, og du beholder dine egne vagter",
|
|
611
640
|
"youGive": "Du giver {team}, {when}",
|
|
612
641
|
"youTake": "Du overtager vagten"
|
|
613
642
|
},
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
"shifts": {
|
|
15
15
|
"admin": {
|
|
16
16
|
"addSlot": "Add time slot",
|
|
17
|
+
"addSlotHint": "Make shifts at another time of day too",
|
|
17
18
|
"allTeams": "All teams",
|
|
18
19
|
"alreadyOn": "On the shift",
|
|
19
20
|
"anyRole": "Anybody on the team",
|
|
@@ -26,6 +27,7 @@
|
|
|
26
27
|
"peerHelp": "A swap is done as soon as the owner accepts an offer."
|
|
27
28
|
},
|
|
28
29
|
"assignAction": "Assign {name}",
|
|
30
|
+
"assignActionHint": "Puts them on this shift at once",
|
|
29
31
|
"assignAnyway": "Assign anyway",
|
|
30
32
|
"assignFailed": "Could not assign {name}",
|
|
31
33
|
"assignPerson": "Assign a person",
|
|
@@ -37,6 +39,7 @@
|
|
|
37
39
|
"bulkDescription": "Every time slot on every day, for one team. Times are local times in {zone}; a slot that ends before it starts ends the next day.",
|
|
38
40
|
"bulkSubmit": "Create {count} shifts",
|
|
39
41
|
"bulkTitle": "Create shifts",
|
|
42
|
+
"bulkTitleHint": "Make shifts for one team over a range of days",
|
|
40
43
|
"cancelAssignment": "Remove from shift",
|
|
41
44
|
"cancelAssignmentDescription": "Their place is freed and an open swap of it is cancelled.",
|
|
42
45
|
"cancelAssignmentTitle": "Take {name} off this shift?",
|
|
@@ -46,6 +49,7 @@
|
|
|
46
49
|
"copied": "Copied the shifts into {name}",
|
|
47
50
|
"copyDescription": "Copies the shift roles and shifts, not who works them, and the coverage, handover and approval, which replace this schedule's. Teams of another operation are matched by name.",
|
|
48
51
|
"copyShort": "Copy shifts",
|
|
52
|
+
"copyShortHint": "Copy the roles and shifts of another schedule into this one",
|
|
49
53
|
"copySubmit": "Copy shifts",
|
|
50
54
|
"copyTitle": "Copy from another schedule",
|
|
51
55
|
"coverage": "Coverage",
|
|
@@ -57,6 +61,7 @@
|
|
|
57
61
|
"flexibleHelp": "Volunteers may give shifts away and take others over."
|
|
58
62
|
},
|
|
59
63
|
"createRole": "Add shift role",
|
|
64
|
+
"createRoleHint": "Add a role such as team lead that people hold on a shift",
|
|
60
65
|
"createSchedule": "Create schedule",
|
|
61
66
|
"deleteRole": "Delete shift role",
|
|
62
67
|
"deleteRoleDescription": "A role that shifts or assignments use cannot be deleted.",
|
|
@@ -73,6 +78,7 @@
|
|
|
73
78
|
"draftNote": "Draft: volunteers do not see this schedule until you publish it.",
|
|
74
79
|
"editRole": "Edit shift role",
|
|
75
80
|
"editSchedule": "Edit schedule",
|
|
81
|
+
"editScheduleHint": "Change the name and the limits per shift and day",
|
|
76
82
|
"endsAfterStart": "A shift must end after it starts.",
|
|
77
83
|
"endsAt": "Ends",
|
|
78
84
|
"filledOf": "{filled} of {capacity}",
|
|
@@ -94,7 +100,9 @@
|
|
|
94
100
|
},
|
|
95
101
|
"lastDay": "Last day",
|
|
96
102
|
"markAttended": "Mark attended",
|
|
103
|
+
"markAttendedHint": "Record that they worked this shift",
|
|
97
104
|
"markNoShow": "Mark no-show",
|
|
105
|
+
"markNoShowHint": "Record that they did not turn up for this shift",
|
|
98
106
|
"marked": "Marked {name} {status}",
|
|
99
107
|
"maxPerShift": "Maximum per shift",
|
|
100
108
|
"maxPerShiftHelp": "Used when a shift sets no capacity. Empty is no limit.",
|
|
@@ -108,6 +116,7 @@
|
|
|
108
116
|
"nameRequired": "Give the schedule a name.",
|
|
109
117
|
"newRole": "New shift role",
|
|
110
118
|
"newSchedule": "New schedule",
|
|
119
|
+
"newScheduleHint": "Start a draft schedule; volunteers see it once published",
|
|
111
120
|
"noCandidates": "Nobody on the team matches. People need an approved place or a role added in Teams.",
|
|
112
121
|
"noFeature": "No place on the venue layout",
|
|
113
122
|
"noPendingSwaps": "No swaps wait for approval.",
|
|
@@ -127,12 +136,14 @@
|
|
|
127
136
|
"openShift": "Open shift",
|
|
128
137
|
"people": "People",
|
|
129
138
|
"publishAction": "Publish schedule",
|
|
139
|
+
"publishActionHint": "Volunteers see their shifts; it cannot go back to draft",
|
|
130
140
|
"publishDescription": "Volunteers see their shifts in it and can swap them. A published schedule cannot go back to draft.",
|
|
131
141
|
"publishFailed": "Could not publish the schedule",
|
|
132
142
|
"publishTitle": "Publish {name}?",
|
|
133
143
|
"published": "Published {name}",
|
|
134
144
|
"rangeInvalid": "The last day must be on or after the first.",
|
|
135
145
|
"removeSlot": "Remove time slot",
|
|
146
|
+
"removeSlotHint": "No shifts are made for this time slot",
|
|
136
147
|
"roleDeleted": "Deleted {name}",
|
|
137
148
|
"roleDescription": "A role people hold on a shift, such as team lead or bartender, with the lowest team role that may hold it.",
|
|
138
149
|
"roleNameRequired": "Give the role a name.",
|
|
@@ -210,6 +221,7 @@
|
|
|
210
221
|
"emptyDescription": "Message a team, or the people with a role and up on it.",
|
|
211
222
|
"failed": "Could not send the message",
|
|
212
223
|
"leadAction": "Message team",
|
|
224
|
+
"leadActionHint": "Send a message to everyone on this team",
|
|
213
225
|
"leadAudience": "Everyone on {team}.",
|
|
214
226
|
"leadTitle": "Message {team}",
|
|
215
227
|
"message": "Message",
|
|
@@ -273,7 +285,9 @@
|
|
|
273
285
|
"overrides": "Per team",
|
|
274
286
|
"overridesHint": "A team can check in differently, e.g. at its own bar.",
|
|
275
287
|
"removeOverride": "Remove the override of {team}",
|
|
288
|
+
"removeOverrideHint": "Once saved, the team checks in like everyone else",
|
|
276
289
|
"reset": "Discard changes",
|
|
290
|
+
"resetHint": "Throw away your unsaved changes",
|
|
277
291
|
"save": "Save check-in settings",
|
|
278
292
|
"saveFailed": "Could not save the check-in settings",
|
|
279
293
|
"saved": "Saved the check-in of {name}",
|
|
@@ -318,9 +332,10 @@
|
|
|
318
332
|
"activeUnused": "Made {made}, not read yet. It is not shown again: replace it to get a new one.",
|
|
319
333
|
"close": "Close",
|
|
320
334
|
"copied": "Copied the link",
|
|
321
|
-
"
|
|
335
|
+
"copyHint": "Copy the link to the clipboard",
|
|
322
336
|
"copyFailed": "Could not copy: select the link and copy it by hand",
|
|
323
337
|
"create": "Create calendar link",
|
|
338
|
+
"createHint": "Get a private link your calendar app can subscribe to",
|
|
324
339
|
"description": "Your shifts as a calendar feed for Apple Calendar, Google Calendar or Outlook. The link is secret: anyone who has it can see your shifts.",
|
|
325
340
|
"https": "Web address",
|
|
326
341
|
"httpsHelp": "For calendars that ask for a URL.",
|
|
@@ -330,9 +345,11 @@
|
|
|
330
345
|
"onceTitle": "Copy the link now",
|
|
331
346
|
"open": "Open in my calendar app",
|
|
332
347
|
"replace": "Replace link",
|
|
348
|
+
"replaceHint": "The old link stops working; calendars must subscribe again",
|
|
333
349
|
"replaceDescription": "The old link stops working: calendars subscribed to it stop updating until you subscribe with the new one.",
|
|
334
350
|
"replaceTitle": "Replace the calendar link?",
|
|
335
351
|
"revoke": "Revoke link",
|
|
352
|
+
"revokeHint": "The link stops working at once and calendars stop updating",
|
|
336
353
|
"revokeDescription": "Calendars subscribed to it stop updating. You can create a new link at any time.",
|
|
337
354
|
"revokeFailed": "Could not revoke the calendar link",
|
|
338
355
|
"revokeTitle": "Revoke the calendar link?",
|
|
@@ -384,7 +401,7 @@
|
|
|
384
401
|
"loadFailed": "Could not load who is working.",
|
|
385
402
|
"noLead": "No lead on duty",
|
|
386
403
|
"nobody": "nobody",
|
|
387
|
-
"
|
|
404
|
+
"refreshHint": "Reload who is working right now",
|
|
388
405
|
"title": "Working now"
|
|
389
406
|
},
|
|
390
407
|
"offerStatuses": {
|
|
@@ -398,6 +415,7 @@
|
|
|
398
415
|
"amountMin": "At least 1.",
|
|
399
416
|
"cardDescription": "What volunteers earn for every shift they attend, given at the end of the shift. The vouchers app hands it out.",
|
|
400
417
|
"create": "Add perk",
|
|
418
|
+
"createHint": "Volunteers earn it for every shift they attend",
|
|
401
419
|
"delete": "Delete perk",
|
|
402
420
|
"deleteDescription": "Shifts no longer earn it. A perk somebody earned already cannot be deleted: change it instead.",
|
|
403
421
|
"deleteFailed": "Could not delete the perk",
|
|
@@ -465,6 +483,7 @@
|
|
|
465
483
|
},
|
|
466
484
|
"shift": {
|
|
467
485
|
"acceptOffer": "Accept offer",
|
|
486
|
+
"acceptOfferHint": "The shift goes to them, after a lead approves if needed",
|
|
468
487
|
"back": "My shifts",
|
|
469
488
|
"cannotSwap": "This shift cannot be swapped now.",
|
|
470
489
|
"details": "Shift",
|
|
@@ -483,7 +502,9 @@
|
|
|
483
502
|
"offerRejected": "Turned down the offer of {name}",
|
|
484
503
|
"offerTake": "Takes your shift over",
|
|
485
504
|
"openRelease": "Give shift away",
|
|
505
|
+
"openReleaseHint": "Others on your team can offer to take it over",
|
|
486
506
|
"openTrade": "Offer shift for a trade",
|
|
507
|
+
"openTradeHint": "Others on your team can offer one of their shifts for it",
|
|
487
508
|
"operation": "Operation",
|
|
488
509
|
"pass": "Check-in pass",
|
|
489
510
|
"passAlt": "QR code to check in",
|
|
@@ -501,6 +522,7 @@
|
|
|
501
522
|
"perkUpcoming": "You will earn this",
|
|
502
523
|
"perks": "What this shift earns",
|
|
503
524
|
"rejectOffer": "Turn down offer",
|
|
525
|
+
"rejectOfferHint": "You keep the shift; other offers stay open",
|
|
504
526
|
"role": "Role",
|
|
505
527
|
"status": "Status",
|
|
506
528
|
"swap": "Swap",
|
|
@@ -521,6 +543,7 @@
|
|
|
521
543
|
"when": "When",
|
|
522
544
|
"where": "Where",
|
|
523
545
|
"withdrawSwap": "Withdraw swap",
|
|
546
|
+
"withdrawSwapHint": "You keep the shift and the offers you got are turned down",
|
|
524
547
|
"withdrawSwapDescription": "You keep the shift. The offers you got are turned down.",
|
|
525
548
|
"withdrawSwapTitle": "Withdraw the swap?"
|
|
526
549
|
},
|
|
@@ -537,6 +560,7 @@
|
|
|
537
560
|
"stations": {
|
|
538
561
|
"cardDescription": "Screens with a QR code that changes every 30 seconds. Open one on a tablet at the bar; leads of the team can open it too.",
|
|
539
562
|
"create": "Add station",
|
|
563
|
+
"createHint": "Set up a QR screen where a team checks in",
|
|
540
564
|
"delete": "Delete station",
|
|
541
565
|
"deleteDescription": "Its screen stops working at once. Volunteers check in at another station, by location or with a lead.",
|
|
542
566
|
"deleteFailed": "Could not delete the station",
|
|
@@ -578,6 +602,7 @@
|
|
|
578
602
|
},
|
|
579
603
|
"swaps": {
|
|
580
604
|
"approveAction": "Approve swap",
|
|
605
|
+
"approveActionHint": "The shifts change hands as the two agreed",
|
|
581
606
|
"approveFailed": "Could not approve the swap",
|
|
582
607
|
"approved": "Approved the swap of {name}",
|
|
583
608
|
"description": "Shifts others want to trade or give away that you can take. A trade asks for one of your own shifts in return.",
|
|
@@ -591,12 +616,14 @@
|
|
|
591
616
|
"noLongerAllowed": "No longer allowed by the schedule's settings: reject it.",
|
|
592
617
|
"nothingToTrade": "You have no upcoming shift to trade.",
|
|
593
618
|
"offerAction": "Take the shift over",
|
|
619
|
+
"offerActionHint": "The owner decides whether to give you the shift",
|
|
594
620
|
"offerFailed": "Could not make the offer",
|
|
595
621
|
"offerWithdrawFailed": "Could not withdraw the offer",
|
|
596
622
|
"offerWithdrawn": "Withdrew your offer",
|
|
597
623
|
"offered": "Offered to take the shift of {name}",
|
|
598
624
|
"pickShift": "Choose one of your shifts",
|
|
599
625
|
"rejectAction": "Reject swap",
|
|
626
|
+
"rejectActionHint": "Both keep their shifts; the shift is open for offers again",
|
|
600
627
|
"rejectDescription": "Both people keep their shifts, and the shift is open for other offers again.",
|
|
601
628
|
"rejectFailed": "Could not reject the swap",
|
|
602
629
|
"rejectTitle": "Reject this swap?",
|
|
@@ -604,10 +631,12 @@
|
|
|
604
631
|
"seeOffers": "See offers",
|
|
605
632
|
"title": "Open swaps",
|
|
606
633
|
"tradeAction": "Offer a trade",
|
|
634
|
+
"tradeActionHint": "The owner decides whether to take your shift for theirs",
|
|
607
635
|
"tradeOffered": "Offered {name} a trade",
|
|
608
636
|
"tradesWith": "{from} trades it with {to} for {team}, {when}",
|
|
609
637
|
"wants": "Wants your shift on {team}, {when}",
|
|
610
638
|
"withdrawOffer": "Withdraw offer",
|
|
639
|
+
"withdrawOfferHint": "Your offer is taken back and you keep your own shifts",
|
|
611
640
|
"youGive": "You give {team}, {when}",
|
|
612
641
|
"youTake": "You take the shift over"
|
|
613
642
|
},
|
package/package.json
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frigear-nu/shifts",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "Shifts for the frigear ecosystem: schedules, shift roles, assignment, swaps, QR check-in and who is on shift now, per operation, built on crew and teams.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"frigear-module",
|
|
7
|
+
"nuxt-module"
|
|
8
|
+
],
|
|
5
9
|
"homepage": "https://docs.frigear.dev/modules/volunteering/shifts",
|
|
6
10
|
"repository": {
|
|
7
11
|
"type": "git",
|
|
@@ -35,15 +39,15 @@
|
|
|
35
39
|
"playground"
|
|
36
40
|
],
|
|
37
41
|
"dependencies": {
|
|
38
|
-
"@frigear-nu/auth": "^0.6.
|
|
39
|
-
"@frigear-nu/crew": "^0.1.
|
|
40
|
-
"@frigear-nu/maps": "^0.0.
|
|
41
|
-
"@frigear-nu/module-kit": "^1.3.
|
|
42
|
-
"@frigear-nu/notify": "^0.3.
|
|
43
|
-
"@frigear-nu/operations": "^0.1.
|
|
44
|
-
"@frigear-nu/teams": "^0.1.
|
|
45
|
-
"@frigear-nu/ui": "^0.2.
|
|
46
|
-
"@frigear-nu/users": "^3.1.
|
|
42
|
+
"@frigear-nu/auth": "^0.6.9",
|
|
43
|
+
"@frigear-nu/crew": "^0.1.4",
|
|
44
|
+
"@frigear-nu/maps": "^0.0.4",
|
|
45
|
+
"@frigear-nu/module-kit": "^1.3.13",
|
|
46
|
+
"@frigear-nu/notify": "^0.3.2",
|
|
47
|
+
"@frigear-nu/operations": "^0.1.3",
|
|
48
|
+
"@frigear-nu/teams": "^0.1.4",
|
|
49
|
+
"@frigear-nu/ui": "^0.2.12",
|
|
50
|
+
"@frigear-nu/users": "^3.1.6",
|
|
47
51
|
"@libsql/client": "^0.18.0",
|
|
48
52
|
"@nuxt/kit": "^4.6.4",
|
|
49
53
|
"@vueuse/core": "^15.0.0",
|
|
@@ -55,12 +59,12 @@
|
|
|
55
59
|
"zod": "^4.6.7"
|
|
56
60
|
},
|
|
57
61
|
"peerDependencies": {
|
|
58
|
-
"@frigear-nu/admin": "^0.5.
|
|
59
|
-
"@frigear-nu/dashboard": "^0.1.
|
|
60
|
-
"@frigear-nu/email-templates": "^0.1.
|
|
61
|
-
"@frigear-nu/menu": "^0.4.
|
|
62
|
-
"@frigear-nu/mobile": "^0.6.
|
|
63
|
-
"@frigear-nu/widget": "^0.4.
|
|
62
|
+
"@frigear-nu/admin": "^0.5.3",
|
|
63
|
+
"@frigear-nu/dashboard": "^0.1.4",
|
|
64
|
+
"@frigear-nu/email-templates": "^0.1.6",
|
|
65
|
+
"@frigear-nu/menu": "^0.4.2",
|
|
66
|
+
"@frigear-nu/mobile": "^0.6.5",
|
|
67
|
+
"@frigear-nu/widget": "^0.4.4",
|
|
64
68
|
"@nuxt/ui": "^4.12.0",
|
|
65
69
|
"@nuxthub/core": "^0.10.12"
|
|
66
70
|
},
|
|
@@ -88,15 +92,15 @@
|
|
|
88
92
|
}
|
|
89
93
|
},
|
|
90
94
|
"devDependencies": {
|
|
91
|
-
"@frigear-nu/admin": "^0.5.
|
|
92
|
-
"@frigear-nu/dashboard": "^0.1.
|
|
93
|
-
"@frigear-nu/email-templates": "^0.1.
|
|
94
|
-
"@frigear-nu/forms": "^0.5.
|
|
95
|
-
"@frigear-nu/menu": "^0.4.
|
|
96
|
-
"@frigear-nu/mobile": "^0.6.
|
|
97
|
-
"@frigear-nu/preferences": "^0.3.
|
|
98
|
-
"@frigear-nu/push": "^0.1.
|
|
99
|
-
"@frigear-nu/widget": "^0.4.
|
|
95
|
+
"@frigear-nu/admin": "^0.5.3",
|
|
96
|
+
"@frigear-nu/dashboard": "^0.1.4",
|
|
97
|
+
"@frigear-nu/email-templates": "^0.1.6",
|
|
98
|
+
"@frigear-nu/forms": "^0.5.6",
|
|
99
|
+
"@frigear-nu/menu": "^0.4.2",
|
|
100
|
+
"@frigear-nu/mobile": "^0.6.5",
|
|
101
|
+
"@frigear-nu/preferences": "^0.3.6",
|
|
102
|
+
"@frigear-nu/push": "^0.1.4",
|
|
103
|
+
"@frigear-nu/widget": "^0.4.4",
|
|
100
104
|
"@nuxt/devtools": "^4.2.0",
|
|
101
105
|
"@nuxt/eslint-config": "^1.17.0",
|
|
102
106
|
"@nuxt/module-builder": "^1.0.4",
|