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: Commit info consistent across screens #6593

Merged
merged 1 commit into from
Sep 14, 2023
Merged

Conversation

ozkatz
Copy link
Collaborator

@ozkatz ozkatz commented Sep 13, 2023

Moved the commit information component to src/lib/components/ to make it reusable across screens.

Used it to make both the commit page and the "blame" button in the objects page to show the same info in a consistent manner.

"Blame" Before:

image

"Blame" After:

image

@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 Sep 13, 2023
Copy link
Contributor

@arielshaqed arielshaqed left a comment

Choose a reason for hiding this comment

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

GitHub Actions / Analyze says:

'CommitMetadata' is assigned a value but never used

@arielshaqed
Copy link
Contributor

Really cool, seems great, and I reckon it is structured better this way. But will defer to @eladlachmi And The GUI Wizards on this.

Copy link
Contributor

@nopcoder nopcoder left a comment

Choose a reason for hiding this comment

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

LGTM - small comment and the fact that some of the code is 4 space and some 2 space. Both can be handled later in a different PR.

<tr>
<td><strong>Creation Date</strong></td>
<td>
{dayjs.unix(commit.creation_date).format("MM/DD/YYYY HH:mm:ss")} ({dayjs.unix(commit.creation_date).fromNow()})
Copy link
Contributor

Choose a reason for hiding this comment

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

I know this is not knew but we should use localized date/time formats.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

we should. Feel free to open an issue :)

@nopcoder
Copy link
Contributor

Thanks @ozkatz !

@nopcoder nopcoder merged commit a2f0ed4 into master Sep 14, 2023
43 checks passed
@nopcoder nopcoder deleted the ui/unify-commit-defails branch September 14, 2023 12:47
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.

3 participants