Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Change Proposal: Snackbar notification system

Aperta
#332 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
38/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
react, typescript

Direzione di ricerca

Start by reviewing the MuiSnackbar, MuiSnackbarContent, and MuiAlert overrides in DiamondDSTheme.ts, along with the Snackbar story. Compare the proposed SnackbarProvider approach with the existing component usage and define how stacking, queueing, theming, and notification guidance should fit together. Done means the accepted design is implemented with usage documentation covering placement, duration, severity, and inline Alert choices.

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

Descrizione

needs-triage

What is being proposed?

Introduce a snackbar notification system for stacking and queueing multiple notifications (e.g. notistack or an equivalent MUI-compatible library), plus written guidance on when and how to use it.

(was raised by several issues in i15-1/Atlas project)

Why is this needed?

Today the DS only themes MUI's bare Snackbar/Alert (see MuiSnackbar/MuiSnackbarContent/MuiAlert overrides in DiamondDSTheme.ts and the Snackbar story). Each consumer wires its own open state and there's no way to stack or queue multiple notifications, and no guidance on when a snackbar is appropriate versus an inline Alert.

MUI/Material's own guidance recommends showing only one snackbar at a time, but our platform needs to support multiple concurrent, stacked notifications, as seen in systems such as IBM Carbon's notification component.

What will change?

  • Behaviour: adds a SnackbarProvider (or similar) enabling stacking/queueing of multiple notifications
  • Component props or usage: consumers trigger notifications imperatively instead of managing open state themselves
  • New dependency: notistack (or equivalent), themed to match existing MuiAlert/MuiSnackbarContent styling
  • Documentation: usage guidance covering when to use a snackbar vs. inline Alert, severity/variant mapping, duration and placement conventions

Interface changes (if any)

const { enqueueSnackbar } = useSnackbar();
enqueueSnackbar("Saved", { variant: "success" });

Breaking change?

  • No

Next steps

A maintainer will review this issue.
If accepted, it will be marked as accepted and a PR may then be opened.

Lingua principale
TypeScript
Stelle
9
Fork
3
Merge medio
6g 7h
PR unite (30g)
20

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

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 DiamondLightSource/sci-react-ui

Tutte le issue di DiamondLightSource/sci-react-ui

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.