Handle saved timetable API failures properly

Offen
#264 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
64/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
react, typescript
Bereich
frontend

Rechercherichtung

Start by reading src/app/saved/saved.tsx and src/app/saved/saved-mobile.tsx, then trace the fetch, rename, delete, share, and visibility actions. Check how each request handles failures and whether loading states prevent repeated requests. The work is done when failures show useful feedback, rejected visibility changes roll back, and offline or network errors are handled consistently on desktop and mobile.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

bug

A few saved-timetable actions don't handle errors consistently. For example, the mobile share-link handler has an empty catch, so failed requests look like nothing happened. Other actions update state optimistically without always rolling it back if the request fails.

What needs to be done

  • Show useful feedback when fetching, renaming, deleting or sharing fails.
  • Don't leave the UI showing a changed visibility state if the backend rejects the change.
  • Add loading/disabled states to prevent repeated requests.
  • Remove silent catches and keep error handling consistent between desktop and mobile.
  • Check offline/network failure cases, not only successful requests.

Files: src/app/saved/saved.tsx, src/app/saved/saved-mobile.tsx.

Vorherrschende Sprache
TypeScript
Sterne
7
Forks
39
Ø Merge
4 Std. 24 Min.
Gemergte PRs (30 T.)
53

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus CodeChefVIT/ffcs

Alle Issues in CodeChefVIT/ffcs

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.