Files
Francesco Sansalvadore 1550b09037 chore(studio): object versioning additions (#54432)
- Improve warning when public bucket and versions are being enabled on
storage bucket
enabling public bucket:
<img width="712" height="553" alt="Screenshot 2026-12-01 at 18 56 50"
src="https://github.com/user-attachments/assets/327f9e77-11dd-41b6-83b5-c3941aaf3d39"
/>

warning with non-public bucket:
<img width="651" height="456" alt="Screenshot 2026-12-01 at 18 56 42"
src="https://github.com/user-attachments/assets/0078abd7-7246-43c0-afca-2352329369ae"
/>

- Add "Get url" action for an object version
<img width="470" height="311" alt="Screenshot 2026-12-01 at 18 54 42"
src="https://github.com/user-attachments/assets/b3b2f92d-f341-4bda-93b8-473e59bf8ae6"
/>

- Add copy button to versionId

<img width="437" height="275" alt="Screenshot 2026-12-01 at 18 53 33"
src="https://github.com/user-attachments/assets/50a068a1-616b-42a2-bd23-7270bbef649e"
/>

- Add gh discussion link for feedback
2026-12-03 17:53:48 +01:00
..
…

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-cleaned folder 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.tsx as 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 — use a named export, not a default export
export const ComponentA = ({ sampleProp }: ComponentAProps) => {
  return <div>ComponentA: {sampleProp}</div>
}