jat-feedback 3.5.0 → 3.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/dist/jat-feedback.js +34 -34
- package/dist/jat-feedback.mjs +3045 -3003
- package/package.json +1 -1
- package/routes/feedback/replay/+page.svelte +11 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jat-feedback",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.7.1",
|
|
4
4
|
"description": "Embeddable feedback widget for bug reports and feature requests. Captures screenshots, console logs, and user context as a web component.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/jat-feedback.js",
|
|
@@ -45,6 +45,13 @@
|
|
|
45
45
|
: `<div class="spinner"></div><span>${msg}</span>`
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
+
function setNotFound() {
|
|
49
|
+
if (!statusEl) return
|
|
50
|
+
statusEl.style.display = 'flex'
|
|
51
|
+
statusEl.className = 'error'
|
|
52
|
+
statusEl.innerHTML = `<span>Recording not found.</span>`
|
|
53
|
+
}
|
|
54
|
+
|
|
48
55
|
function showPlayer() {
|
|
49
56
|
if (statusEl) statusEl.style.display = 'none'
|
|
50
57
|
if (bodyEl) bodyEl.style.display = 'flex'
|
|
@@ -177,7 +184,10 @@
|
|
|
177
184
|
if (!res.ok) throw new Error(`Reports API: HTTP ${res.status}`)
|
|
178
185
|
const data = await res.json()
|
|
179
186
|
const report = (data.reports || []).find(r => r.id === taskId)
|
|
180
|
-
if (!report)
|
|
187
|
+
if (!report) {
|
|
188
|
+
setNotFound()
|
|
189
|
+
return
|
|
190
|
+
}
|
|
181
191
|
|
|
182
192
|
document.title = `Replay: ${report.title || taskId}`
|
|
183
193
|
const reportTitleEl = document.getElementById('report-title')
|