-
Notifications
You must be signed in to change notification settings - Fork 105
FEAT(vibe): 작성자별 커밋 및 코드 변경 패턴 분석 툴 작업 #966
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 9 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
672ce34
Merge remote-tracking branch 'upstream/vibe' into vibe
e7e55e3
feat: add AuthorWorkPatternArgs and Payload interfaces
69d43a6
feat: add AuthorWorkPattern 관련 영문 번역 문자열 추가
13b817e
feat: AuthorWorkPattern 분석 결과 시각화 차트 템플릿 추가
8a091f8
feat: 작업량 분석 툴 authorWorkPattern 추가
199951e
fix: add local safeApiCall helper to restore build
1ca4656
Merge remote-tracking branch 'upstream/vibe' into vibe
dacbc18
feat: MCP 서버 확장에 따른 구조 리팩토링(authorWorkPattern)
700e9fb
Merge branch 'vibe' into vibe
seocylucky 8d16f80
fix: registerAuthorWorkPatternTool 빠진 인자 추가
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,207 @@ | ||
| <!DOCTYPE html> | ||
| <html lang="ko"> | ||
| <head> | ||
| <meta charset="utf-8" /> | ||
| <title>{{TITLE}}</title> | ||
| <meta | ||
| name="viewport" | ||
| content="width=device-width, initial-scale=1.0" | ||
| /> | ||
| <style> | ||
| :root { | ||
| --card-bg: #fafafa; | ||
| --card-border: #ddd; | ||
| --muted: #666; | ||
| --thead: #f5f5f5; | ||
| } | ||
| body { | ||
| font-family: Arial, sans-serif; | ||
| margin: 20px; | ||
| } | ||
| h1 { | ||
| margin: 0 0 4px 0; | ||
| } | ||
| .sub { | ||
| color: var(--muted); | ||
| font-size: 14px; | ||
| margin-bottom: 16px; | ||
| } | ||
|
|
||
| .cards { | ||
| display: flex; | ||
| flex-wrap: wrap; | ||
| gap: 8px; | ||
| margin: 8px 0 16px; | ||
| } | ||
| .card { | ||
| border: 1px solid var(--card-border); | ||
| border-radius: 6px; | ||
| padding: 10px 14px; | ||
| background: var(--card-bg); | ||
| min-width: 140px; | ||
| } | ||
| .card h3 { | ||
| margin: 0 0 4px 0; | ||
| font-size: 13px; | ||
| color: #444; | ||
| } | ||
| .card .val { | ||
| font-size: 18px; | ||
| font-weight: 700; | ||
| } | ||
|
|
||
| .grid { | ||
| display: grid; | ||
| gap: 18px; | ||
| grid-template-columns: 1fr; | ||
| } | ||
| @media (min-width: 900px) { | ||
| .grid { | ||
| grid-template-columns: 1.2fr 0.8fr; | ||
| } | ||
| } | ||
| .panel h2 { | ||
| margin: 8px 0; | ||
| } | ||
|
|
||
| table { | ||
| border-collapse: collapse; | ||
| width: 100%; | ||
| } | ||
| th, | ||
| td { | ||
| border: 1px solid #ddd; | ||
| padding: 6px 8px; | ||
| } | ||
| th { | ||
| background: var(--thead); | ||
| } | ||
| td.val-right { | ||
| text-align: right; | ||
| } | ||
| </style> | ||
| </head> | ||
| <body> | ||
| <h1>{{TITLE}}</h1> | ||
| <div class="sub">{{NOTES}}</div> | ||
|
|
||
| <div class="cards"> | ||
| <div class="card"> | ||
| <h3>커밋 수</h3> | ||
| <div class="val">{{COMMITS}}</div> | ||
| </div> | ||
| <div class="card"> | ||
| <h3>삽입 LOC</h3> | ||
| <div class="val">{{INSERTIONS}}</div> | ||
| </div> | ||
| <div class="card"> | ||
| <h3>삭제 LOC</h3> | ||
| <div class="val">{{DELETIONS}}</div> | ||
| </div> | ||
| <div class="card"> | ||
| <h3>Churn(±)</h3> | ||
| <div class="val">{{CHURN}}</div> | ||
| </div> | ||
| <div class="card"> | ||
| <h3>브랜치</h3> | ||
| <div class="val">{{BRANCH}}</div> | ||
| </div> | ||
| </div> | ||
|
|
||
| <div class="grid"> | ||
| <div class="panel"> | ||
| <h2>Commits vs Churn</h2> | ||
| <canvas | ||
| id="barChart" | ||
| height="160" | ||
| ></canvas> | ||
| </div> | ||
| <div class="panel"> | ||
| <h2>Commit Type Mix</h2> | ||
| <canvas | ||
| id="donutChart" | ||
| height="160" | ||
| ></canvas> | ||
| </div> | ||
| </div> | ||
|
|
||
| <div style="margin-top: 22px"> | ||
| <h2>타입별 건수</h2> | ||
| <table> | ||
| <thead> | ||
| <tr> | ||
| <th style="width: 50%">Type</th> | ||
| <th class="val-right">Count</th> | ||
| </tr> | ||
| </thead> | ||
| <tbody> | ||
| {{TYPE_TABLE_ROWS}} | ||
| </tbody> | ||
| </table> | ||
| </div> | ||
|
|
||
| <script src="https://cdn.jsdelivr.net/npm/chart.js"></script> | ||
| <script> | ||
| const tooltipStyle = { | ||
| backgroundColor: "#1e293b", | ||
| borderColor: "#475569", | ||
| borderWidth: 2, | ||
| cornerRadius: 8, | ||
| padding: 12, | ||
| titleColor: "#f8fafc", | ||
| bodyColor: "#f1f5f9", | ||
| titleFont: { weight: "700" }, | ||
| bodyFont: { weight: "600" }, | ||
| }; | ||
|
|
||
| const ctxBar = document.getElementById("barChart").getContext("2d"); | ||
| new Chart(ctxBar, { | ||
| type: "bar", | ||
| data: { | ||
| labels: JSON.parse("{{BAR_LABELS_JSON}}"), | ||
| datasets: [ | ||
| { | ||
| label: "값", | ||
| data: JSON.parse("{{BAR_VALUES_JSON}}"), | ||
| backgroundColor: ["rgba(54, 162, 235, 0.85)", "rgba(255, 99, 132, 0.85)"], | ||
| borderColor: ["rgba(54, 162, 235, 1)", "rgba(255, 99, 132, 1)"], | ||
| borderWidth: 1, | ||
| }, | ||
| ], | ||
| }, | ||
| options: { | ||
| responsive: true, | ||
| plugins: { | ||
| legend: { display: false }, | ||
| title: { display: true, text: "Commits & Churn" }, | ||
| tooltip: tooltipStyle, | ||
| }, | ||
| scales: { y: { beginAtZero: true } }, | ||
| }, | ||
| }); | ||
|
|
||
| const ctxDonut = document.getElementById("donutChart").getContext("2d"); | ||
| new Chart(ctxDonut, { | ||
| type: "doughnut", | ||
| data: { | ||
| labels: JSON.parse("{{DONUT_LABELS_JSON}}"), | ||
| datasets: [ | ||
| { | ||
| data: JSON.parse("{{DONUT_VALUES_JSON}}"), | ||
| backgroundColor: JSON.parse("{{DONUT_COLORS_JSON}}"), | ||
| borderWidth: 0, | ||
| }, | ||
| ], | ||
| }, | ||
| options: { | ||
| responsive: true, | ||
| plugins: { | ||
| legend: { position: "right" }, | ||
| tooltip: tooltipStyle, | ||
| }, | ||
| cutout: "55%", | ||
| }, | ||
| }); | ||
| </script> | ||
| </body> | ||
| </html> |
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
오.. 이렇게 해도 되는건가요??
인자를 안넣었는데 어떻게 동작하는거죠..?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
엇 아니에요 제 실수입니다ㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋ
발견해주셔서 감사해요ㅎㅎㅎ