-
-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
フィルタ設定への説明とガイドを追加 #46
base: master
Are you sure you want to change the base?
Conversation
export const MANABA_COURSES_LIST_URL = | ||
'https://manaba.tsukuba.ac.jp/ct/home_course?chglistformat=list' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
この PR でやらなくてもいいけど定数を切り出すならこの辺も対応した方が良さそう
const raw = await (await fetch('https://manaba.tsukuba.ac.jp/ct/home')).text() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
あと定数を切り出す先のディレクトリが config/
以下なのには何か理由がある?
<Button color="secondary" onClick={handleGoingCourseListButtonClick}> | ||
コース一覧ページへ | ||
</Button> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://mui.com/material-ui/react-button/#text-button のように href
をセットすれば onClick
でハンドルする必要はなさそう
<Button | ||
color="secondary" | ||
onClick={async () => { | ||
setEditBlackList(true) | ||
await writeStorage('special-notify:black-list-feature', true) | ||
updateBlackListFeatureNotify(true) | ||
}} | ||
> | ||
設定する | ||
</Button> | ||
<> | ||
<Button color="primary" onClick={handleSettingButtonClick}> | ||
設定する | ||
</Button> | ||
<Button | ||
color="secondary" | ||
onClick={handleNoLongerDisplayButtonClick} | ||
> | ||
もう表示しない | ||
</Button> | ||
</> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📝 設定しないでももう表示しないを選択できるように変更している
背景
Resovles #43
上記 Issue にあるようにフィルタ設定にバグはなかったが、フィルタ設定は特定の画面ではないと発動しなかったため、バグのように思えてわかりにくかった。
変更
フィルタ設定ができない画面でメッセージが表示されても
![image](https://user-images.githubusercontent.com/45098934/205480537-ad337a6f-15e3-4744-bdcf-1f27f544a599.png)
フィルタ設定ができる画面への誘導が促され
![image](https://user-images.githubusercontent.com/45098934/205480542-b348f279-5508-4f61-9ab3-210cb5105600.png)
該当ページでもう一度「設定」を押すと
![image](https://user-images.githubusercontent.com/45098934/205480551-2181c928-2766-4b76-970b-5593e9042fb2.png)
無事フィルタ設定が編集できる
![image](https://user-images.githubusercontent.com/45098934/205480556-680c4a18-736e-4134-9ceb-e8d55a2552dd.png)