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(web): linted-imports-with-new-rule #1540

Merged

Conversation

nikhilverma360
Copy link
Contributor

@nikhilverma360 nikhilverma360 commented Mar 13, 2024

linted imports with new rule


PR-Codex overview

This PR updates various imports and adds missing type definitions across multiple files.

Detailed summary

  • Updated imports in multiple files.
  • Added missing type definitions.
  • Fixed import paths for components and utilities.

The following files were skipped due to too many changes: web/src/components/Popup/MiniGuides/Appeal/StageTwo.tsx, web/src/utils/getLocalRounds.ts, web/src/pages/GetPnk/Settings/index.tsx, web/src/components/DisputeView/DisputeInfo/DisputeInfoList.tsx, web/src/components/Popup/MiniGuides/Staking/CourtHeader.tsx, web/src/components/Popup/MiniGuides/Onboarding/HowItWorks.tsx, web/src/utils/getDisputeRequestParamsFromTxn.ts, web/src/components/StatDisplay.tsx, web/src/components/Popup/MiniGuides/Staking/JurorRewards.tsx, web/src/components/Popup/MiniGuides/Onboarding/WhatDoINeed.tsx, web/src/components/Popup/MiniGuides/Staking/Notifications.tsx, web/src/components/Verdict/Answer.tsx, web/src/components/DisputeView/CardLabels/RewardsAndFundLabel.tsx, web/src/components/Popup/MiniGuides/Appeal/WhoWinsRewards.tsx, web/src/components/Popup/MiniGuides/Staking/StakingSection.tsx, web/src/components/Popup/MiniGuides/BinaryVoting/VotingModule.tsx, web/src/components/Popup/MiniGuides/RankedVoting/VotingModule.tsx, web/src/components/Popup/MiniGuides/Appeal/CrowdfundAppeal.tsx, web/src/components/Popup/MiniGuides/Appeal/PayoffSimulator.tsx, web/src/components/Verdict/VerdictBanner.tsx, web/src/components/Popup/MiniGuides/BinaryVoting/PrivateVoting.tsx, web/src/index.tsx, web/src/pages/Resolver/NavigationButtons/NextButton.tsx, web/src/components/Field.tsx, web/src/components/InfoCard.tsx, web/src/context/StyledComponentsProvider.tsx, web/src/components/PlusMinusField.tsx, web/src/components/Popup/MiniGuides/BinaryVoting/index.tsx, web/src/pages/Dashboard/Courts/CourtCard/Stake.tsx, web/src/hooks/queries/useDrawQuery.ts, web/src/pages/Dashboard/Courts/CourtCard/index.tsx, web/src/pages/Resolver/Timeline.tsx, web/src/pages/Dashboard/Courts/CourtCard/CourtName.tsx, web/src/hooks/queries/useCounter.ts, web/src/pages/Home/TopJurors/Header/MobileHeader.tsx, web/src/pages/Cases/index.tsx, web/src/layout/Header/navbar/Menu/Settings/General.tsx, web/src/hooks/queries/useAllCasesQuery.ts, web/src/hooks/queries/useCourtTree.ts, web/src/hooks/queries/useEvidences.ts, web/src/hooks/queries/useHomePageQuery.ts, web/src/pages/Dashboard/JurorInfo/Coherency.tsx, web/src/layout/Footer/index.tsx, web/src/components/WithHelpTooltip.tsx, web/src/pages/Home/CourtOverview/Header.tsx, web/src/components/Popup/ExtraInfo/VoteWithCommitExtraInfo.tsx, web/src/hooks/queries/useCourtDetails.ts, web/src/pages/GetPnk/Swap/TokenSelect.tsx, web/src/components/Popup/MiniGuides/Staking/index.tsx, web/src/pages/Dashboard/JurorInfo/TokenRewards.tsx, web/src/hooks/queries/useVotingHistory.ts, web/src/hooks/queries/useDisputeTemplateFromId.ts, web/src/hooks/queries/useClassicAppealQuery.ts, web/src/pages/Home/TopJurors/Header/Coherency.tsx, web/src/pages/Home/TopJurors/JurorCard/JurorLevel.tsx, web/src/hooks/queries/useDisputeDetailsQuery.ts, web/src/pages/Resolver/NavigationButtons/PreviousButton.tsx, web/src/pages/Cases/CaseDetails/Appeal/OptionCard.tsx, web/src/hooks/queries/useJurorStakeDetailsQuery.ts, web/src/pages/Resolver/NavigationButtons/index.tsx, web/src/hooks/queries/useLabelInfoQuery.ts, web/src/layout/Header/index.tsx, web/src/components/Popup/MiniGuides/Appeal/index.tsx, web/src/components/Popup/MiniGuides/PageContentsTemplate.tsx, web/src/hooks/queries/useCourtPolicyURI.ts, web/src/hooks/queries/useUser.ts, web/src/components/Popup/MiniGuides/RankedVoting/index.tsx, web/src/pages/GetPnk/Swap/Cards/ToCard.tsx, web/src/pages/Cases/CaseDetails/Appeal/Classic/Options/index.tsx, web/src/pages/Courts/index.tsx, web/src/pages/DisputeTemplateView/FetchFromIdInput.tsx, web/src/pages/Dashboard/JurorInfo/StakingRewards.tsx, web/src/hooks/queries/useTopUsersByCoherenceScore.ts, web/src/layout/Header/navbar/Explore.tsx, web/src/context/GraphqlBatcher.tsx, web/src/components/ConnectWallet/index.tsx, web/src/pages/Cases/CaseDetails/Voting/Classic/Vote.tsx, web/src/pages/Courts/TopSearch.tsx, web/src/hooks/queries/useEvidenceGroup.ts, web/src/pages/Courts/CourtDetails/Description.tsx, web/src/pages/Home/Community/index.tsx, web/src/pages/Dashboard/Courts/Header.tsx, web/src/pages/Home/TopJurors/JurorCard/Rewards.tsx, web/netlify/functions/update-settings.ts, web/src/components/Popup/Description/StakeWithdraw.tsx, web/src/hooks/useVotingContext.tsx, web/src/hooks/useIsCrossChainDispute.ts, web/src/hooks/useContractAddress.tsx, web/src/pages/Cases/CaseDetails/Appeal/AppealHistory.tsx, web/src/utils/calculateSubtextRender.tsx, web/src/components/Popup/Description/SwapSuccess.tsx, web/src/layout/index.tsx, web/src/pages/Dashboard/JurorInfo/Header.tsx, web/src/consts/community-elements.tsx, web/src/pages/Home/TopJurors/JurorCard/MobileCard.tsx, web/src/pages/Resolver/Briefing/Title.tsx, web/src/components/HeroImage.tsx, web/src/pages/Resolver/Parameters/Category.tsx, web/src/hooks/useHomePageContext.tsx, web/src/pages/GetPnk/Swap/Cards/SwapDetails.tsx, web/src/pages/Resolver/Briefing/Description.tsx, web/src/pages/Resolver/Parameters/VotingOptions/OptionsFields.tsx, web/src/components/ConnectWallet/AccountDisplay.tsx, web/src/pages/Resolver/Parameters/NotablePersons/index.tsx, web/src/components/CasesDisplay/Filters.tsx, web/src/components/DisputePreview/Policies.tsx, web/src/pages/Cases/CaseDetails/Appeal/Classic/Options/StageOne.tsx, web/src/pages/Cases/CaseDetails/Voting/Classic/OptionsContainer.tsx, web/src/components/Popup/Description/DisputeCreated.tsx, web/src/pages/GetPnk/Swap/ChainSelect.tsx, web/src/layout/Header/navbar/Menu/Settings/Notifications/index.tsx, web/src/pages/Dashboard/JurorInfo/PixelArt.tsx, web/src/pages/Cases/CaseDetails/Voting/Classic/index.tsx, web/src/hooks/queries/useCasesQuery.ts, web/src/pages/GetPnk/Swap/Cards/FromCard.tsx, web/src/pages/Cases/CaseDetails/Appeal/Classic/StageExplainer.tsx, web/src/components/DisputePreview/Alias.tsx, web/src/components/LatestCases.tsx, web/src/pages/Cases/CaseDetails/Appeal/index.tsx, web/src/components/EvidenceCard.tsx, web/src/pages/Cases/CaseDetails/Appeal/Classic/Options/StageTwo.tsx, web/src/pages/Home/TopJurors/Header/DesktopHeader.tsx, web/src/pages/Home/TopJurors/JurorCard/DesktopCard.tsx, web/src/components/DisputeView/DisputeListView.tsx, web/src/components/DisputeView/DisputeCardView.tsx, web/src/pages/Home/CourtOverview/Chart.tsx, web/src/pages/Home/TopJurors/index.tsx, web/src/pages/Cases/CaseDetails/Voting/VotesDetails/AccordionTitle.tsx, web/src/pages/Dashboard/JurorInfo/JurorRewards.tsx, web/src/components/DisputeView/DisputeInfo/DisputeInfoCard.tsx, web/src/pages/GetPnk/index.tsx, web/src/components/CasesDisplay/index.tsx, web/src/pages/GetPnk/Swap/index.tsx, web/src/layout/Header/navbar/Menu/index.tsx, web/src/layout/Header/navbar/Menu/Settings/index.tsx, web/src/components/Popup/MiniGuides/JurorLevels.tsx, web/src/pages/Cases/CaseDetails/Voting/Classic/Commit.tsx, web/src/pages/Resolver/Parameters/NotablePersons/PersonFields.tsx, web/src/components/Popup/MiniGuides/MainStructureTemplate.tsx, web/src/pages/Resolver/Parameters/VotingOptions/index.tsx, web/src/layout/Header/navbar/Menu/Help.tsx, web/src/pages/Dashboard/Courts/index.tsx, web/src/layout/Header/navbar/DappList.tsx, web/src/pages/DisputeTemplateView/FetchDisputeRequestInput.tsx, web/src/pages/Home/CourtOverview/TimeSeriesChart.tsx, web/src/components/Popup/MiniGuides/Onboarding/index.tsx, web/src/components/CasesDisplay/CasesGrid.tsx, web/src/pages/Home/index.tsx, web/src/context/Web3Provider.tsx, web/src/layout/Header/navbar/Menu/Settings/Notifications/FormContactDetails/index.tsx, web/src/pages/Cases/CaseDetails/Voting/VotesDetails/index.tsx, web/src/pages/Cases/CaseDetails/index.tsx, web/src/pages/Cases/CaseDetails/Appeal/Classic/index.tsx, web/src/pages/Courts/CourtDetails/StakePanel/StakeWithdrawButton.tsx, web/src/components/CasesDisplay/Search.tsx, web/src/pages/Courts/CourtDetails/StakePanel/JurorStakeDisplay.tsx, web/src/layout/Header/MobileHeader.tsx, web/src/consts/socialmedia.tsx, web/src/pages/Resolver/Parameters/Court.tsx, web/src/pages/Cases/CaseDetails/Timeline.tsx, web/src/components/DisputeView/index.tsx, web/src/pages/Cases/CaseDetails/Evidence/SubmitEvidenceModal.tsx, web/src/pages/Resolver/Policy/index.tsx, web/src/components/ClaimPnkButton.tsx, web/src/pages/Cases/CasesFetcher.tsx, web/src/pages/Resolver/Preview/index.tsx, web/src/components/DisputePreview/DisputeContext.tsx, web/src/hooks/useClassicAppealContext.tsx, web/src/pages/Dashboard/JurorInfo/index.tsx, web/src/components/DisputeView/DisputeInfo/index.tsx, web/src/pages/Courts/CourtDetails/StakePanel/index.tsx, web/wagmi.config.ts, web/src/pages/Resolver/Parameters/Jurors.tsx, web/src/pages/Dashboard/index.tsx, web/src/pages/Cases/CaseDetails/Evidence/index.tsx, web/src/pages/Cases/CaseDetails/Appeal/Classic/Fund.tsx, web/src/pages/Courts/CourtDetails/StakePanel/InputDisplay.tsx, web/src/layout/Header/navbar/index.tsx, web/src/pages/Cases/CaseDetails/Voting/Classic/Reveal.tsx, web/src/pages/Cases/CaseDetails/Overview/index.tsx, web/src/pages/Resolver/NavigationButtons/SubmitDisputeButton.tsx, web/src/pages/Cases/CaseDetails/Tabs.tsx, web/src/pages/Resolver/index.tsx, web/src/components/DisputeView/CardLabels/index.tsx, web/src/components/Verdict/DisputeTimeline.tsx, web/src/hooks/queries/usePopulatedDisputeData.ts, web/src/app.tsx, web/src/layout/Header/DesktopHeader.tsx, web/src/pages/Cases/CaseDetails/Voting/index.tsx, web/src/components/Verdict/FinalDecision.tsx, web/src/pages/Cases/CaseDetails/Voting/VotingHistory.tsx, web/src/pages/Courts/CourtDetails/index.tsx, web/src/pages/DisputeTemplateView/index.tsx, web/src/components/Popup/index.tsx, web/src/pages/Home/CourtOverview/Stats.tsx, web/src/pages/Courts/CourtDetails/Stats.tsx

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@nikhilverma360 nikhilverma360 requested a review from alcercu March 13, 2024 08:39
@nikhilverma360 nikhilverma360 self-assigned this Mar 13, 2024
Copy link

