glitchgrab 1.3.0 → 1.5.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/README.md +56 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -273,6 +273,62 @@ Use the [Fetching Reports API](#fetching-reports-by-user) to list reports. Each
|
|
|
273
273
|
3. Approve/reject/close via API or dashboard buttons
|
|
274
274
|
4. Labels and state sync directly to GitHub — GitHub is the source of truth
|
|
275
275
|
|
|
276
|
+
## Conversation Thread (Comments)
|
|
277
|
+
|
|
278
|
+
Each report has a conversation thread powered by GitHub issue comments. No extra database — comments live on GitHub.
|
|
279
|
+
|
|
280
|
+
### View a report with comments
|
|
281
|
+
|
|
282
|
+
```bash
|
|
283
|
+
curl -H "Authorization: Bearer gg_your_token" \
|
|
284
|
+
https://glitchgrab.dev/api/v1/sdk/reports/REPORT_ID
|
|
285
|
+
```
|
|
286
|
+
|
|
287
|
+
Returns the full issue body + all comments:
|
|
288
|
+
|
|
289
|
+
```json
|
|
290
|
+
{
|
|
291
|
+
"success": true,
|
|
292
|
+
"data": {
|
|
293
|
+
"id": "cmn7abc123",
|
|
294
|
+
"issue": {
|
|
295
|
+
"title": "Button not working",
|
|
296
|
+
"body": "## Description\n\nThe submit button...",
|
|
297
|
+
"githubState": "open",
|
|
298
|
+
"labels": ["bug"]
|
|
299
|
+
},
|
|
300
|
+
"comments": [
|
|
301
|
+
{
|
|
302
|
+
"author": "WebNaresh",
|
|
303
|
+
"body": "Can you share your browser version?",
|
|
304
|
+
"createdAt": "2026-03-27T10:00:00Z"
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
"author": "WebNaresh",
|
|
308
|
+
"body": "It's Chrome 120 on Windows\n\n---\n> Commented by: **Vivek** (vivek@example.com)",
|
|
309
|
+
"createdAt": "2026-03-27T10:05:00Z"
|
|
310
|
+
}
|
|
311
|
+
]
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
```
|
|
315
|
+
|
|
316
|
+
### Reply to a report
|
|
317
|
+
|
|
318
|
+
```bash
|
|
319
|
+
curl -X POST \
|
|
320
|
+
-H "Authorization: Bearer gg_your_token" \
|
|
321
|
+
-H "Content-Type: application/json" \
|
|
322
|
+
-d '{"message": "I can reproduce this, fixing now", "reporterName": "Vivek", "reporterEmail": "vivek@example.com"}' \
|
|
323
|
+
https://glitchgrab.dev/api/v1/sdk/reports/REPORT_ID/comments
|
|
324
|
+
```
|
|
325
|
+
|
|
326
|
+
The comment is posted to the GitHub issue with attribution: "Commented by: **Vivek** (vivek@example.com)".
|
|
327
|
+
|
|
328
|
+
### Dashboard
|
|
329
|
+
|
|
330
|
+
Click any report on the Reports page to see the full conversation thread. Reply directly from the dashboard — comments sync to GitHub.
|
|
331
|
+
|
|
276
332
|
## Error Boundary
|
|
277
333
|
|
|
278
334
|
Wrap components to auto-capture React errors:
|