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

カレンダー上で、調整可能な多段階の時間選択 #75

Draft
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

uxiun
Copy link
Contributor

@uxiun uxiun commented Dec 18, 2024

https://v0.dev/chat/EIZTywvtNiM を参考にしました。

目標とする動作

長押しで押した位置付近のn分単位(既定で5分)の候補一覧が出て、どれか選ぶと確認画面へ飛ぶ。
通常のクリックでは押した位置に応じた時刻が上記と同じ単位分で丸められて設定され、そのまま確認画面へ。
確認画面では細かい調整が可能。

動作検討

  • 既定で何分単位がいいか
  • 長押しで表示する候補はいくつか
  • 開始時刻候補を選択したあとの確認画面は必要か(私は操作の近道のつもりで、不要派)
  • 長押しと通常時の動作はひっくり返した方とどちらがいいか

やること

  • 長押しで出てくる選択候補窓の位置調整
  • 長押しによる選択が空き時間内に収まることを保証
  • ConfirmationPopupの状態(durationMinutes など)が一度閉じても引き継がれてしまうのを解消。できたら状態管理をもっとすっきりさせる。
  • コメント、refactoring
  • 自分でコードの振り返りをしました

Copy link

vercel bot commented Dec 18, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
super-koyomi ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 20, 2024 10:33am

@inucat inucat marked this pull request as draft December 18, 2024 08:10
@inucat
Copy link
Member

inucat commented Dec 18, 2024

動きました.素敵ですね 😁
時刻はEnd Timeは必ずしも要らないかと思いました(開始時刻から求められる)

長押しした時のダイアログが画面端で見切れてしまうところが難しいですね.
同様のコンセプトで #74 も実装されているので,比べて,意見交換できたらいいと思います.

@uxiun uxiun changed the title カレンダー上で、調整可能な30分単位の時間選択 カレンダー上で、調整可能な多段階の時間選択 Dec 18, 2024
@inucat
Copy link
Member

inucat commented Dec 18, 2024

6d225b9 - 変更が膨大になってしまうので,Prettierの一括適用は #71 にまとめたい気持ちがあります.

This reverts commit 6d225b9.
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