Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat(site): add TimeCell component #502

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

Closed

Conversation

greyscaled
Copy link
Contributor

Summary:

This is direct follow-up to #484, #500, and #501. It is a part of many
steps in porting/refactoring the AuditLog from v1.

Details:

  • Port over TimeCell from v1, with refactorings
  • A jest test was not added because we use locale dates and times, which
    can be tricky to test. This can be addressed in the future.

Impact:

This change does not have any user-facing impact yet because AuditLog is
not yet available in the product. This is part of an incremental
approach; the FE is still waiting on the BE port.

Relations:


Demo storybook

time-cell-storybook

Summary:

This is direct follow-up to #484, #500, and #501. It is a part of many
steps in porting/refactoring the AuditLog from v1.

Details:

- Port over TimeCell from v1, with refactorings
- A jest test was not added because we use locale dates and times, which
can be tricky to test. This can be addressed in the future.

Impact:

This change does not have any user-facing impact yet because AuditLog is
not yet available in the product. This is part of an incremental
approach; the FE is still waiting on the BE port.

Relations:

- This commit relates to #472, but does not finish it
- This commit should not be merged until after #484, #500 and #501,
because it builds off of them
@greyscaled greyscaled requested a review from a team as a code owner March 20, 2022 00:36
@greyscaled greyscaled self-assigned this Mar 20, 2022
}

export const displayDate = (props: TimeCellProps): string => {
return props.date.toLocaleDateString().replace(/\//g, ".")
Copy link
Contributor

Choose a reason for hiding this comment

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

Never thought about this before, but why do we use periods in dates?

@greyscaled
Copy link
Contributor Author

Closing for now because the timing of when the AuditLog will land is down the road. We can always re-open at the appropriate time!

@greyscaled greyscaled closed this Mar 23, 2022
@misskniss misskniss added this to the V2 Beta milestone May 15, 2022
@ammario ammario deleted the vapurrmaid/472-time-cell branch August 3, 2022 00:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants