mirror of
https://github.com/supabase/supabase.git
synced 2026-10-10 11:55:05 +03:00
## Context Related to unifying read replicas into the database replication page Updates some copywriting on the database replication page if the feature flag is on ## Before <img width="768" height="104" alt="image" src="https://github.com/user-attachments/assets/2f49d5b7-5141-4606-b50c-886a6b62f80e" /> <img width="1109" height="209" alt="image" src="https://github.com/user-attachments/assets/d1c37f8f-2105-49ad-a029-e5d00a81050a" /> ## After <img width="899" height="89" alt="image" src="https://github.com/user-attachments/assets/ffcbd1de-56ea-4181-937c-29b96c25d7d0" /> <img width="1094" height="206" alt="image" src="https://github.com/user-attachments/assets/9942134c-8bf1-4978-a343-93df4397d044" /> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Replication interface now displays contextual guidance and descriptions based on your configuration. * Enhanced messaging for data synchronization and destination management. * **UI Improvements** * Refined layout spacing in the destinations empty state for improved visual clarity. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
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