Handle saved timetable API failures properly

オープン
#264 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
64/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
react, typescript
領域
frontend

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
TypeScript
スター
7
フォーク
39
平均マージ
4時間 24分
マージ済み PR(30日)
53

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

CodeChefVIT/ffcs のほかの issue

CodeChefVIT/ffcs の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。