Skip to content
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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

HosokawaR
Copy link
Member

@HosokawaR HosokawaR commented Dec 4, 2022

背景

Resovles #43

上記 Issue にあるようにフィルタ設定にバグはなかったが、フィルタ設定は特定の画面ではないと発動しなかったため、バグのように思えてわかりにくかった。

変更

  • フィルタ設定についての説明を追加
  • フィルタ設定画面が有効な画面以外は、有効になるコース一覧画面へ誘導するメッセージを表示するように

フィルタ設定ができない画面でメッセージが表示されても
image

フィルタ設定ができる画面への誘導が促され
image

該当ページでもう一度「設定」を押すと
image

無事フィルタ設定が編集できる
image

@HosokawaR HosokawaR mentioned this pull request Dec 4, 2022
@HosokawaR HosokawaR marked this pull request as ready for review December 4, 2022 08:10
@HosokawaR HosokawaR requested a review from azrsh December 4, 2022 08:11
Comment on lines +1 to +2
export const MANABA_COURSES_LIST_URL =
'https://manaba.tsukuba.ac.jp/ct/home_course?chglistformat=list'
Copy link
Contributor

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()

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

あと定数を切り出す先のディレクトリが config/ 以下なのには何か理由がある?

Comment on lines +83 to +85
<Button color="secondary" onClick={handleGoingCourseListButtonClick}>
コース一覧ページへ
</Button>
Copy link
Contributor

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 でハンドルする必要はなさそう

Comment on lines -72 to +121
<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>
</>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 設定しないでももう表示しないを選択できるように変更している

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants