@fatagnus/convex-feedback 0.1.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 +177 -0
- package/README.md +382 -0
- package/dist/convex/agents/bugReportAgent.d.ts +30 -0
- package/dist/convex/agents/bugReportAgent.d.ts.map +1 -0
- package/dist/convex/agents/bugReportAgent.js +243 -0
- package/dist/convex/agents/bugReportAgent.js.map +1 -0
- package/dist/convex/agents/feedbackAgent.d.ts +29 -0
- package/dist/convex/agents/feedbackAgent.d.ts.map +1 -0
- package/dist/convex/agents/feedbackAgent.js +232 -0
- package/dist/convex/agents/feedbackAgent.js.map +1 -0
- package/dist/convex/bugReports.d.ts +49 -0
- package/dist/convex/bugReports.d.ts.map +1 -0
- package/dist/convex/bugReports.js +321 -0
- package/dist/convex/bugReports.js.map +1 -0
- package/dist/convex/convex.config.d.ts +3 -0
- package/dist/convex/convex.config.d.ts.map +1 -0
- package/dist/convex/convex.config.js +6 -0
- package/dist/convex/convex.config.js.map +1 -0
- package/dist/convex/emails/bugReportEmails.d.ts +16 -0
- package/dist/convex/emails/bugReportEmails.d.ts.map +1 -0
- package/dist/convex/emails/bugReportEmails.js +403 -0
- package/dist/convex/emails/bugReportEmails.js.map +1 -0
- package/dist/convex/emails/feedbackEmails.d.ts +16 -0
- package/dist/convex/emails/feedbackEmails.d.ts.map +1 -0
- package/dist/convex/emails/feedbackEmails.js +389 -0
- package/dist/convex/emails/feedbackEmails.js.map +1 -0
- package/dist/convex/feedback.d.ts +49 -0
- package/dist/convex/feedback.d.ts.map +1 -0
- package/dist/convex/feedback.js +327 -0
- package/dist/convex/feedback.js.map +1 -0
- package/dist/convex/index.d.ts +10 -0
- package/dist/convex/index.d.ts.map +1 -0
- package/dist/convex/index.js +12 -0
- package/dist/convex/index.js.map +1 -0
- package/dist/convex/schema.d.ts +200 -0
- package/dist/convex/schema.d.ts.map +1 -0
- package/dist/convex/schema.js +150 -0
- package/dist/convex/schema.js.map +1 -0
- package/dist/convex/supportTeams.d.ts +29 -0
- package/dist/convex/supportTeams.d.ts.map +1 -0
- package/dist/convex/supportTeams.js +159 -0
- package/dist/convex/supportTeams.js.map +1 -0
- package/dist/index.d.ts +70 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +63 -0
- package/dist/index.js.map +1 -0
- package/dist/react/BugReportButton.d.ts +70 -0
- package/dist/react/BugReportButton.d.ts.map +1 -0
- package/dist/react/BugReportButton.js +371 -0
- package/dist/react/BugReportButton.js.map +1 -0
- package/dist/react/BugReportContext.d.ts +59 -0
- package/dist/react/BugReportContext.d.ts.map +1 -0
- package/dist/react/BugReportContext.js +107 -0
- package/dist/react/BugReportContext.js.map +1 -0
- package/dist/react/index.d.ts +36 -0
- package/dist/react/index.d.ts.map +1 -0
- package/dist/react/index.js +36 -0
- package/dist/react/index.js.map +1 -0
- package/dist/types.d.ts +89 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +5 -0
- package/dist/types.js.map +1 -0
- package/package.json +101 -0
- package/src/convex/agents/bugReportAgent.ts +277 -0
- package/src/convex/agents/feedbackAgent.ts +264 -0
- package/src/convex/bugReports.ts +350 -0
- package/src/convex/convex.config.ts +7 -0
- package/src/convex/emails/bugReportEmails.ts +479 -0
- package/src/convex/emails/feedbackEmails.ts +465 -0
- package/src/convex/feedback.ts +356 -0
- package/src/convex/index.ts +28 -0
- package/src/convex/schema.ts +207 -0
- package/src/convex/supportTeams.ts +179 -0
- package/src/index.ts +77 -0
- package/src/react/BugReportButton.tsx +755 -0
- package/src/react/BugReportContext.tsx +146 -0
- package/src/react/index.ts +46 -0
- package/src/types.ts +93 -0
|
@@ -0,0 +1,321 @@
|
|
|
1
|
+
import { v } from "convex/values";
|
|
2
|
+
import { mutation, query, internalMutation } from "./_generated/server";
|
|
3
|
+
import { internal } from "./_generated/api";
|
|
4
|
+
import { bugSeverityValidator, bugStatusValidator, reporterTypeValidator, effortValidator, } from "./schema";
|
|
5
|
+
// Return validator for bug reports
|
|
6
|
+
const bugReportReturnValidator = v.object({
|
|
7
|
+
_id: v.id("bugReports"),
|
|
8
|
+
_creationTime: v.number(),
|
|
9
|
+
title: v.string(),
|
|
10
|
+
description: v.string(),
|
|
11
|
+
severity: bugSeverityValidator,
|
|
12
|
+
status: bugStatusValidator,
|
|
13
|
+
isArchived: v.optional(v.boolean()),
|
|
14
|
+
reporterType: reporterTypeValidator,
|
|
15
|
+
reporterId: v.string(),
|
|
16
|
+
reporterEmail: v.string(),
|
|
17
|
+
reporterName: v.string(),
|
|
18
|
+
url: v.string(),
|
|
19
|
+
route: v.optional(v.string()),
|
|
20
|
+
browserInfo: v.string(),
|
|
21
|
+
consoleErrors: v.optional(v.string()),
|
|
22
|
+
screenshotStorageId: v.optional(v.id("_storage")),
|
|
23
|
+
viewportWidth: v.number(),
|
|
24
|
+
viewportHeight: v.number(),
|
|
25
|
+
networkState: v.string(),
|
|
26
|
+
createdAt: v.number(),
|
|
27
|
+
updatedAt: v.number(),
|
|
28
|
+
// AI Analysis fields
|
|
29
|
+
aiSummary: v.optional(v.string()),
|
|
30
|
+
aiRootCauseAnalysis: v.optional(v.string()),
|
|
31
|
+
aiReproductionSteps: v.optional(v.array(v.string())),
|
|
32
|
+
aiSuggestedFix: v.optional(v.string()),
|
|
33
|
+
aiEstimatedEffort: v.optional(effortValidator),
|
|
34
|
+
aiSuggestedSeverity: v.optional(bugSeverityValidator),
|
|
35
|
+
aiAnalyzedAt: v.optional(v.number()),
|
|
36
|
+
aiThreadId: v.optional(v.string()),
|
|
37
|
+
notificationsSentAt: v.optional(v.number()),
|
|
38
|
+
});
|
|
39
|
+
/**
|
|
40
|
+
* Create a new bug report.
|
|
41
|
+
* This mutation is intentionally public (no auth required) because:
|
|
42
|
+
* 1. We want to capture bugs even when auth might be broken
|
|
43
|
+
* 2. The reporter info is passed explicitly from the client
|
|
44
|
+
*/
|
|
45
|
+
export const create = mutation({
|
|
46
|
+
args: {
|
|
47
|
+
title: v.string(),
|
|
48
|
+
description: v.string(),
|
|
49
|
+
severity: bugSeverityValidator,
|
|
50
|
+
reporterType: reporterTypeValidator,
|
|
51
|
+
reporterId: v.string(),
|
|
52
|
+
reporterEmail: v.string(),
|
|
53
|
+
reporterName: v.string(),
|
|
54
|
+
url: v.string(),
|
|
55
|
+
route: v.optional(v.string()),
|
|
56
|
+
browserInfo: v.string(),
|
|
57
|
+
consoleErrors: v.optional(v.string()),
|
|
58
|
+
screenshotStorageId: v.optional(v.id("_storage")),
|
|
59
|
+
viewportWidth: v.number(),
|
|
60
|
+
viewportHeight: v.number(),
|
|
61
|
+
networkState: v.string(),
|
|
62
|
+
},
|
|
63
|
+
returns: v.id("bugReports"),
|
|
64
|
+
handler: async (ctx, args) => {
|
|
65
|
+
const now = Date.now();
|
|
66
|
+
const reportId = await ctx.db.insert("bugReports", {
|
|
67
|
+
title: args.title,
|
|
68
|
+
description: args.description,
|
|
69
|
+
severity: args.severity,
|
|
70
|
+
status: "open",
|
|
71
|
+
reporterType: args.reporterType,
|
|
72
|
+
reporterId: args.reporterId,
|
|
73
|
+
reporterEmail: args.reporterEmail,
|
|
74
|
+
reporterName: args.reporterName,
|
|
75
|
+
url: args.url,
|
|
76
|
+
route: args.route,
|
|
77
|
+
browserInfo: args.browserInfo,
|
|
78
|
+
consoleErrors: args.consoleErrors,
|
|
79
|
+
screenshotStorageId: args.screenshotStorageId,
|
|
80
|
+
viewportWidth: args.viewportWidth,
|
|
81
|
+
viewportHeight: args.viewportHeight,
|
|
82
|
+
networkState: args.networkState,
|
|
83
|
+
createdAt: now,
|
|
84
|
+
updatedAt: now,
|
|
85
|
+
});
|
|
86
|
+
// Schedule AI analysis and email notifications (runs immediately)
|
|
87
|
+
// This uses a try-catch to gracefully handle if agents aren't configured
|
|
88
|
+
try {
|
|
89
|
+
await ctx.scheduler.runAfter(0, internal.agents.bugReportAgent.processBugReport, {
|
|
90
|
+
bugReportId: reportId,
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
catch {
|
|
94
|
+
// AI agent not available, continue without analysis
|
|
95
|
+
console.log("AI agent not configured, skipping analysis");
|
|
96
|
+
}
|
|
97
|
+
return reportId;
|
|
98
|
+
},
|
|
99
|
+
});
|
|
100
|
+
/**
|
|
101
|
+
* List bug reports with optional filters.
|
|
102
|
+
* By default, archived items are excluded unless includeArchived is true.
|
|
103
|
+
*/
|
|
104
|
+
export const list = query({
|
|
105
|
+
args: {
|
|
106
|
+
status: v.optional(bugStatusValidator),
|
|
107
|
+
severity: v.optional(bugSeverityValidator),
|
|
108
|
+
includeArchived: v.optional(v.boolean()),
|
|
109
|
+
limit: v.optional(v.number()),
|
|
110
|
+
},
|
|
111
|
+
returns: v.array(bugReportReturnValidator),
|
|
112
|
+
handler: async (ctx, args) => {
|
|
113
|
+
const limit = args.limit ?? 50;
|
|
114
|
+
const includeArchived = args.includeArchived ?? false;
|
|
115
|
+
let reports;
|
|
116
|
+
if (args.status) {
|
|
117
|
+
const status = args.status;
|
|
118
|
+
reports = await ctx.db
|
|
119
|
+
.query("bugReports")
|
|
120
|
+
.withIndex("by_status", (q) => q.eq("status", status))
|
|
121
|
+
.order("desc")
|
|
122
|
+
.take(limit * 2);
|
|
123
|
+
}
|
|
124
|
+
else if (args.severity) {
|
|
125
|
+
const severity = args.severity;
|
|
126
|
+
reports = await ctx.db
|
|
127
|
+
.query("bugReports")
|
|
128
|
+
.withIndex("by_severity", (q) => q.eq("severity", severity))
|
|
129
|
+
.order("desc")
|
|
130
|
+
.take(limit * 2);
|
|
131
|
+
}
|
|
132
|
+
else {
|
|
133
|
+
reports = await ctx.db
|
|
134
|
+
.query("bugReports")
|
|
135
|
+
.withIndex("by_created")
|
|
136
|
+
.order("desc")
|
|
137
|
+
.take(limit * 2);
|
|
138
|
+
}
|
|
139
|
+
// Filter out archived items unless includeArchived is true
|
|
140
|
+
if (!includeArchived) {
|
|
141
|
+
reports = reports.filter((r) => !r.isArchived);
|
|
142
|
+
}
|
|
143
|
+
return reports.slice(0, limit);
|
|
144
|
+
},
|
|
145
|
+
});
|
|
146
|
+
/**
|
|
147
|
+
* Get a single bug report by ID.
|
|
148
|
+
*/
|
|
149
|
+
export const get = query({
|
|
150
|
+
args: {
|
|
151
|
+
reportId: v.id("bugReports"),
|
|
152
|
+
},
|
|
153
|
+
returns: v.union(bugReportReturnValidator, v.null()),
|
|
154
|
+
handler: async (ctx, args) => {
|
|
155
|
+
return await ctx.db.get(args.reportId);
|
|
156
|
+
},
|
|
157
|
+
});
|
|
158
|
+
/**
|
|
159
|
+
* Update bug report status.
|
|
160
|
+
*/
|
|
161
|
+
export const updateStatus = mutation({
|
|
162
|
+
args: {
|
|
163
|
+
reportId: v.id("bugReports"),
|
|
164
|
+
status: bugStatusValidator,
|
|
165
|
+
},
|
|
166
|
+
returns: v.null(),
|
|
167
|
+
handler: async (ctx, args) => {
|
|
168
|
+
const report = await ctx.db.get(args.reportId);
|
|
169
|
+
if (!report) {
|
|
170
|
+
throw new Error("Bug report not found");
|
|
171
|
+
}
|
|
172
|
+
await ctx.db.patch(args.reportId, {
|
|
173
|
+
status: args.status,
|
|
174
|
+
updatedAt: Date.now(),
|
|
175
|
+
});
|
|
176
|
+
return null;
|
|
177
|
+
},
|
|
178
|
+
});
|
|
179
|
+
/**
|
|
180
|
+
* Generate upload URL for screenshot.
|
|
181
|
+
*/
|
|
182
|
+
export const generateUploadUrl = mutation({
|
|
183
|
+
args: {},
|
|
184
|
+
returns: v.string(),
|
|
185
|
+
handler: async (ctx) => {
|
|
186
|
+
return await ctx.storage.generateUploadUrl();
|
|
187
|
+
},
|
|
188
|
+
});
|
|
189
|
+
/**
|
|
190
|
+
* Get screenshot URL from storage ID.
|
|
191
|
+
*/
|
|
192
|
+
export const getScreenshotUrl = query({
|
|
193
|
+
args: {
|
|
194
|
+
storageId: v.id("_storage"),
|
|
195
|
+
},
|
|
196
|
+
returns: v.union(v.string(), v.null()),
|
|
197
|
+
handler: async (ctx, args) => {
|
|
198
|
+
return await ctx.storage.getUrl(args.storageId);
|
|
199
|
+
},
|
|
200
|
+
});
|
|
201
|
+
/**
|
|
202
|
+
* Archive a bug report.
|
|
203
|
+
*/
|
|
204
|
+
export const archive = mutation({
|
|
205
|
+
args: {
|
|
206
|
+
reportId: v.id("bugReports"),
|
|
207
|
+
},
|
|
208
|
+
returns: v.null(),
|
|
209
|
+
handler: async (ctx, args) => {
|
|
210
|
+
const report = await ctx.db.get(args.reportId);
|
|
211
|
+
if (!report) {
|
|
212
|
+
throw new Error("Bug report not found");
|
|
213
|
+
}
|
|
214
|
+
await ctx.db.patch(args.reportId, {
|
|
215
|
+
isArchived: true,
|
|
216
|
+
updatedAt: Date.now(),
|
|
217
|
+
});
|
|
218
|
+
return null;
|
|
219
|
+
},
|
|
220
|
+
});
|
|
221
|
+
/**
|
|
222
|
+
* Unarchive a bug report.
|
|
223
|
+
*/
|
|
224
|
+
export const unarchive = mutation({
|
|
225
|
+
args: {
|
|
226
|
+
reportId: v.id("bugReports"),
|
|
227
|
+
},
|
|
228
|
+
returns: v.null(),
|
|
229
|
+
handler: async (ctx, args) => {
|
|
230
|
+
const report = await ctx.db.get(args.reportId);
|
|
231
|
+
if (!report) {
|
|
232
|
+
throw new Error("Bug report not found");
|
|
233
|
+
}
|
|
234
|
+
await ctx.db.patch(args.reportId, {
|
|
235
|
+
isArchived: false,
|
|
236
|
+
updatedAt: Date.now(),
|
|
237
|
+
});
|
|
238
|
+
return null;
|
|
239
|
+
},
|
|
240
|
+
});
|
|
241
|
+
/**
|
|
242
|
+
* Get AI analysis for a specific bug report.
|
|
243
|
+
*/
|
|
244
|
+
export const getAiAnalysis = query({
|
|
245
|
+
args: {
|
|
246
|
+
reportId: v.id("bugReports"),
|
|
247
|
+
},
|
|
248
|
+
returns: v.union(v.object({
|
|
249
|
+
aiSummary: v.union(v.string(), v.null()),
|
|
250
|
+
aiRootCauseAnalysis: v.union(v.string(), v.null()),
|
|
251
|
+
aiReproductionSteps: v.union(v.array(v.string()), v.null()),
|
|
252
|
+
aiSuggestedFix: v.union(v.string(), v.null()),
|
|
253
|
+
aiEstimatedEffort: v.union(effortValidator, v.null()),
|
|
254
|
+
aiSuggestedSeverity: v.union(bugSeverityValidator, v.null()),
|
|
255
|
+
aiAnalyzedAt: v.union(v.number(), v.null()),
|
|
256
|
+
notificationsSentAt: v.union(v.number(), v.null()),
|
|
257
|
+
}), v.null()),
|
|
258
|
+
handler: async (ctx, args) => {
|
|
259
|
+
const report = await ctx.db.get(args.reportId);
|
|
260
|
+
if (!report) {
|
|
261
|
+
return null;
|
|
262
|
+
}
|
|
263
|
+
return {
|
|
264
|
+
aiSummary: report.aiSummary ?? null,
|
|
265
|
+
aiRootCauseAnalysis: report.aiRootCauseAnalysis ?? null,
|
|
266
|
+
aiReproductionSteps: report.aiReproductionSteps ?? null,
|
|
267
|
+
aiSuggestedFix: report.aiSuggestedFix ?? null,
|
|
268
|
+
aiEstimatedEffort: report.aiEstimatedEffort ?? null,
|
|
269
|
+
aiSuggestedSeverity: report.aiSuggestedSeverity ?? null,
|
|
270
|
+
aiAnalyzedAt: report.aiAnalyzedAt ?? null,
|
|
271
|
+
notificationsSentAt: report.notificationsSentAt ?? null,
|
|
272
|
+
};
|
|
273
|
+
},
|
|
274
|
+
});
|
|
275
|
+
/**
|
|
276
|
+
* Internal mutation to update bug report with AI analysis results
|
|
277
|
+
*/
|
|
278
|
+
export const updateWithAnalysis = internalMutation({
|
|
279
|
+
args: {
|
|
280
|
+
bugReportId: v.id("bugReports"),
|
|
281
|
+
aiSummary: v.string(),
|
|
282
|
+
aiRootCauseAnalysis: v.string(),
|
|
283
|
+
aiReproductionSteps: v.array(v.string()),
|
|
284
|
+
aiSuggestedFix: v.string(),
|
|
285
|
+
aiEstimatedEffort: effortValidator,
|
|
286
|
+
aiSuggestedSeverity: bugSeverityValidator,
|
|
287
|
+
aiThreadId: v.string(),
|
|
288
|
+
},
|
|
289
|
+
returns: v.null(),
|
|
290
|
+
handler: async (ctx, args) => {
|
|
291
|
+
await ctx.db.patch(args.bugReportId, {
|
|
292
|
+
aiSummary: args.aiSummary,
|
|
293
|
+
aiRootCauseAnalysis: args.aiRootCauseAnalysis,
|
|
294
|
+
aiReproductionSteps: args.aiReproductionSteps,
|
|
295
|
+
aiSuggestedFix: args.aiSuggestedFix,
|
|
296
|
+
aiEstimatedEffort: args.aiEstimatedEffort,
|
|
297
|
+
aiSuggestedSeverity: args.aiSuggestedSeverity,
|
|
298
|
+
aiThreadId: args.aiThreadId,
|
|
299
|
+
aiAnalyzedAt: Date.now(),
|
|
300
|
+
updatedAt: Date.now(),
|
|
301
|
+
});
|
|
302
|
+
return null;
|
|
303
|
+
},
|
|
304
|
+
});
|
|
305
|
+
/**
|
|
306
|
+
* Internal mutation to mark notifications as sent
|
|
307
|
+
*/
|
|
308
|
+
export const markNotificationsSent = internalMutation({
|
|
309
|
+
args: {
|
|
310
|
+
bugReportId: v.id("bugReports"),
|
|
311
|
+
},
|
|
312
|
+
returns: v.null(),
|
|
313
|
+
handler: async (ctx, args) => {
|
|
314
|
+
await ctx.db.patch(args.bugReportId, {
|
|
315
|
+
notificationsSentAt: Date.now(),
|
|
316
|
+
updatedAt: Date.now(),
|
|
317
|
+
});
|
|
318
|
+
return null;
|
|
319
|
+
},
|
|
320
|
+
});
|
|
321
|
+
//# sourceMappingURL=bugReports.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bugReports.js","sourceRoot":"","sources":["../../src/convex/bugReports.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EACL,oBAAoB,EACpB,kBAAkB,EAClB,qBAAqB,EACrB,eAAe,GAChB,MAAM,UAAU,CAAC;AAElB,mCAAmC;AACnC,MAAM,wBAAw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AC,WAAW,EAAE;YACnC,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,mBAAmB,EAAE,IAAI,CAAC,mBAAmB;YAC7C,mBAAmB,EAAE,IAAI,CAAC,mBAAmB;YAC7C,cAAc,EAAE,IAAI,CAAC,cAAc;YACnC,iBAAiB,EAAE,IAAI,CAAC,iBAAiB;YACzC,mBAAmB,EAAE,IAAI,CAAC,mBAAmB;YAC7C,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,YAAY,EAAE,IAAI,CAAC,GAAG,EAAE;YACxB,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;SACtB,CAAC,CAAC;QACH,OAAO,IAAI,CAAC;IACd,CAAC;CACF,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,gBAAgB,CAAC;IACpD,IAAI,EAAE;QACJ,WAAW,EAAE,CAAC,CAAC,EAAE,CAAC,YAAY,CAAC;KAChC;IACD,OAAO,EAAE,CAAC,CAAC,IAAI,EAAE;IACjB,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE;QAC3B,MAAM,GAAG,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,WAAW,EAAE;YACnC,mBAAmB,EAAE,IAAI,CAAC,GAAG,EAAE;YAC/B,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;SACtB,CAAC,CAAC;QACH,OAAO,IAAI,CAAC;IACd,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"convex.config.d.ts","sourceRoot":"","sources":["../../src/convex/convex.config.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,QAAQ,kDAA8B,CAAC;AAG7C,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"convex.config.js","sourceRoot":"","sources":["../../src/convex/convex.config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,KAAK,MAAM,iCAAiC,CAAC;AAEpD,MAAM,QAAQ,GAAG,eAAe,CAAC,UAAU,CAAC,CAAC;AAC7C,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AAEpB,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bug Report Email Notifications
|
|
3
|
+
*
|
|
4
|
+
* Sends email notifications using Resend when bug reports are analyzed.
|
|
5
|
+
* - Reporter receives a thank-you email with summary
|
|
6
|
+
* - Team members receive full analysis report
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Get full bug report data for email
|
|
10
|
+
*/
|
|
11
|
+
export declare const getBugReportForEmail: any;
|
|
12
|
+
/**
|
|
13
|
+
* Send bug report notifications to reporter and team.
|
|
14
|
+
*/
|
|
15
|
+
export declare const sendBugReportNotifications: any;
|
|
16
|
+
//# sourceMappingURL=bugReportEmails.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bugReportEmails.d.ts","sourceRoot":"","sources":["../../../src/convex/emails/bugReportEmails.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AA2BH;;GAEG;AACH,eAAO,MAAM,oBAAoB,KAqC/B,CAAC;AAoQH;;GAEG;AACH,eAAO,MAAM,0BAA0B,KA8IrC,CAAC"}
|