@escalated-dev/escalated 0.7.1 → 0.9.0
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 +380 -357
- package/package.json +85 -81
- package/src/components/ActiveChatsPanel.vue +246 -246
- package/src/components/AdminDashboard.stories.js +1423 -1423
- package/src/components/AttachmentList.vue +65 -65
- package/src/components/ChatActionBar.vue +226 -226
- package/src/components/ChatBubble.vue +162 -162
- package/src/components/ChatComposer.vue +308 -308
- package/src/components/ChatQueue.vue +222 -222
- package/src/components/ChatThread.vue +197 -197
- package/src/components/CustomTicketActions.stories.js +71 -0
- package/src/components/CustomTicketActions.vue +101 -0
- package/src/components/EscalatedLayout.vue +619 -598
- package/src/components/FollowButton.vue +20 -1
- package/src/components/MentionDropdown.vue +154 -154
- package/src/components/MetricComparison.vue +89 -89
- package/src/components/PercentileChart.vue +67 -67
- package/src/components/PeriodSelector.vue +98 -98
- package/src/components/PresenceIndicator.vue +228 -213
- package/src/components/ReplyComposer.vue +336 -336
- package/src/components/ReplyThread.vue +153 -153
- package/src/components/ReportChart.vue +395 -395
- package/src/components/ReportExportButton.vue +108 -108
- package/src/components/SaveViewDialog.vue +172 -172
- package/src/components/SavedViewSidebar.vue +208 -208
- package/src/components/SkillTagManager.vue +29 -22
- package/src/components/SnoozeButton.vue +247 -247
- package/src/components/TicketFilters.vue +270 -270
- package/src/components/TicketList.vue +655 -655
- package/src/components/TicketSidebar.vue +4 -0
- package/src/components/TicketSplitDialog.vue +98 -98
- package/src/components/TicketSubjects.stories.js +63 -0
- package/src/components/TicketSubjects.vue +107 -0
- package/src/components/TwoFactorSetup.vue +1 -37
- package/src/components/VariableTokenInput.vue +111 -111
- package/src/components/WorkflowActionConfig.vue +287 -287
- package/src/components/WorkflowActionList.vue +350 -350
- package/src/components/WorkflowConditionBuilder.vue +265 -265
- package/src/components/WorkflowTriggerSelector.vue +125 -125
- package/src/components/admin/newsletters/AnalyticsTiles.stories.js +14 -0
- package/src/components/admin/newsletters/AnalyticsTiles.vue +55 -0
- package/src/components/admin/newsletters/DeliveriesTable.stories.js +28 -0
- package/src/components/admin/newsletters/DeliveriesTable.vue +104 -0
- package/src/components/admin/newsletters/DynamicFilterBuilder.stories.js +11 -0
- package/src/components/admin/newsletters/DynamicFilterBuilder.vue +53 -0
- package/src/components/admin/newsletters/ListMemberTable.stories.js +12 -0
- package/src/components/admin/newsletters/ListMemberTable.vue +53 -0
- package/src/components/admin/newsletters/MarkdownEditor.stories.js +6 -0
- package/src/components/admin/newsletters/MarkdownEditor.vue +53 -0
- package/src/components/admin/newsletters/MergeFieldDropdown.stories.js +6 -0
- package/src/components/admin/newsletters/MergeFieldDropdown.vue +84 -0
- package/src/components/admin/newsletters/PreviewIframe.stories.js +7 -0
- package/src/components/admin/newsletters/PreviewIframe.vue +40 -0
- package/src/components/admin/newsletters/SummaryTiles.stories.js +8 -0
- package/src/components/admin/newsletters/SummaryTiles.vue +63 -0
- package/src/composables/useChat.js +187 -187
- package/src/composables/useI18n.js +30 -8
- package/src/composables/useMentions.js +134 -134
- package/src/composables/usePermissions.js +31 -0
- package/src/composables/useRealtime.js +182 -182
- package/src/index.js +85 -84
- package/src/locales/README.md +13 -0
- package/src/locales/ar.json +727 -727
- package/src/locales/de.json +690 -690
- package/src/locales/en.json +889 -729
- package/src/locales/es.json +691 -691
- package/src/locales/fr.json +691 -691
- package/src/locales/index.js +16 -16
- package/src/locales/it.json +727 -727
- package/src/locales/ja.json +727 -727
- package/src/locales/ko.json +727 -727
- package/src/locales/nl.json +727 -727
- package/src/locales/pl.json +727 -727
- package/src/locales/pt-BR.json +727 -727
- package/src/locales/ru.json +727 -727
- package/src/locales/tr.json +727 -727
- package/src/locales/zh-CN.json +727 -727
- package/src/pages/Admin/Newsletters/Compose.vue +192 -0
- package/src/pages/Admin/Newsletters/Edit.vue +24 -0
- package/src/pages/Admin/Newsletters/Index.vue +141 -0
- package/src/pages/Admin/Newsletters/Lists/Create.vue +64 -0
- package/src/pages/Admin/Newsletters/Lists/Index.vue +59 -0
- package/src/pages/Admin/Newsletters/Lists/Show.vue +53 -0
- package/src/pages/Admin/Newsletters/Settings.vue +85 -0
- package/src/pages/Admin/Newsletters/Show.vue +140 -0
- package/src/pages/Admin/Newsletters/Templates/Create.vue +11 -0
- package/src/pages/Admin/Newsletters/Templates/Index.vue +54 -0
- package/src/pages/Admin/Newsletters/Templates/Show.vue +65 -0
- package/src/pages/Admin/Newsletters/usePreview.js +44 -0
- package/src/pages/Admin/Reports/AgentDetail.vue +132 -132
- package/src/pages/Admin/Reports/AgentRanking.vue +246 -246
- package/src/pages/Admin/Reports/Cohorts.vue +180 -180
- package/src/pages/Admin/Reports/Comparison.vue +141 -141
- package/src/pages/Admin/Reports/Dashboard.vue +226 -226
- package/src/pages/Admin/Reports/ResolutionTimes.vue +164 -164
- package/src/pages/Admin/Reports/ResponseTimes.vue +164 -164
- package/src/pages/Admin/Reports/SlaTrends.vue +183 -183
- package/src/pages/Admin/Settings/SsoSettings.vue +157 -4
- package/src/pages/Admin/Settings/TwoFactor.vue +32 -6
- package/src/pages/Admin/Settings.vue +1008 -1008
- package/src/pages/Admin/Skills/Form.vue +164 -4
- package/src/pages/Admin/Skills/Index.vue +14 -3
- package/src/pages/Admin/Tickets/Index.vue +126 -126
- package/src/pages/Admin/Tickets/Show.vue +254 -249
- package/src/pages/Admin/Users/Index.vue +145 -0
- package/src/pages/Admin/Workflows/Builder.vue +207 -207
- package/src/pages/Admin/Workflows/Index.vue +235 -235
- package/src/pages/Admin/Workflows/Logs.vue +286 -286
- package/src/pages/Agent/TicketIndex.vue +112 -112
- package/src/pages/Agent/TicketShow.vue +547 -494
- package/src/pages/Customer/Index.vue +26 -1
- package/src/pages/Customer/KnowledgeBase/Article.vue +129 -129
- package/src/plugin.js +175 -175
- package/src/utils/mentionHighlight.js +24 -24
- package/src/widget/EscalatedWidget.vue +804 -804
- package/src/widget/index.js +254 -254
package/README.md
CHANGED
|
@@ -1,357 +1,380 @@
|
|
|
1
|
-
<p align="center">
|
|
2
|
-
<a href="docs/translations/README.ar.md">العربية</a> •
|
|
3
|
-
<a href="docs/translations/README.de.md">Deutsch</a> •
|
|
4
|
-
<b>English</b> •
|
|
5
|
-
<a href="docs/translations/README.es.md">Español</a> •
|
|
6
|
-
<a href="docs/translations/README.fr.md">Français</a> •
|
|
7
|
-
<a href="docs/translations/README.it.md">Italiano</a> •
|
|
8
|
-
<a href="docs/translations/README.ja.md">日本語</a> •
|
|
9
|
-
<a href="docs/translations/README.ko.md">한국어</a> •
|
|
10
|
-
<a href="docs/translations/README.nl.md">Nederlands</a> •
|
|
11
|
-
<a href="docs/translations/README.pl.md">Polski</a> •
|
|
12
|
-
<a href="docs/translations/README.pt-BR.md">Português (BR)</a> •
|
|
13
|
-
<a href="docs/translations/README.ru.md">Русский</a> •
|
|
14
|
-
<a href="docs/translations/README.tr.md">Türkçe</a> •
|
|
15
|
-
<a href="docs/translations/README.zh-CN.md">简体中文</a>
|
|
16
|
-
</p>
|
|
17
|
-
|
|
18
|
-
<h1>
|
|
19
|
-
<img src="https://escalated.dev/apple-touch-icon.png" width="28" style="vertical-align:middle;" />
|
|
20
|
-
Escalated
|
|
21
|
-
</h1>
|
|
22
|
-
|
|
23
|
-
[](https://github.com/escalated-dev/escalated/actions/workflows/run-tests.yml)
|
|
24
|
-
[](https://github.com/escalated-dev/escalated/actions/workflows/run-tests.yml)
|
|
24
|
+
[](https://app.fossa.com/projects/custom%2B62107%2Fgithub.com%2Fescalated-dev%2Fescalated?ref=badge_shield)
|
|
25
|
+
[](https://www.npmjs.com/package/@escalated-dev/escalated)
|
|
26
|
+
[](https://vuejs.org/)
|
|
27
|
+
[](https://opensource.org/licenses/MIT)
|
|
28
|
+
|
|
29
|
+
<p align="center">
|
|
30
|
+
<img src=".github/profile/demo.gif" alt="Escalated demo: filing a ticket and replying from the agent inbox" width="800" />
|
|
31
|
+
</p>
|
|
32
|
+
|
|
33
|
+
Escalated is an embeddable support ticket system with SLA tracking, escalation rules, agent workflows, and a customer portal. This repo contains all the shared frontend assets (Vue 3 + Inertia.js) used across every supported backend framework.
|
|
34
|
+
|
|
35
|
+
👉 **Learn more, view demos, and compare Cloud vs Self-Hosted options at** **[https://escalated.dev](https://escalated.dev)**
|
|
36
|
+
|
|
37
|
+
**You don't install this package directly.** Start with the backend package for your framework — it handles everything including pulling in these frontend assets.
|
|
38
|
+
|
|
39
|
+
## Features
|
|
40
|
+
|
|
41
|
+
- **Ticket splitting** — Split a reply into a new standalone ticket while preserving context
|
|
42
|
+
- **Ticket snooze** — Snooze tickets with presets (1h, 4h, tomorrow, next week) and automatic wake
|
|
43
|
+
- **Saved views / custom queues** — Save, name, and share filter presets as reusable ticket views
|
|
44
|
+
- **Embeddable support widget** — Drop-in `<script>` widget with KB search, ticket form, and status check
|
|
45
|
+
- **Real-time updates** — WebSocket support (Pusher/Reverb/Soketi) with automatic polling fallback
|
|
46
|
+
- **Knowledge base toggle** — Enable or disable the public knowledge base from admin settings
|
|
47
|
+
- **CI: ESLint + Prettier** — Automated code style enforcement on every pull request
|
|
48
|
+
|
|
49
|
+
## Get Started
|
|
50
|
+
|
|
51
|
+
Pick your framework:
|
|
52
|
+
|
|
53
|
+
| Framework | Repo | Install |
|
|
54
|
+
|-----------|------|---------|
|
|
55
|
+
| **Laravel** | [escalated-dev/escalated-laravel](https://github.com/escalated-dev/escalated-laravel) | `composer require escalated-dev/escalated-laravel` |
|
|
56
|
+
| **Rails** | [escalated-dev/escalated-rails](https://github.com/escalated-dev/escalated-rails) | `gem "escalated"` |
|
|
57
|
+
| **Django** | [escalated-dev/escalated-django](https://github.com/escalated-dev/escalated-django) | `pip install escalated-django` |
|
|
58
|
+
| **AdonisJS** | [escalated-dev/escalated-adonis](https://github.com/escalated-dev/escalated-adonis) | `npm install @escalated-dev/escalated-adonis` |
|
|
59
|
+
| **WordPress** | [escalated-dev/escalated-wordpress](https://github.com/escalated-dev/escalated-wordpress) | [Download escalated.zip](https://github.com/escalated-dev/escalated-wordpress/releases/latest) |
|
|
60
|
+
| **Filament** | [escalated-dev/escalated-filament](https://github.com/escalated-dev/escalated-filament) | `composer require escalated-dev/escalated-filament` |
|
|
61
|
+
| **React Native** | [escalated-dev/escalated-react-native](https://github.com/escalated-dev/escalated-react-native) | `npm install @escalated-dev/escalated-react-native` |
|
|
62
|
+
| **Flutter** | [escalated-dev/escalated-flutter](https://github.com/escalated-dev/escalated-flutter) | See [pubspec.yaml setup](https://github.com/escalated-dev/escalated-flutter#quick-start) |
|
|
63
|
+
|
|
64
|
+
Each backend repo has full setup instructions — install command, migrations, config, and frontend integration.
|
|
65
|
+
|
|
66
|
+
## Tailwind CSS
|
|
67
|
+
|
|
68
|
+
Escalated components use Tailwind CSS utility classes (~hundreds of them across 140+ Vue files). **Some Tailwind-compatible class processor must be available in the host app for the UI to render correctly** — without one, every component renders as unstyled DOM with class names that don't resolve to any CSS.
|
|
69
|
+
|
|
70
|
+
### Recommended: Tailwind in your existing build
|
|
71
|
+
|
|
72
|
+
If your host app already uses Tailwind via Vite / PostCSS / Tailwind CLI, just add this package to your `content` config so its classes aren't purged:
|
|
73
|
+
|
|
74
|
+
```js
|
|
75
|
+
// tailwind.config.js
|
|
76
|
+
export default {
|
|
77
|
+
content: [
|
|
78
|
+
// ... your existing paths
|
|
79
|
+
'./node_modules/@escalated-dev/escalated/src/**/*.vue',
|
|
80
|
+
],
|
|
81
|
+
}
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
> **Tailwind 4+ users:** `content` globs are auto-detected from imported modules — you usually don't need to add anything. Skip this step if you're on v4.
|
|
85
|
+
|
|
86
|
+
### Using Escalated without a Tailwind build step
|
|
87
|
+
|
|
88
|
+
If you don't want a Tailwind toolchain in your build pipeline, you have a few options. Each has trade-offs — pick the one closest to your project's constraints:
|
|
89
|
+
|
|
90
|
+
| Option | When to use | How |
|
|
91
|
+
|---|---|---|
|
|
92
|
+
| **Tailwind Play CDN** | Prototyping, internal tools, demos. Not recommended for production (no purging, ~3 MB script tag). | Add `<script src="https://cdn.tailwindcss.com"></script>` to the page that renders Escalated. The CDN script JIT-compiles classes at runtime. |
|
|
93
|
+
| **Tailwind standalone CLI** | You want a static stylesheet without npm/Vite. | Download the [standalone CLI binary](https://tailwindcss.com/blog/standalone-cli) and run `tailwindcss -i input.css -o public/escalated.css --content './node_modules/@escalated-dev/escalated/src/**/*.vue' --minify`. Link the output stylesheet from your page. |
|
|
94
|
+
| **UnoCSS / Twind in attributify mode** | Already using one of these atomic-CSS engines. | Configure with the Tailwind preset (`@unocss/preset-wind` or `@twind/preset-tailwind`) and add the Escalated package path to the engine's scan config. Class semantics match. |
|
|
95
|
+
| **Forking with hand-rolled CSS** | You categorically cannot ship any Tailwind-compatible tooling and are willing to maintain a fork. | Replace utility classes with scoped CSS per component. Substantial effort; not officially supported. |
|
|
96
|
+
|
|
97
|
+
If none of these fit, please [open a discussion](https://github.com/escalated-dev/escalated/discussions) so we can understand the constraint and consider a pre-compiled CSS distribution.
|
|
98
|
+
|
|
99
|
+
Whatever path you choose, also make sure the [theme tokens](#theming) (CSS custom properties) are applied — those control colour, spacing, and radius and are independent of Tailwind.
|
|
100
|
+
|
|
101
|
+
## Theming
|
|
102
|
+
|
|
103
|
+
Escalated renders inside a standalone layout by default. To integrate it into your app's design system, use the `EscalatedPlugin`:
|
|
104
|
+
|
|
105
|
+
```js
|
|
106
|
+
import { createApp } from 'vue'
|
|
107
|
+
import { EscalatedPlugin } from '@escalated-dev/escalated'
|
|
108
|
+
import AppLayout from '@/Layouts/AppLayout.vue'
|
|
109
|
+
|
|
110
|
+
const app = createApp(...)
|
|
111
|
+
|
|
112
|
+
app.use(EscalatedPlugin, {
|
|
113
|
+
layout: AppLayout,
|
|
114
|
+
theme: {
|
|
115
|
+
primary: '#3b82f6',
|
|
116
|
+
radius: '0.75rem',
|
|
117
|
+
}
|
|
118
|
+
})
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
### Layout Integration
|
|
122
|
+
|
|
123
|
+
Pass your app's layout component and all Escalated pages render inside it automatically. The layout component must accept a `#header` slot and a default slot:
|
|
124
|
+
|
|
125
|
+
```vue
|
|
126
|
+
<!-- Your layout must support these slots -->
|
|
127
|
+
<template>
|
|
128
|
+
<div>
|
|
129
|
+
<nav>...</nav>
|
|
130
|
+
<header><slot name="header" /></header>
|
|
131
|
+
<main><slot /></main>
|
|
132
|
+
</div>
|
|
133
|
+
</template>
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
When no layout is provided, Escalated uses its own built-in navigation bar.
|
|
137
|
+
|
|
138
|
+
### CSS Custom Properties
|
|
139
|
+
|
|
140
|
+
The `theme` option sets CSS custom properties you can reference in your own styles:
|
|
141
|
+
|
|
142
|
+
| Property | Default | Description |
|
|
143
|
+
|----------|---------|-------------|
|
|
144
|
+
| `--esc-primary` | `#4f46e5` | Primary action color |
|
|
145
|
+
| `--esc-primary-hover` | auto-darkened | Primary hover color |
|
|
146
|
+
| `--esc-radius` | `0.5rem` | Border radius for inputs and buttons |
|
|
147
|
+
| `--esc-radius-lg` | auto-scaled | Border radius for cards and panels |
|
|
148
|
+
| `--esc-font-family` | inherit | Font family override |
|
|
149
|
+
|
|
150
|
+
### Framework Examples
|
|
151
|
+
|
|
152
|
+
**Laravel** (Inertia + Vue 3):
|
|
153
|
+
```js
|
|
154
|
+
import { EscalatedPlugin } from '@escalated-dev/escalated'
|
|
155
|
+
import AuthenticatedLayout from '@/Layouts/AuthenticatedLayout.vue'
|
|
156
|
+
|
|
157
|
+
app.use(EscalatedPlugin, { layout: AuthenticatedLayout })
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
**Rails** (Inertia + Vue 3):
|
|
161
|
+
```js
|
|
162
|
+
import { EscalatedPlugin } from '@escalated-dev/escalated'
|
|
163
|
+
import AppLayout from '@/layouts/AppLayout.vue'
|
|
164
|
+
|
|
165
|
+
app.use(EscalatedPlugin, { layout: AppLayout })
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
**Django** (Inertia + Vue 3):
|
|
169
|
+
```js
|
|
170
|
+
import { EscalatedPlugin } from '@escalated-dev/escalated'
|
|
171
|
+
import BaseLayout from '@/layouts/BaseLayout.vue'
|
|
172
|
+
|
|
173
|
+
app.use(EscalatedPlugin, { layout: BaseLayout })
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
**AdonisJS** (Inertia + Vue 3):
|
|
177
|
+
```js
|
|
178
|
+
import { EscalatedPlugin } from '@escalated-dev/escalated'
|
|
179
|
+
import AppLayout from '@/layouts/AppLayout.vue'
|
|
180
|
+
|
|
181
|
+
app.use(EscalatedPlugin, { layout: AppLayout })
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
## What's in This Repo
|
|
185
|
+
|
|
186
|
+
All the Vue 3 + Inertia.js components that power the Escalated UI. These are identical across Laravel, Rails, Django, and AdonisJS — the backend framework renders them via Inertia.
|
|
187
|
+
|
|
188
|
+
## 📸 Screenshots
|
|
189
|
+
|
|
190
|
+
> Screenshots are auto-generated from Storybook via the [component-screenshots](.github/workflows/screenshots.yml) workflow.
|
|
191
|
+
|
|
192
|
+
<p align="center">
|
|
193
|
+
<strong>Admin Panel (Dark)</strong><br/>
|
|
194
|
+
<img src="docs/assets/escalated_admin_1.png" alt="Escalated Admin Panel — dark mode with sidebar navigation, KPI cards, stats, and ticket list" width="800" />
|
|
195
|
+
</p>
|
|
196
|
+
|
|
197
|
+
<p align="center">
|
|
198
|
+
<strong>Admin Panel (Light)</strong><br/>
|
|
199
|
+
<img src="docs/assets/escalated_admin_3.png" alt="Escalated Admin Panel — light mode with sidebar navigation, KPI cards, stats, and ticket list" width="800" />
|
|
200
|
+
</p>
|
|
201
|
+
|
|
202
|
+
<p align="center">
|
|
203
|
+
<strong>Ticket Queue</strong><br/>
|
|
204
|
+
<img src="docs/assets/escalated_ticket_list.png" alt="Escalated Ticket Queue — agent ticket list with filters, search, bulk actions, and SLA indicators" width="800" />
|
|
205
|
+
</p>
|
|
206
|
+
|
|
207
|
+
<p align="center">
|
|
208
|
+
<strong>Agent Panel</strong><br/>
|
|
209
|
+
<img src="docs/assets/escalated_admin_2.png" alt="Escalated Agent Panel — top navigation, stats, and assigned ticket queue" width="800" />
|
|
210
|
+
</p>
|
|
211
|
+
|
|
212
|
+
<p align="center">
|
|
213
|
+
<strong>Ticket Detail View</strong><br/>
|
|
214
|
+
<img src="docs/assets/escalated_ticket_view.png" alt="Escalated Ticket Detail View — conversation thread, reply composer, and ticket sidebar with SLA timer" width="800" />
|
|
215
|
+
</p>
|
|
216
|
+
|
|
217
|
+
### Pages
|
|
218
|
+
|
|
219
|
+
**Customer Portal** — Self-service ticket management
|
|
220
|
+
- `pages/Customer/Index.vue` — Ticket list with status filters and search
|
|
221
|
+
- `pages/Customer/Create.vue` — New ticket form with file attachments
|
|
222
|
+
- `pages/Customer/Show.vue` — Ticket detail with reply thread
|
|
223
|
+
|
|
224
|
+
**Agent Dashboard** — Ticket queue and workflows
|
|
225
|
+
- `pages/Agent/Dashboard.vue` — Stats overview and recent tickets
|
|
226
|
+
- `pages/Agent/TicketIndex.vue` — Filterable ticket queue
|
|
227
|
+
- `pages/Agent/TicketShow.vue` — Full ticket view with sidebar, internal notes, canned responses
|
|
228
|
+
|
|
229
|
+
**Admin Panel** — System configuration
|
|
230
|
+
- `pages/Admin/Reports.vue` — Analytics dashboard
|
|
231
|
+
- `pages/Admin/Departments/` — Department CRUD
|
|
232
|
+
- `pages/Admin/SlaPolicies/` — SLA policy management
|
|
233
|
+
- `pages/Admin/EscalationRules/` — Escalation rule builder
|
|
234
|
+
- `pages/Admin/Tags/` — Tag management
|
|
235
|
+
- `pages/Admin/CannedResponses/` — Canned response templates
|
|
236
|
+
|
|
237
|
+
### Shared Components
|
|
238
|
+
|
|
239
|
+
Reusable building blocks used across the pages above.
|
|
240
|
+
|
|
241
|
+
| Component | Description |
|
|
242
|
+
|-----------|-------------|
|
|
243
|
+
| `StatusBadge` | Colored badge for ticket status |
|
|
244
|
+
| `PriorityBadge` | Colored badge for ticket priority |
|
|
245
|
+
| `TicketList` | Paginated ticket table |
|
|
246
|
+
| `ReplyThread` | Chronological reply display |
|
|
247
|
+
| `ReplyComposer` | Reply/note editor with file upload and canned response insertion |
|
|
248
|
+
| `ActivityTimeline` | Audit log of ticket events |
|
|
249
|
+
| `SlaTimer` | SLA countdown with breach/warning states |
|
|
250
|
+
| `TicketFilters` | Status, priority, agent, department filter bar |
|
|
251
|
+
| `TicketSidebar` | Ticket detail sidebar (status, SLA, tags, activity) |
|
|
252
|
+
| `AssigneeSelect` | Agent assignment dropdown |
|
|
253
|
+
| `TagSelect` | Multi-select tag picker |
|
|
254
|
+
| `FileDropzone` | Drag-and-drop file upload |
|
|
255
|
+
| `AttachmentList` | File attachment display with download links |
|
|
256
|
+
| `StatsCard` | Metric card with label, value, and trend |
|
|
257
|
+
| `EscalatedLayout` | Top-level layout with navigation (supports host layout injection) |
|
|
258
|
+
| `BulkActionBar` | Toolbar for batch operations on selected tickets |
|
|
259
|
+
| `QuickFilters` | One-click filter chips (My Tickets, Unassigned, Urgent, SLA Breaching) |
|
|
260
|
+
| `MacroDropdown` | Dropdown to apply multi-step macros to a ticket |
|
|
261
|
+
| `FollowButton` | Toggle button to follow/unfollow a ticket |
|
|
262
|
+
| `SatisfactionRating` | 1-5 star CSAT rating input with optional comment |
|
|
263
|
+
| `KeyboardShortcutHelp` | Modal overlay showing all available keyboard shortcuts |
|
|
264
|
+
| `PinnedNotes` | Display pinned internal notes at the top of the thread |
|
|
265
|
+
| `PresenceIndicator` | Real-time indicator showing who is viewing a ticket |
|
|
266
|
+
|
|
267
|
+
### Composables
|
|
268
|
+
|
|
269
|
+
| Composable | Description |
|
|
270
|
+
|------------|-------------|
|
|
271
|
+
| `useKeyboardShortcuts` | Registers and manages keyboard shortcuts for ticket actions |
|
|
272
|
+
|
|
273
|
+
### Plugin
|
|
274
|
+
|
|
275
|
+
| Export | Description |
|
|
276
|
+
|--------|-------------|
|
|
277
|
+
| `EscalatedPlugin` | Vue plugin for layout injection and CSS theming |
|
|
278
|
+
|
|
279
|
+
## Plugin Development
|
|
280
|
+
|
|
281
|
+
Escalated supports framework-agnostic plugins built with the [Plugin SDK](https://github.com/escalated-dev/escalated-plugin-sdk). Plugins are written once in TypeScript and work across all Escalated backends.
|
|
282
|
+
|
|
283
|
+
### How the Frontend Plugin System Works
|
|
284
|
+
|
|
285
|
+
The frontend uses `defineEscalatedPlugin()` to register Vue components — custom admin pages, ticket sidebar widgets, or dashboard panels — that are mounted automatically when the plugin is active.
|
|
286
|
+
|
|
287
|
+
```typescript
|
|
288
|
+
import { defineEscalatedPlugin } from '@escalated-dev/escalated'
|
|
289
|
+
import MySettingsPage from './MySettingsPage.vue'
|
|
290
|
+
|
|
291
|
+
export default defineEscalatedPlugin({
|
|
292
|
+
name: 'my-plugin',
|
|
293
|
+
pages: {
|
|
294
|
+
'admin/my-plugin/settings': MySettingsPage,
|
|
295
|
+
},
|
|
296
|
+
})
|
|
297
|
+
```
|
|
298
|
+
|
|
299
|
+
### How It Connects to the Backend
|
|
300
|
+
|
|
301
|
+
The backend uses `definePlugin()` from the [Plugin SDK](https://github.com/escalated-dev/escalated-plugin-sdk) to handle TypeScript business logic — subscribing to ticket lifecycle hooks, exposing API endpoints, and persisting data. The frontend and backend entries work together as a single npm package.
|
|
302
|
+
|
|
303
|
+
```typescript
|
|
304
|
+
// backend entry (index.ts)
|
|
305
|
+
import { definePlugin } from '@escalated-dev/plugin-sdk'
|
|
306
|
+
|
|
307
|
+
export default definePlugin({
|
|
308
|
+
name: 'my-plugin',
|
|
309
|
+
version: '1.0.0',
|
|
310
|
+
actions: {
|
|
311
|
+
'ticket.created': async (event, ctx) => {
|
|
312
|
+
ctx.log.info('New ticket!', event)
|
|
313
|
+
},
|
|
314
|
+
},
|
|
315
|
+
})
|
|
316
|
+
```
|
|
317
|
+
|
|
318
|
+
### Quick Example: Both Entry Points
|
|
319
|
+
|
|
320
|
+
A published plugin package typically exports both:
|
|
321
|
+
|
|
322
|
+
```
|
|
323
|
+
my-plugin/
|
|
324
|
+
index.ts ← backend: definePlugin() for TypeScript logic
|
|
325
|
+
frontend.ts ← frontend: defineEscalatedPlugin() for Vue components
|
|
326
|
+
```
|
|
327
|
+
|
|
328
|
+
The backend framework (Laravel, Rails, Django, AdonisJS) loads `index.ts` via the [Plugin Runtime](https://github.com/escalated-dev/escalated-plugin-runtime). The Vue app imports `frontend.ts` and registers it with `app.use()`.
|
|
329
|
+
|
|
330
|
+
### Installing Plugins
|
|
331
|
+
|
|
332
|
+
```bash
|
|
333
|
+
npm install @escalated-dev/plugin-slack
|
|
334
|
+
npm install @escalated-dev/plugin-jira
|
|
335
|
+
```
|
|
336
|
+
|
|
337
|
+
### Resources
|
|
338
|
+
|
|
339
|
+
- [Plugin SDK](https://github.com/escalated-dev/escalated-plugin-sdk) — TypeScript SDK for building plugins
|
|
340
|
+
- [Plugin Runtime](https://github.com/escalated-dev/escalated-plugin-runtime) — Runtime host for plugins
|
|
341
|
+
- [Plugin Development Guide](https://github.com/escalated-dev/escalated-docs) — Full documentation
|
|
342
|
+
|
|
343
|
+
## For Package Maintainers
|
|
344
|
+
|
|
345
|
+
If you're building a new backend integration, this package is available on npm:
|
|
346
|
+
|
|
347
|
+
```bash
|
|
348
|
+
npm install @escalated-dev/escalated
|
|
349
|
+
```
|
|
350
|
+
|
|
351
|
+
```js
|
|
352
|
+
// Import the plugin
|
|
353
|
+
import { EscalatedPlugin } from '@escalated-dev/escalated'
|
|
354
|
+
|
|
355
|
+
// Import individual components
|
|
356
|
+
import { StatusBadge, SlaTimer } from '@escalated-dev/escalated'
|
|
357
|
+
|
|
358
|
+
// Or reference pages directly for Inertia resolution
|
|
359
|
+
import CustomerIndex from '@escalated-dev/escalated/pages/Customer/Index.vue'
|
|
360
|
+
```
|
|
361
|
+
|
|
362
|
+
Peer dependencies: `vue` ^3.3.0, `@inertiajs/vue3` ^1.0.0 || ^2.0.0
|
|
363
|
+
|
|
364
|
+
## Ecosystem
|
|
365
|
+
|
|
366
|
+
This is the shared frontend for the Escalated support ticket system. Host framework packages and client SDKs available across the ecosystem:
|
|
367
|
+
|
|
368
|
+
- **[Escalated for Laravel](https://github.com/escalated-dev/escalated-laravel)** — Laravel Composer package
|
|
369
|
+
- **[Escalated for Rails](https://github.com/escalated-dev/escalated-rails)** — Ruby on Rails engine
|
|
370
|
+
- **[Escalated for Django](https://github.com/escalated-dev/escalated-django)** — Django reusable app
|
|
371
|
+
- **[Escalated for AdonisJS](https://github.com/escalated-dev/escalated-adonis)** — AdonisJS v6 package
|
|
372
|
+
- **[Escalated for WordPress](https://github.com/escalated-dev/escalated-wordpress)** — WordPress plugin
|
|
373
|
+
- **[Escalated for Filament](https://github.com/escalated-dev/escalated-filament)** — Filament v3 admin panel plugin
|
|
374
|
+
- **[Escalated for React Native](https://github.com/escalated-dev/escalated-react-native)** — React Native SDK
|
|
375
|
+
- **[Escalated for Flutter](https://github.com/escalated-dev/escalated-flutter)** — Flutter SDK
|
|
376
|
+
- **[Shared Frontend](https://github.com/escalated-dev/escalated)** — Vue 3 + Inertia.js UI components (you are here)
|
|
377
|
+
|
|
378
|
+
## License
|
|
379
|
+
|
|
380
|
+
MIT
|