mirror of
https://github.com/supabase/supabase.git
synced 2026-10-10 20:05:06 +03:00
This adds some pages that will be needed soon. Fixes https://linear.app/supabase/issue/API-901/ship-studio-authentication-confirmation-page Used by https://github.com/supabase/platform/pull/29718 Here are some screenshots of the 3 possible scenarios (initiated by the Management API): > [!NOTE] > As part of this flow, a new account + and a free organization will be created. ### Initializing the confirmation flow <img width="2708" height="1426" alt="CleanShot 2026-02-27 at 13 44 01@2x" src="https://github.com/user-attachments/assets/e5a90886-43a9-4202-ad81-fb42c13da036" /> ### Confirmation page <img width="2610" height="1640" alt="CleanShot 2026-02-27 at 13 44 20@2x" src="https://github.com/user-attachments/assets/8491fe24-c183-4987-a1c4-3d9b26dec9c3" /> ### In the event of going through a flow with a different signed-in account <img width="1982" height="1564" alt="CleanShot 2026-02-27 at 13 47 44@2x" src="https://github.com/user-attachments/assets/8a50b4c7-3fa4-4f6a-9d6f-b8776975b676" /> --------- Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
Writing components
Where to create your components
- For components that declare the general structure and layout of a page:
/components/layouts/xxx
- For components that are tightly coupled to a specific interface:
/components/interfaces/xxx
- For components that are meant to be reusable across multiple pages:
/components/ui/xxx
- Note: We're gradually moving files out of the
to-be-cleanedfolder into the respective folders as we refactor
Component structure
- If a component has constants and utility methods that are tightly coupled to itself, keep them close to the component and enclose them in a folder with an
index.tsxas an entry point - Otherwise it can just be a file on its own
- For example:
-
components/ui - SampleComponentA - SampleComponentA.tsx - SampleComponentA.constants.ts - SampleComponentA.utils.ts - SampleComponentA.types.ts - index.ts - SampleComponentB.tsx
-
Template for building components
// Declare the prop types of your component
interface ComponentAProps {
sampleProp: string
}
// Name your component accordingly
const ComponentA = ({ sampleProp }: ComponentAProps) => {
return <div>ComponentA: {sampleProp}</div>
}
export default ComponentA