diff --git a/.github/workflows/docs-js-libs-update.yml b/.github/workflows/docs-js-libs-update.yml new file mode 100644 index 0000000000000..8848405c3ea66 --- /dev/null +++ b/.github/workflows/docs-js-libs-update.yml @@ -0,0 +1,70 @@ +name: Update JS Client Libraries Docs + +on: + workflow_dispatch: + inputs: + version: + description: "Version that was released (e.g., patch, minor, major, or v2.1.0)" + required: true + type: string + source: + description: "Source of the documentation update" + required: false + type: string + default: "manual" + +permissions: + pull-requests: write + contents: write + +jobs: + update-docs: + runs-on: blacksmith-4vcpu-ubuntu-2404 + + steps: + - uses: actions/checkout@v4 + with: + ref: master + sparse-checkout: | + apps/docs + + - uses: pnpm/action-setup@v4 + name: Install pnpm + with: + run_install: false + + - name: Use Node.js + uses: actions/setup-node@v4 + with: + node-version-file: ".nvmrc" + cache: "pnpm" + + - name: Install deps + run: pnpm i + + - name: Regenerate JS client libraries tsdoc files + working-directory: apps/docs/spec + run: | + echo "Regenerating tsdoc files for JS client libraries..." + echo "Source: ${{ github.event.inputs.source }}" + echo "Version: ${{ github.event.inputs.version }}" + make + + - name: Create pull request + uses: peter-evans/create-pull-request@v6 + with: + token: ${{ secrets.GITHUB_TOKEN }} + commit-message: "docs: update js client libraries (${{ github.event.inputs.version }})" + title: "docs: update js client libraries (${{ github.event.inputs.version }})" + body: | + Updates JS client libraries documentation following stable release. + Ran `make` in apps/docs/spec to regenerate tsdoc files. + + **Details:** + - **Version:** `${{ github.event.inputs.version }}` + - **Source:** `${{ github.event.inputs.source }}` + - **Changes:** Regenerated tsdoc files from latest spec files + + 🤖 Auto-generated from supabase-js-libs stable release. + branch: "gha/update-js-libs-docs-${{ github.run_number }}" + base: "master" diff --git a/apps/studio/components/interfaces/Auth/ProtectionAuthSettingsForm/ProtectionAuthSettingsForm.tsx b/apps/studio/components/interfaces/Auth/ProtectionAuthSettingsForm/ProtectionAuthSettingsForm.tsx index 748806817ca74..f5ef7d711ef1e 100644 --- a/apps/studio/components/interfaces/Auth/ProtectionAuthSettingsForm/ProtectionAuthSettingsForm.tsx +++ b/apps/studio/components/interfaces/Auth/ProtectionAuthSettingsForm/ProtectionAuthSettingsForm.tsx @@ -1,6 +1,7 @@ import { yupResolver } from '@hookform/resolvers/yup' import { PermissionAction } from '@supabase/shared-types/out/constants' import { Eye, EyeOff } from 'lucide-react' +import Link from 'next/link' import { useEffect, useState } from 'react' import { useForm } from 'react-hook-form' import { toast } from 'sonner' @@ -18,6 +19,7 @@ import { AlertDescription_Shadcn_, AlertTitle_Shadcn_, Alert_Shadcn_, + Badge, Button, Card, CardContent, @@ -267,6 +269,29 @@ export const ProtectionAuthSettingsForm = () => { > )} + + ( + + + + {field.value ? 'Enabled' : 'Disabled'} + + + Configure email provider + + + + )} + /> + + {protectionForm.formState.isDirty && ( protectionForm.reset()}> diff --git a/apps/studio/components/interfaces/Storage/AnalyticBucketDetails/DecryptedReadOnlyInput.tsx b/apps/studio/components/interfaces/Storage/AnalyticBucketDetails/DecryptedReadOnlyInput.tsx index 2ec51c5f15111..7b9bae83c096e 100644 --- a/apps/studio/components/interfaces/Storage/AnalyticBucketDetails/DecryptedReadOnlyInput.tsx +++ b/apps/studio/components/interfaces/Storage/AnalyticBucketDetails/DecryptedReadOnlyInput.tsx @@ -43,7 +43,8 @@ export const DecryptedReadOnlyInput = ({ return (