@sentry/junior-dashboard 0.85.0 → 0.87.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.85.0",
3
+ "version": "0.87.0",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -33,8 +33,8 @@
33
33
  "react-router": "^7.16.0",
34
34
  "recharts": "^3.8.1",
35
35
  "shiki": "4.1.0",
36
- "@sentry/junior": "0.85.0",
37
- "@sentry/junior-plugin-api": "0.85.0"
36
+ "@sentry/junior": "0.87.0",
37
+ "@sentry/junior-plugin-api": "0.87.0"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@tailwindcss/cli": "^4.3.0",
@@ -612,15 +612,21 @@ export function conversationIdentityMeta(
612
612
 
613
613
  /** Convert Slack channel ids and names into user-facing location labels. */
614
614
  export function slackLocationLabel(
615
- input: Pick<ConversationSummary, "channel" | "channelName">,
615
+ input: Pick<
616
+ ConversationSummary,
617
+ "channel" | "channelName" | "channelNameRedacted"
618
+ >,
616
619
  options: { includeId?: boolean } = {},
617
620
  ): string | undefined {
618
621
  const channelId = input.channel;
619
622
  if (!channelId) return undefined;
620
623
 
621
624
  const includeId = options.includeId ?? true;
622
- const name = input.channelName?.replace(/^#/, "");
623
625
  const idSuffix = includeId ? ` (${channelId})` : "";
626
+ if (input.channelNameRedacted && input.channelName) {
627
+ return `${input.channelName}${idSuffix}`;
628
+ }
629
+ const name = input.channelName?.replace(/^#/, "");
624
630
  if (channelId.startsWith("D")) {
625
631
  return `Direct Message${idSuffix}`;
626
632
  }