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

[typescript-migration] time.jsx #4726

Merged
merged 1 commit into from
Apr 25, 2024

Conversation

yuki0410-dev
Copy link
Contributor

name: Migrate time.jsx

Description

Linked issue: #4700

Changes time.jsx was migrated to ts

Contribution checklist

  • I have followed the contributing guidelines.
  • I have added sufficient test coverage for my changes.
  • I have formatted my code with Prettier and checked for linting issues with ESLint for code readability.

Copy link

@pullrequest pullrequest bot left a comment

Choose a reason for hiding this comment

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

✅ This pull request was sent to the PullRequest network for review. Expert reviewers are now being matched to your request based on the code's requirements. Stay tuned!

What to expect from this code review:
  • Comments posted to any areas of potential concern or improvement.
  • Detailed feedback or actions needed to resolve issues that are found.
  • Turnaround times vary, but we aim to be swift.

@yuki0410-dev you can click here to see the review status or cancel the code review job.

Copy link

@pullrequest pullrequest bot left a comment

Choose a reason for hiding this comment

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

PullRequest Breakdown

Reviewable lines of change

+ 81
- 63

99% TSX
1% JavaScript (tests)

Type of change

Feature - These changes are adding a new feature or improvement to existing code.

Copy link

codecov bot commented Apr 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.28%. Comparing base (dba4a60) to head (f6b886d).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4726      +/-   ##
==========================================
+ Coverage   96.85%   97.28%   +0.43%     
==========================================
  Files          13       12       -1     
  Lines        1589     1476     -113     
  Branches      706      652      -54     
==========================================
- Hits         1539     1436     -103     
+ Misses         50       40      -10     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

@pullrequest pullrequest bot left a comment

Choose a reason for hiding this comment

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

Overall the code change looks good and matches the description regarding migration to TS. I just provided some minor comments.

Image of Xiaoyong W Xiaoyong W


Reviewed with ❤️ by PullRequest

src/time.tsx Outdated Show resolved Hide resolved
src/time.tsx Outdated Show resolved Hide resolved
@yuki0410-dev yuki0410-dev force-pushed the feat/4700_time branch 2 times, most recently from b68d4a4 to c349829 Compare April 24, 2024 22:18
Copy link

@pullrequest pullrequest bot left a comment

Choose a reason for hiding this comment

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

PullRequest reviewed the updates made to #4726 up until the latest commit (c349829). No further issues were found.

Reviewed by:

Image of Xiaoyong W Xiaoyong W

Copy link

@pullrequest pullrequest bot left a comment

Choose a reason for hiding this comment

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

Only one nit regarding a return type not being specified. Other than that, I see no issues.

Image of Jacob Jacob


Reviewed with ❤️ by PullRequest

src/time.tsx Outdated
private list?: HTMLUListElement;

private centerLi?: HTMLLIElement;

componentDidMount() {
Copy link

Choose a reason for hiding this comment

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

ISSUE: @typescript-eslint/explicit-module-boundary-types (Severity: Medium)
Missing return type on function.

Remediation:
There is no return type specified for this function.

🤖 powered by PullRequest Automation 👋 verified by Jacob

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Corrected.

@mirus-ua
However, this should be detected by ESLint in CI, so the lint rule may need to be modified.

src/time.tsx Outdated Show resolved Hide resolved
@yuki0410-dev yuki0410-dev force-pushed the feat/4700_time branch 2 times, most recently from 1cbdc0d to 1b29b33 Compare April 25, 2024 01:43
Copy link

@pullrequest pullrequest bot left a comment

Choose a reason for hiding this comment

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

PullRequest reviewed the updates made to #4726 up until the latest commit (1b29b33). No further issues were found.

Reviewed by:

Image of Jacob Jacob

Copy link

@pullrequest pullrequest bot left a comment

Choose a reason for hiding this comment

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

PullRequest reviewed the updates made to #4726 up until the latest commit (f6b886d). No further issues were found.

Reviewed by:

Image of Xiaoyong W Xiaoyong W

@martijnrusschen martijnrusschen merged commit 4e227f5 into Hacker0x01:main Apr 25, 2024
6 checks passed
@yuki0410-dev yuki0410-dev deleted the feat/4700_time branch April 25, 2024 06:51
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.

2 participants