Repository navigation
feat(visitor-stats): 통계를 날짜를 지정해 본다 - #98
Merged
Merged
Conversation
저장소 쿼리는 이미 시작일·종료일을 받았지만 기간이 오늘·최근 7일·최근 30일· 이번 달 프리셋뿐이라 원하는 기간을 볼 수 없었다. - periodToDates() 가 'custom:YYYY-MM-DD:YYYY-MM-DD' 를 해석한다. 형식이 틀리거나 거꾸로 된 기간은 최근 7일, 1년을 넘으면 종료일 기준 1년으로 자른다 - period-picker.js 가 통계 화면의 기간 select 에 '기간 지정'과 날짜 입력을 붙인다. 화면 스크립트와 API 는 period 문자열을 그대로 넘기므로 손대지 않는다 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Codex <codex@openai.com>
366일을 초과하면 종료일 기준으로 시작일을 보정하고 안내한다. 기간 선택 화면별 경계값·윤년·시간대 회귀 테스트와 체인지로그를 추가한다. Co-authored-by: Codex <codex@openai.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.
배경
VisitorStats 저장소 쿼리는 이미
startDate/endDate를 받습니다. 그런데 기간 선택이 오늘·최근 7일·최근 30일·이번 달 프리셋뿐이어서 원하는 기간을 볼 수 없었습니다. 사이트 운영자의 요청에서 나온 변경입니다.변경
VisitorStatsService::periodToDates()가custom:YYYY-MM-DD:YYYY-MM-DD를 해석합니다.assets/js/period-picker.js를 새로 추가하고_nav.php에서defer로 불러옵니다.#vs-period,#cs-period,#cv-period)에 기간 지정 옵션과 시작일·종료일 입력, [적용] 버튼을 붙입니다.custom:시작:종료로 바꾸고change를 발생시킵니다. 그래서 7개 화면의 스크립트와 컨트롤러는 고치지 않았습니다.확인
VisitorStatsServiceTest에 4개 테스트를 추가했습니다: 지정 기간, 하루짜리, 잘못된 값 4종, 1년 제한. 플러그인 테스트 21개 모두 통과했습니다.phpstan,php -l,node --check: 이상 없음custom:2026-09-01:2026-09-15전달, 스크립트 오류 없음🤖 Generated with Claude Code