netlify bot commented Mar 13, 2024

Deploy Preview for kleros-v2 ready!

Name Link
🔨 Latest commit 8979b77
🔍 Latest deploy log https://app.netlify.com/sites/kleros-v2/deploys/65f86e8f23019e000821dca0
😎 Deploy Preview https://deploy-preview-1540--kleros-v2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Mar 13, 2024

Deploy Preview for kleros-v2-university ready!

Name Link
🔨 Latest commit 8979b77
🔍 Latest deploy log https://app.netlify.com/sites/kleros-v2-university/deploys/65f86e8f943138000815319a
😎 Deploy Preview https://deploy-preview-1540--kleros-v2-university.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Mar 18, 2024

Deploy Preview for kleros-v2-neo ready!

Name Link
🔨 Latest commit 8979b77
🔍 Latest deploy log https://app.netlify.com/sites/kleros-v2-neo/deploys/65f86e8fa83e5a0008d19a1d
😎 Deploy Preview https://deploy-preview-1540--kleros-v2-neo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

codeclimate bot commented Mar 18, 2024

Code Climate has analyzed commit 8979b77 and detected 0 issues on this pull request.

View more on Code Climate.

Copy link
Contributor

@alcercu alcercu left a comment

Choose a reason for hiding this comment

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

lgtm

@alcercu alcercu added this pull request to the merge queue Mar 18, 2024
Merged via the queue into kleros:dev with commit 88091c8 Mar 18, 2024
17 of 20 checks passed
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