Add a circular variant to ProgressBar and reuse it in UploadFileItem

Aperta
#360 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 3 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
56/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
storybook, typescript

Direzione di ricerca

Start by reading the existing ProgressBar and the circular indicator embedded in UploadFileItem; the issue does not name their file paths, so locate them in the UI-kit source. Check how Storybook documents progress components, then add examples for determinate and indeterminate circular progress. Done means the variant supports configurable size, accessible labels, theme styling, and reduced-motion preferences, while existing horizontal usage remains unchanged.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Feature Request

Is your feature request related to a problem or unsupported use case? Please describe.

The UI-kit already renders circular progress inside UploadFileItem, but this indicator cannot be used independently. ProgressBar only supports a horizontal presentation, while Spinner cannot display percentage completion.

Transcripts maintains its own circular progress component for upload notifications and recording recovery rows.

Describe the solution you'd like

Add a circular variant to ProgressBar, reusing the implementation currently embedded in UploadFileItem.

<ProgressBar
  variant="circular"
  value={42}
  size={24}
  aria-label="Uploading recording"
/>

Support determinate and indeterminate progress, configurable size, theme-based styling, accessible labeling and reduced-motion preferences.

Keep the horizontal presentation as the default. Completion/error icons and upload-state handling should remain with consumers.

Describe alternatives you've considered

/

Discovery, Documentation, Adoption, Migration Strategy

Document the circular variant and add Storybook examples for determinate and indeterminate progress.

Refactor UploadFileItem to use the shared indicator. Transcripts can then replace its local implementation while retaining its upload-state handling.

Existing ProgressBar usage should remain unchanged.

Do you want to work on it through a Pull Request?

To be confirmed after agreeing on the API.

Lingua principale
TypeScript
Stelle
36
Fork
14
Merge medio
2g 10h
PR unite (30g)
12

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di suitenumerique/ui-kit

Tutte le issue di suitenumerique/ui-kit

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.