@escalated-dev/escalated 0.6.0 → 0.7.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.
- package/LICENSE +21 -21
- package/README.md +125 -2
- package/package.json +40 -5
- package/src/components/ActiveChatsPanel.vue +246 -0
- package/src/components/ActivityTimeline.stories.js +55 -0
- package/src/components/ActivityTimeline.vue +83 -66
- package/src/components/AdminDashboard.stories.js +1423 -0
- package/src/components/AgentLoadIndicator.stories.js +37 -0
- package/src/components/AgentLoadIndicator.vue +49 -0
- package/src/components/AgentPerformanceCard.vue +44 -0
- package/src/components/ArticleEditor.vue +82 -0
- package/src/components/AssigneeSelect.vue +37 -23
- package/src/components/AttachmentList.vue +65 -37
- package/src/components/AuditLogEntry.vue +95 -0
- package/src/components/BulkActionBar.vue +166 -97
- package/src/components/CategoryTree.vue +89 -0
- package/src/components/ChartWidget.vue +46 -0
- package/src/components/ChatActionBar.vue +226 -0
- package/src/components/ChatBubble.vue +162 -0
- package/src/components/ChatComposer.vue +308 -0
- package/src/components/ChatQueue.vue +222 -0
- package/src/components/ChatThread.vue +197 -0
- package/src/components/CollisionWarning.stories.js +30 -0
- package/src/components/CollisionWarning.vue +68 -0
- package/src/components/ConditionalFieldRules.vue +135 -0
- package/src/components/ContextPanel.vue +66 -0
- package/src/components/ContextPanelSection.vue +65 -0
- package/src/components/CustomFieldRenderer.vue +159 -0
- package/src/components/EscalatedLayout.vue +424 -70
- package/src/components/FileDropzone.vue +57 -41
- package/src/components/FollowButton.stories.js +30 -0
- package/src/components/FollowButton.vue +88 -63
- package/src/components/KeyboardShortcutHelp.vue +213 -123
- package/src/components/KnowledgePanel.vue +122 -0
- package/src/components/KpiCard.stories.js +32 -0
- package/src/components/KpiCard.vue +88 -0
- package/src/components/MacroDropdown.vue +150 -90
- package/src/components/MentionDropdown.vue +154 -0
- package/src/components/MetricComparison.vue +89 -0
- package/src/components/PercentileChart.vue +67 -0
- package/src/components/PeriodSelector.vue +98 -0
- package/src/components/PermissionMatrix.vue +107 -0
- package/src/components/PinnedNotes.vue +129 -90
- package/src/components/PluginSlot.vue +68 -62
- package/src/components/PresenceIndicator.vue +138 -28
- package/src/components/PriorityBadge.stories.js +33 -0
- package/src/components/PriorityBadge.vue +46 -39
- package/src/components/QuickFilters.vue +65 -49
- package/src/components/ReplyComposer.vue +207 -30
- package/src/components/ReplyThread.vue +111 -21
- package/src/components/ReportChart.vue +395 -0
- package/src/components/ReportExportButton.vue +108 -0
- package/src/components/SatisfactionRating.vue +180 -128
- package/src/components/SaveViewDialog.vue +172 -0
- package/src/components/SavedViewSidebar.vue +208 -0
- package/src/components/ScheduleEditor.vue +104 -0
- package/src/components/SideConversation.vue +165 -0
- package/src/components/SideConversationList.vue +147 -0
- package/src/components/SkillTagManager.vue +79 -0
- package/src/components/SlaComplianceChart.vue +46 -0
- package/src/components/SlaTimer.stories.js +35 -0
- package/src/components/SlaTimer.vue +62 -49
- package/src/components/SnoozeButton.vue +247 -0
- package/src/components/StatsCard.stories.js +24 -0
- package/src/components/StatsCard.vue +18 -6
- package/src/components/StatusBadge.stories.js +53 -0
- package/src/components/StatusBadge.vue +78 -46
- package/src/components/TagSelect.vue +84 -53
- package/src/components/TicketFilters.vue +247 -46
- package/src/components/TicketLinkPanel.vue +193 -0
- package/src/components/TicketList.vue +536 -74
- package/src/components/TicketMergeDialog.vue +157 -0
- package/src/components/TicketSidebar.vue +167 -99
- package/src/components/TicketSplitDialog.vue +98 -0
- package/src/components/TicketTypeSelector.vue +21 -0
- package/src/components/TotpInput.stories.js +9 -0
- package/src/components/TotpInput.vue +81 -0
- package/src/components/TwoFactorSetup.vue +113 -0
- package/src/components/VariableTokenInput.vue +111 -0
- package/src/components/WorkflowActionConfig.vue +287 -0
- package/src/components/WorkflowActionList.vue +350 -0
- package/src/components/WorkflowConditionBuilder.vue +265 -0
- package/src/components/WorkflowTriggerSelector.vue +125 -0
- package/src/composables/useChat.js +187 -0
- package/src/composables/useDebouncedSearch.js +38 -0
- package/src/composables/useI18n.js +80 -80
- package/src/composables/useKeyboardShortcuts.js +46 -46
- package/src/composables/useMentions.js +134 -0
- package/src/composables/usePluginExtensions.js +159 -67
- package/src/composables/usePluginHooks.js +65 -0
- package/src/composables/useRealtime.js +182 -0
- package/src/defineEscalatedPlugin.js +76 -50
- package/src/index.js +77 -28
- package/src/locales/ar.json +727 -0
- package/src/locales/de.json +678 -430
- package/src/locales/en.json +717 -430
- package/src/locales/es.json +679 -430
- package/src/locales/fr.json +680 -431
- package/src/locales/index.js +12 -2
- package/src/locales/it.json +727 -0
- package/src/locales/ja.json +727 -0
- package/src/locales/ko.json +727 -0
- package/src/locales/nl.json +727 -0
- package/src/locales/pl.json +727 -0
- package/src/locales/pt-BR.json +727 -0
- package/src/locales/ru.json +727 -0
- package/src/locales/tr.json +727 -0
- package/src/locales/zh-CN.json +727 -0
- package/src/pages/Admin/ApiTokens/Index.vue +381 -217
- package/src/pages/Admin/AuditLog/Index.vue +154 -0
- package/src/pages/Admin/BusinessHours/Form.vue +172 -0
- package/src/pages/Admin/BusinessHours/Index.vue +113 -0
- package/src/pages/Admin/CannedResponses/Index.vue +82 -25
- package/src/pages/Admin/Capacity/Index.vue +134 -0
- package/src/pages/Admin/CustomFields/Form.vue +195 -0
- package/src/pages/Admin/CustomFields/Index.vue +134 -0
- package/src/pages/Admin/CustomObjects/Form.vue +202 -0
- package/src/pages/Admin/CustomObjects/Index.vue +127 -0
- package/src/pages/Admin/CustomObjects/Records.vue +228 -0
- package/src/pages/Admin/Departments/Form.vue +35 -11
- package/src/pages/Admin/Departments/Index.vue +74 -21
- package/src/pages/Admin/EscalationRules/Form.vue +86 -25
- package/src/pages/Admin/EscalationRules/Index.vue +158 -37
- package/src/pages/Admin/Import/Connect.vue +95 -0
- package/src/pages/Admin/Import/Index.vue +102 -0
- package/src/pages/Admin/Import/Mapping.vue +110 -0
- package/src/pages/Admin/Import/Progress.vue +153 -0
- package/src/pages/Admin/Import/Review.vue +76 -0
- package/src/pages/Admin/KnowledgeBase/Articles/Form.vue +142 -0
- package/src/pages/Admin/KnowledgeBase/Articles/Index.vue +195 -0
- package/src/pages/Admin/KnowledgeBase/Categories/Index.vue +193 -0
- package/src/pages/Admin/Macros/Index.vue +448 -287
- package/src/pages/Admin/Plugins/Index.vue +327 -197
- package/src/pages/Admin/Reports/AgentDetail.vue +132 -0
- package/src/pages/Admin/Reports/AgentMetrics.vue +115 -0
- package/src/pages/Admin/Reports/AgentRanking.vue +246 -0
- package/src/pages/Admin/Reports/Cohorts.vue +180 -0
- package/src/pages/Admin/Reports/Comparison.vue +141 -0
- package/src/pages/Admin/Reports/CsatReport.vue +127 -0
- package/src/pages/Admin/Reports/Dashboard.vue +226 -0
- package/src/pages/Admin/Reports/ResolutionTimes.vue +164 -0
- package/src/pages/Admin/Reports/ResponseTimes.vue +164 -0
- package/src/pages/Admin/Reports/SlaReport.vue +162 -0
- package/src/pages/Admin/Reports/SlaTrends.vue +183 -0
- package/src/pages/Admin/Reports.vue +206 -101
- package/src/pages/Admin/Roles/Form.vue +71 -0
- package/src/pages/Admin/Roles/Index.vue +122 -0
- package/src/pages/Admin/Settings/CsatSettings.vue +165 -0
- package/src/pages/Admin/Settings/DataRetention.vue +182 -0
- package/src/pages/Admin/Settings/EmailSettings.vue +243 -0
- package/src/pages/Admin/Settings/Sandbox.vue +135 -0
- package/src/pages/Admin/Settings/SsoSettings.vue +218 -0
- package/src/pages/Admin/Settings/TwoFactor.vue +110 -0
- package/src/pages/Admin/Settings.vue +847 -99
- package/src/pages/Admin/Skills/Form.vue +53 -0
- package/src/pages/Admin/Skills/Index.vue +94 -0
- package/src/pages/Admin/SlaPolicies/Form.vue +62 -19
- package/src/pages/Admin/SlaPolicies/Index.vue +85 -23
- package/src/pages/Admin/Statuses/Form.vue +114 -0
- package/src/pages/Admin/Statuses/Index.vue +153 -0
- package/src/pages/Admin/Tags/Index.vue +121 -35
- package/src/pages/Admin/Tickets/Index.vue +96 -9
- package/src/pages/Admin/Tickets/Show.vue +130 -37
- package/src/pages/Admin/Webhooks/DeliveryLog.vue +120 -0
- package/src/pages/Admin/Webhooks/Form.vue +110 -0
- package/src/pages/Admin/Webhooks/Index.vue +136 -0
- package/src/pages/Admin/Workflows/Builder.vue +207 -0
- package/src/pages/Admin/Workflows/Index.vue +235 -0
- package/src/pages/Admin/Workflows/Logs.vue +286 -0
- package/src/pages/Agent/Dashboard.vue +311 -186
- package/src/pages/Agent/TicketIndex.vue +80 -6
- package/src/pages/Agent/TicketShow.vue +399 -60
- package/src/pages/Customer/Create.vue +37 -10
- package/src/pages/Customer/Index.vue +9 -2
- package/src/pages/Customer/KnowledgeBase/Article.vue +129 -0
- package/src/pages/Customer/KnowledgeBase/Index.vue +151 -0
- package/src/pages/Customer/Show.vue +69 -63
- package/src/pages/Guest/Create.vue +40 -15
- package/src/pages/Guest/Show.vue +124 -93
- package/src/plugin.js +111 -1
- package/src/utils/constants.js +30 -0
- package/src/utils/formatting.js +35 -0
- package/src/utils/mentionHighlight.js +24 -0
- package/src/utils/sanitizeHtml.js +78 -64
- package/src/widget/EscalatedWidget.vue +804 -0
- package/src/widget/index.js +254 -0
- package/src/pages/Admin/Plugins.vue +0 -129
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import EscalatedLayout from '../../../components/EscalatedLayout.vue';
|
|
3
|
+
import AuditLogEntry from '../../../components/AuditLogEntry.vue';
|
|
4
|
+
import { router } from '@inertiajs/vue3';
|
|
5
|
+
import { ref } from 'vue';
|
|
6
|
+
|
|
7
|
+
const props = defineProps({
|
|
8
|
+
logs: Object,
|
|
9
|
+
filters: Object,
|
|
10
|
+
users: Array,
|
|
11
|
+
actions: Array,
|
|
12
|
+
resourceTypes: Array,
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
const filterForm = ref({
|
|
16
|
+
user_id: props.filters?.user_id || '',
|
|
17
|
+
action: props.filters?.action || '',
|
|
18
|
+
auditable_type: props.filters?.auditable_type || '',
|
|
19
|
+
date_from: props.filters?.date_from || '',
|
|
20
|
+
date_to: props.filters?.date_to || '',
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
function applyFilters() {
|
|
24
|
+
const params = {};
|
|
25
|
+
for (const [key, value] of Object.entries(filterForm.value)) {
|
|
26
|
+
if (value) params[key] = value;
|
|
27
|
+
}
|
|
28
|
+
router.get(route('escalated.admin.audit-log'), params, { preserveState: true });
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function clearFilters() {
|
|
32
|
+
filterForm.value = { user_id: '', action: '', auditable_type: '', date_from: '', date_to: '' };
|
|
33
|
+
router.get(route('escalated.admin.audit-log'), {}, { preserveState: true });
|
|
34
|
+
}
|
|
35
|
+
</script>
|
|
36
|
+
|
|
37
|
+
<template>
|
|
38
|
+
<EscalatedLayout title="Audit Log">
|
|
39
|
+
<!-- Filters -->
|
|
40
|
+
<div
|
|
41
|
+
class="mb-6 flex flex-wrap items-end gap-3 rounded-xl border border-[var(--esc-panel-border)] bg-[var(--esc-panel-surface)] p-4"
|
|
42
|
+
>
|
|
43
|
+
<div>
|
|
44
|
+
<label class="block text-xs font-medium text-[var(--esc-panel-text-tertiary)]">User</label>
|
|
45
|
+
<select
|
|
46
|
+
v-model="filterForm.user_id"
|
|
47
|
+
class="mt-1 rounded-lg border border-[var(--esc-panel-border-input)] bg-[var(--esc-panel-surface-alt)] px-3 py-1.5 text-sm text-[var(--esc-panel-text-secondary)] focus:border-[var(--esc-panel-border-input)] focus:outline-none focus:ring-1 focus:ring-[var(--esc-panel-border-input)]"
|
|
48
|
+
>
|
|
49
|
+
<option value="">All Users</option>
|
|
50
|
+
<option v-for="user in users" :key="user.id" :value="user.id">{{ user.name }}</option>
|
|
51
|
+
</select>
|
|
52
|
+
</div>
|
|
53
|
+
<div>
|
|
54
|
+
<label class="block text-xs font-medium text-[var(--esc-panel-text-tertiary)]">Action</label>
|
|
55
|
+
<select
|
|
56
|
+
v-model="filterForm.action"
|
|
57
|
+
class="mt-1 rounded-lg border border-[var(--esc-panel-border-input)] bg-[var(--esc-panel-surface-alt)] px-3 py-1.5 text-sm text-[var(--esc-panel-text-secondary)] focus:border-[var(--esc-panel-border-input)] focus:outline-none focus:ring-1 focus:ring-[var(--esc-panel-border-input)]"
|
|
58
|
+
>
|
|
59
|
+
<option value="">All Actions</option>
|
|
60
|
+
<option v-for="a in actions" :key="a" :value="a">{{ a }}</option>
|
|
61
|
+
</select>
|
|
62
|
+
</div>
|
|
63
|
+
<div>
|
|
64
|
+
<label class="block text-xs font-medium text-[var(--esc-panel-text-tertiary)]">Resource Type</label>
|
|
65
|
+
<select
|
|
66
|
+
v-model="filterForm.auditable_type"
|
|
67
|
+
class="mt-1 rounded-lg border border-[var(--esc-panel-border-input)] bg-[var(--esc-panel-surface-alt)] px-3 py-1.5 text-sm text-[var(--esc-panel-text-secondary)] focus:border-[var(--esc-panel-border-input)] focus:outline-none focus:ring-1 focus:ring-[var(--esc-panel-border-input)]"
|
|
68
|
+
>
|
|
69
|
+
<option value="">All Types</option>
|
|
70
|
+
<option v-for="t in resourceTypes" :key="t" :value="t">{{ t.split('\\').pop() }}</option>
|
|
71
|
+
</select>
|
|
72
|
+
</div>
|
|
73
|
+
<div>
|
|
74
|
+
<label class="block text-xs font-medium text-[var(--esc-panel-text-tertiary)]">From</label>
|
|
75
|
+
<input
|
|
76
|
+
v-model="filterForm.date_from"
|
|
77
|
+
type="date"
|
|
78
|
+
class="mt-1 rounded-lg border border-[var(--esc-panel-border-input)] bg-[var(--esc-panel-surface-alt)] px-3 py-1.5 text-sm text-[var(--esc-panel-text-secondary)] focus:border-[var(--esc-panel-border-input)] focus:outline-none focus:ring-1 focus:ring-[var(--esc-panel-border-input)]"
|
|
79
|
+
/>
|
|
80
|
+
</div>
|
|
81
|
+
<div>
|
|
82
|
+
<label class="block text-xs font-medium text-[var(--esc-panel-text-tertiary)]">To</label>
|
|
83
|
+
<input
|
|
84
|
+
v-model="filterForm.date_to"
|
|
85
|
+
type="date"
|
|
86
|
+
class="mt-1 rounded-lg border border-[var(--esc-panel-border-input)] bg-[var(--esc-panel-surface-alt)] px-3 py-1.5 text-sm text-[var(--esc-panel-text-secondary)] focus:border-[var(--esc-panel-border-input)] focus:outline-none focus:ring-1 focus:ring-[var(--esc-panel-border-input)]"
|
|
87
|
+
/>
|
|
88
|
+
</div>
|
|
89
|
+
<button
|
|
90
|
+
class="rounded-lg bg-gradient-to-r from-[var(--esc-panel-accent)] to-[var(--esc-panel-accent-secondary)] px-4 py-1.5 text-sm font-medium text-white shadow-lg shadow-[var(--esc-panel-bg)]/20 transition-all hover:from-[var(--esc-panel-accent-hover)] hover:to-[var(--esc-panel-accent-secondary-hover)]"
|
|
91
|
+
@click="applyFilters"
|
|
92
|
+
>
|
|
93
|
+
Filter
|
|
94
|
+
</button>
|
|
95
|
+
<button
|
|
96
|
+
class="rounded-lg border border-[var(--esc-panel-border-input)] bg-[var(--esc-panel-hover)] px-4 py-1.5 text-sm font-medium text-[var(--esc-panel-text-secondary)] transition-colors hover:bg-[var(--esc-panel-hover)]"
|
|
97
|
+
@click="clearFilters"
|
|
98
|
+
>
|
|
99
|
+
Clear
|
|
100
|
+
</button>
|
|
101
|
+
</div>
|
|
102
|
+
|
|
103
|
+
<!-- Log entries -->
|
|
104
|
+
<div class="space-y-2">
|
|
105
|
+
<template v-if="logs?.data?.length">
|
|
106
|
+
<AuditLogEntry v-for="log in logs.data" :key="log.id" :log="log" />
|
|
107
|
+
</template>
|
|
108
|
+
<div
|
|
109
|
+
v-else
|
|
110
|
+
class="rounded-xl border border-[var(--esc-panel-border)] bg-[var(--esc-panel-surface)] px-4 py-12 text-center"
|
|
111
|
+
>
|
|
112
|
+
<svg
|
|
113
|
+
class="mx-auto mb-3 h-8 w-8 text-[var(--esc-panel-text-muted)]"
|
|
114
|
+
fill="none"
|
|
115
|
+
stroke="currentColor"
|
|
116
|
+
stroke-width="1.5"
|
|
117
|
+
viewBox="0 0 24 24"
|
|
118
|
+
>
|
|
119
|
+
<path
|
|
120
|
+
stroke-linecap="round"
|
|
121
|
+
stroke-linejoin="round"
|
|
122
|
+
d="M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z"
|
|
123
|
+
/>
|
|
124
|
+
</svg>
|
|
125
|
+
<p class="text-sm text-[var(--esc-panel-text-muted)]">No audit log entries found</p>
|
|
126
|
+
<p class="mt-1 text-xs text-[var(--esc-panel-text-muted)]">
|
|
127
|
+
Activity will appear here as changes are made
|
|
128
|
+
</p>
|
|
129
|
+
</div>
|
|
130
|
+
</div>
|
|
131
|
+
|
|
132
|
+
<!-- Pagination -->
|
|
133
|
+
<div v-if="logs?.links?.length > 3" class="mt-6 flex justify-center gap-1">
|
|
134
|
+
<template v-for="link in logs.links" :key="link.label">
|
|
135
|
+
<button
|
|
136
|
+
v-if="link.url"
|
|
137
|
+
:class="[
|
|
138
|
+
'rounded-lg px-3 py-1.5 text-sm transition-colors',
|
|
139
|
+
link.active
|
|
140
|
+
? 'bg-gradient-to-r from-[var(--esc-panel-accent)] to-[var(--esc-panel-accent-secondary)] text-white'
|
|
141
|
+
: 'border border-[var(--esc-panel-border-input)] bg-[var(--esc-panel-hover)] text-[var(--esc-panel-text-secondary)] hover:bg-[var(--esc-panel-hover)]',
|
|
142
|
+
]"
|
|
143
|
+
@click="router.get(link.url, {}, { preserveState: true })"
|
|
144
|
+
v-html="link.label"
|
|
145
|
+
></button>
|
|
146
|
+
<span
|
|
147
|
+
v-else
|
|
148
|
+
class="rounded-lg px-3 py-1.5 text-sm text-[var(--esc-panel-text-muted)]"
|
|
149
|
+
v-html="link.label"
|
|
150
|
+
></span>
|
|
151
|
+
</template>
|
|
152
|
+
</div>
|
|
153
|
+
</EscalatedLayout>
|
|
154
|
+
</template>
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import EscalatedLayout from '../../../components/EscalatedLayout.vue';
|
|
3
|
+
import ScheduleEditor from '../../../components/ScheduleEditor.vue';
|
|
4
|
+
import { useForm } from '@inertiajs/vue3';
|
|
5
|
+
import { ref } from 'vue';
|
|
6
|
+
|
|
7
|
+
const props = defineProps({
|
|
8
|
+
schedule: { type: Object, default: null },
|
|
9
|
+
timezones: { type: Array, default: () => [] },
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
const defaultSchedule = {
|
|
13
|
+
monday: { start: '09:00', end: '17:00' },
|
|
14
|
+
tuesday: { start: '09:00', end: '17:00' },
|
|
15
|
+
wednesday: { start: '09:00', end: '17:00' },
|
|
16
|
+
thursday: { start: '09:00', end: '17:00' },
|
|
17
|
+
friday: { start: '09:00', end: '17:00' },
|
|
18
|
+
saturday: { start: '', end: '' },
|
|
19
|
+
sunday: { start: '', end: '' },
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
const form = useForm({
|
|
23
|
+
name: props.schedule?.name || '',
|
|
24
|
+
timezone: props.schedule?.timezone || 'UTC',
|
|
25
|
+
is_default: props.schedule?.is_default ?? false,
|
|
26
|
+
schedule: props.schedule?.schedule || { ...defaultSchedule },
|
|
27
|
+
holidays:
|
|
28
|
+
props.schedule?.holidays?.map((h) => ({
|
|
29
|
+
name: h.name,
|
|
30
|
+
date: h.date?.split('T')[0] || h.date,
|
|
31
|
+
recurring: h.recurring,
|
|
32
|
+
})) || [],
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
const newHoliday = ref({ name: '', date: '', recurring: false });
|
|
36
|
+
|
|
37
|
+
function addHoliday() {
|
|
38
|
+
if (newHoliday.value.name && newHoliday.value.date) {
|
|
39
|
+
form.holidays.push({ ...newHoliday.value });
|
|
40
|
+
newHoliday.value = { name: '', date: '', recurring: false };
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
function removeHoliday(index) {
|
|
45
|
+
form.holidays.splice(index, 1);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
function submit() {
|
|
49
|
+
if (props.schedule) {
|
|
50
|
+
form.put(route('escalated.admin.business-hours.update', props.schedule.id));
|
|
51
|
+
} else {
|
|
52
|
+
form.post(route('escalated.admin.business-hours.store'));
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
</script>
|
|
56
|
+
|
|
57
|
+
<template>
|
|
58
|
+
<EscalatedLayout :title="schedule ? 'Edit Schedule' : 'New Schedule'">
|
|
59
|
+
<form
|
|
60
|
+
class="mx-auto max-w-2xl space-y-5 rounded-xl border border-[var(--esc-panel-border)] bg-[var(--esc-panel-surface)] p-6"
|
|
61
|
+
@submit.prevent="submit"
|
|
62
|
+
>
|
|
63
|
+
<div>
|
|
64
|
+
<label class="block text-sm font-medium text-[var(--esc-panel-text-secondary)]">Name</label>
|
|
65
|
+
<input
|
|
66
|
+
v-model="form.name"
|
|
67
|
+
type="text"
|
|
68
|
+
required
|
|
69
|
+
class="mt-1 w-full rounded-lg border border-[var(--esc-panel-border-input)] bg-[var(--esc-panel-surface-alt)] px-3 py-2 text-sm text-[var(--esc-panel-text-secondary)] focus:border-[var(--esc-panel-border-input)] focus:outline-none focus:ring-1 focus:ring-[var(--esc-panel-border-input)]"
|
|
70
|
+
/>
|
|
71
|
+
<div v-if="form.errors.name" class="mt-1 text-sm text-rose-400">{{ form.errors.name }}</div>
|
|
72
|
+
</div>
|
|
73
|
+
|
|
74
|
+
<div>
|
|
75
|
+
<label class="block text-sm font-medium text-[var(--esc-panel-text-secondary)]">Timezone</label>
|
|
76
|
+
<select
|
|
77
|
+
v-model="form.timezone"
|
|
78
|
+
required
|
|
79
|
+
class="mt-1 w-full rounded-lg border border-[var(--esc-panel-border-input)] bg-[var(--esc-panel-surface-alt)] px-3 py-2 text-sm text-[var(--esc-panel-text-secondary)] focus:border-[var(--esc-panel-border-input)] focus:outline-none focus:ring-1 focus:ring-[var(--esc-panel-border-input)]"
|
|
80
|
+
>
|
|
81
|
+
<option v-for="tz in timezones" :key="tz" :value="tz">{{ tz }}</option>
|
|
82
|
+
</select>
|
|
83
|
+
<div v-if="form.errors.timezone" class="mt-1 text-sm text-rose-400">{{ form.errors.timezone }}</div>
|
|
84
|
+
</div>
|
|
85
|
+
|
|
86
|
+
<label class="flex items-center gap-2">
|
|
87
|
+
<input
|
|
88
|
+
v-model="form.is_default"
|
|
89
|
+
type="checkbox"
|
|
90
|
+
class="rounded border-[var(--esc-panel-border-input)] bg-[var(--esc-panel-surface)] text-cyan-500 focus:ring-[var(--esc-panel-border-input)]"
|
|
91
|
+
/>
|
|
92
|
+
<span class="text-sm text-[var(--esc-panel-text-secondary)]">Default schedule</span>
|
|
93
|
+
</label>
|
|
94
|
+
|
|
95
|
+
<div>
|
|
96
|
+
<label class="mb-2 block text-sm font-medium text-[var(--esc-panel-text-secondary)]"
|
|
97
|
+
>Weekly Hours</label
|
|
98
|
+
>
|
|
99
|
+
<ScheduleEditor v-model="form.schedule" />
|
|
100
|
+
<div v-if="form.errors.schedule" class="mt-1 text-sm text-rose-400">{{ form.errors.schedule }}</div>
|
|
101
|
+
</div>
|
|
102
|
+
|
|
103
|
+
<div>
|
|
104
|
+
<label class="mb-2 block text-sm font-medium text-[var(--esc-panel-text-secondary)]">Holidays</label>
|
|
105
|
+
<div class="space-y-2">
|
|
106
|
+
<div
|
|
107
|
+
v-for="(holiday, idx) in form.holidays"
|
|
108
|
+
:key="idx"
|
|
109
|
+
class="flex items-center gap-2 rounded-lg border border-[var(--esc-panel-border)] bg-[var(--esc-panel-surface-alt)] px-3 py-2"
|
|
110
|
+
>
|
|
111
|
+
<span class="flex-1 text-sm text-[var(--esc-panel-text-secondary)]">{{ holiday.name }}</span>
|
|
112
|
+
<span class="text-sm text-[var(--esc-panel-text-tertiary)]">{{ holiday.date }}</span>
|
|
113
|
+
<span
|
|
114
|
+
v-if="holiday.recurring"
|
|
115
|
+
class="inline-flex items-center rounded-full bg-violet-500/10 px-2 py-0.5 text-xs font-medium text-violet-400 ring-1 ring-violet-500/20"
|
|
116
|
+
>Recurring</span
|
|
117
|
+
>
|
|
118
|
+
<button
|
|
119
|
+
type="button"
|
|
120
|
+
class="text-sm text-rose-400 hover:text-rose-300"
|
|
121
|
+
@click="removeHoliday(idx)"
|
|
122
|
+
>
|
|
123
|
+
Remove
|
|
124
|
+
</button>
|
|
125
|
+
</div>
|
|
126
|
+
<div class="flex items-end gap-2">
|
|
127
|
+
<div class="flex-1">
|
|
128
|
+
<input
|
|
129
|
+
v-model="newHoliday.name"
|
|
130
|
+
type="text"
|
|
131
|
+
placeholder="Holiday name"
|
|
132
|
+
class="w-full rounded-lg border border-[var(--esc-panel-border-input)] bg-[var(--esc-panel-surface-alt)] px-3 py-1.5 text-sm text-[var(--esc-panel-text-secondary)] placeholder-[var(--esc-panel-text-muted)] focus:border-[var(--esc-panel-border-input)] focus:outline-none focus:ring-1 focus:ring-[var(--esc-panel-border-input)]"
|
|
133
|
+
/>
|
|
134
|
+
</div>
|
|
135
|
+
<div>
|
|
136
|
+
<input
|
|
137
|
+
v-model="newHoliday.date"
|
|
138
|
+
type="date"
|
|
139
|
+
class="rounded-lg border border-[var(--esc-panel-border-input)] bg-[var(--esc-panel-surface-alt)] px-3 py-1.5 text-sm text-[var(--esc-panel-text-secondary)] focus:border-[var(--esc-panel-border-input)] focus:outline-none focus:ring-1 focus:ring-[var(--esc-panel-border-input)]"
|
|
140
|
+
/>
|
|
141
|
+
</div>
|
|
142
|
+
<label class="flex items-center gap-1">
|
|
143
|
+
<input
|
|
144
|
+
v-model="newHoliday.recurring"
|
|
145
|
+
type="checkbox"
|
|
146
|
+
class="rounded border-[var(--esc-panel-border-input)] bg-[var(--esc-panel-surface)] text-cyan-500 focus:ring-[var(--esc-panel-border-input)]"
|
|
147
|
+
/>
|
|
148
|
+
<span class="text-xs text-[var(--esc-panel-text-tertiary)]">Recurring</span>
|
|
149
|
+
</label>
|
|
150
|
+
<button
|
|
151
|
+
type="button"
|
|
152
|
+
class="rounded-lg border border-[var(--esc-panel-border-input)] bg-[var(--esc-panel-hover)] px-3 py-1.5 text-sm font-medium text-[var(--esc-panel-text-secondary)] transition-colors hover:bg-[var(--esc-panel-hover)]"
|
|
153
|
+
@click="addHoliday"
|
|
154
|
+
>
|
|
155
|
+
Add
|
|
156
|
+
</button>
|
|
157
|
+
</div>
|
|
158
|
+
</div>
|
|
159
|
+
</div>
|
|
160
|
+
|
|
161
|
+
<div class="flex justify-end">
|
|
162
|
+
<button
|
|
163
|
+
type="submit"
|
|
164
|
+
:disabled="form.processing"
|
|
165
|
+
class="rounded-lg bg-gradient-to-r from-[var(--esc-panel-accent)] to-[var(--esc-panel-accent-secondary)] px-5 py-2 text-sm font-medium text-white shadow-lg shadow-[var(--esc-panel-bg)]/20 transition-all hover:from-[var(--esc-panel-accent-hover)] hover:to-[var(--esc-panel-accent-secondary-hover)] disabled:opacity-50"
|
|
166
|
+
>
|
|
167
|
+
{{ schedule ? 'Update' : 'Create' }}
|
|
168
|
+
</button>
|
|
169
|
+
</div>
|
|
170
|
+
</form>
|
|
171
|
+
</EscalatedLayout>
|
|
172
|
+
</template>
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import EscalatedLayout from '../../../components/EscalatedLayout.vue';
|
|
3
|
+
import { Link, router } from '@inertiajs/vue3';
|
|
4
|
+
|
|
5
|
+
defineProps({ schedules: Array });
|
|
6
|
+
|
|
7
|
+
function destroy(id) {
|
|
8
|
+
if (confirm('Delete this schedule?')) {
|
|
9
|
+
router.delete(route('escalated.admin.business-hours.destroy', id));
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<template>
|
|
15
|
+
<EscalatedLayout title="Business Hours">
|
|
16
|
+
<div class="mb-4 flex justify-end">
|
|
17
|
+
<Link
|
|
18
|
+
:href="route('escalated.admin.business-hours.create')"
|
|
19
|
+
class="rounded-lg bg-gradient-to-r from-[var(--esc-panel-accent)] to-[var(--esc-panel-accent-secondary)] px-4 py-2 text-sm font-medium text-white shadow-lg shadow-[var(--esc-panel-bg)]/20 transition-all hover:from-[var(--esc-panel-accent-hover)] hover:to-[var(--esc-panel-accent-secondary-hover)]"
|
|
20
|
+
>
|
|
21
|
+
Add Schedule
|
|
22
|
+
</Link>
|
|
23
|
+
</div>
|
|
24
|
+
<div class="overflow-hidden rounded-xl border border-[var(--esc-panel-border)] bg-[var(--esc-panel-surface)]">
|
|
25
|
+
<table class="min-w-full divide-y divide-[var(--esc-panel-border)]">
|
|
26
|
+
<thead>
|
|
27
|
+
<tr class="bg-[var(--esc-panel-hover)]">
|
|
28
|
+
<th
|
|
29
|
+
class="px-4 py-3 text-left text-[11px] font-semibold uppercase tracking-wider text-[var(--esc-panel-text-muted)]"
|
|
30
|
+
>
|
|
31
|
+
Name
|
|
32
|
+
</th>
|
|
33
|
+
<th
|
|
34
|
+
class="px-4 py-3 text-left text-[11px] font-semibold uppercase tracking-wider text-[var(--esc-panel-text-muted)]"
|
|
35
|
+
>
|
|
36
|
+
Timezone
|
|
37
|
+
</th>
|
|
38
|
+
<th
|
|
39
|
+
class="px-4 py-3 text-left text-[11px] font-semibold uppercase tracking-wider text-[var(--esc-panel-text-muted)]"
|
|
40
|
+
>
|
|
41
|
+
Default
|
|
42
|
+
</th>
|
|
43
|
+
<th
|
|
44
|
+
class="px-4 py-3 text-left text-[11px] font-semibold uppercase tracking-wider text-[var(--esc-panel-text-muted)]"
|
|
45
|
+
>
|
|
46
|
+
Holidays
|
|
47
|
+
</th>
|
|
48
|
+
<th
|
|
49
|
+
class="px-4 py-3 text-right text-[11px] font-semibold uppercase tracking-wider text-[var(--esc-panel-text-muted)]"
|
|
50
|
+
>
|
|
51
|
+
Actions
|
|
52
|
+
</th>
|
|
53
|
+
</tr>
|
|
54
|
+
</thead>
|
|
55
|
+
<tbody class="divide-y divide-[var(--esc-panel-border)]">
|
|
56
|
+
<tr v-if="!schedules?.length">
|
|
57
|
+
<td colspan="5" class="px-4 py-12 text-center">
|
|
58
|
+
<svg
|
|
59
|
+
class="mx-auto mb-3 h-8 w-8 text-[var(--esc-panel-text-muted)]"
|
|
60
|
+
fill="none"
|
|
61
|
+
stroke="currentColor"
|
|
62
|
+
stroke-width="1.5"
|
|
63
|
+
viewBox="0 0 24 24"
|
|
64
|
+
>
|
|
65
|
+
<path
|
|
66
|
+
stroke-linecap="round"
|
|
67
|
+
stroke-linejoin="round"
|
|
68
|
+
d="M12 6v6h4.5m4.5 0a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
69
|
+
/>
|
|
70
|
+
</svg>
|
|
71
|
+
<p class="text-sm text-[var(--esc-panel-text-muted)]">No business schedules yet</p>
|
|
72
|
+
<p class="mt-1 text-xs text-[var(--esc-panel-text-muted)]">
|
|
73
|
+
Create a schedule to define your team's working hours
|
|
74
|
+
</p>
|
|
75
|
+
</td>
|
|
76
|
+
</tr>
|
|
77
|
+
<tr
|
|
78
|
+
v-for="sched in schedules"
|
|
79
|
+
:key="sched.id"
|
|
80
|
+
class="transition-colors hover:bg-[var(--esc-panel-hover)]"
|
|
81
|
+
>
|
|
82
|
+
<td class="px-4 py-3 text-sm font-medium text-[var(--esc-panel-text-secondary)]">
|
|
83
|
+
{{ sched.name }}
|
|
84
|
+
</td>
|
|
85
|
+
<td class="px-4 py-3 text-sm text-[var(--esc-panel-text-tertiary)]">{{ sched.timezone }}</td>
|
|
86
|
+
<td class="px-4 py-3 text-sm">
|
|
87
|
+
<span
|
|
88
|
+
v-if="sched.is_default"
|
|
89
|
+
class="inline-flex items-center rounded-full bg-emerald-500/10 px-2 py-0.5 text-xs font-medium text-emerald-400 ring-1 ring-emerald-500/20"
|
|
90
|
+
>Default</span
|
|
91
|
+
>
|
|
92
|
+
<span v-else class="text-[var(--esc-panel-text-muted)]">-</span>
|
|
93
|
+
</td>
|
|
94
|
+
<td class="px-4 py-3 text-sm text-[var(--esc-panel-text-tertiary)]">
|
|
95
|
+
{{ sched.holidays?.length || 0 }}
|
|
96
|
+
</td>
|
|
97
|
+
<td class="px-4 py-3 text-right text-sm">
|
|
98
|
+
<Link
|
|
99
|
+
:href="route('escalated.admin.business-hours.edit', sched.id)"
|
|
100
|
+
class="text-[var(--esc-panel-text-secondary)] hover:text-[var(--esc-panel-text)]"
|
|
101
|
+
>
|
|
102
|
+
Edit
|
|
103
|
+
</Link>
|
|
104
|
+
<button class="ml-3 text-rose-400 hover:text-rose-300" @click="destroy(sched.id)">
|
|
105
|
+
Delete
|
|
106
|
+
</button>
|
|
107
|
+
</td>
|
|
108
|
+
</tr>
|
|
109
|
+
</tbody>
|
|
110
|
+
</table>
|
|
111
|
+
</div>
|
|
112
|
+
</EscalatedLayout>
|
|
113
|
+
</template>
|
|
@@ -10,7 +10,10 @@ const form = useForm({ title: '', body: '', category: '', is_shared: true });
|
|
|
10
10
|
|
|
11
11
|
function create() {
|
|
12
12
|
form.post(route('escalated.admin.canned-responses.store'), {
|
|
13
|
-
onSuccess: () => {
|
|
13
|
+
onSuccess: () => {
|
|
14
|
+
form.reset();
|
|
15
|
+
showForm.value = false;
|
|
16
|
+
},
|
|
14
17
|
});
|
|
15
18
|
}
|
|
16
19
|
|
|
@@ -24,46 +27,100 @@ function destroy(id) {
|
|
|
24
27
|
<template>
|
|
25
28
|
<EscalatedLayout title="Canned Responses">
|
|
26
29
|
<div class="mb-4 flex justify-end">
|
|
27
|
-
<button
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
30
|
+
<button
|
|
31
|
+
:class="
|
|
32
|
+
showForm
|
|
33
|
+
? 'rounded-lg border border-[var(--esc-panel-border-input)] bg-[var(--esc-panel-hover)] px-4 py-2 text-sm font-medium text-[var(--esc-panel-text-secondary)] transition-colors hover:bg-[var(--esc-panel-hover)]'
|
|
34
|
+
: 'rounded-lg bg-gradient-to-r from-[var(--esc-panel-accent)] to-[var(--esc-panel-accent-secondary)] px-4 py-2 text-sm font-medium text-white shadow-lg shadow-[var(--esc-panel-bg)]/20 transition-all hover:from-[var(--esc-panel-accent-hover)] hover:to-[var(--esc-panel-accent-secondary-hover)]'
|
|
35
|
+
"
|
|
36
|
+
@click="showForm = !showForm"
|
|
37
|
+
>
|
|
31
38
|
{{ showForm ? 'Cancel' : 'Add Response' }}
|
|
32
39
|
</button>
|
|
33
40
|
</div>
|
|
34
|
-
<form
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
41
|
+
<form
|
|
42
|
+
v-if="showForm"
|
|
43
|
+
class="mb-6 space-y-3 rounded-xl border border-[var(--esc-panel-border)] bg-[var(--esc-panel-surface)] p-5"
|
|
44
|
+
@submit.prevent="create"
|
|
45
|
+
>
|
|
46
|
+
<input
|
|
47
|
+
v-model="form.title"
|
|
48
|
+
type="text"
|
|
49
|
+
placeholder="Title"
|
|
50
|
+
required
|
|
51
|
+
class="w-full rounded-lg border border-[var(--esc-panel-border-input)] bg-[var(--esc-panel-surface-alt)] px-3 py-2 text-sm text-[var(--esc-panel-text-secondary)] placeholder-gray-500 focus:border-[var(--esc-panel-border-input)] focus:outline-none focus:ring-1 focus:ring-[var(--esc-panel-border-input)]"
|
|
52
|
+
/>
|
|
53
|
+
<textarea
|
|
54
|
+
v-model="form.body"
|
|
55
|
+
rows="4"
|
|
56
|
+
placeholder="Response body..."
|
|
57
|
+
required
|
|
58
|
+
class="w-full rounded-lg border border-[var(--esc-panel-border-input)] bg-[var(--esc-panel-surface-alt)] px-3 py-2 text-sm text-[var(--esc-panel-text-secondary)] placeholder-gray-500 focus:border-[var(--esc-panel-border-input)] focus:outline-none focus:ring-1 focus:ring-[var(--esc-panel-border-input)]"
|
|
59
|
+
></textarea>
|
|
39
60
|
<div class="flex items-center gap-3">
|
|
40
|
-
<input
|
|
41
|
-
|
|
61
|
+
<input
|
|
62
|
+
v-model="form.category"
|
|
63
|
+
type="text"
|
|
64
|
+
placeholder="Category (optional)"
|
|
65
|
+
class="rounded-lg border border-[var(--esc-panel-border-input)] bg-[var(--esc-panel-surface-alt)] px-3 py-2 text-sm text-[var(--esc-panel-text-secondary)] placeholder-gray-500 focus:border-[var(--esc-panel-border-input)] focus:outline-none focus:ring-1 focus:ring-[var(--esc-panel-border-input)]"
|
|
66
|
+
/>
|
|
42
67
|
<label class="flex items-center gap-2">
|
|
43
|
-
<input
|
|
44
|
-
|
|
68
|
+
<input
|
|
69
|
+
v-model="form.is_shared"
|
|
70
|
+
type="checkbox"
|
|
71
|
+
class="rounded border-[var(--esc-panel-border-input)] bg-[var(--esc-panel-surface)] text-[var(--esc-panel-text)] focus:ring-[var(--esc-panel-border-input)]"
|
|
72
|
+
/>
|
|
73
|
+
<span class="text-sm text-[var(--esc-panel-text-secondary)]">Shared</span>
|
|
45
74
|
</label>
|
|
46
|
-
<button
|
|
47
|
-
|
|
75
|
+
<button
|
|
76
|
+
type="submit"
|
|
77
|
+
:disabled="form.processing"
|
|
78
|
+
class="ml-auto rounded-lg bg-gradient-to-r from-[var(--esc-panel-accent)] to-[var(--esc-panel-accent-secondary)] px-4 py-2 text-sm font-medium text-white shadow-lg shadow-[var(--esc-panel-bg)]/20 transition-all hover:from-[var(--esc-panel-accent-hover)] hover:to-[var(--esc-panel-accent-secondary-hover)] disabled:opacity-50"
|
|
79
|
+
>
|
|
48
80
|
Create
|
|
49
81
|
</button>
|
|
50
82
|
</div>
|
|
51
83
|
</form>
|
|
52
84
|
<div class="space-y-3">
|
|
53
|
-
<div
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
85
|
+
<div
|
|
86
|
+
v-if="!responses?.length"
|
|
87
|
+
class="rounded-xl border border-[var(--esc-panel-border)] bg-[var(--esc-panel-surface)] px-4 py-12 text-center"
|
|
88
|
+
>
|
|
89
|
+
<svg
|
|
90
|
+
class="mx-auto mb-3 h-8 w-8 text-[var(--esc-panel-text-muted)]"
|
|
91
|
+
fill="none"
|
|
92
|
+
stroke="currentColor"
|
|
93
|
+
stroke-width="1.5"
|
|
94
|
+
viewBox="0 0 24 24"
|
|
95
|
+
>
|
|
96
|
+
<path
|
|
97
|
+
stroke-linecap="round"
|
|
98
|
+
stroke-linejoin="round"
|
|
99
|
+
d="M7.5 8.25h9m-9 3H12m-9.75 1.51c0 1.6 1.123 2.994 2.707 3.227 1.129.166 2.27.293 3.423.379.35.026.67.21.865.501L12 21l2.755-4.133a1.14 1.14 0 01.865-.501 48.172 48.172 0 003.423-.379c1.584-.233 2.707-1.626 2.707-3.228V6.741c0-1.602-1.123-2.995-2.707-3.228A48.394 48.394 0 0012 3c-2.392 0-4.744.175-7.043.513C3.373 3.746 2.25 5.14 2.25 6.741v6.018z"
|
|
100
|
+
/>
|
|
101
|
+
</svg>
|
|
102
|
+
<p class="text-sm text-[var(--esc-panel-text-muted)]">No canned responses yet</p>
|
|
103
|
+
<p class="mt-1 text-xs text-[var(--esc-panel-text-muted)]">
|
|
104
|
+
Create reusable templates for common replies
|
|
105
|
+
</p>
|
|
57
106
|
</div>
|
|
58
|
-
<div
|
|
107
|
+
<div
|
|
108
|
+
v-for="resp in responses"
|
|
109
|
+
:key="resp.id"
|
|
110
|
+
class="rounded-xl border border-[var(--esc-panel-border)] bg-[var(--esc-panel-surface)] p-4 transition-colors hover:bg-gray-900/80"
|
|
111
|
+
>
|
|
59
112
|
<div class="mb-2 flex items-center justify-between">
|
|
60
113
|
<div class="flex items-center gap-2">
|
|
61
|
-
<span class="font-medium text-
|
|
62
|
-
<span
|
|
114
|
+
<span class="font-medium text-[var(--esc-panel-text-secondary)]">{{ resp.title }}</span>
|
|
115
|
+
<span
|
|
116
|
+
v-if="resp.category"
|
|
117
|
+
class="rounded-md bg-[var(--esc-panel-hover)] px-2 py-0.5 text-xs text-[var(--esc-panel-text-tertiary)] ring-1 ring-white/[0.06]"
|
|
118
|
+
>{{ resp.category }}</span
|
|
119
|
+
>
|
|
63
120
|
</div>
|
|
64
|
-
<button
|
|
121
|
+
<button class="text-sm text-rose-400 hover:text-rose-300" @click="destroy(resp.id)">Delete</button>
|
|
65
122
|
</div>
|
|
66
|
-
<p class="text-sm text-
|
|
123
|
+
<p class="text-sm text-[var(--esc-panel-text-tertiary)]">{{ resp.body }}</p>
|
|
67
124
|
</div>
|
|
68
125
|
</div>
|
|
69
126
|
</EscalatedLayout>
|