-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
feat(Codecov): add Codecov repository picker #92068
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
Conversation
❌ 1 Tests Failed:
View the top 1 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
export interface RepoSelectorProps { | ||
onChange: (data: string) => void; | ||
/** | ||
* Repository date value |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wrong comment right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙃
const currentParams = new URLSearchParams(location.search); | ||
currentParams.set('repository', newRepository); | ||
navigate(`${location.pathname}?${currentParams.toString()}`, {replace: true}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would using the const [searchParams, setSearchParams] = useSearchParams();
hook work for you here? It looks like only the search params are being changed right? I think the hook is slightly lighter weight. I used it for my radio selector switching but I'm trying to decide if one is better than the other for both cases or if they should be different.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sgtm, I'll change that in a sec!
This PR adds the RepoPicker and RepoSelector components as well as adding them to the Test page.
Notes
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. and is gonna need some rights from me in order to utilize my contributions in this here 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.