fix(demo): 트레이너 웹 데모 리포트·일정·상담함 표시 누락·새로고침 초기화 수정과 상담함 창 통일 - #2684
Merged
Merged
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Repository: CSE-Sudo/on-care/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID:
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 |
- 상담함 수락·거절을 demo_consultation_decisions 에 저장해 새로고침 뒤 대기로 돌아가거나 재수락이 겹침 오류로 막히지 않는다 - 상담 일정 연결(`상담 요청 내용`)을 demo_schedule_consultations 에도 적고 앱이 뜰 때 되살린다 - 시드 요청에 createdAt 을 붙이고 데모 fetch 가 before/before_id 커서로 이어 받는다 - 시드 요청 시각을 데모 상담 자리(slot-kim-5·slot-kim-3)에 맞춘다 Refs #2669
- 예약 슬롯: 바꾼 자리만 demo_reservation_slots 에 적고 시드 자리 위에 id 로 덮어 얹는다 - 프로그램 템플릿: 저장한 템플릿과 다음 id 를 demo_program_templates 에 - 내 프로필: 연락처·전문·경력·소개·자격·소속 헬스장을 demo_trainer_profile 에 - 저장소가 없으면(단위 테스트) 메모리에만 둔다 Refs #2669
- 시드 메시지의 첨부 표시(chat_file_<메시지 id>)를 대화를 읽을 때 풀어, 사진은 앱 번들 식단 사진, PDF 는 한 쪽짜리 문서로 바이트를 만든다 - PDF 카드는 첨부가 바이트를 들고 있으면 내려받지 않고 바로 연다 Refs #2669
상담함은 스케줄·대시보드에서 창으로 뜨는데, 알림·옛 주소로 들어오면 페이지(/schedule/consultations)로 열려 들어온 길마다 모양이 달랐다. - ConsultationsPage 의 페이지 모드·returnTo·돌아가기 링크, 경로 consultationsSegment·consultationsFromDashboard, 쓰이지 않는 consultationsDestination, 문구 consultBackTo* 를 지운다 - 상담함으로 보내는 길(알림, /consultations·/schedule/consultations)은 /schedule?inbox=1 로 스케줄에 가서 창을 열고 쿼리를 지운다 Closes #2717
- "데모는 상담함을 숨긴다"(사이드바) - "데모 템플릿은 읽기 전용"(코칭 화면) - "Pages 빌드는 USE_MOCK_API=false"(app_config) — 기본값(true)으로 빌드해 브라우저 로컬 시드를 읽는다 Refs #2669
aJISUa
force-pushed
the
fix/2669-trainer-demo-report-schedule
branch
from
September 30, 2026 19:57
0a21d6d to
8130252
Compare
aJISUa
marked this pull request as ready for review
September 30, 2026 20:01
…-report-schedule # Conflicts: # frontend/flutter_trainer/lib/core/storage/seed_data.dart # frontend/flutter_trainer/test/core/storage/seed_data_test.dart # frontend/flutter_trainer/test/features/notifications/demo_notification_repository_test.dart
트레이너 시드 플래그는 v45 로 맞추고, routine_ai_locale_test 는 main 의 메모리 DB 설정을 쓰고 쓰이지 않는 _memoryDb 도우미를 뺀다.
트레이너 시드 플래그는 v45 로 유지하고, 지난 상담 목록은 이 브랜치의 _pastConsultTime 상수가 있는 쪽을 쓴다(목록 내용은 같다).
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.
Summary
AI 생성배지를 단 요약으로 보이며, 지난 리포트 이력에 본문 첫 줄과 PDF 태그가 붙는다.상담 요청 내용이 붙고, 3주 전 PT 에 노쇼·회원 취소가 한 건씩 생기며, 회원이 보낸 사진·PDF 메시지가 대화에 보인다.Changes
✨ Features
shared/services/demo_chat_files.dart): 시드 메시지의chat_file_<메시지 id>표시를 대화를 읽을 때 풀어 사진(앱 번들 식단 사진)·PDF(한 쪽짜리 문서) 바이트를 만든다. PDF 카드는 첨부가 바이트를 들고 있으면 내려받지 않고 바로 연다features/reports/data/demo_report_summary.dart): 그 주 가장 위험한 주의사항 종류마다 미리 써 둔 머리 문장(한·영) + 규칙 요약의 근거 줄,generatedBy: llm🔧 Improvements
demo_consultation_decisions)과 상담 일정 연결(demo_schedule_consultations)을 저장하고 앱이 뜰 때 되살린다 — 새로고침 뒤 대기로 돌아가거나 재수락이 겹침 오류로 막히지 않는다createdAt, 데모fetch가 서버와 같은before/before_id커서로 이어 받는다returnTo·돌아가기 링크,consultationsSegment·consultationsFromDashboard, 쓰이지 않던consultationsDestination, 문구consultBackTo*를 지운다. 알림·옛 주소(/consultations,/schedule/consultations)는/schedule?inbox=1로 스케줄에 가서 창을 열고 쿼리를 지운다(refactor(consultations): 트레이너 웹 상담함 페이지 경로 제거와 창 통일 #2717)🎨 UI/UX
AI 생성배지, 근거가개인 목표기준PDF태그상담 요청 내용(운동 목표·문의 내용) 블록스케줄로 돌아가기없음)메시지숫자와 같은 색). 규격 전환(refactor(design): 트레이너웹 고객·메시지·상담 화면 규격 전환 #1730, 842871f) 전에도 남색이었다. 공용AppCountBadge에color인자를 더했고 기본은 빨강 그대로다📝 Docs
USE_MOCK_API=false"🐛 Fixes
ReportTargets)를 넘겨, 판정·주간 표가 공통 상수 대신 회원 목표를 쓴다(실서버*_target과 같은 출처)slot-kim-5·slot-kim-3)에 맞춘다trainer_seeded_v45(main 은 v42(feat(demo): 김민수 PT 를 매주 18:00 수업으로 픽스처·트레이너 웹·실서버 시드 통일 #2694), v43·v44 는 병렬 작업 feat(demo): 트레이너 웹 데모 루틴 배정·AI 루틴 제안·A/B 생성의 회원별 데이터 #2668·feat(demo): 트레이너 웹 데모 A/B 생성의 안전 주의·반복 운동 개인화 서버 규칙 반영 #2704·refactor(demo): 트레이너 웹 데모 시드 AI 개인운동 표에 근력 세트·횟수 칸 추가 #2705 몫)Commits
8986553d1fix(demo): 트레이너 웹 데모 리포트 회원 목표·AI 요약·지난 이력 표시 보강faa4e18bffix(demo): 트레이너 웹 데모 상담함 결정·상담 일정 연결 저장과 요청 시각 정렬124514699fix(demo): 트레이너 웹 데모 예약 슬롯·프로그램 템플릿·내 프로필 수정 영속화a76f62155feat(demo): 트레이너 웹 데모 대화의 회원 첨부(사진·PDF) 표시c7e559ca2feat(demo): 트레이너 웹 데모 시드에 상담 요청 연결·취소·노쇼·회원 첨부 추가3c4fca5f8refactor(consultations): 트레이너 웹 상담함 페이지 경로 제거와 창 통일1ec34acc4fix(messages): 트레이너 웹 메시지 목록 안읽음 배지 남색 복원813025247docs(demo): 트레이너 웹 데모 동작에 대한 낡은 주석 수정78a20b012main 병합 — feat(demo): 김민수 PT 를 매주 18:00 수업으로 픽스처·트레이너 웹·실서버 시드 통일 #2694(김민수 지난 PT 픽스처 날짜)와 시드 충돌 해결: 지난 PT 취소·노쇼 생성과 김민수 픽스처 PT 를 함께 두고 플래그는 v45 유지Notes
main(b2a6931) 위로 항목별로 다시 쌓았다(force push). 앞선 CI 수정·병합 커밋은 해당 항목에 합쳤다.USE_MOCK_API=true) 경로 변경이 대부분이다. 실서버에 닿는 변경은 상담함 창 통일(refactor(consultations): 트레이너 웹 상담함 페이지 경로 제거와 창 통일 #2717)과 메시지 배지 색뿐이다.demo_consultation_decisions,demo_schedule_consultations,demo_reservation_slots,demo_program_templates,demo_trainer_profile,chat_file_<메시지 id>. 모두 드리프트AppKeyValues에 있어 시드 플래그를 올려도 트레이너가 바꾼 값은 남는다.Screenshots (Optional)
기본 목표기준AI 생성배지,개인 목표기준 근거 줄읽음태그만읽음·PDF태그상담 요청 내용(운동 목표·문의 내용) 블록완료knee-follow-up.pdf)스케줄로 돌아가기)Test Plan
Manual Test Steps
/trainer/) 리포트 → 김민수 → 다음(② 작성):AI 생성배지와개인 목표근거.지난 리포트줄마다PDF태그.상담 요청 내용. 3주 전으로 가면 배준혁 노쇼·강서연 취소.Related Issues
Closes #2669
Closes #2717
Checklist