Skip to content

Commit 24531f9

Browse files
authored
Merge pull request supabase#13847 from supabase/chore/add-error-handling-for-permissions
Add error handling for permissions + small style fix on triggers UI
2 parents d4bf36b + b7a251f commit 24531f9

File tree

68 files changed

+196
-107
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+196
-107
lines changed

studio/components/interfaces/Account/NewAccessTokenButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ const NewAccessTokenButton = observer(({ onCreateToken }: NewAccessTokenButtonPr
115115
</p>
116116
<div className="mt-4">
117117
<Link href="https://api.supabase.com/api/v0">
118-
<a target="_blank">
118+
<a target="_blank" rel="noreferrer">
119119
<Button type="default" icon={<IconExternalLink strokeWidth={1.5} />}>
120120
Experimental API documentation
121121
</Button>

studio/components/interfaces/App/AppBannerWrapper.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const AppBannerWrapper: FC = ({ children }) => {
1010
<div className="min-h-full flex flex-col">
1111
{ongoingIncident && (
1212
<Link href="https://status.supabase.com">
13-
<a target="_blank">
13+
<a target="_blank" rel="noreferrer">
1414
<div className="flex cursor-pointer items-center justify-center space-x-2 bg-green-900 py-3 text-scale-400 transition hover:bg-green-1000 dark:text-scale-1200">
1515
<p className="text-sm font-medium">
1616
We are currently investigating a technical issue, follow status.supabase.com for

studio/components/interfaces/Auth/EmailTemplates/EmailTemplates.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ const EmailTemplates = observer(() => {
1515
/>
1616
<div className="mb-6">
1717
<Button type="default" icon={<IconExternalLink size={14} strokeWidth={1.5} />}>
18-
<a target="_blank" href="https://supabase.com/docs/guides/auth/auth-email-templates">
18+
<a
19+
target="_blank"
20+
rel="noreferrer"
21+
href="https://supabase.com/docs/guides/auth/auth-email-templates"
22+
>
1923
Documentation
2024
</a>
2125
</Button>

studio/components/interfaces/Auth/Policies/PolicyEditor/PolicyEditorFooter.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,14 @@ interface Props {
99

1010
const PolicyEditorFooter: FC<Props> = ({ showTemplates, onViewTemplates, onReviewPolicy }) => (
1111
<div className="flex justify-between items-center border-t px-6 py-4 dark:border-dark">
12-
<a href='https://supabase.com/docs/learn/auth-deep-dive/auth-policies' target="_blank">
13-
<Button type='link' icon={<IconExternalLink size={14} strokeWidth={1.5} />}>Documentation</Button>
12+
<a
13+
href="https://supabase.com/docs/learn/auth-deep-dive/auth-policies"
14+
target="_blank"
15+
rel="noreferrer"
16+
>
17+
<Button type="link" icon={<IconExternalLink size={14} strokeWidth={1.5} />}>
18+
Documentation
19+
</Button>
1420
</a>
1521
<div className="flex w-full items-center justify-end gap-2">
1622
{showTemplates && (

studio/components/interfaces/Auth/Policies/PolicySelection.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ const PolicySelection: FC<Props> = ({
6161
Not sure what policies are? Check out our resources{' '}
6262
<a
6363
target="_blank"
64+
rel="noreferrer"
6465
className="text-brand-900 transition-colors hover:text-brand-1200"
6566
href="https://supabase.com/docs/guides/auth#policies"
6667
>

studio/components/interfaces/Billing/AddOns/ComputeSizeSelection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const ComputeSizeSelection: FC<Props> = ({
3737
</p>
3838
</div>
3939
<Link href="https://supabase.com/docs/guides/platform/compute-add-ons">
40-
<a target="_blank">
40+
<a target="_blank" rel="noreferrer">
4141
<Button type="default" icon={<IconExternalLink strokeWidth={1.5} />}>
4242
About compute add-ons
4343
</Button>

studio/components/interfaces/Billing/Billing.constants.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@ export const USAGE_BASED_PRODUCTS = [
3131
tooltip: (
3232
<span>
3333
Billing is based on the average daily database size in GB throughout the billing period.{' '}
34-
<a href="https://supabase.com/docs/guides/platform/database-usage" target="_blank">
34+
<a
35+
href="https://supabase.com/docs/guides/platform/database-usage"
36+
target="_blank"
37+
rel="noreferrer"
38+
>
3539
Docs
3640
</a>
3741
</span>

studio/components/interfaces/Billing/Invoices.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ const Invoices: FC<Props> = ({ projectRef }) => {
131131
<div className="flex items-center justify-end space-x-2">
132132
{[InvoiceStatus.UNCOLLECTIBLE, InvoiceStatus.OPEN].includes(x.status) && (
133133
<Link href={`https://redirect.revops.supabase.com/pay-invoice/${x.id}`}>
134-
<a target="_blank">
134+
<a target="_blank" rel="noreferrer">
135135
<Button>Pay Now</Button>
136136
</a>
137137
</Link>

studio/components/interfaces/Billing/PlanSelection/PlanSelection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const PlanSelection: FC<Props> = ({ visible, tiers, currentPlan, onSelectPlan })
4545
</div>
4646
<div className="flex justify-center items-center mt-4">
4747
<Link href="https://supabase.com/pricing">
48-
<a target="_blank">
48+
<a target="_blank" rel="noreferrer">
4949
<Button
5050
type="link"
5151
icon={<IconExternalLink size={14} strokeWidth={1.5} />}

studio/components/interfaces/Billing/SpendCapModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ const SpendCapModal: FC<Props> = ({ visible, onHide }) => {
129129
<p>
130130
See{' '}
131131
<Link href="https://supabase.com/pricing" passHref>
132-
<a className="text-brand-900" target="_blank">
132+
<a className="text-brand-900" target="_blank" rel="noreferrer">
133133
<span>pricing page</span>
134134
</a>
135135
</Link>{' '}

0 commit comments

Comments
 (0)