-
Notifications
You must be signed in to change notification settings - Fork 83
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
fix(view): #553 Author(other bar) 클릭시 해당 사용자들 관련 커밋내역이 나오지는 않는 문제 수정 #559
Merged
Merged
Changes from 4 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
b140824
fix: Author(other bar) 클릭시 커밋내역이 나오지는 않는 이슈(#553)
HIITMEMARIO 3335ca3
fix: Author(other bar) 클릭시 커밋내역이 나오지는 않는 이슈(#553)
HIITMEMARIO c1369be
fix: others bar 툴팁 깜빡임 y값 수치 120으로 변경
HIITMEMARIO 2279c24
fix: others bar 툴팁 깜빡임 y값 수치 120으로 변경
HIITMEMARIO 8998fea
feat(view): 배경색에 따라 File Summary 글자색 동적 변경 (#558)
lxxmnmn 4caf8da
refactor:handleClickBar 가독성 수정
HIITMEMARIO 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 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 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 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 |
---|---|---|
|
@@ -51,12 +51,16 @@ export const convertNumberFormat = (d: number | { valueOf(): number }): string = | |
return d3.format("~s")(d); | ||
}; | ||
|
||
export const sortDataByAuthor = (data: ClusterNode[], author: string): ClusterNode[] => { | ||
export const sortDataByAuthor = (data: ClusterNode[], names: string[]): ClusterNode[] => { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 commentThe reason will be displayed to describe this comment to others. Learn more. 기존에는 각각의 이름을 받았다면 수정 된 이후에는 배열을 받기때문에 names로 변경하게 되었습니다!! |
||
return data.reduce((acc: ClusterNode[], cluster: ClusterNode) => { | ||
const checkedCluster = cluster.commitNodeList.filter((commitNode: CommitNode) => | ||
commitNode.commit.author.names.includes(author) | ||
names.some((name) => commitNode.commit.author.names.includes(name)) | ||
); | ||
if (!checkedCluster.length) return acc; | ||
return [...acc, { nodeTypeName: "CLUSTER" as const, commitNodeList: checkedCluster }]; | ||
|
||
if (checkedCluster.length > 0) { | ||
acc.push({ nodeTypeName: "CLUSTER", commitNodeList: checkedCluster }); | ||
} | ||
|
||
return acc; | ||
}, []); | ||
}; |
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.
이 부분 early return 방식으로 수정하면 가독성이 더 좋아질 것 같습니다!!
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.
수정했습니다!!
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.
이런 제안 좋습니다!!