Repository navigation
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…th events Issue #1519 turns a karte from a single rating with a note into the record of one booking through aftercare, with events per stage, an open/closed lifecycle and a reliability score averaged per cast. This spec covers the backend and the frontend data layer; the new screens follow in stage 3. Claude-Session: https://claude.ai/code/session_01DA9qTtJtm2tPquKk7hyPR5 Signed-off-by: panicboat <panicboat@gmail.com>
Every karte now counts toward the reliability score, and the cast who records it always leaves a judgement. This departs from issue #1519, which allowed an unrated karte. Claude-Session: https://claude.ai/code/session_01DA9qTtJtm2tPquKk7hyPR5 Signed-off-by: panicboat <panicboat@gmail.com>
…s one A preselected 3 would let an unconsidered score into the reliability average. Claude-Session: https://claude.ai/code/session_01DA9qTtJtm2tPquKk7hyPR5 Signed-off-by: panicboat <panicboat@gmail.com>
…o close it A karte started at the reservation stage has nothing to judge yet, so the rating may wait until the cast closes the record; every closed karte still carries one and counts toward the reliability score. Claude-Session: https://claude.ai/code/session_01DA9qTtJtm2tPquKk7hyPR5 Signed-off-by: panicboat <panicboat@gmail.com>
Claude-Session: https://claude.ai/code/session_01DA9qTtJtm2tPquKk7hyPR5 Signed-off-by: panicboat <panicboat@gmail.com>
Signed-off-by: panicboat <panicboat@gmail.com>
…est per cast Signed-off-by: panicboat <panicboat@gmail.com>
…se and reopen Signed-off-by: panicboat <panicboat@gmail.com>
… reports and access Signed-off-by: panicboat <panicboat@gmail.com>
…an access flag Signed-off-by: panicboat <panicboat@gmail.com>
…utes and hooks Signed-off-by: panicboat <panicboat@gmail.com>
…m the existing screens Signed-off-by: panicboat <panicboat@gmail.com>
… karte row on author writes and keep the old tables for a later deploy Reliability groups by the author profile so two profiles of one account cannot be linked from the rater count. Author operations lock the karte row before checking its state, event deletion authorizes the cast before looking the event up, and the destructive drop of the old tables moves to a later deploy. Claude-Session: https://claude.ai/code/session_01DA9qTtJtm2tPquKk7hyPR5 Signed-off-by: panicboat <panicboat@gmail.com>
…for auth before /karte/my and drop the paid label from the tour Claude-Session: https://claude.ai/code/session_01DA9qTtJtm2tPquKk7hyPR5 Signed-off-by: panicboat <panicboat@gmail.com>
…g the old karte tables Claude-Session: https://claude.ai/code/session_01DA9qTtJtm2tPquKk7hyPR5 Signed-off-by: panicboat <panicboat@gmail.com>
panicboat
force-pushed
the
feat/dystopia-karte-lifecycle
branch
from
October 16, 2026 09:04
0c4347c to
c642d26
Compare
Contributor
Kustomize DiffService: No changes |
Contributor
Kustomize DiffService: No changes |
panicboat
marked this pull request as ready for review
October 17, 2026 01:44
This was referenced Oct 15, 2026
This was referenced Oct 17, 2026
Closed
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.
Why
#1519 は、カルテを「星 + メモ」から「1 回の予約〜接客後 = 1 カルテ」に作り替え、段階ごとの出来事、記録中と完了の状態、キャスト単位の平均評価を持たせることを求めています。
4 段の stack の第 2 段です(第 1 段は #1521)。この段は proto・DB・use case・集計を作り替え、frontend の BFF・型・hook を合わせます。既存のカルテ画面は新しい形で動く最小限の改修にとどめ、新しい画面は第 3 段で作ります。
Decisions
ReportEntryと警告表示)を削除する(feat: カルテの体験を向上する #1519 で MVP 対象外)karte.access)とGetMyAccessを削除し、キャストかどうかで判定する(常に許可を返しており、使われていなかったため)Deploy impact
この PR の deploy では、新しい表(
karte.kartes・karte.events)を作り、アプリから旧カルテの 3 表(karte.entries・karte.reports・karte.access)への参照を外します。旧表の削除は後の段の deploy で行います(dystopia/lambda/README.mdの、破壊的なスキーマ変更は 2 回のデプロイに分ける規則に従う)。旧表を削除した時点で、本番の既存カルテとその行はすべて消えます。この PR の deploy 後は、既存カルテは画面に出なくなります。Verification
HANAMI_ENV=test bundle exec rspec→ 760 examples, 0 failurespnpm exec vitest run→ 156 files / 681 tests passed、pnpm exec tsc --noEmitエラーなし(pnpm exec next buildはレビュー修正前の 2366754 で成功)bin/grpc+next dev、puppeteer): レビュー修正前の 2366754 で 16/16 通過。集計単位の変更は rspec で確認(別アカウントのキャスト同士の下記の値は変わらない)/karte/myは「カルテはキャストだけが使えます」Review fixes
最終レビューの指摘を受けて、次を直しました。
/karte/myはログイン状態の読み込みを待ち、ゲストのときは取得しないDocs
docs/superpowers/specs/2026-10-16-dystopia-karte-lifecycle-design.mddocs/superpowers/plans/2026-10-16-dystopia-karte-lifecycle.mdRefs #1519
🤖 Generated with Claude Code
https://claude.ai/code/session_01DA9qTtJtm2tPquKk7hyPR5