feat(frontend,mobile,ai): PR #30/#31 새 API/헤더 클라이언트 일괄 연결 - #32
Merged
Hidden character warning
The head ref may contain hidden characters: "feature/\uc870\uc218\uadfc-frontend-mobile-ai-wiring"
Conversation
PR #30(station/카메라검증/정렬) + PR #31(X-Total-Count, stats 3종) 이 이미 prod 에 떠 있지만 클라이언트가 활용하지 않아 효과 0 이던 부분을 일괄 연결. frontend - types/index.ts: EventTypeStat/HourlyStat/DailyStat/EventsPagedResult 추가 - api/events.ts: getEvents 에 station 추가, getEventsPaged 신규 (X-Total-Count 헤더 파싱), getEventStatsByType/Hourly/Daily 신규 - hooks/useEventsPage.ts: station 백엔드 전달(클라 후필터 제거), getEventsPaged 사용해 total/totalPages 노출 - components/events/EventsPagination.tsx: totalPages/total props 추가, 'page / total 페이지 (총 N건)' 표시 - pages/EventsPage.tsx: total/totalPages 를 EventsPagination 에 전달 - pages/StatsPage.tsx: 차트 3종(daily/hourly/type) 을 서버 집계로 교체. 오탐 사유/평균 처리시간만 events 1000건 유지 - docs/CLAUDE.md: stale 진단(클라 station 필터, read-all, '백엔드 대기 중') 정리 ai - inference.py: POST /api/events/ payload 에 event_type 추가 (분류기 학습 전이라 line crossing 트리거 → 'unpaid' placeholder) mobile - services/eventService.ts: EventsQuery 타입화(station/search 포함), getEventsPaged + stats 3종 함수 추가 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.
백엔드 PR #30(station/카메라검증/정렬), #31(X-Total-Count, stats 3종) 이 이미 prod 에 떴지만 클라이언트가 활용 안 해 효과 0 이던 부분 일괄 연결.
frontend (이지현 영역 손댐)
types/index.ts:EventTypeStat/HourlyStat/DailyStat/EventsPagedResult추가api/events.ts:getEvents에station파라미터 추가getEventsPaged신규 — X-Total-Count 헤더 파싱해{items,total}반환getEventStatsByType,getEventStatsHourly,getEventStatsDaily신규hooks/useEventsPage.ts: station 백엔드로 전송(클라 후필터 제거),getEventsPaged로total/totalPages노출components/events/EventsPagination.tsx:totalPages/totalprops → 'page / total 페이지 (총 N건)' 표시pages/EventsPage.tsx: total/totalPages 전달pages/StatsPage.tsx: daily/hourly/type 차트 → 서버 집계. 오탐사유·평균만 events 1000건 유지docs/CLAUDE.md: stale 진단 정리 (클라 station 필터, read-all, '백엔드 대기 중' 섹션)ai
inference.py: POST payload 에event_type추가. 분류기 학습 전이라 line crossing →'unpaid'placeholder. 학습 후 분류 결과로 교체.mobile (김유진 영역 손댐)
services/eventService.ts:EventsQuery타입화 (station/search 포함),getEventsPaged+ stats 3종 함수 추가검증
tsc --noEmit통과변경사항