feat: 호스트도 참여 플로우로 본인 가능시간 입력 (#72) - #73
Conversation
생성자가 "일정 등록하기"(?participate=1)로 진입하면 결과 화면 대신 참여자와 동일한 가능시간 입력 폼을 보여주도록 isHostView 우선순위 조정. 기존 참여 폼/엔드포인트 재사용, 서버·DB 변경 없음, 대시보드 결과 보기 경로 유지. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
#71에서 소요시간이 select→자유입력 필드로 바뀌며 기본값이 비어 제출이 막혀 5개 테스트가 4단계에 도달하지 못하던 문제를 해결. 헬퍼에서 "예상 소요시간"을 채운 뒤 단계 진행하도록 수정. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Review limit reached
More reviews will be available in 49 minutes and 10 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
Walkthrough참여자 링크에 ChangesforceParticipant 참여자 뷰 강제 플로우
🎯 2 (Simple) | ⏱️ ~10 minutesPossibly related issues
Possibly related PRs
Suggested labels
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/app/schedule/create/CreateScheduleClient.tsx`:
- Line 853: The href attribute in the CreateScheduleClient component uses string
concatenation to add query parameters
(href={`${links.participant}?participate=1`}), which will fail if
links.participant already contains query parameters, resulting in malformed URLs
like ?a=1?participate=1. Replace this line by constructing a URL object from
links.participant, using the searchParams.set method to safely add the
participate parameter, and then converting it back to a string for the href
attribute.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: c2054e1a-c2e3-47a6-8135-5fd612fb971f
📒 Files selected for processing (4)
src/app/schedule/[id]/ScheduleRoomClient.tsxsrc/app/schedule/[id]/page.tsxsrc/app/schedule/create/CreateScheduleClient.test.tsxsrc/app/schedule/create/CreateScheduleClient.tsx
#71에서 소요시간이 select→자유입력으로 바뀌며 getByLabel("소요 시간")
.selectOption이 타임아웃되던 문제를 "예상 소요시간" 입력으로 수정.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
links.participant에 기존 쿼리가 있어도 ?a=1?participate=1 형태로 깨지지 않도록 ? / & 구분자를 동적으로 선택. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
🚀 작업 내용 (What)
?participate=1쿼리로 "참여 의도"를 명시 →isHostView가 hostToken > participate > 생성자 순으로 판정./api/schedules/[id]/availability)를 그대로 재사용 (서버·DB 변경 없음). 호스트 제출 시 참여자 1명으로 집계됨.📣 핵심 변경 이유 (Why)
📸 스크린샷 (Visuals, 선택)
🔗 관련 이슈 (Issue)
Close #72