Skip to content
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

UI: added a blame button to path context menu #4888

Merged
merged 2 commits into from
Dec 28, 2022
Merged

Conversation

ozkatz
Copy link
Collaborator

@ozkatz ozkatz commented Dec 28, 2022

No description provided.

@ozkatz ozkatz added area/UI Improvements or additions to UI include-changelog PR description should be included in next release changelog minor-change Used for PRs that don't require issue attached labels Dec 28, 2022
@ozkatz ozkatz requested a review from eladlachmi December 28, 2022 12:50
Copy link
Contributor

@eladlachmi eladlachmi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One small improvement suggestion. Not a blocker. A side from that, looks great.

@@ -154,6 +171,125 @@ const StatModal = ({ show, onHide, entry }) => {
};


const CommitMetadata = ({ metadata }) => {
const keys = Object.getOwnPropertyNames(metadata);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of this, you can cover the keys retrieval, length check, and map with Object.entries. It already filters out only own properties. Ref.

You can use it with for..of (like in the ref) or just map over the array of arrays.

@ozkatz ozkatz requested a review from eladlachmi December 28, 2022 14:45
@ozkatz
Copy link
Collaborator Author

ozkatz commented Dec 28, 2022

Thanks @eladlachmi - I've implemented your suggestions!

@ozkatz ozkatz merged commit 47c6f8c into master Dec 28, 2022
@ozkatz ozkatz deleted the feature/ui-blame-path branch December 28, 2022 15:15
Copy link
Contributor

@eladlachmi eladlachmi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/UI Improvements or additions to UI include-changelog PR description should be included in next release changelog minor-change Used for PRs that don't require issue attached
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants