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

Migrated components to Typescript #1806

Merged
merged 17 commits into from
Mar 12, 2024
Merged

Migrated components to Typescript #1806

merged 17 commits into from
Mar 12, 2024

Conversation

recondesigns
Copy link
Contributor

Description of changes

Migrated the following components to Typescript, removed prop-types, and added a props type:

  • Nav
    -NavListItem
    -NavMobile
  • OutboudLink
  • Pagination
    • PaginationItem
  • PartnerLogoLink
  • Press
    • PressLinks
    • PressPhotos
    • PressVideos
  • ProgressIndicator

Migrating components included all test and storybook files for each.

Issue Resolved

Fixes #NA

Screenshots/GIFs

@recondesigns recondesigns requested a review from kylemh March 6, 2024 02:22
Copy link

vercel bot commented Mar 6, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
operation-code ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 11, 2024 11:41pm
storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 11, 2024 11:41pm

Copy link

cypress bot commented Mar 6, 2024

1 flaky test on run #4682 ↗︎

0 25 0 0 Flakiness 1

Details:

aded utils directory and utility type for PressLinks
Project: operation_code Commit: eb83f1a446
Status: Passed Duration: 03:17 💡
Started: Mar 11, 2024 11:42 PM Ended: Mar 11, 2024 11:45 PM
Flakiness  cypress/e2e/hashlink.spec.js • 1 flaky test • all tests

View Output Video

Test Artifacts
Hash Links > on Corporate Sponsorship page > will change route when clicked Screenshots Video

Review all test suite changes for PR #1806 ↗︎

components/Nav/Nav.tsx Outdated Show resolved Hide resolved
components/Press/PressLinks/PressLinks.tsx Outdated Show resolved Hide resolved
Copy link

codeclimate bot commented Mar 11, 2024

Code Climate has analyzed commit eb83f1a and detected 3 issues on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 3

The test coverage on the diff in this pull request is 63.5% (90% is the threshold).

This pull request will bring the total coverage in the repository to 81.3% (0.0% change).

View more on Code Climate.

@@ -0,0 +1,2 @@
export const objectKeys = <Type extends object>(value: Type) =>
Copy link
Member

@kylemh kylemh Mar 12, 2024

Choose a reason for hiding this comment

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

oh you could increase coverage by either ignoring this file or adding a unit test for it.

it's literally 2 lines though so it wouldn't be a big bump 😂

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do you typically ignore a file like that, or is the convention to create a test for it?

Copy link
Member

Choose a reason for hiding this comment

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

I mean it's a pretty basic function created solely for a typing DX improvement. I'm not very worried about it.

@kylemh kylemh merged commit 6933f2d into main Mar 12, 2024
17 of 18 checks passed
@kylemh kylemh deleted the migrate-nav-typescript branch March 12, 2024 02:45
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.

None yet

2 participants