@bbearai/react 0.4.1 → 0.4.3

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/index.js CHANGED
@@ -70,6 +70,10 @@ var BugBearContext = (0, import_react.createContext)({
70
70
  },
71
71
  createThread: async () => ({ success: false }),
72
72
  uploadImage: async () => null,
73
+ // Issue tracking
74
+ issueCounts: { open: 0, done: 0, reopened: 0 },
75
+ refreshIssueCounts: async () => {
76
+ },
73
77
  onError: void 0
74
78
  });
75
79
  function useBugBear() {
@@ -87,6 +91,7 @@ function BugBearProvider({ config, children, enabled = true }) {
87
91
  const [sessionFindings, setSessionFindings] = (0, import_react.useState)([]);
88
92
  const [threads, setThreads] = (0, import_react.useState)([]);
89
93
  const [unreadCount, setUnreadCount] = (0, import_react.useState)(0);
94
+ const [issueCounts, setIssueCounts] = (0, import_react.useState)({ open: 0, done: 0, reopened: 0 });
90
95
  const refreshAssignments = (0, import_react.useCallback)(async () => {
91
96
  if (!client) return;
92
97
  const newAssignments = await client.getAssignedTests();
@@ -138,6 +143,11 @@ function BugBearProvider({ config, children, enabled = true }) {
138
143
  const totalUnread = newThreads.reduce((sum, t) => sum + t.unreadCount, 0);
139
144
  setUnreadCount(totalUnread);
140
145
  }, [client]);
146
+ const refreshIssueCounts = (0, import_react.useCallback)(async () => {
147
+ if (!client) return;
148
+ const counts = await client.getIssueCounts();
149
+ setIssueCounts(counts);
150
+ }, [client]);
141
151
  const getThreadMessages = (0, import_react.useCallback)(async (threadId) => {
142
152
  if (!client) return [];
143
153
  return client.getThreadMessages(threadId);
@@ -179,16 +189,18 @@ function BugBearProvider({ config, children, enabled = true }) {
179
189
  setTesterInfo(info);
180
190
  setIsTester(!!info);
181
191
  if (info && qaEnabled) {
182
- const [newAssignments, session, newThreads] = await Promise.all([
192
+ const [newAssignments, session, newThreads, counts] = await Promise.all([
183
193
  bugBearClient.getAssignedTests(),
184
194
  bugBearClient.getActiveSession(),
185
- bugBearClient.getThreadsForTester()
195
+ bugBearClient.getThreadsForTester(),
196
+ bugBearClient.getIssueCounts()
186
197
  ]);
187
198
  setAssignments(newAssignments);
188
199
  setActiveSession(session);
189
200
  setThreads(newThreads);
190
201
  const totalUnread = newThreads.reduce((sum, t) => sum + t.unreadCount, 0);
191
202
  setUnreadCount(totalUnread);
203
+ setIssueCounts(counts);
192
204
  if (session) {
193
205
  const findings = await bugBearClient.getSessionFindings(session.id);
194
206
  setSessionFindings(findings);
@@ -231,6 +243,14 @@ function BugBearProvider({ config, children, enabled = true }) {
231
243
  initializeBugBear(newClient);
232
244
  }
233
245
  }, [enabled, config, initializeBugBear]);
246
+ (0, import_react.useEffect)(() => {
247
+ if (!client || !isTester || !isQAEnabled) return;
248
+ const interval = setInterval(() => {
249
+ refreshThreads();
250
+ refreshIssueCounts();
251
+ }, 3e4);
252
+ return () => clearInterval(interval);
253
+ }, [client, isTester, isQAEnabled, refreshThreads, refreshIssueCounts]);
234
254
  const currentAssignment = assignments.find(
235
255
  (a) => a.status === "in_progress"
236
256
  ) || assignments.find(
@@ -270,6 +290,9 @@ function BugBearProvider({ config, children, enabled = true }) {
270
290
  markAsRead,
271
291
  createThread,
272
292
  uploadImage,
293
+ // Issue tracking
294
+ issueCounts,
295
+ refreshIssueCounts,
273
296
  onError: config.onError
274
297
  },
275
298
  children
@@ -278,7 +301,7 @@ function BugBearProvider({ config, children, enabled = true }) {
278
301
  }
279
302
 
280
303
  // src/BugBearPanel.tsx
281
- var import_react13 = require("react");
304
+ var import_react14 = require("react");
282
305
  var import_react_dom = require("react-dom");
283
306
 
284
307
  // src/widget/navigation.ts
@@ -398,10 +421,11 @@ function getThreadTypeIcon(type) {
398
421
  var import_react3 = require("react");
399
422
  var import_jsx_runtime2 = require("react/jsx-runtime");
400
423
  function HomeScreen({ nav }) {
401
- const { assignments, unreadCount, threads, refreshAssignments, refreshThreads } = useBugBear();
424
+ const { assignments, unreadCount, threads, refreshAssignments, refreshThreads, issueCounts, refreshIssueCounts } = useBugBear();
402
425
  (0, import_react3.useEffect)(() => {
403
426
  refreshAssignments();
404
427
  refreshThreads();
428
+ refreshIssueCounts();
405
429
  }, []);
406
430
  const pendingAssignments = assignments.filter((a) => a.status === "pending" || a.status === "in_progress");
407
431
  const pendingCount = pendingAssignments.length;
@@ -686,6 +710,89 @@ function HomeScreen({ nav }) {
686
710
  ]
687
711
  }
688
712
  ),
713
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { style: { display: "grid", gridTemplateColumns: "1fr 1fr 1fr", gap: 10, marginBottom: 20 }, children: [
714
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
715
+ "div",
716
+ {
717
+ role: "button",
718
+ tabIndex: 0,
719
+ onClick: () => nav.push({ name: "ISSUE_LIST", category: "open" }),
720
+ onKeyDown: (e) => {
721
+ if (e.key === "Enter" || e.key === " ") nav.push({ name: "ISSUE_LIST", category: "open" });
722
+ },
723
+ style: {
724
+ backgroundColor: "#27272a",
725
+ border: "1px solid #3f3f46",
726
+ borderTop: "3px solid #f97316",
727
+ borderRadius: 10,
728
+ padding: "12px 8px",
729
+ display: "flex",
730
+ flexDirection: "column",
731
+ alignItems: "center",
732
+ cursor: "pointer",
733
+ userSelect: "none"
734
+ },
735
+ children: [
736
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { style: { fontSize: 22, fontWeight: 700, color: "#f97316" }, children: issueCounts.open }),
737
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { style: { fontSize: 11, fontWeight: 600, color: "#a1a1aa", marginTop: 2 }, children: "Open" })
738
+ ]
739
+ }
740
+ ),
741
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
742
+ "div",
743
+ {
744
+ role: "button",
745
+ tabIndex: 0,
746
+ onClick: () => nav.push({ name: "ISSUE_LIST", category: "done" }),
747
+ onKeyDown: (e) => {
748
+ if (e.key === "Enter" || e.key === " ") nav.push({ name: "ISSUE_LIST", category: "done" });
749
+ },
750
+ style: {
751
+ backgroundColor: "#27272a",
752
+ border: "1px solid #3f3f46",
753
+ borderTop: "3px solid #22c55e",
754
+ borderRadius: 10,
755
+ padding: "12px 8px",
756
+ display: "flex",
757
+ flexDirection: "column",
758
+ alignItems: "center",
759
+ cursor: "pointer",
760
+ userSelect: "none"
761
+ },
762
+ children: [
763
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { style: { fontSize: 22, fontWeight: 700, color: "#22c55e" }, children: issueCounts.done }),
764
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { style: { fontSize: 11, fontWeight: 600, color: "#a1a1aa", marginTop: 2 }, children: "Done" })
765
+ ]
766
+ }
767
+ ),
768
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
769
+ "div",
770
+ {
771
+ role: "button",
772
+ tabIndex: 0,
773
+ onClick: () => nav.push({ name: "ISSUE_LIST", category: "reopened" }),
774
+ onKeyDown: (e) => {
775
+ if (e.key === "Enter" || e.key === " ") nav.push({ name: "ISSUE_LIST", category: "reopened" });
776
+ },
777
+ style: {
778
+ backgroundColor: "#27272a",
779
+ border: "1px solid #3f3f46",
780
+ borderTop: "3px solid #ef4444",
781
+ borderRadius: 10,
782
+ padding: "12px 8px",
783
+ display: "flex",
784
+ flexDirection: "column",
785
+ alignItems: "center",
786
+ cursor: "pointer",
787
+ userSelect: "none"
788
+ },
789
+ children: [
790
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { style: { fontSize: 22, fontWeight: 700, color: "#ef4444" }, children: issueCounts.reopened }),
791
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { style: { fontSize: 11, fontWeight: 600, color: "#a1a1aa", marginTop: 2 }, children: "Reopened" })
792
+ ]
793
+ }
794
+ )
795
+ ] }),
689
796
  totalTests > 0 && /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { style: { marginBottom: 16 }, children: [
690
797
  /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
691
798
  "div",
@@ -725,6 +832,7 @@ function HomeScreen({ nav }) {
725
832
  onClick: () => {
726
833
  refreshAssignments();
727
834
  refreshThreads();
835
+ refreshIssueCounts();
728
836
  },
729
837
  style: {
730
838
  background: "none",
@@ -1608,36 +1716,21 @@ function TestListScreen({ nav }) {
1608
1716
  const filterAssignment = (a) => {
1609
1717
  if (roleFilter && a.testCase.role?.id !== roleFilter) return false;
1610
1718
  if (filter === "pending") return a.status === "pending" || a.status === "in_progress";
1611
- if (filter === "completed") return a.status === "passed" || a.status === "failed";
1719
+ if (filter === "done") return a.status === "passed";
1720
+ if (filter === "reopened") return a.status === "failed";
1612
1721
  return true;
1613
1722
  };
1614
1723
  const pendingCount = assignments.filter(
1615
1724
  (a) => a.status === "pending" || a.status === "in_progress"
1616
1725
  ).length;
1617
- const doneCount = assignments.filter(
1618
- (a) => a.status === "passed" || a.status === "failed"
1619
- ).length;
1726
+ const doneCount = assignments.filter((a) => a.status === "passed").length;
1727
+ const reopenedCount = assignments.filter((a) => a.status === "failed").length;
1620
1728
  const filters = [
1621
1729
  { key: "all", label: "All", count: assignments.length },
1622
1730
  { key: "pending", label: "To Do", count: pendingCount },
1623
- { key: "completed", label: "Done", count: doneCount }
1731
+ { key: "done", label: "Done", count: doneCount },
1732
+ { key: "reopened", label: "Re Opened", count: reopenedCount }
1624
1733
  ];
1625
- const getStatusColor = (status) => {
1626
- switch (status) {
1627
- case "passed":
1628
- return colors.green;
1629
- case "failed":
1630
- return colors.red;
1631
- case "skipped":
1632
- return colors.yellow;
1633
- case "in_progress":
1634
- return colors.blue;
1635
- case "blocked":
1636
- return colors.red;
1637
- default:
1638
- return colors.textMuted;
1639
- }
1640
- };
1641
1734
  return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { children: [
1642
1735
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { style: { display: "flex", gap: 8, marginBottom: availableRoles.length >= 2 ? 8 : 16 }, children: filters.map((f) => /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
1643
1736
  "button",
@@ -1938,10 +2031,14 @@ function TestListScreen({ nav }) {
1938
2031
  {
1939
2032
  style: {
1940
2033
  fontSize: 10,
1941
- color: getStatusColor(assignment.status),
1942
- fontWeight: 500,
2034
+ fontWeight: 600,
1943
2035
  marginLeft: 8,
1944
- flexShrink: 0
2036
+ flexShrink: 0,
2037
+ padding: "3px 8px",
2038
+ borderRadius: 6,
2039
+ color: assignment.status === "passed" ? "#4ade80" : assignment.status === "failed" ? "#f87171" : assignment.status === "in_progress" ? "#60a5fa" : "#d4d4d8",
2040
+ backgroundColor: assignment.status === "passed" ? "#14532d" : assignment.status === "failed" ? "#450a0a" : assignment.status === "in_progress" ? "#172554" : "#27272a",
2041
+ border: assignment.status === "passed" ? "1px solid #166534" : assignment.status === "failed" ? "1px solid #7f1d1d" : assignment.status === "in_progress" ? "1px solid #1e3a5f" : "1px solid #3f3f46"
1945
2042
  },
1946
2043
  children: badge.label
1947
2044
  }
@@ -1966,8 +2063,8 @@ function TestListScreen({ nav }) {
1966
2063
  padding: 32
1967
2064
  },
1968
2065
  children: [
1969
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { style: { fontSize: 32, marginBottom: 8 }, children: filter === "pending" ? "\u{1F389}" : "\u{1F4CB}" }),
1970
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { style: { fontSize: 14, color: colors.textMuted }, children: filter === "pending" ? "All tests completed!" : filter === "completed" ? "No completed tests yet" : "No tests assigned" })
2066
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { style: { fontSize: 32, marginBottom: 8 }, children: filter === "pending" ? "\u{1F389}" : filter === "reopened" ? "\u{1F44D}" : "\u{1F4CB}" }),
2067
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { style: { fontSize: 14, color: colors.textMuted }, children: filter === "pending" ? "All tests completed!" : filter === "done" ? "No passed tests yet" : filter === "reopened" ? "No reopened issues" : "No tests assigned" })
1971
2068
  ]
1972
2069
  }
1973
2070
  ),
@@ -4044,13 +4141,289 @@ var styles4 = {
4044
4141
  }
4045
4142
  };
4046
4143
 
4144
+ // src/widget/screens/IssueListScreen.tsx
4145
+ var import_react13 = require("react");
4146
+ var import_jsx_runtime14 = require("react/jsx-runtime");
4147
+ var CATEGORY_CONFIG = {
4148
+ open: { label: "Open Issues", accent: "#f97316", emptyIcon: "\u2705", emptyText: "No open issues" },
4149
+ done: { label: "Done", accent: "#22c55e", emptyIcon: "\u{1F389}", emptyText: "No completed issues yet" },
4150
+ reopened: { label: "Reopened", accent: "#ef4444", emptyIcon: "\u{1F44D}", emptyText: "No reopened issues" }
4151
+ };
4152
+ var SEVERITY_COLORS = {
4153
+ critical: "#ef4444",
4154
+ high: "#f97316",
4155
+ medium: "#eab308",
4156
+ low: "#71717a"
4157
+ };
4158
+ function IssueListScreen({ nav, category }) {
4159
+ const { client } = useBugBear();
4160
+ const [issues, setIssues] = (0, import_react13.useState)([]);
4161
+ const [loading, setLoading] = (0, import_react13.useState)(true);
4162
+ const config = CATEGORY_CONFIG[category];
4163
+ (0, import_react13.useEffect)(() => {
4164
+ let cancelled = false;
4165
+ setLoading(true);
4166
+ (async () => {
4167
+ if (!client) return;
4168
+ const data = await client.getIssues(category);
4169
+ if (!cancelled) {
4170
+ setIssues(data);
4171
+ setLoading(false);
4172
+ }
4173
+ })();
4174
+ return () => {
4175
+ cancelled = true;
4176
+ };
4177
+ }, [client, category]);
4178
+ if (loading) {
4179
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { style: { padding: "40px 0", textAlign: "center" }, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { style: { color: colors.textMuted, fontSize: 14 }, children: "Loading..." }) });
4180
+ }
4181
+ if (issues.length === 0) {
4182
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { style: { padding: "40px 0", textAlign: "center" }, children: [
4183
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { style: { fontSize: 36, marginBottom: 8 }, children: config.emptyIcon }),
4184
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { style: { color: colors.textMuted, fontSize: 14 }, children: config.emptyText })
4185
+ ] });
4186
+ }
4187
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { children: issues.map((issue) => /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
4188
+ "div",
4189
+ {
4190
+ role: "button",
4191
+ tabIndex: 0,
4192
+ onClick: () => nav.push({ name: "ISSUE_DETAIL", issue }),
4193
+ onKeyDown: (e) => {
4194
+ if (e.key === "Enter" || e.key === " ") nav.push({ name: "ISSUE_DETAIL", issue });
4195
+ },
4196
+ style: {
4197
+ backgroundColor: colors.card,
4198
+ border: `1px solid ${colors.border}`,
4199
+ borderRadius: 10,
4200
+ padding: "12px 14px",
4201
+ marginBottom: 8,
4202
+ cursor: "pointer",
4203
+ userSelect: "none"
4204
+ },
4205
+ children: [
4206
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { style: { display: "flex", alignItems: "flex-start", gap: 8 }, children: [
4207
+ issue.severity && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
4208
+ "span",
4209
+ {
4210
+ style: {
4211
+ width: 8,
4212
+ height: 8,
4213
+ borderRadius: 4,
4214
+ backgroundColor: SEVERITY_COLORS[issue.severity] || colors.textDim,
4215
+ flexShrink: 0,
4216
+ marginTop: 5
4217
+ }
4218
+ }
4219
+ ),
4220
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { style: {
4221
+ fontSize: 13,
4222
+ fontWeight: 600,
4223
+ color: colors.textPrimary,
4224
+ flex: 1,
4225
+ overflow: "hidden",
4226
+ textOverflow: "ellipsis",
4227
+ whiteSpace: "nowrap"
4228
+ }, children: issue.title })
4229
+ ] }),
4230
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { style: { display: "flex", justifyContent: "space-between", marginTop: 6 }, children: [
4231
+ issue.route && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { style: { fontSize: 11, color: colors.textDim, maxWidth: "60%", overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }, children: issue.route }),
4232
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { style: { fontSize: 11, color: colors.textDim, marginLeft: "auto" }, children: formatRelativeTime(issue.updatedAt) })
4233
+ ] }),
4234
+ category === "done" && issue.verifiedByName && /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { style: {
4235
+ display: "inline-flex",
4236
+ alignItems: "center",
4237
+ gap: 4,
4238
+ backgroundColor: "#14532d",
4239
+ border: "1px solid #166534",
4240
+ borderRadius: 6,
4241
+ padding: "2px 8px",
4242
+ marginTop: 6,
4243
+ fontSize: 10,
4244
+ fontWeight: 600,
4245
+ color: "#4ade80"
4246
+ }, children: [
4247
+ "\u2714 Verified by ",
4248
+ issue.verifiedByName
4249
+ ] }),
4250
+ category === "reopened" && issue.originalBugTitle && /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { style: {
4251
+ display: "inline-flex",
4252
+ alignItems: "center",
4253
+ gap: 4,
4254
+ backgroundColor: "#422006",
4255
+ border: "1px solid #854d0e",
4256
+ borderRadius: 6,
4257
+ padding: "2px 8px",
4258
+ marginTop: 6,
4259
+ fontSize: 10,
4260
+ fontWeight: 600,
4261
+ color: "#fbbf24",
4262
+ maxWidth: "100%",
4263
+ overflow: "hidden",
4264
+ textOverflow: "ellipsis",
4265
+ whiteSpace: "nowrap"
4266
+ }, children: [
4267
+ "\u{1F504} Retest of: ",
4268
+ issue.originalBugTitle
4269
+ ] })
4270
+ ]
4271
+ },
4272
+ issue.id
4273
+ )) });
4274
+ }
4275
+
4276
+ // src/widget/screens/IssueDetailScreen.tsx
4277
+ var import_jsx_runtime15 = require("react/jsx-runtime");
4278
+ var STATUS_LABELS = {
4279
+ new: { label: "New", bg: "#1e3a5f", color: "#60a5fa" },
4280
+ triaging: { label: "Triaging", bg: "#1e3a5f", color: "#60a5fa" },
4281
+ confirmed: { label: "Confirmed", bg: "#422006", color: "#fbbf24" },
4282
+ in_progress: { label: "In Progress", bg: "#1e3a5f", color: "#60a5fa" },
4283
+ fixed: { label: "Fixed", bg: "#14532d", color: "#4ade80" },
4284
+ ready_to_test: { label: "Ready to Test", bg: "#422006", color: "#fbbf24" },
4285
+ verified: { label: "Verified", bg: "#14532d", color: "#4ade80" },
4286
+ resolved: { label: "Resolved", bg: "#14532d", color: "#4ade80" },
4287
+ reviewed: { label: "Reviewed", bg: "#14532d", color: "#4ade80" },
4288
+ closed: { label: "Closed", bg: "#27272a", color: "#71717a" },
4289
+ wont_fix: { label: "Won't Fix", bg: "#27272a", color: "#71717a" },
4290
+ duplicate: { label: "Duplicate", bg: "#27272a", color: "#71717a" }
4291
+ };
4292
+ var SEVERITY_CONFIG = {
4293
+ critical: { label: "Critical", color: "#ef4444", bg: "#7f1d1d" },
4294
+ high: { label: "High", color: "#f97316", bg: "#431407" },
4295
+ medium: { label: "Medium", color: "#eab308", bg: "#422006" },
4296
+ low: { label: "Low", color: "#71717a", bg: "#27272a" }
4297
+ };
4298
+ function IssueDetailScreen({ nav, issue }) {
4299
+ const statusConfig = STATUS_LABELS[issue.status] || { label: issue.status, bg: "#27272a", color: "#a1a1aa" };
4300
+ const severityConfig = issue.severity ? SEVERITY_CONFIG[issue.severity] : null;
4301
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { children: [
4302
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { style: { display: "flex", gap: 8, flexWrap: "wrap", marginBottom: 12 }, children: [
4303
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { style: {
4304
+ backgroundColor: statusConfig.bg,
4305
+ color: statusConfig.color,
4306
+ fontSize: 11,
4307
+ fontWeight: 600,
4308
+ padding: "3px 10px",
4309
+ borderRadius: 6
4310
+ }, children: statusConfig.label }),
4311
+ severityConfig && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { style: {
4312
+ backgroundColor: severityConfig.bg,
4313
+ color: severityConfig.color,
4314
+ fontSize: 11,
4315
+ fontWeight: 600,
4316
+ padding: "3px 10px",
4317
+ borderRadius: 6
4318
+ }, children: severityConfig.label })
4319
+ ] }),
4320
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("h3", { style: { fontSize: 16, fontWeight: 700, color: colors.textPrimary, margin: "0 0 8px 0", lineHeight: 1.3 }, children: issue.title }),
4321
+ issue.route && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { style: { fontSize: 12, color: colors.textDim, marginBottom: 12 }, children: issue.route }),
4322
+ issue.description && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { style: {
4323
+ backgroundColor: colors.card,
4324
+ border: `1px solid ${colors.border}`,
4325
+ borderRadius: 8,
4326
+ padding: 12,
4327
+ marginBottom: 12,
4328
+ fontSize: 13,
4329
+ color: colors.textSecondary,
4330
+ lineHeight: 1.5,
4331
+ whiteSpace: "pre-wrap",
4332
+ wordBreak: "break-word"
4333
+ }, children: issue.description }),
4334
+ issue.verifiedByName && /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { style: {
4335
+ backgroundColor: "#14532d",
4336
+ border: "1px solid #166534",
4337
+ borderRadius: 8,
4338
+ padding: 12,
4339
+ marginBottom: 12
4340
+ }, children: [
4341
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { style: { display: "flex", alignItems: "center", gap: 8, marginBottom: 4 }, children: [
4342
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { style: { fontSize: 16 }, children: "\u2705" }),
4343
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { style: { fontSize: 13, fontWeight: 600, color: "#4ade80" }, children: "Retesting Proof" })
4344
+ ] }),
4345
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { style: { fontSize: 12, color: "#86efac" }, children: [
4346
+ "Verified by ",
4347
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("strong", { children: issue.verifiedByName }),
4348
+ issue.verifiedAt && /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("span", { children: [
4349
+ " on ",
4350
+ new Date(issue.verifiedAt).toLocaleDateString(void 0, { month: "short", day: "numeric", year: "numeric" })
4351
+ ] })
4352
+ ] })
4353
+ ] }),
4354
+ issue.originalBugTitle && /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { style: {
4355
+ backgroundColor: "#422006",
4356
+ border: "1px solid #854d0e",
4357
+ borderRadius: 8,
4358
+ padding: 12,
4359
+ marginBottom: 12
4360
+ }, children: [
4361
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { style: { display: "flex", alignItems: "center", gap: 8, marginBottom: 4 }, children: [
4362
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { style: { fontSize: 16 }, children: "\u{1F504}" }),
4363
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { style: { fontSize: 13, fontWeight: 600, color: "#fbbf24" }, children: "Original Bug" })
4364
+ ] }),
4365
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { style: { fontSize: 12, color: "#fde68a" }, children: [
4366
+ "Retest of: ",
4367
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("strong", { children: issue.originalBugTitle })
4368
+ ] })
4369
+ ] }),
4370
+ issue.screenshotUrls && issue.screenshotUrls.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { style: { marginBottom: 12 }, children: [
4371
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { style: { fontSize: 12, fontWeight: 600, color: colors.textMuted, marginBottom: 8 }, children: [
4372
+ "Screenshots (",
4373
+ issue.screenshotUrls.length,
4374
+ ")"
4375
+ ] }),
4376
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { style: { display: "flex", gap: 8, overflowX: "auto" }, children: issue.screenshotUrls.map((url, i) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
4377
+ "a",
4378
+ {
4379
+ href: url,
4380
+ target: "_blank",
4381
+ rel: "noopener noreferrer",
4382
+ style: { flexShrink: 0 },
4383
+ children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
4384
+ "img",
4385
+ {
4386
+ src: url,
4387
+ alt: `Screenshot ${i + 1}`,
4388
+ style: {
4389
+ width: 80,
4390
+ height: 60,
4391
+ objectFit: "cover",
4392
+ borderRadius: 6,
4393
+ border: `1px solid ${colors.border}`
4394
+ }
4395
+ }
4396
+ )
4397
+ },
4398
+ i
4399
+ )) })
4400
+ ] }),
4401
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { style: {
4402
+ borderTop: `1px solid ${colors.border}`,
4403
+ paddingTop: 12,
4404
+ marginTop: 4
4405
+ }, children: [
4406
+ issue.reporterName && /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { style: { fontSize: 12, color: colors.textDim, marginBottom: 4 }, children: [
4407
+ "Reported by ",
4408
+ issue.reporterName
4409
+ ] }),
4410
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { style: { fontSize: 11, color: colors.textDim }, children: [
4411
+ "Created ",
4412
+ formatRelativeTime(issue.createdAt),
4413
+ " \xB7 Updated ",
4414
+ formatRelativeTime(issue.updatedAt)
4415
+ ] })
4416
+ ] })
4417
+ ] });
4418
+ }
4419
+
4047
4420
  // src/widget/logo.ts
