@sentry/junior-dashboard 0.152.0 → 0.153.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/junior-dashboard",
3
- "version": "0.152.0",
3
+ "version": "0.153.0",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -34,8 +34,8 @@
34
34
  "react-router": "^7.18.2",
35
35
  "shiki": "4.1.0",
36
36
  "zod": "^4.4.3",
37
- "@sentry/junior": "0.152.0",
38
- "@sentry/junior-plugin-api": "0.152.0"
37
+ "@sentry/junior": "0.153.0",
38
+ "@sentry/junior-plugin-api": "0.153.0"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@tailwindcss/cli": "^4.3.0",
package/src/client/api.ts CHANGED
@@ -87,19 +87,11 @@ export function usePluginUserPagesData() {
87
87
  }
88
88
 
89
89
  /** Fetch the conversation summary feed used by list-oriented dashboard routes. */
90
- export function useConversationsData(actorEmail?: string) {
90
+ export function useConversationsData() {
91
91
  return useQuery({
92
- queryKey: ["dashboard", "conversations", actorEmail ?? "all"],
93
- queryFn: ({ signal }) => {
94
- const query = new URLSearchParams();
95
- if (actorEmail) query.set("actorEmail", actorEmail);
96
- const search = query.toString();
97
- return fetchDashboardJson(
98
- conversationFeedSchema,
99
- `/api/conversations${search ? `?${search}` : ""}`,
100
- signal,
101
- );
102
- },
92
+ queryKey: ["dashboard", "conversations", "viewer"],
93
+ queryFn: ({ signal }) =>
94
+ fetchDashboardJson(conversationFeedSchema, "/api/conversations", signal),
103
95
  retry: false,
104
96
  });
105
97
  }
@@ -27,9 +27,7 @@ export function ConversationWorkspace(props: { data: DashboardCoreData }) {
27
27
  const params = useParams();
28
28
  const navigate = useNavigate();
29
29
  const selectedId = params.conversationId;
30
- const feed = useConversationsData(
31
- props.data.config.authRequired ? props.data.me.user.email : undefined,
32
- );
30
+ const feed = useConversationsData();
33
31
  const pendingArchiveUpdates = usePendingArchiveConversationUpdates();
34
32
  const createConversation = useCreateConversation();
35
33
  const [creating, setCreating] = useState(false);