Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Midway updating rles table

Joshen Lim00331588030f
diff --git a/studio/components/interfaces/Organization/TeamSettings/RolesHelperModal/RolesHelperModal.constants.ts b/studio/components/interfaces/Organization/TeamSettings/RolesHelperModal/RolesHelperModal.constants.ts
index 8143f216510..c37e4e54d24 100644
--- a/studio/components/interfaces/Organization/TeamSettings/RolesHelperModal/RolesHelperModal.constants.ts
+++ b/studio/components/interfaces/Organization/TeamSettings/RolesHelperModal/RolesHelperModal.constants.ts
@@ -120,7 +120,7 @@ const BILLING_PERMISSIONS = {
admin: true,
developer: true,
read_only: false,
- billing_only: false,
+ billing_only: true,
},
},
{
@@ -130,7 +130,7 @@ const BILLING_PERMISSIONS = {
admin: true,
developer: true,
read_only: false,
- billing_only: false,
+ billing_only: true,
},
},
{
@@ -140,7 +140,7 @@ const BILLING_PERMISSIONS = {
admin: false,
developer: false,
read_only: false,
- billing_only: false,
+ billing_only: true,
},
},
{
@@ -150,7 +150,7 @@ const BILLING_PERMISSIONS = {
admin: true,
developer: true,
read_only: false,
- billing_only: false,
+ billing_only: true,
},
},
{
@@ -160,7 +160,7 @@ const BILLING_PERMISSIONS = {
admin: true,
developer: false,
read_only: false,
- billing_only: false,
+ billing_only: true,
},
},
{
@@ -170,7 +170,7 @@ const BILLING_PERMISSIONS = {
admin: true,
developer: true,
read_only: false,
- billing_only: false,
+ billing_only: true,
},
},
{
@@ -180,7 +180,7 @@ const BILLING_PERMISSIONS = {
admin: true,
developer: false,
read_only: false,
- billing_only: false,
+ billing_only: true,
},
},
{
@@ -190,7 +190,7 @@ const BILLING_PERMISSIONS = {
admin: true,
developer: true,
read_only: false,
- billing_only: false,
+ billing_only: true,
},
},
{
@@ -200,7 +200,7 @@ const BILLING_PERMISSIONS = {
admin: true,
developer: false,
read_only: false,
- billing_only: false,
+ billing_only: true,
},
},
{
@@ -210,7 +210,7 @@ const BILLING_PERMISSIONS = {
admin: true,
developer: true,
read_only: false,
- billing_only: false,
+ billing_only: true,
},
},
{
@@ -220,7 +220,7 @@ const BILLING_PERMISSIONS = {
admin: true,
developer: false,
read_only: false,
- billing_only: false,
+ billing_only: true,
},
},
],
diff --git a/studio/components/interfaces/Organization/TeamSettings/RolesHelperModal/RolesHelperModal.tsx b/studio/components/interfaces/Organization/TeamSettings/RolesHelperModal/RolesHelperModal.tsx
index 3f3493be1d0..f7aa3c7ddb3 100644
--- a/studio/components/interfaces/Organization/TeamSettings/RolesHelperModal/RolesHelperModal.tsx
+++ b/studio/components/interfaces/Organization/TeamSettings/RolesHelperModal/RolesHelperModal.tsx
@@ -18,7 +18,7 @@ const RolesHelperModal: FC<Props> = ({}) => {
closable
hideFooter
visible={showModal}
- size="xlarge"
+ size="xxlarge"
header="Permissions for each role"
onCancel={() => setShowModal(!showModal)}
>
@@ -32,16 +32,22 @@ const RolesHelperModal: FC<Props> = ({}) => {
<Modal.Content>
<div className="bg-scale-400 border border-scale-500 rounded">
<div className="flex items-center border-b border-scale-600">
- <div className="text-sm w-[49%] pl-4 font-bold">Permissions</div>
- <div className="text-sm w-[17%] h-8 flex items-center justify-center border-l border-scale-600 font-bold">
+ <div className="text-sm w-[40%] pl-4 font-bold">Permissions</div>
+ <div className="text-sm w-[12%] h-8 flex items-center justify-center border-l border-scale-600 font-bold">
Owner
</div>
- <div className="text-sm w-[17%] h-8 flex items-center justify-center border-l border-scale-600 font-bold">
+ <div className="text-sm w-[12%] h-8 flex items-center justify-center border-l border-scale-600 font-bold">
Adminstrator
</div>
- <div className="text-sm w-[17%] h-8 flex items-center justify-center border-l border-scale-600 font-bold">
+ <div className="text-sm w-[12%] h-8 flex items-center justify-center border-l border-scale-600 font-bold">
Developer
</div>
+ <div className="text-sm w-[12%] h-8 flex items-center justify-center border-l border-scale-600 font-bold">
+ Read-only
+ </div>
+ <div className="text-sm w-[12%] h-8 flex items-center justify-center border-l border-scale-600 font-bold">
+ Billing-only
+ </div>
</div>
<div className="max-h-[425px] overflow-y-auto">
@@ -55,11 +61,11 @@ const RolesHelperModal: FC<Props> = ({}) => {
key={`${group.title}-${idx}`}
className="bg-scale-500 flex items-center border-b border-scale-600 last:border-none"
>
- <div className="text-sm w-[49%] pl-4">{action.description}</div>
+ <div className="text-sm w-[40%] pl-4">{action.description}</div>
<div
className={[
'h-8 text-center border-l border-scale-600',
- 'text-sm w-[17%] flex items-center justify-center',
+ 'text-sm w-[12%] flex items-center justify-center',
].join(' ')}
>
{action.permissions.owner && <IconCheck size={14} strokeWidth={2} />}
@@ -67,7 +73,7 @@ const RolesHelperModal: FC<Props> = ({}) => {
<div
className={[
'h-8 text-center border-l border-scale-600',
- 'text-sm w-[17%] flex items-center justify-center',
+ 'text-sm w-[12%] flex items-center justify-center',
].join(' ')}
>
{action.permissions.admin && <IconCheck size={14} strokeWidth={2} />}
@@ -75,11 +81,29 @@ const RolesHelperModal: FC<Props> = ({}) => {
<div
className={[
'h-8 text-center border-l border-scale-600',
- 'text-sm w-[17%] flex items-center justify-center',
+ 'text-sm w-[12%] flex items-center justify-center',
].join(' ')}
>
{action.permissions.developer && <IconCheck size={14} strokeWidth={2} />}
</div>
+ <div
+ className={[
+ 'h-8 text-center border-l border-scale-600',
+ 'text-sm w-[12%] flex items-center justify-center',
+ ].join(' ')}
+ >
+ {action.permissions.read_only && <IconCheck size={14} strokeWidth={2} />}
+ </div>
+ <div
+ className={[
+ 'h-8 text-center border-l border-scale-600',
+ 'text-sm w-[12%] flex items-center justify-center',
+ ].join(' ')}
+ >
+ {action.permissions.billing_only && (
+ <IconCheck size={14} strokeWidth={2} />
+ )}
+ </div>
</div>
))}
</Fragment>