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

ページング機能の実装 #181

Merged
merged 44 commits into from
Apr 19, 2024
Merged

ページング機能の実装 #181

merged 44 commits into from
Apr 19, 2024

Conversation

trm11tkr
Copy link
Contributor

@trm11tkr trm11tkr commented Apr 11, 2024

概要

close: #2

レビュー観点

  • ページングの基盤が適切な仕様になっているか
  • feature/github_repository パッケージの実装が適切か

レビューレベル

  • Lv1: ぱっとみて違和感がないかチェックして Approve する
  • Lv2: 仕様レベルまで理解して、仕様通りに動くかある程度検証して Approve する
  • Lv3: 実際に環境で動作確認したうえで Approve する

レビュー優先度

  • すぐに見てもらいたい ( hotfix など ) 🚀
  • 今日中に見てもらいたい 🚗
  • 今日〜明日中で見てもらいたい 🚶
  • 数日以内で見てもらいたい 🐢

画像 / 動画

ページング

Android iOS
paging_android.webm
paging_ios.webm

初回エラー・ページングに伴うエラー

Android iOS
paging_error_android.webm
paging_error_ios.webm

動作確認手順

エラーを確認する手順

初回エラーからの復帰の確認

  1. 機内モードにしてアプリ起動
  2. 機内モードを解除してから再読み込みボタンを押下

ページング処理に伴うエラーの確認

  1. 通常通りにアプリ起動
  2. 機内モードに設定してから、スクロールし追加読み込みを行う

備考

今回の PR ではページネーションによるエラーからの復帰対応は行なっていません。
#173 にて対応される想定です。

参考:

Copy link

github-actions bot commented Apr 11, 2024

Visit the preview URL for this PR (updated for commit bf5c4c6):

https://flutter-mobile-project-template-catalog--pr181-feature-2wa8lt7x.web.app

(expires Fri, 26 Apr 2024 04:30:28 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 9ea56735a63d07a7cfe62eb204b0528284c37c23

@trm11tkr trm11tkr marked this pull request as ready for review April 11, 2024 09:23
@yumemi-team-review-requester yumemi-team-review-requester bot requested review from a team, warahiko and takashi0602 and removed request for a team April 11, 2024 09:24
Copy link

Ready for review 🚀

@trm11tkr
Copy link
Contributor Author

@warahiko @takashi0602
レビューお願いいいたします。
複雑に実装になっているため 1時間はレビューに要するのではないかと考えております🙏

@trm11tkr trm11tkr changed the title [WIP] ページング機能の追加 ページング機能の実装 Apr 11, 2024
Copy link
Contributor

@warahiko warahiko left a comment

Choose a reason for hiding this comment

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

めちゃ難しい実装ありがとうございます!
全体的に generics が複雑ですね 😇
kotlin みたいに star-projection が使えたりすると見やすくなりそうですが......
(PagingData は PagingDataItem の id の型は気にしていない、とか)
あと改行の仕方も気にしたいですが、linter でできるんでしょうか......

nits
全体的に GitHub の表記揺れが見られます

Copy link
Contributor Author

@trm11tkr trm11tkr left a comment

Choose a reason for hiding this comment

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

@warahiko @takashi0602
お二方とも丁寧にレビューしていただきありがとうございました!
修正対応 & コメントさせていただきましたので再度レビューよろしくお願いいたします🙏

Copy link
Contributor

@warahiko warahiko left a comment

Choose a reason for hiding this comment

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

対応ありがとうございます、返答しました!
ちなみに GitHub の H は large が正式です、コード内で揃ってる分にはまあ......という気はしますが document 類はだいたい GitHub になってますね......

@trm11tkr
Copy link
Contributor Author

@warahiko

ちなみに GitHub の H は large が正式です、コード内で揃ってる分にはまあ......という気はしますが document 類はだいたい GitHub になってますね......

正式名称が GitHub (H が大文字)であることは存じ上げているのですが、ファイル名やクラス名に反映させるときは h を小文字にするのが一般的だと勝手に思っていました。
ファイル名が github_repositoryなので合わせて クラス名も GithubRepository にしていました。

他の方の実装を見てみると、半々くらいなんですかね🤔

改めて考えるとブランドネームに沿うという観点からは gitHubGitHub の方が良いと思いましたので以下で修正いたしました。
2988860

@trm11tkr trm11tkr requested a review from warahiko April 17, 2024 11:22
@warahiko
Copy link
Contributor

warahiko commented Apr 18, 2024

ファイル名が github_repositoryなので合わせて クラス名も GithubRepository にしていました。

これまさにですね、自分の中でブレていて申し訳ないです 🙏
(snake_case だというのも一つあるとは思いますが......なんか分けたくない感じが...... 😇 機械的には分けるべきなのかもですね)

変更はよさそうに思いました!

@trm11tkr
Copy link
Contributor Author

@warahiko
フィードバックいただいた点について対応いたしましたので再度レビューお願いいたします!
#181 (comment) : cores/core の extension の import を制限
#181 (comment) : PageBasedPagingAsyncNotifier に初期ページを設定

Copy link
Contributor

@warahiko warahiko left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@trm11tkr trm11tkr requested a review from warahiko April 19, 2024 04:31
Copy link
Contributor

@warahiko warahiko left a comment

Choose a reason for hiding this comment

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

再度確認、よさそうです 👍

@trm11tkr
Copy link
Contributor Author

丁寧にレビューしていただき本当にありがとうございました!
こちらマージさせていただきます!

@trm11tkr trm11tkr merged commit 5b3b0a9 into main Apr 19, 2024
6 checks passed
@trm11tkr trm11tkr deleted the feature/paging branch April 19, 2024 05:57
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.

ページング機能
3 participants