Thanks to visit codestin.com
Credit goes to github.com

Skip to content

スマートフォン版のDojo表示を地方ごとから都道府県ごとに変更 #1701

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

Merged
merged 8 commits into from
Jun 12, 2025

Conversation

nacchan99
Copy link
Contributor

@nacchan99 nacchan99 commented Jun 9, 2025

Closes #462

概要

スマートフォン版のDojo情報表示を、「地方ごと」から「都道府県ごと」へ変更しました。

変更内容

  • Dojoモデルに group_by_prefecture / group_by_prefecture_on_active を追加
  • home_controller.rb@prefectures_and_dojos を追加
  • app/views/shared/_dojos.html+smartphone.erb にて都道府県ごとのアコーディオン表示に対応
  • home_controller.rb にて Dojo数が 1 件のとき "1 Dojos" と表示される問題に対応
  • label: "#{count} Dojo#{'s' if count != 1}" という形で文言を整形し、単数形を表示できるように調整

変更前
スクリーンショット 2025-06-09 11 57 49

変更後
スクリーンショット 2025-06-09 14 17 17

補足

スマホ表示のレイアウトやスタイルには変更を加えていません。構造のみを置き換えています。

@nacchan99 nacchan99 requested a review from rakuda-san-desu June 9, 2025 02:14
Copy link
Contributor

@rakuda-san-desu rakuda-san-desu left a comment

Choose a reason for hiding this comment

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

細かい部分で気になった点をコメントしましたが、それ以外は動作も含めて良さそうです!

Copy link
Contributor

@rakuda-san-desu rakuda-san-desu left a comment

Choose a reason for hiding this comment

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

以下もご対応いただければ🙏

@nacchan99
Copy link
Contributor Author

@rakuda-san-desu
お疲れ様です!
修正が完了したので、お手隙の際にご確認をお願いします🙌
上記以外にも、Copilotに指摘された点を改善しています!

@nacchan99
Copy link
Contributor Author

@rakuda-san-desu
1番下の改行の追加も完了しました🙌
a177db1
お手隙の際によろしくお願いします🙌

@rakuda-san-desu
Copy link
Contributor

上記以外にも、Copilotに指摘された点を改善しています!

いろいろ含めると何をしているPRなのか分かりづらくなってしまうので、「このPRでやりたい内容」に含まれるかで考えると良さそうです👍

Zoom でお話しした、「1つのコミットに1種類の更新」も、同様の考え方です!

@nanophate nanophate temporarily deployed to coderdojo-pi-fix-issue--t0y4jw June 9, 2025 13:25 Inactive
Copy link
Member

@nanophate nanophate left a comment

Choose a reason for hiding this comment

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

PRありがとうございます。気になった部分にコメントしました 🙇 対応方法についても相談に乗りますので、気軽にメンションください 〜

@yasulab yasulab temporarily deployed to coderdojo-pi-fix-issue--t0y4jw June 10, 2025 00:07 Inactive
@yasulab yasulab temporarily deployed to coderdojo-pi-fix-issue--t0y4jw June 10, 2025 00:53 Inactive
@yasulab yasulab temporarily deployed to coderdojo-pi-fix-issue--t0y4jw June 10, 2025 01:33 Inactive
@rakuda-san-desu
Copy link
Contributor

@nanophate 動作確認や丁寧なレビューありがとうございます!助かります🙏💖

@nacchan99 対応ありがとうございます!後ほど確認します👀✨

Copy link
Member

@nanophate nanophate left a comment

Choose a reason for hiding this comment

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

Review App での動作も問題なさそうでした...!! 💯 🚀

Copy link
Contributor

@rakuda-san-desu rakuda-san-desu left a comment

Choose a reason for hiding this comment

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

ヘルパー切り出しなども対応ありがとうございます!
細かい部分で1点コメントしていますが、それ以外良さそうなので Approve しています🙆‍♀️

@nacchan99 nacchan99 merged commit 7b008d1 into main Jun 12, 2025
2 checks passed
@nacchan99 nacchan99 deleted the fix/issue-462-group-by-prefecture branch June 12, 2025 00:46
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.

スマートフォン版の Dojo 情報を地方ごとから都道府県ごとの表示に変更したい
4 participants