Repository navigation
Conversation
getNaiveUtcNow の逆で、日本時間の時計の数字を UTC として持つ記録の日時を、 アプリの外(カレンダーアプリなど)へ瞬間として渡すときに使う。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GXATviknZpoyf5M25RtU9Q
ユーザーが所属するすべての家の、メモリーへ移していないねこについて、次の予定を カレンダーの予定にする。 - 掃除:実施したことのある有効な掃除対象の次回の予定日(終日) - 通院:今日以降の次回の受診予定(時刻あり・終わりなし。同じねこの同じ日時は 1 つ) - 服薬:服用中で終了予定日のある服薬予定の期間(終日) - 誕生日:生年月日を日まで登録したねこ(毎年。2/29 生まれは平年は 2/28) カレンダーアプリへ渡す情報は、ねこの名前と予定の名前にとどめる。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GXATviknZpoyf5M25RtU9Q
/calendar/<トークン>.ics で、トークンのユーザーの予定を iCalendar で返す。 ログインのセッションではなく URL のトークンで認証するため、公開パスに加える。 トークンの形が違う・見つからないときは同じ 404 にし、URL のユーザーごとに レート制限をかける(Google カレンダーなどは多くの人の URL を同じ IP アドレスから 読むため、IP アドレスでは数えない)。読んだ日時は応答の後に記録する。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GXATviknZpoyf5M25RtU9Q
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
VRT (reg-suit) 結果
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#452(iCalendar に対応する)の積み上げ PR の 3 本目です。購読 URL(
/calendar/<トークン>.ics)で、ユーザーのねこの予定を iCalendar で返します。#753 の上に積んでいます。URL を発行する画面は 4 本目で追加するため、この PR だけでは誰も URL を持たず、利用者から見える変化はありません(どの URL も 404 になります)。
積み上げの順番
Closes #452)変更点
載せる予定(
src/features/calendar-feeds/domain/feedEvents.ts)ユーザーが読んだときに所属しているすべての家の、メモリーへ移していないねこについて、次の予定を載せます。
naiveUtcToInstantを追加)accessibleCatIdsQuery)で絞り込み、D1 のバインドの上限に当たらないようにしていますRoute Handler(
src/app/calendar/[file]/route.ts)<トークン>.ics(拡張子なしも可)のトークンをハッシュにして探し、ユーザーの予定をtext/calendar; charset=utf-8で返すCache-Control: private, no-store・X-Robots-Tag: noindexを付けるTOKEN_AUTH_PATHS)に/calendarを加え、middleware でログインを求めないcalendar-feedスコープ、EXTERNAL_ACCESS_RATE_LIMITER)は URL のユーザーごとに数える。Google カレンダーなどは多くの人の URL を同じ IP アドレスから読むため、IP アドレスでは数えないafter()で応答の後に行う確認したこと
pnpm lint(既存の警告 18 件のみ)・型チェック・pnpm testが通ることlast_accessed_atが記録されること判断してほしい点
invocation_logs = true)に、トークンを含む URL が残ります。 ログを見られるのは Cloudflare のアカウントを持つ人(D1 も見られる人)だけですが、気になる場合は別途対応を考えます🤖 Generated with Claude Code
https://claude.ai/code/session_01GXATviknZpoyf5M25RtU9Q