Skip to content

Commit 482e477

Browse files
hfsaltcod
andauthored
feat: rewrite auth audit logs toggle to be in the positive sense (supabase#39846)
* feat: rewrite auth audit logs toggle to be in the positive sense * Light edit * Copy update --------- Co-authored-by: Terry Sutton <[email protected]>
1 parent d3ac458 commit 482e477

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

apps/studio/components/interfaces/Auth/AuditLogsForm.tsx

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,10 @@ export const AuditLogsForm = () => {
119119
render={({ field }) => (
120120
<FormItemLayout
121121
layout="flex-row-reverse"
122-
label="Disable writing auth audit logs to project database"
122+
label="Write audit logs to the database"
123123
description={
124124
<p className="text-sm prose text-foreground-lighter max-w-full">
125-
Audit logs will no longer be stored in the{' '}
125+
When enabled, audit logs are written to the{' '}
126126
<InlineLink
127127
target="_blank"
128128
rel="noopener noreferrer"
@@ -132,21 +132,22 @@ export const AuditLogsForm = () => {
132132
{AUDIT_LOG_ENTRIES_TABLE}
133133
</code>
134134
</InlineLink>{' '}
135-
table in your project's database, which will reduce database storage
136-
usage. Audit logs will subsequently still be available in the{' '}
135+
table.
136+
<br />
137+
You can disable this to reduce disk usage while still accessing logs
138+
through the{' '}
137139
<InlineLink
138140
href={`/project/${projectRef}/logs/explorer?q=select%0A++cast(timestamp+as+datetime)+as+timestamp%2C%0A++event_message%2C+metadata+%0Afrom+auth_audit_logs+%0Alimit+10%0A`}
139141
>
140-
auth logs
142+
Auth logs.
141143
</InlineLink>
142-
.
143144
</p>
144145
}
145146
>
146147
<FormControl_Shadcn_>
147148
<Switch
148-
checked={field.value}
149-
onCheckedChange={field.onChange}
149+
checked={!field.value}
150+
onCheckedChange={(value) => field.onChange(!value)}
150151
disabled={!canUpdateConfig}
151152
/>
152153
</FormControl_Shadcn_>

0 commit comments

Comments
 (0)