Repository navigation
feat(cc-metrics): send monthly revenue and active project count to cc - #55
Merged
Merged
Conversation
… once a day A daily cron (03:10 KST) posts last year's and this year's monthly revenue (same numbers as the admin settlement: supply amount, by due month, cancelled excluded) and the current number of active quotes to the cc metrics connection. Totals only; the connection key lives in CC_METRICS_KEY. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
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.
무엇
cc(업무 관제) 「방향」 화면의 페이퍼크래프트 칸에 매출과 진행 중인 프로젝트 수가 보이도록, 하루 한 번 합계를 cc 의 지표 연결로 보낸다(2026-12-02 대표님 요청).
GET|POST /api/cron/cc-metrics— Vercel 크론 매일 03:10 KST.CRON_SECRET또는 맥 작업자 토큰으로만 열린다. cc 스위치cc-metrics로 끌 수 있다.summarizeMonth().revenue— 공급가액, 납기 달, 취소 제외. 관리자 화면과 같은 숫자), 이번 달 칸의 진행 수(/admin/quotes의 「진행 중 N건」).CC_METRICS_KEY에만 둔다.확인
node --test tests/cc-metrics.test.mjs tests/cron-switch.test.mjs통과,npx tsc --noEmit통과.npm test의 실패 2건(formatKstDateTime,fmtDateKo)은 main 과 같은 파일에서 나는 날짜 형식 차이로 이 변경과 무관하다.문서:
docs/cc-metrics.md🤖 Generated with Claude Code