Skip to content

Commit 27f4632

Browse files
committed
chore: sentry mask
1 parent d90de5b commit 27f4632

5 files changed

Lines changed: 37 additions & 13 deletions

File tree

src/components/Dashboard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function Stat(props: { label: string; tooltip?: React.ReactNode; value?: string
3232
return (
3333
<div className="bg-gray-a1/50 border-gray-a3 relative border px-3 py-3">
3434
<div className="text-gray8 text-xs">{props.label}</div>
35-
<div className="mt-1 text-2xl font-bold tabular-nums">
35+
<div className="mt-1 text-2xl font-bold tabular-nums" data-sentry-mask>
3636
{props.value ?? <span className="text-gray5">&mdash;</span>}
3737
</div>
3838
{props.tooltip && (

src/router.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ export function getRouter() {
4040
tunnel: rpc.api.tunnel.$url().pathname,
4141
integrations: [
4242
Sentry.tanstackRouterBrowserTracingIntegration(router),
43-
Sentry.replayIntegration(),
43+
Sentry.replayIntegration({
44+
blockAllMedia: false,
45+
maskAllText: false,
46+
}),
4447
],
4548
environment: __ENV__,
4649
release: __GIT_SHA__,

src/routes/_dash.$login/billing.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -236,20 +236,22 @@ function Component() {
236236
{pm.funding !== 'unknown' && (
237237
<span className="text-gray8">{pm.funding} </span>
238238
)}
239-
<span className="text-gray8">&bull;&bull;&bull;&bull; {pm.last4}</span>
239+
<span className="text-gray8" data-sentry-mask>
240+
&bull;&bull;&bull;&bull; {pm.last4}
241+
</span>
240242
{pm.is_default && (
241243
<span className="border-gray-a3 text-gray8 ms-2 inline-flex items-center border px-1 py-0.5 text-xs leading-none uppercase">
242244
Default
243245
</span>
244246
)}
245247
</div>
246-
<div className="text-gray8 md:hidden">
248+
<div className="text-gray8 md:hidden" data-sentry-mask>
247249
Valid until {pm.exp_month}/{String(pm.exp_year).slice(-2)}
248250
</div>
249251
</div>
250252
</div>
251253
<div className="flex shrink-0 items-center gap-3">
252-
<span className="text-gray8 hidden text-sm md:inline">
254+
<span className="text-gray8 hidden text-sm md:inline" data-sentry-mask>
253255
Valid until {pm.exp_month}/{String(pm.exp_year).slice(-2)}
254256
</span>
255257
<Menu.Root>
@@ -436,7 +438,7 @@ function TransactionHistory(props: {
436438
Balance
437439
</Dashboard.Table.Th>
438440
</Dashboard.Table.Thead>
439-
<tbody>
441+
<tbody data-sentry-mask>
440442
{data.transactions.map((tx, i) => {
441443
const balanceAfter =
442444
props.balanceMills -

src/routes/_dash.$login/route.tsx

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,9 @@ function AccountSwitcher(props: {
292292
avatarUrl={props.entity.avatar_url ?? undefined}
293293
name={props.entity.name ?? props.entity.login}
294294
/>
295-
<span className="truncate">{props.entity.name ?? props.entity.login}</span>
295+
<span className="truncate" data-sentry-mask>
296+
{props.entity.name ?? props.entity.login}
297+
</span>
296298
<IconLucideChevronsUpDown className="text-gray8 ms-auto size-3.5 shrink-0" />
297299
</Menu.Trigger>
298300
<Menu.Portal>
@@ -314,7 +316,9 @@ function AccountSwitcher(props: {
314316
}
315317
>
316318
<EntityAvatar avatarUrl={e.avatar_url ?? undefined} name={e.name ?? e.login} />
317-
<span className="truncate">{e.name ?? e.login}</span>
319+
<span className="truncate" data-sentry-mask>
320+
{e.name ?? e.login}
321+
</span>
318322
</Menu.Item>
319323
))}
320324
{props.others.length > 0 && <div className="border-gray-a2 -mx-1 my-1 border-t" />}
@@ -506,7 +510,10 @@ function EntityAvatar(props: { avatarUrl?: string | null | undefined; name: stri
506510
if (props.avatarUrl)
507511
return <img alt={props.name} className="size-6 shrink-0" src={props.avatarUrl} />
508512
return (
509-
<span className="bg-gray-a3 flex size-6 shrink-0 items-center justify-center text-xs uppercase">
513+
<span
514+
className="bg-gray-a3 flex size-6 shrink-0 items-center justify-center text-xs uppercase"
515+
data-sentry-mask
516+
>
510517
{props.name[0]}
511518
</span>
512519
)

src/routes/_dash.$login/settings.tsx

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,10 @@ function SettingsForm(props: {
111111
{entity.avatar_url ? (
112112
<img alt={entity.name ?? entity.login} className="size-16" src={entity.avatar_url} />
113113
) : (
114-
<span className="bg-gray-a3 flex size-16 items-center justify-center text-xl uppercase">
114+
<span
115+
className="bg-gray-a3 flex size-16 items-center justify-center text-xl uppercase"
116+
data-sentry-mask
117+
>
115118
{(entity.name ?? entity.login)[0]}
116119
</span>
117120
)}
@@ -193,7 +196,10 @@ function SettingsForm(props: {
193196
</div>
194197
<Dialog.Description>
195198
To confirm, type your current login{' '}
196-
<span className="text-gray12 font-medium">{entity.login}</span>.
199+
<span className="text-gray12 font-medium" data-sentry-mask>
200+
{entity.login}
201+
</span>
202+
.
197203
</Dialog.Description>
198204
<input
199205
autoComplete="off"
@@ -288,7 +294,10 @@ function DeleteOrganization(props: {
288294
</div>
289295
<Dialog.Description>
290296
To confirm, type the organization login{' '}
291-
<span className="text-gray12 font-medium">{props.entity.login}</span>.
297+
<span className="text-gray12 font-medium" data-sentry-mask>
298+
{props.entity.login}
299+
</span>
300+
.
292301
</Dialog.Description>
293302
<input
294303
autoComplete="off"
@@ -379,7 +388,10 @@ function DeleteAccount(props: { account: { id: string; login: string }; onDelete
379388
</div>
380389
<Dialog.Description>
381390
To confirm, type your login{' '}
382-
<span className="text-gray12 font-medium">{props.account.login}</span>.
391+
<span className="text-gray12 font-medium" data-sentry-mask>
392+
{props.account.login}
393+
</span>
394+
.
383395
</Dialog.Description>
384396
<input
385397
autoComplete="off"

0 commit comments

Comments
 (0)