4048
4421
  var BUGBEAR_LOGO_BASE64 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAAAXNSR0IArs4c6QAAAJhlWElmTU0AKgAAAAgABAEaAAUAAAABAAAAPgEbAAUAAAABAAAARgEoAAMAAAABAAIAAIdpAAQAAAABAAAATgAAAAAAAABIAAAAAQAAAEgAAAABAASQBAACAAAAFAAAAISgAQADAAAAAQABAACgAgAEAAAAAQAAAGCgAwAEAAAAAQAAAGAAAAAAMjAyNjowMToyNCAxNjoyM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lLISWTGaNZehF7mSeRh3QKmyn4CNyFlPgoIaUzaS+JG4rz6Tnl2tIZ/fK5h5ecmC8iE6GysamE26zk+QPYJBle7kl9+PX+/EQwYnHphYWERM0xnMog7m480m0X5JjmZ1SRhi5lMGZ+XjCWKMpjEZ1WDj99bmzmYMpPtTm0scWnoYtl7K3dsEvWU1WKVSiZvEDBs+hoW1i7N9Nte3bs3cMCJ9MHxDsfrN4oBgxMSXcxn8kxk9LkgEosdlYgnZhCXKObvzPJ/tVmqhF8OSLf1szUt1hFqtXabsYH/L4H3aGDfZ86i2ooBvtrF1/j5G8mAr9JDHn9JHV3EYLhUqVgpYYkCVjinUv1zo73hTMQSIaISQbqQfMweGoha1krZ5NixYxu/ziejf3UeI59HKDBCgREKjFBghAIjFBihwAgFRigwQoERCoxQYIQCIxQYocAIBUYoMEKBEQqMUGCEAl8TBf4Psyet2W9C97cAAAAASUVORK5CYII=";
