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

fix: Remove "to" prop if component is <a> #3654

Merged
merged 1 commit into from
Jan 13, 2025
Merged

Conversation

ajay-sentry
Copy link
Contributor

@ajay-sentry ajay-sentry commented Jan 13, 2025

Description

Fixing a console issue @nicholas-codecov found while developing locally. A tags don't allow you to have a "to" prop on them

This PR removes / clears out the to prop if it exists and the component is an tag.

Screenshots

Screenshot 2025-01-13 at 10 33 28 AM Screenshot 2025-01-13 at 10 42 06 AM

Link to Sample Entry

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. In 2022 this entity acquired Codecov and as result Sentry is going to need some rights from me in order to utilize my contributions in this PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

@@ -33,9 +33,7 @@ function useCompleteProps(

const propsLink = pageConfig?.isExternalLink
? { href: path }
: Component === 'a'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is just the same thing as isExternalLink being defined

Copy link
Contributor Author

Choose a reason for hiding this comment

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

At least from testing this looked to be the case

@codecov-staging
Copy link

codecov-staging bot commented Jan 13, 2025

Bundle Report

Changes will increase total bundle size by 22 bytes (0.0%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
gazebo-staging-system 6.04MB 15 bytes (0.0%) ⬆️
gazebo-staging-esm 6.09MB 7 bytes (0.0%) ⬆️

Copy link

codecov bot commented Jan 13, 2025

Bundle Report

Changes will increase total bundle size by 22 bytes (0.0%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
gazebo-production-system 6.04MB 15 bytes (0.0%) ⬆️
gazebo-production-esm 6.09MB 7 bytes (0.0%) ⬆️

Copy link

codecov bot commented Jan 13, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.93%. Comparing base (248756d) to head (fee30dd).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3654   +/-   ##
=======================================
  Coverage   98.93%   98.93%           
=======================================
  Files         814      814           
  Lines       14612    14611    -1     
  Branches     4151     4143    -8     
=======================================
  Hits        14456    14456           
+ Misses        149      148    -1     
  Partials        7        7           
Files with missing lines Coverage Δ
src/shared/AppLink/AppLink.tsx 100.00% <100.00%> (+3.03%) ⬆️
Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 99.71% <ø> (ø)
Pages 98.64% <ø> (ø)
Services 99.34% <ø> (ø)
Shared 99.37% <100.00%> (+0.06%) ⬆️
UI 99.14% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 248756d...fee30dd. Read the comment docs.

@codecov-notifications
Copy link

codecov-notifications bot commented Jan 13, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

@@           Coverage Diff           @@
##             main    #3654   +/-   ##
=======================================
  Coverage   98.93%   98.93%           
=======================================
  Files         814      814           
  Lines       14612    14611    -1     
  Branches     4144     4150    +6     
=======================================
  Hits        14456    14456           
+ Misses        149      148    -1     
  Partials        7        7           
Files with missing lines Coverage Δ
src/shared/AppLink/AppLink.tsx 100.00% <100.00%> (+3.03%) ⬆️
Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 99.71% <ø> (ø)
Pages 98.64% <ø> (ø)
Services 99.34% <ø> (ø)
Shared 99.37% <100.00%> (+0.06%) ⬆️
UI 99.14% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 248756d...fee30dd. Read the comment docs.

@codecov-qa
Copy link

codecov-qa bot commented Jan 13, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.93%. Comparing base (248756d) to head (fee30dd).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

@@           Coverage Diff           @@
##             main    #3654   +/-   ##
=======================================
  Coverage   98.93%   98.93%           
=======================================
  Files         814      814           
  Lines       14612    14611    -1     
  Branches     4151     4143    -8     
=======================================
  Hits        14456    14456           
+ Misses        149      148    -1     
  Partials        7        7           
Files with missing lines Coverage Δ
src/shared/AppLink/AppLink.tsx 100.00% <100.00%> (+3.03%) ⬆️
Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 99.71% <ø> (ø)
Pages 98.64% <ø> (ø)
Services 99.34% <ø> (ø)
Shared 99.37% <100.00%> (+0.06%) ⬆️
UI 99.14% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 248756d...fee30dd. Read the comment docs.

@codecov-releaser
Copy link
Contributor

✅ Deploy preview for gazebo ready!

Previews expire after 1 month automatically.

Storybook

Commit Created Cloud Enterprise
fee30dd Mon, 13 Jan 2025 18:47:20 GMT Cloud Enterprise

@ajay-sentry ajay-sentry added this pull request to the merge queue Jan 13, 2025
Merged via the queue into main with commit 8c7e9aa Jan 13, 2025
62 checks passed
@ajay-sentry ajay-sentry deleted the Ajay/fix-a-tag-having-to branch January 13, 2025 18:59
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