4049
4422
 
4050
4423
  // src/BugBearPanel.tsx
4051
- var import_jsx_runtime14 = require("react/jsx-runtime");
4424
+ var import_jsx_runtime16 = require("react/jsx-runtime");
4052
4425
  function BugBearIcon({ size = 24 }) {
4053
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
4426
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
4054
4427
  "img",
4055
4428
  {
4056
4429
  src: BUGBEAR_LOGO_BASE64,
@@ -4095,12 +4468,12 @@ function BugBearPanel({
4095
4468
  }) {
4096
4469
  const { shouldShowWidget, testerInfo, assignments, isLoading, unreadCount } = useBugBear();
4097
4470
  const { currentScreen, canGoBack, push, pop, replace, reset } = useNavigation();
4098
- const [collapsed, setCollapsed] = (0, import_react13.useState)(defaultCollapsed);
4099
- const [panelPosition, setPanelPosition] = (0, import_react13.useState)(null);
4100
- const [isDragging, setIsDragging] = (0, import_react13.useState)(false);
4101
- const dragStartRef = (0, import_react13.useRef)(null);
4102
- const panelRef = (0, import_react13.useRef)(null);
4103
- (0, import_react13.useEffect)(() => {
4471
+ const [collapsed, setCollapsed] = (0, import_react14.useState)(defaultCollapsed);
4472
+ const [panelPosition, setPanelPosition] = (0, import_react14.useState)(null);
4473
+ const [isDragging, setIsDragging] = (0, import_react14.useState)(false);
4474
+ const dragStartRef = (0, import_react14.useRef)(null);
4475
+ const panelRef = (0, import_react14.useRef)(null);
4476
+ (0, import_react14.useEffect)(() => {
4104
4477
  if (typeof window === "undefined") return;
4105
4478
  try {
4106
4479
  const saved = localStorage.getItem(STORAGE_KEY);
@@ -4114,7 +4487,7 @@ function BugBearPanel({
4114
4487
  setPanelPosition(getDefaultPosition(position));
4115
4488
  }
4116
4489
  }, [position]);
4117
- (0, import_react13.useEffect)(() => {
4490
+ (0, import_react14.useEffect)(() => {
4118
4491
  if (panelPosition && typeof window !== "undefined") {
4119
4492
  try {
4120
4493
  localStorage.setItem(STORAGE_KEY, JSON.stringify(panelPosition));
@@ -4122,7 +4495,7 @@ function BugBearPanel({
4122
4495
  }
4123
4496
  }
4124
4497
  }, [panelPosition]);
4125
- (0, import_react13.useEffect)(() => {
4498
+ (0, import_react14.useEffect)(() => {
4126
4499
  if (typeof window === "undefined") return;
4127
4500
  const handleResize = () => {
4128
4501
  setPanelPosition((prev) => prev ? clampPosition(prev) : getDefaultPosition(position));
@@ -4130,7 +4503,7 @@ function BugBearPanel({
4130
4503
  window.addEventListener("resize", handleResize);
4131
4504
  return () => window.removeEventListener("resize", handleResize);
4132
4505
  }, [position]);
4133
- const handleMouseDown = (0, import_react13.useCallback)((e) => {
4506
+ const handleMouseDown = (0, import_react14.useCallback)((e) => {
4134
4507
  if (!draggable || !panelPosition) return;
4135
4508
  const target = e.target;
4136
4509
  if (!target.closest("[data-drag-handle]")) return;
@@ -4143,7 +4516,7 @@ function BugBearPanel({
4143
4516
  panelY: panelPosition.y
4144
4517
  };
4145
4518
  }, [draggable, panelPosition]);
4146
- (0, import_react13.useEffect)(() => {
4519
+ (0, import_react14.useEffect)(() => {
4147
4520
  if (!isDragging) return;
4148
4521
  const handleMouseMove = (e) => {
4149
4522
  if (!dragStartRef.current) return;
@@ -4165,7 +4538,7 @@ function BugBearPanel({
4165
4538
  document.removeEventListener("mouseup", handleMouseUp);
4166
4539
  };
4167
4540
  }, [isDragging]);
4168
- const handleDoubleClick = (0, import_react13.useCallback)(() => {
4541
+ const handleDoubleClick = (0, import_react14.useCallback)(() => {
4169
4542
  if (!draggable) return;
4170
4543
  setPanelPosition(getDefaultPosition(position));
4171
4544
  try {
@@ -4197,6 +4570,10 @@ function BugBearPanel({
4197
4570
  return currentScreen.thread.subject || "Thread";
4198
4571
  case "COMPOSE_MESSAGE":
4199
4572
  return "New Message";
4573
+ case "ISSUE_LIST":
4574
+ return currentScreen.category === "open" ? "Open Issues" : currentScreen.category === "done" ? "Done" : "Reopened";
4575
+ case "ISSUE_DETAIL":
4576
+ return "Issue Detail";
4200
4577
  case "PROFILE":
4201
4578
  return "Profile";
4202
4579
  default:
@@ -4211,33 +4588,37 @@ function BugBearPanel({
4211
4588
  const renderScreen = () => {
4212
4589
  switch (currentScreen.name) {
4213
4590
  case "HOME":
4214
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(HomeScreen, { nav });
4591
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(HomeScreen, { nav });
4215
4592
  case "TEST_DETAIL":
4216
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(TestDetailScreen, { testId: currentScreen.testId, nav });
4593
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(TestDetailScreen, { testId: currentScreen.testId, nav });
4217
4594
  case "TEST_LIST":
4218
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(TestListScreen, { nav });
4595
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(TestListScreen, { nav });
4219
4596
  case "TEST_FEEDBACK":
4220
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(TestFeedbackScreen, { status: currentScreen.status, assignmentId: currentScreen.assignmentId, nav });
4597
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(TestFeedbackScreen, { status: currentScreen.status, assignmentId: currentScreen.assignmentId, nav });
4221
4598
  case "REPORT":
4222
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ReportScreen, { nav, prefill: currentScreen.prefill });
4599
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(ReportScreen, { nav, prefill: currentScreen.prefill });
4223
4600
  case "REPORT_SUCCESS":
4224
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ReportSuccessScreen, { nav });
4601
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(ReportSuccessScreen, { nav });
4225
4602
  case "MESSAGE_LIST":
4226
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(MessageListScreen, { nav });
4603
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(MessageListScreen, { nav });
4227
4604
  case "THREAD_DETAIL":
4228
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ThreadDetailScreen, { thread: currentScreen.thread, nav });
4605
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(ThreadDetailScreen, { thread: currentScreen.thread, nav });
4229
4606
  case "COMPOSE_MESSAGE":
4230
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ComposeMessageScreen, { nav });
4607
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(ComposeMessageScreen, { nav });
4608
+ case "ISSUE_LIST":
4609
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(IssueListScreen, { nav, category: currentScreen.category });
4610
+ case "ISSUE_DETAIL":
4611
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(IssueDetailScreen, { nav, issue: currentScreen.issue });
4231
4612
  case "PROFILE":
4232
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ProfileScreen, { nav });
4613
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(ProfileScreen, { nav });
4233
4614
  default:
4234
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(HomeScreen, { nav });
4615
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(HomeScreen, { nav });
4235
4616
  }
4236
4617
  };
4237
4618
  if (typeof document === "undefined") return null;
4238
4619
  const headerTitle = getHeaderTitle();
4239
4620
  return (0, import_react_dom.createPortal)(
4240
- /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
4621
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
4241
4622
  "div",
4242
4623
  {
4243
4624
  ref: panelRef,
@@ -4256,7 +4637,7 @@ function BugBearPanel({
4256
4637
  },
4257
4638
  onMouseDown: handleMouseDown,
4258
4639
  children: [
4259
- collapsed && /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
4640
+ collapsed && /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
4260
4641
  "button",
4261
4642
  {
4262
4643
  onClick: () => setCollapsed(false),
@@ -4278,9 +4659,9 @@ function BugBearPanel({
4278
4659
  fontWeight: 500
4279
4660
  },
4280
4661
  children: [
4281
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(BugBearIcon, { size: 24 }),
4282
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { children: "BugBear" }),
4283
- badgeCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { style: {
4662
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(BugBearIcon, { size: 24 }),
4663
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { children: "BugBear" }),
4664
+ badgeCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { style: {
4284
4665
  backgroundColor: "#fff",
4285
4666
  color: colors.blue,
4286
4667
  fontSize: "0.75rem",
@@ -4291,7 +4672,7 @@ function BugBearPanel({
4291
4672
  ]
4292
4673
  }
4293
4674
  ),
4294
- !collapsed && /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { style: {
4675
+ !collapsed && /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { style: {
4295
4676
  width: PANEL_WIDTH,
4296
4677
  backgroundColor: colors.bg,
4297
4678
  borderRadius: 12,
@@ -4299,7 +4680,7 @@ function BugBearPanel({
4299
4680
  overflow: "hidden",
4300
4681
  boxShadow: "0 25px 50px -12px rgba(0,0,0,0.5)"
4301
4682
  }, children: [
4302
- /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
4683
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
4303
4684
  "div",
4304
4685
  {
4305
4686
  "data-drag-handle": true,
@@ -4315,7 +4696,7 @@ function BugBearPanel({
4315
4696
  cursor: draggable ? isDragging ? "grabbing" : "grab" : "default"
4316
4697
  },
4317
4698
  children: [
4318
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { style: { display: "flex", alignItems: "center", gap: 8, flex: 1, minWidth: 0 }, children: canGoBack ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
4699
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { style: { display: "flex", alignItems: "center", gap: 8, flex: 1, minWidth: 0 }, children: canGoBack ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
4319
4700
  "button",
4320
4701
  {
4321
4702
  onClick: pop,
@@ -4331,14 +4712,14 @@ function BugBearPanel({
4331
4712
  },
4332
4713
  children: "\u2190 Back"
4333
4714
  }
4334
- ) : /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_jsx_runtime14.Fragment, { children: [
4335
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(BugBearIcon, { size: 28 }),
4336
- /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { children: [
4337
- /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { style: { display: "flex", alignItems: "center", gap: 8 }, children: [
4338
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { style: { fontWeight: 600, fontSize: "0.875rem" }, children: "BugBear" }),
4339
- draggable && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { style: { color: colors.textMuted, fontSize: "0.75rem" }, title: "Drag to move, double-click to reset", children: "\u22EE\u22EE" })
4715
+ ) : /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_jsx_runtime16.Fragment, { children: [
4716
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(BugBearIcon, { size: 28 }),
4717
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { children: [
4718
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { style: { display: "flex", alignItems: "center", gap: 8 }, children: [
4719
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { style: { fontWeight: 600, fontSize: "0.875rem" }, children: "BugBear" }),
4720
+ draggable && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { style: { color: colors.textMuted, fontSize: "0.75rem" }, title: "Drag to move, double-click to reset", children: "\u22EE\u22EE" })
4340
4721
  ] }),
4341
- testerInfo && /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
4722
+ testerInfo && /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
4342
4723
  "button",
4343
4724
  {
4344
4725
  onClick: () => push({ name: "PROFILE" }),
@@ -4356,13 +4737,13 @@ function BugBearPanel({
4356
4737
  },
4357
4738
  children: [
4358
4739
  testerInfo.name,
4359
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { style: { fontSize: "0.625rem" }, children: "\u270E" })
4740
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { style: { fontSize: "0.625rem" }, children: "\u270E" })
4360
4741
  ]
4361
4742
  }
4362
4743
  )
4363
4744
  ] })
4364
4745
  ] }) }),
4365
- headerTitle ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { style: {
4746
+ headerTitle ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { style: {
4366
4747
  fontSize: "0.8125rem",
4367
4748
  fontWeight: 600,
4368
4749
  color: colors.textSecondary,
@@ -4372,7 +4753,7 @@ function BugBearPanel({
4372
4753
  textOverflow: "ellipsis",
4373
4754
  whiteSpace: "nowrap"
4374
4755
  }, children: headerTitle }) : null,
4375
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
4756
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
4376
4757
  "button",
4377
4758
  {
4378
4759
  onClick: handleClose,
@@ -4396,13 +4777,13 @@ function BugBearPanel({
4396
4777
  ]
4397
4778
  }
4398
4779
  ),
4399
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { style: {
4780
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { style: {
4400
4781
  padding: 16,
4401
4782
  maxHeight: 400,
4402
4783
  overflowY: "auto",
4403
4784
  backgroundColor: colors.bg,
4404
4785
  color: colors.textSecondary
4405
- }, children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { style: { padding: "60px 0", textAlign: "center" }, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { style: { color: colors.textMuted, fontSize: "0.875rem" }, children: "Loading..." }) }) : renderScreen() })
4786
+ }, children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { style: { padding: "60px 0", textAlign: "center" }, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { style: { color: colors.textMuted, fontSize: "0.875rem" }, children: "Loading..." }) }) : renderScreen() })
4406
4787
  ] })
4407
4788
  ]
4408
4789
  }
@@ -4412,10 +4793,10 @@ function BugBearPanel({
4412
4793
  }
4413
4794
 
4414
4795
  // src/BugBearErrorBoundary.tsx
4415
- var import_react14 = require("react");
4796
+ var import_react15 = require("react");
4416
4797
  var import_core2 = require("@bbearai/core");
4417
- var import_jsx_runtime15 = require("react/jsx-runtime");
4418
- var BugBearErrorBoundary = class extends import_react14.Component {
4798
+ var import_jsx_runtime17 = require("react/jsx-runtime");
4799
+ var BugBearErrorBoundary = class extends import_react15.Component {
4419
4800
  constructor(props) {
4420
4801
  super(props);
4421
4802
  this.reset = () => {
@@ -4459,7 +4840,7 @@ var BugBearErrorBoundary = class extends import_react14.Component {
4459
4840
  if (fallback) {
4460
4841
  return fallback;
4461
4842
  }
4462
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
4843
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
4463
4844
  "div",
4464
4845
  {
4465
4846
  style: {
@@ -4471,13 +4852,13 @@ var BugBearErrorBoundary = class extends import_react14.Component {
4471
4852
  fontFamily: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif'
4472
4853
  },
4473
4854
  children: [
4474
- /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { style: { display: "flex", alignItems: "center", gap: "8px", marginBottom: "12px" }, children: [
4475
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("img", { src: BUGBEAR_LOGO_BASE64, alt: "BugBear", width: 28, height: 28, style: { objectFit: "contain" } }),
4476
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("h3", { style: { margin: 0, color: "#991b1b", fontSize: "16px" }, children: "Something went wrong" })
4855
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { style: { display: "flex", alignItems: "center", gap: "8px", marginBottom: "12px" }, children: [
4856
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("img", { src: BUGBEAR_LOGO_BASE64, alt: "BugBear", width: 28, height: 28, style: { objectFit: "contain" } }),
4857
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("h3", { style: { margin: 0, color: "#991b1b", fontSize: "16px" }, children: "Something went wrong" })
4477
4858
  ] }),
4478
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("p", { style: { color: "#7f1d1d", fontSize: "14px", margin: "0 0 12px 0" }, children: error.message }),
4479
- /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { style: { display: "flex", gap: "8px" }, children: [
4480
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
4859
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("p", { style: { color: "#7f1d1d", fontSize: "14px", margin: "0 0 12px 0" }, children: error.message }),
4860
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { style: { display: "flex", gap: "8px" }, children: [
4861
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
4481
4862
  "button",
4482
4863
  {
4483
4864
  onClick: this.reset,
@@ -4494,7 +4875,7 @@ var BugBearErrorBoundary = class extends import_react14.Component {
4494
4875
  children: "Try Again"
4495
4876
  }
4496
4877
  ),
4497
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
4878
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
4498
4879
  "button",
4499
4880
  {
4500
4881
  onClick: () => window.location.reload(),
@@ -4512,7 +4893,7 @@ var BugBearErrorBoundary = class extends import_react14.Component {
4512
4893
  }
4513
4894
  )
4514
4895
  ] }),
4515
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("p", { style: { color: "#9ca3af", fontSize: "12px", marginTop: "12px" }, children: "The error has been captured by BugBear" })
4896
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("p", { style: { color: "#9ca3af", fontSize: "12px", marginTop: "12px" }, children: "The error has been captured by BugBear" })
4516
4897
  ]
4517
4898
  }
4518
4899
  );