{"results":{"result":{"added-files":{"code-health":9.772918779583492,"old-code-health":0.0,"files":[{"file":"apps/web/src/features/multichain/components/OutdatedMastercopyWarning/OutdatedMastercopyWarning.tsx","loc":36,"code-health":10.0},{"file":"apps/web/src/components/common/SignerSelector/index.tsx","loc":46,"code-health":10.0},{"file":"apps/web/src/features/proposers/hooks/useDelegatorSelection.ts","loc":83,"code-health":10.0},{"file":"apps/web/src/hooks/use-mobile.ts","loc":15,"code-health":10.0},{"file":"apps/web/src/utils/cn.ts","loc":5,"code-health":10.0},{"file":"apps/web/src/components/ui/accordion.tsx","loc":54,"code-health":10.0},{"file":"apps/web/src/components/ui/alert-dialog.tsx","loc":145,"code-health":10.0},{"file":"apps/web/src/components/ui/alert.tsx","loc":49,"code-health":10.0},{"file":"apps/web/src/components/ui/aspect-ratio.tsx","loc":16,"code-health":10.0},{"file":"apps/web/src/components/ui/avatar.tsx","loc":84,"code-health":10.0},{"file":"apps/web/src/components/ui/badge.tsx","loc":45,"code-health":10.0},{"file":"apps/web/src/components/ui/breadcrumb.tsx","loc":86,"code-health":10.0},{"file":"apps/web/src/components/ui/button.tsx","loc":47,"code-health":10.0},{"file":"apps/web/src/components/ui/card.tsx","loc":64,"code-health":10.0},{"file":"apps/web/src/components/ui/checkbox.tsx","loc":24,"code-health":10.0},{"file":"apps/web/src/components/ui/collapsible.tsx","loc":11,"code-health":10.0},{"file":"apps/web/src/components/ui/combobox.tsx","loc":242,"code-health":10.0},{"file":"apps/web/src/components/ui/context-menu.tsx","loc":203,"code-health":9.387218218812514},{"file":"apps/web/src/components/ui/drawer.tsx","loc":92,"code-health":10.0},{"file":"apps/web/src/components/ui/dropdown-menu.tsx","loc":222,"code-health":9.387218218812514},{"file":"apps/web/src/components/ui/empty.tsx","loc":72,"code-health":10.0},{"file":"apps/web/src/components/ui/field.tsx","loc":198,"code-health":10.0},{"file":"apps/web/src/components/ui/hover-card.tsx","loc":42,"code-health":10.0},{"file":"apps/web/src/components/ui/input-group.tsx","loc":126,"code-health":10.0},{"file":"apps/web/src/components/ui/input-otp.tsx","loc":74,"code-health":10.0},{"file":"apps/web/src/components/ui/input.tsx","loc":17,"code-health":10.0},{"file":"apps/web/src/components/ui/kbd.tsx","loc":18,"code-health":10.0},{"file":"apps/web/src/components/ui/label.tsx","loc":15,"code-health":10.0},{"file":"apps/web/src/components/ui/native-select.tsx","loc":34,"code-health":10.0},{"file":"apps/web/src/components/ui/navigation-menu.tsx","loc":133,"code-health":10.0},{"file":"apps/web/src/components/ui/pagination.tsx","loc":79,"code-health":10.0},{"file":"apps/web/src/components/ui/popover.tsx","loc":58,"code-health":10.0},{"file":"apps/web/src/components/ui/progress.tsx","loc":50,"code-health":10.0},{"file":"apps/web/src/components/ui/radio-group.tsx","loc":28,"code-health":10.0},{"file":"apps/web/src/components/ui/resizable.tsx","loc":44,"code-health":10.0},{"file":"apps/web/src/components/ui/scroll-area.tsx","loc":35,"code-health":10.0},{"file":"apps/web/src/components/ui/select.tsx","loc":155,"code-health":9.387218218812514},{"file":"apps/web/src/components/ui/separator.tsx","loc":17,"code-health":10.0},{"file":"apps/web/src/components/ui/sheet.tsx","loc":88,"code-health":10.0},{"file":"apps/web/src/components/ui/sidebar.tsx","loc":622,"code-health":8.031638343271364},{"file":"apps/web/src/components/ui/skeleton.tsx","loc":6,"code-health":10.0},{"file":"apps/web/src/components/ui/slider.tsx","loc":41,"code-health":10.0},{"file":"apps/web/src/components/ui/sonner.tsx","loc":35,"code-health":10.0},{"file":"apps/web/src/components/ui/spinner.tsx","loc":7,"code-health":10.0},{"file":"apps/web/src/components/ui/switch.tsx","loc":27,"code-health":10.0},{"file":"apps/web/src/components/ui/table.tsx","loc":61,"code-health":9.387218218812514},{"file":"apps/web/src/components/ui/tabs.tsx","loc":62,"code-health":10.0},{"file":"apps/web/src/components/ui/textarea.tsx","loc":15,"code-health":10.0},{"file":"apps/web/src/components/ui/toggle.tsx","loc":33,"code-health":10.0},{"file":"apps/web/src/components/ui/tooltip.tsx","loc":52,"code-health":10.0},{"file":"apps/web/src/components/ui/stories/accordion.stories.tsx","loc":80,"code-health":10.0},{"file":"apps/web/src/components/ui/stories/alert-dialog.stories.tsx","loc":96,"code-health":10.0},{"file":"apps/web/src/components/ui/stories/alert.stories.tsx","loc":96,"code-health":10.0},{"file":"apps/web/src/components/ui/stories/aspect-ratio.stories.tsx","loc":144,"code-health":9.303068667185956},{"file":"apps/web/src/components/ui/stories/avatar.stories.tsx","loc":161,"code-health":10.0},{"file":"apps/web/src/components/ui/stories/badge.stories.tsx","loc":57,"code-health":10.0},{"file":"apps/web/src/components/ui/stories/breadcrumb.stories.tsx","loc":104,"code-health":10.0},{"file":"apps/web/src/components/ui/stories/button.stories.tsx","loc":115,"code-health":10.0},{"file":"apps/web/src/components/ui/stories/card.stories.tsx","loc":191,"code-health":10.0},{"file":"apps/web/src/components/ui/stories/checkbox.stories.tsx","loc":74,"code-health":10.0},{"file":"apps/web/src/components/ui/stories/collapsible.stories.tsx","loc":108,"code-health":10.0},{"file":"apps/web/src/components/ui/stories/combobox.stories.tsx","loc":93,"code-health":10.0},{"file":"apps/web/src/components/ui/stories/context-menu.stories.tsx","loc":123,"code-health":10.0},{"file":"apps/web/src/components/ui/stories/drawer.stories.tsx","loc":94,"code-health":10.0},{"file":"apps/web/src/components/ui/stories/dropdown-menu.stories.tsx","loc":128,"code-health":10.0},{"file":"apps/web/src/components/ui/stories/empty.stories.tsx","loc":96,"code-health":10.0},{"file":"apps/web/src/components/ui/stories/field.stories.tsx","loc":113,"code-health":10.0},{"file":"apps/web/src/components/ui/stories/hover-card.stories.tsx","loc":91,"code-health":10.0},{"file":"apps/web/src/components/ui/stories/input-group.stories.tsx","loc":115,"code-health":10.0},{"file":"apps/web/src/components/ui/stories/input-otp.stories.tsx","loc":145,"code-health":9.303068667185956},{"file":"apps/web/src/components/ui/stories/input.stories.tsx","loc":81,"code-health":10.0},{"file":"apps/web/src/components/ui/stories/kbd.stories.tsx","loc":86,"code-health":10.0},{"file":"apps/web/src/components/ui/stories/label.stories.tsx","loc":65,"code-health":10.0},{"file":"apps/web/src/components/ui/stories/native-select.stories.tsx","loc":96,"code-health":10.0},{"file":"apps/web/src/components/ui/stories/navigation-menu.stories.tsx","loc":104,"code-health":10.0},{"file":"apps/web/src/components/ui/stories/pagination.stories.tsx","loc":128,"code-health":10.0},{"file":"apps/web/src/components/ui/stories/popover.stories.tsx","loc":90,"code-health":10.0},{"file":"apps/web/src/components/ui/stories/progress.stories.tsx","loc":98,"code-health":10.0},{"file":"apps/web/src/components/ui/stories/radio-group.stories.tsx","loc":99,"code-health":10.0},{"file":"apps/web/src/components/ui/stories/resizable.stories.tsx","loc":57,"code-health":10.0},{"file":"apps/web/src/components/ui/stories/scroll-area.stories.tsx","loc":44,"code-health":10.0},{"file":"apps/web/src/components/ui/stories/select.stories.tsx","loc":121,"code-health":10.0},{"file":"apps/web/src/components/ui/stories/separator.stories.tsx","loc":46,"code-health":10.0},{"file":"apps/web/src/components/ui/stories/sheet.stories.tsx","loc":93,"code-health":10.0},{"file":"apps/web/src/components/ui/stories/sidebar.stories.tsx","loc":257,"code-health":10.0},{"file":"apps/web/src/components/ui/stories/skeleton.stories.tsx","loc":92,"code-health":10.0},{"file":"apps/web/src/components/ui/stories/slider.stories.tsx","loc":68,"code-health":10.0},{"file":"apps/web/src/components/ui/stories/sonner.stories.tsx","loc":103,"code-health":10.0},{"file":"apps/web/src/components/ui/stories/spinner.stories.tsx","loc":69,"code-health":10.0},{"file":"apps/web/src/components/ui/stories/switch.stories.tsx","loc":71,"code-health":10.0},{"file":"apps/web/src/components/ui/stories/table.stories.tsx","loc":133,"code-health":9.329457854816289},{"file":"apps/web/src/components/ui/stories/tabs.stories.tsx","loc":88,"code-health":10.0},{"file":"apps/web/src/components/ui/stories/textarea.stories.tsx","loc":65,"code-health":10.0},{"file":"apps/web/src/components/ui/stories/toggle.stories.tsx","loc":79,"code-health":10.0},{"file":"apps/web/src/components/ui/stories/tooltip.stories.tsx","loc":81,"code-health":10.0},{"file":"apps/web/src/components/ui/ShadcnProvider.tsx","loc":50,"code-health":10.0}]},"external-review-url":"https://github.com/safe-global/safe-wallet-monorepo/pull/7170","old-code-health":9.664992605818487,"modified-files":{"code-health":9.683341967591407,"old-code-health":9.664992605818487,"files":[{"file":"apps/web/src/components/safe-apps/AppFrame/useAppCommunicator.ts","loc":199,"old-loc":197,"code-health":10.0,"old-code-health":9.079545336737002},{"file":"apps/web/src/components/safe-apps/AppFrame/useThirdPartyCookies.ts","loc":56,"old-loc":54,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/features/swap/index.tsx","loc":292,"old-loc":291,"code-health":9.636288422716657,"old-code-health":9.636288422716657},{"file":"apps/web/src/services/safe-apps/AppCommunicator.ts","loc":68,"old-loc":68,"code-health":9.6882083290695,"old-code-health":9.6882083290695},{"file":"apps/mobile/src/store/middleware/pendingTxs.ts","loc":180,"old-loc":162,"code-health":9.096655465156704,"old-code-health":9.096655465156704},{"file":"apps/web/src/features/counterfactual/services/safeDeployment.ts","loc":236,"old-loc":228,"code-health":8.283981080161325,"old-code-health":8.283981080161325},{"file":"apps/web/src/services/tx/txMonitor.ts","loc":183,"old-loc":229,"code-health":9.205864227425277,"old-code-health":9.159127824487724},{"file":"packages/utils/src/services/RelayTxWatcher.ts","loc":112,"old-loc":117,"code-health":9.663736664415227,"old-code-health":9.608927141875917},{"file":"apps/web/cypress.config.js","loc":80,"old-loc":52,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/cypress/support/e2e.js","loc":69,"old-loc":70,"code-health":10.0,"old-code-health":10.0},{"file":"apps/mobile/src/features/Assets/components/Positions/ProtocolDetailSheet/ProtocolDetailSheet.container.tsx","loc":59,"old-loc":58,"code-health":10.0,"old-code-health":10.0},{"file":"apps/mobile/src/features/Assets/components/Positions/ProtocolDetailSheet/ProtocolDetailSheetHeader.tsx","loc":90,"old-loc":75,"code-health":10.0,"old-code-health":10.0},{"file":"apps/mobile/src/features/Assets/components/Positions/ProtocolSection/ProtocolSection.tsx","loc":100,"old-loc":86,"code-health":10.0,"old-code-health":10.0},{"file":"apps/mobile/src/app/(tabs)/_layout.tsx","loc":100,"old-loc":100,"code-health":10.0,"old-code-health":10.0},{"file":"apps/mobile/src/app/import-signers/ledger-error.tsx","loc":27,"old-loc":27,"code-health":10.0,"old-code-health":10.0},{"file":"apps/mobile/src/app/import-signers/private-key-error.tsx","loc":27,"old-loc":27,"code-health":10.0,"old-code-health":10.0},{"file":"apps/mobile/src/components/LinearGradient/LinearGradien.tsx","loc":18,"old-loc":18,"code-health":10.0,"old-code-health":10.0},{"file":"apps/mobile/src/components/SafeAccountInput/hooks/useImportSafe.ts","loc":83,"old-loc":83,"code-health":9.473415538276296,"old-code-health":9.473415538276296},{"file":"apps/mobile/src/components/SafeFontIcon/SafeFontIcon.tsx","loc":27,"old-loc":27,"code-health":10.0,"old-code-health":10.0},{"file":"apps/mobile/src/components/SafeSearchBar/SafeSearchBar.tsx","loc":93,"old-loc":93,"code-health":10.0,"old-code-health":10.0},{"file":"apps/mobile/src/components/SafeTab/SafeTabBar.tsx","loc":113,"old-loc":113,"code-health":10.0,"old-code-health":10.0},{"file":"apps/mobile/src/features/AccountsSheet/MyAccounts/MyAccounts.container.tsx","loc":49,"old-loc":49,"code-health":10.0,"old-code-health":10.0},{"file":"apps/mobile/src/features/AddressBook/List/hooks/useContactActions.ts","loc":35,"old-loc":35,"code-health":10.0,"old-code-health":10.0},{"file":"apps/mobile/src/features/Assets/components/Balance/Balance.container.tsx","loc":47,"old-loc":47,"code-health":10.0,"old-code-health":10.0},{"file":"apps/mobile/src/features/Assets/components/NoFunds/EmptyNFT.tsx","loc":43,"old-loc":43,"code-health":10.0,"old-code-health":10.0},{"file":"apps/mobile/src/features/Assets/hooks/usePositions.ts","loc":89,"old-loc":89,"code-health":9.608927141875917,"old-code-health":9.608927141875917},{"file":"apps/mobile/src/features/ConfirmTx/components/ReviewAndConfirm/ReviewAndConfirmView.tsx","loc":57,"old-loc":57,"code-health":10.0,"old-code-health":10.0},{"file":"apps/mobile/src/features/ConfirmTx/components/SignTransaction/SignError.tsx","loc":51,"old-loc":51,"code-health":10.0,"old-code-health":10.0},{"file":"apps/mobile/src/features/DataImport/ImportError.container.tsx","loc":11,"old-loc":11,"code-health":10.0,"old-code-health":10.0},{"file":"apps/mobile/src/features/DataImport/helpers/transforms.ts","loc":310,"old-loc":310,"code-health":8.314864455744324,"old-code-health":8.314864455744324},{"file":"apps/mobile/src/features/ExecuteTx/components/ExecuteError.tsx","loc":51,"old-loc":51,"code-health":10.0,"old-code-health":10.0},{"file":"apps/mobile/src/features/ImportReadOnly/AddSignersForm.container.tsx","loc":71,"old-loc":71,"code-health":10.0,"old-code-health":10.0},{"file":"apps/mobile/src/features/NetworksSheet/NetworksSheet.container.tsx","loc":60,"old-loc":60,"code-health":10.0,"old-code-health":10.0},{"file":"apps/mobile/src/features/PendingTx/components/PendingTxList/PendingTxList.container.tsx","loc":153,"old-loc":153,"code-health":9.313614294706117,"old-code-health":9.313614294706117},{"file":"apps/mobile/src/features/Settings/components/Navbar/SettingsMenu.tsx","loc":201,"old-loc":200,"code-health":9.028431592241496,"old-code-health":9.033528381551715},{"file":"apps/mobile/src/features/Signers/components/SignersList/hooks/useSignersActions.ts","loc":40,"old-loc":40,"code-health":10.0,"old-code-health":10.0},{"file":"apps/mobile/src/hooks/services/useSafeOverviewService.ts","loc":26,"old-loc":26,"code-health":10.0,"old-code-health":10.0},{"file":"apps/mobile/src/hooks/services/useSafeOverviewsQuery.ts","loc":27,"old-loc":27,"code-health":10.0,"old-code-health":10.0},{"file":"apps/mobile/src/hooks/useTotalBalances.ts","loc":42,"old-loc":42,"code-health":10.0,"old-code-health":10.0},{"file":"apps/mobile/src/store/safesSlice.ts","loc":68,"old-loc":68,"code-health":10.0,"old-code-health":10.0},{"file":"apps/mobile/src/theme/provider/DataFetchProvider.tsx","loc":24,"old-loc":24,"code-health":10.0,"old-code-health":10.0},{"file":"apps/mobile/src/utils/balance.ts","loc":6,"old-loc":6,"code-health":10.0,"old-code-health":10.0},{"file":"apps/tx-builder/src/components/forms/SolidityForm.tsx","loc":229,"old-loc":229,"code-health":8.879244486115462,"old-code-health":8.879244486115462},{"file":"apps/tx-builder/vite.config.ts","loc":49,"old-loc":49,"code-health":9.6882083290695,"old-code-health":9.6882083290695},{"file":"apps/web/cypress/e2e/pages/create_tx.pages.js","loc":972,"old-loc":972,"code-health":9.387218218812514,"old-code-health":9.387218218812514},{"file":"apps/web/cypress/e2e/pages/dashboard.pages.js","loc":120,"old-loc":120,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/cypress/e2e/pages/main.page.js","loc":439,"old-loc":439,"code-health":9.096655465156704,"old-code-health":9.096655465156704},{"file":"apps/web/cypress/e2e/regression/dashboard.cy.js","loc":49,"old-loc":49,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/cypress/e2e/visual/address_book.cy.js","loc":27,"old-loc":27,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/cypress/e2e/visual/apps_custom.cy.js","loc":22,"old-loc":22,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/cypress/e2e/visual/balances.cy.js","loc":25,"old-loc":25,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/cypress/e2e/visual/batch_tx.cy.js","loc":33,"old-loc":33,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/cypress/e2e/visual/bridge.cy.js","loc":18,"old-loc":18,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/cypress/e2e/visual/create_tx_flow.cy.js","loc":43,"old-loc":43,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/cypress/e2e/visual/dashboard.cy.js","loc":26,"old-loc":26,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/cypress/e2e/visual/earn.cy.js","loc":18,"old-loc":18,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/cypress/e2e/visual/env_variables.cy.js","loc":22,"old-loc":22,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/cypress/e2e/visual/error_pages.cy.js","loc":18,"old-loc":18,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/cypress/e2e/visual/legal_pages.cy.js","loc":32,"old-loc":32,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/cypress/e2e/visual/messages.cy.js","loc":26,"old-loc":26,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/cypress/e2e/visual/msg_details.cy.js","loc":29,"old-loc":29,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/cypress/e2e/visual/new_safe.cy.js","loc":20,"old-loc":20,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/cypress/e2e/visual/new_safe_advanced.cy.js","loc":17,"old-loc":17,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/cypress/e2e/visual/nfts.cy.js","loc":23,"old-loc":23,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/cypress/e2e/visual/owner_management.cy.js","loc":39,"old-loc":39,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/cypress/e2e/visual/positions.cy.js","loc":19,"old-loc":19,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/cypress/e2e/visual/safe_apps.cy.js","loc":29,"old-loc":29,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/cypress/e2e/visual/settings_cookies.cy.js","loc":18,"old-loc":18,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/cypress/e2e/visual/settings_data_security.cy.js","loc":27,"old-loc":27,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/cypress/e2e/visual/settings_pages.cy.js","loc":29,"old-loc":29,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/cypress/e2e/visual/settings_safe_apps.cy.js","loc":21,"old-loc":21,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/cypress/e2e/visual/sidebar.cy.js","loc":28,"old-loc":28,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/cypress/e2e/visual/spaces.cy.js","loc":56,"old-loc":56,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/cypress/e2e/visual/spending_limits.cy.js","loc":34,"old-loc":34,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/cypress/e2e/visual/stake.cy.js","loc":18,"old-loc":18,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/cypress/e2e/visual/swap.cy.js","loc":18,"old-loc":18,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/cypress/e2e/visual/tx_details.cy.js","loc":24,"old-loc":24,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/cypress/e2e/visual/tx_history.cy.js","loc":26,"old-loc":26,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/cypress/e2e/visual/tx_queue.cy.js","loc":30,"old-loc":30,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/cypress/e2e/visual/user_settings.cy.js","loc":24,"old-loc":24,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/cypress/e2e/visual/welcome.cy.js","loc":21,"old-loc":21,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/cypress/support/constants.js","loc":288,"old-loc":288,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/cypress/support/visual-mocks.js","loc":45,"old-loc":45,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/next.config.mjs","loc":165,"old-loc":165,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/components/address-book/AddressBookHeader/index.tsx","loc":140,"old-loc":140,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/components/common/Breadcrumbs/index.tsx","loc":14,"old-loc":14,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/components/common/NamedAddressInfo/index.tsx","loc":49,"old-loc":49,"code-health":9.500346130021617,"old-code-health":9.500346130021617},{"file":"apps/web/src/components/dashboard/ActionRequiredPanel/ActionRequiredPanel.tsx","loc":74,"old-loc":74,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/components/dashboard/ExplorePossibleWidget/index.tsx","loc":234,"old-loc":234,"code-health":9.203549985733513,"old-code-health":9.203549985733513},{"file":"apps/web/src/components/dashboard/PendingTxs/PendingTxsList.tsx","loc":126,"old-loc":126,"code-health":9.6882083290695,"old-code-health":9.6882083290695},{"file":"apps/web/src/components/dashboard/index.tsx","loc":128,"old-loc":123,"code-health":9.527362313789242,"old-code-health":9.527362313789242},{"file":"apps/web/src/components/dashboard/styled.tsx","loc":82,"old-loc":82,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/features/hypernative/components/HnInfoCard/index.tsx","loc":74,"old-loc":74,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/features/hypernative/components/HnLoginCard/HnLoginCard.tsx","loc":59,"old-loc":59,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/features/hypernative/components/HnQueueAssessmentBanner/HnQueueAssessmentBanner.tsx","loc":104,"old-loc":104,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/features/multichain/components/SignerSetupWarning/InconsistentSignerSetupWarning.tsx","loc":74,"old-loc":74,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/features/multichain/components/UnsupportedMastercopyWarning/UnsupportedMasterCopyWarning.tsx","loc":49,"old-loc":45,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/features/myAccounts/components/AccountItem/AccountItemInfo.tsx","loc":76,"old-loc":76,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/features/myAccounts/components/AccountItems/MultiAccountItem.tsx","loc":199,"old-loc":199,"code-health":9.059060904079464,"old-code-health":9.059060904079464},{"file":"apps/web/src/features/myAccounts/components/SafesList/SafeListItem.tsx","loc":91,"old-loc":91,"code-health":9.581652546385712,"old-code-health":9.581652546385712},{"file":"apps/web/src/features/safe-shield/components/ReportFalseResultModal/ReportFalseResultModal.tsx","loc":71,"old-loc":71,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/features/spaces/components/AddAccounts/SafesList.tsx","loc":203,"old-loc":203,"code-health":9.208757947636503,"old-code-health":9.208757947636503},{"file":"apps/web/src/features/spaces/components/AddAccounts/index.tsx","loc":234,"old-loc":234,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/features/spaces/components/AddMemberModal/MemberInfoForm.tsx","loc":37,"old-loc":37,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/features/spaces/components/AddMemberModal/index.tsx","loc":172,"old-loc":172,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/features/spaces/components/AuthState/index.tsx","loc":31,"old-loc":31,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/features/spaces/components/Dashboard/AddAccountsCard.tsx","loc":40,"old-loc":40,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/features/spaces/components/Dashboard/AggregatedBalances.tsx","loc":116,"old-loc":116,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/features/spaces/components/Dashboard/DashboardMembersList.tsx","loc":35,"old-loc":35,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/features/spaces/components/Dashboard/ImportAddressBookCard.tsx","loc":70,"old-loc":70,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/features/spaces/components/Dashboard/MembersCard.tsx","loc":56,"old-loc":56,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/features/spaces/components/Dashboard/Page.tsx","loc":12,"old-loc":12,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/features/spaces/components/Dashboard/SpacesCTACard.tsx","loc":48,"old-loc":48,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/features/spaces/components/Dashboard/index.tsx","loc":119,"old-loc":119,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/features/spaces/components/InviteBanner/PreviewInvite.tsx","loc":68,"old-loc":68,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/features/spaces/components/InviteBanner/index.tsx","loc":85,"old-loc":85,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/features/spaces/components/Members/Page.tsx","loc":12,"old-loc":12,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/features/spaces/components/Members/index.tsx","loc":83,"old-loc":83,"code-health":9.6882083290695,"old-code-health":9.6882083290695},{"file":"apps/web/src/features/spaces/components/MembersList/EditMemberDialog.tsx","loc":87,"old-loc":87,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/features/spaces/components/MembersList/RemoveMemberDialog.tsx","loc":72,"old-loc":72,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/features/spaces/components/MembersList/index.tsx","loc":138,"old-loc":138,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/features/spaces/components/SafeAccounts/Page.tsx","loc":12,"old-loc":12,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/features/spaces/components/SafeAccounts/RemoveSafeDialog.tsx","loc":78,"old-loc":78,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/features/spaces/components/SafeAccounts/SpaceSafeContextMenu.tsx","loc":95,"old-loc":95,"code-health":9.6882083290695,"old-code-health":9.6882083290695},{"file":"apps/web/src/features/spaces/components/SafeAccounts/index.tsx","loc":62,"old-loc":62,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/features/spaces/components/SignedOutState/index.tsx","loc":22,"old-loc":22,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/features/spaces/components/SpaceAddressBook/AddContact.tsx","loc":138,"old-loc":138,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/features/spaces/components/SpaceAddressBook/DeleteContactDialog.tsx","loc":84,"old-loc":84,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/features/spaces/components/SpaceAddressBook/EditContactDialog.tsx","loc":152,"old-loc":152,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/features/spaces/components/SpaceAddressBook/Import/ContactsList.tsx","loc":94,"old-loc":94,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/features/spaces/components/SpaceAddressBook/Import/ImportAddressBookDialog.tsx","loc":173,"old-loc":173,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/features/spaces/components/SpaceAddressBook/Import/index.tsx","loc":16,"old-loc":16,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/features/spaces/components/SpaceAddressBook/Page.tsx","loc":12,"old-loc":12,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/features/spaces/components/SpaceAddressBook/SpaceAddressBookActions.tsx","loc":56,"old-loc":56,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/features/spaces/components/SpaceAddressBook/SpaceAddressBookTable.tsx","loc":86,"old-loc":86,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/features/spaces/components/SpaceAddressBook/index.tsx","loc":56,"old-loc":56,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/features/spaces/components/SpaceAddressBook/useContactSearch.ts","loc":17,"old-loc":17,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/features/spaces/components/SpaceAddressBook/utils.ts","loc":39,"old-loc":39,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/features/spaces/components/SpaceBreadcrumbs/index.tsx","loc":52,"old-loc":52,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/features/spaces/components/SpaceCard/SpaceContextMenu.tsx","loc":67,"old-loc":67,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/features/spaces/components/SpaceCard/index.tsx","loc":63,"old-loc":63,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/features/spaces/components/SpaceSettings/Page.tsx","loc":12,"old-loc":12,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/features/spaces/components/SpaceSettings/UpdateSpaceDialog.tsx","loc":21,"old-loc":21,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/features/spaces/components/SpaceSettings/UpdateSpaceForm.tsx","loc":46,"old-loc":46,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/features/spaces/components/SpaceSettings/index.tsx","loc":89,"old-loc":89,"code-health":9.6882083290695,"old-code-health":9.6882083290695},{"file":"apps/web/src/features/spaces/components/SpaceSidebar/index.tsx","loc":13,"old-loc":13,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/features/spaces/components/SpaceSidebarNavigation/index.tsx","loc":42,"old-loc":42,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/features/spaces/components/SpaceSidebarSelector/index.tsx","loc":131,"old-loc":131,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/features/spaces/components/SpacesList/index.tsx","loc":131,"old-loc":131,"code-health":9.6882083290695,"old-code-health":9.6882083290695},{"file":"apps/web/src/features/spaces/components/UnauthorizedState/index.tsx","loc":26,"old-loc":26,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/features/spaces/components/UserSettings/index.tsx","loc":82,"old-loc":82,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/features/spaces/hooks/useGetSpaceAddressBook.ts","loc":14,"old-loc":14,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/features/spaces/hooks/useIsQualifiedSafe.ts","loc":31,"old-loc":31,"code-health":9.6882083290695,"old-code-health":9.6882083290695},{"file":"apps/web/src/features/spaces/hooks/useSpaceMembers.tsx","loc":49,"old-loc":49,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/features/spaces/hooks/useSpaceSafes.tsx","loc":28,"old-loc":28,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/features/spaces/utils.ts","loc":44,"old-loc":44,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/hooks/loadables/useLoadBalances.ts","loc":45,"old-loc":45,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/hooks/useAllAddressBooks.ts","loc":97,"old-loc":97,"code-health":9.842730062691357,"old-code-health":9.842730062691357},{"file":"apps/web/src/hooks/useIsSpaceRoute.ts","loc":17,"old-loc":17,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/hooks/useMnemonicName/index.ts","loc":22,"old-loc":22,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/pages/hypernative/oauth-callback.tsx","loc":166,"old-loc":166,"code-health":9.234847392680871,"old-code-health":9.234847392680871},{"file":"apps/web/src/pages/spaces/address-book.tsx","loc":22,"old-loc":22,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/pages/spaces/index.tsx","loc":22,"old-loc":22,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/pages/spaces/members.tsx","loc":22,"old-loc":22,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/pages/spaces/safe-accounts.tsx","loc":22,"old-loc":22,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/pages/spaces/settings.tsx","loc":22,"old-loc":22,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/pages/user-settings.tsx","loc":18,"old-loc":18,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/pages/welcome/spaces.tsx","loc":21,"old-loc":21,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/store/api/gateway/safeOverviews.ts","loc":156,"old-loc":156,"code-health":10.0,"old-code-health":10.0},{"file":"packages/store/src/gateway/safes/index.ts","loc":54,"old-loc":54,"code-health":10.0,"old-code-health":10.0},{"file":"packages/theme/src/utils/flatten.ts","loc":43,"old-loc":43,"code-health":10.0,"old-code-health":10.0},{"file":"packages/utils/src/hooks/portfolioBalances.ts","loc":41,"old-loc":41,"code-health":10.0,"old-code-health":10.0},{"file":"packages/utils/src/hooks/useTotalBalances.ts","loc":231,"old-loc":231,"code-health":9.419810047029355,"old-code-health":9.419810047029355},{"file":"apps/web/src/components/settings/ProposersList/index.tsx","loc":137,"old-loc":134,"code-health":9.636288422716657,"old-code-health":9.608927141875917},{"file":"apps/web/src/components/tx-flow/features/SignerSelect/SignerForm/index.tsx","loc":95,"old-loc":122,"code-health":8.95517096544394,"old-code-health":8.95517096544394},{"file":"apps/web/src/features/proposers/components/DeleteProposerDialog.tsx","loc":284,"old-loc":280,"code-health":9.387218218812514,"old-code-health":9.387218218812514},{"file":"apps/web/src/features/proposers/components/EditProposerDialog.tsx","loc":51,"old-loc":51,"code-health":9.6882083290695,"old-code-health":9.6882083290695},{"file":"apps/web/src/features/proposers/components/UpsertProposer.tsx","loc":318,"old-loc":291,"code-health":9.6882083290695,"old-code-health":9.663736664415227},{"file":"apps/web/src/features/proposers/hooks/useParentSafeThreshold.ts","loc":26,"old-loc":29,"code-health":10.0,"old-code-health":10.0},{"file":"packages/store/src/gateway/AUTO_GENERATED/chains.ts","loc":246,"old-loc":213,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/features/counterfactual/hooks/usePendingSafeStatuses.ts","loc":165,"old-loc":175,"code-health":8.763973457539107,"old-code-health":8.690414098759856},{"file":"apps/mobile/src/features/TxHistory/components/TxHistoryList/components/DateHeaderItem.tsx","loc":18,"old-loc":18,"code-health":10.0,"old-code-health":10.0},{"file":"apps/mobile/src/components/Fiat/Fiat.tsx","loc":41,"old-loc":41,"code-health":10.0,"old-code-health":10.0},{"file":"apps/mobile/src/features/Assets/components/Positions/PositionItem/PositionFiatChange.tsx","loc":60,"old-loc":60,"code-health":10.0,"old-code-health":10.0},{"file":"apps/mobile/src/utils/formatters.ts","loc":68,"old-loc":50,"code-health":9.6882083290695,"old-code-health":10.0},{"file":"apps/mobile/src/features/Settings/components/AppSettings/AppSettings.container.tsx","loc":194,"old-loc":195,"code-health":9.043731669201172,"old-code-health":9.03862840652023},{"file":"apps/mobile/src/features/Settings/components/FloatingMenu.tsx","loc":22,"old-loc":17,"code-health":10.0,"old-code-health":10.0},{"file":"apps/mobile/src/features/Assets/components/Tokens/Tokens.container.tsx","loc":55,"old-loc":51,"code-health":10.0,"old-code-health":10.0},{"file":"apps/mobile/src/features/Assets/components/Tokens/useTokenBalances.ts","loc":37,"old-loc":54,"code-health":10.0,"old-code-health":9.6882083290695},{"file":"apps/mobile/src/theme/provider/safeTheme.tsx","loc":38,"old-loc":34,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/pages/_document.tsx","loc":48,"old-loc":46,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/.storybook-vite/preview.tsx","loc":150,"old-loc":139,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/.storybook/preview.tsx","loc":151,"old-loc":139,"code-health":10.0,"old-code-health":10.0},{"file":"apps/web/src/pages/_app.tsx","loc":177,"old-loc":176,"code-health":10.0,"old-code-health":10.0}]},"removed-files":{"code-health":0.0,"old-code-health":0.0,"files":[]},"external-review-id":"7170","analysis-time":"2026-02-26T15:40:35Z","negative-impact-count":11,"suppressions":{"number-of-types":0,"number-of-files-touched":0,"findings":[]},"affected-hotspots":7,"commits":["b20652d421dd51784922ab6ceade403aa6a2321a","958f8795041fa027344312716cc35c3d35285573","d28fab7f838a93bfbb671d26e780e24890ea6e36","9c595e81ce77f58b90890acb348c6325c9eb332e","6ec8415008a0ddb2bacba5145a35509f0bc494c3","f51e4f072fce9e6cf5423e9dda45c5b8d460af92","ff829379c7e434c94611d8137477b76e55f5c595","94b7760f896cd537a286f67b30ad32ac921dfc9c","f7f8a8906e9aaaaeede85ff3c601db0ffb7fd3d9","bf5e31f93d6506ef13052320281fdfcee3edfc15","ca98f2f1a778868b38802ac9e1f9b4689ad66d40","bbd2abc47ae90467704b09f5687a43d272665a4d","dac571a393d952fc3b0450bbd45588faa45b84f9","b0bb22bcdf45ae7de60eb7087b8f3c91963be3d0","6280789b7a0bacfbf83f543854b4c8da8c7ccd9f","906cc0215f97eea564aed0627e0816656a71d9a3","75aa71619909c47833cb0dbdea0355744ae66400","cbecff82db4bb8ad224395797ab786f5cdb0be72","bc1adf81e21a6f7f70f428be7f6abd1fd9977bbb","dd5ec5c883a99dd564d1e706c3f71a3d6d24e36f","0548a4f6a0ddcf404af7ec53ef5e7cb0a9d87eb8","7da4be9fd82eaa122dce6db439ced514a7b78b76","3ccca862827d3d59e49e536cf10567a110059e89","fe6a58747ba703370b29d7b6da46c86a1d3b3053","5f0bc73266d58890e44955e08ef57d5ce1d2fdd5","587f796da164f8541095f4553750660bad20b2a2","d0041703525ce011f217c6d278920f7c0c00d1b1","1997fcb99dc16982f252c3afb46a36c2efda5f38","d3ccf237d310bb7773f38e9650dddc6e6cc504ac","d75767359cdb79fc266e3871089da2f0611b6891","da4f91a5685b6860a5ae0f80cdce1d1aca2f82f5","89286d459a8a59b58f71cca067612474d8635f3b","0306e89e8a85bff436375be6f8b23ba2d6976e5c","fcdacfa3b4a1a97fa66131280e874cc1fb97cb03","fc160f81160d1ce6cfdf3c08a888f4c990b43761","d7677a82143f5dac1d5158af9a0e0656e1d5ff32","92531673017d8a3c051247120d5dc49dcc59f909","2bce799307a1c51ab9badd388d298f2cf1aadad7","1f1ad4aa1b2871aed918e6b0542b403a301b840c","de45858a2e14dea0bbfeea15e034081c2d3deeb3","60c3b73a9c322cd8b172982db790766690edb570","e6e23d21f119ca062ba92d93ff38065f2d17b27b","c95c992ece4b5087e5310eb18da946f5d4dfc395","5521b14803da2970e973a06f08b75bffdbe0ad9c"],"is-negative-review":true,"negative-findings":{"number-of-types":5,"number-of-files-touched":9,"findings":[{"why-it-occurs":"String is a generic type that fail to capture the constraints of the domain object it represents. In this module, 43 % of all function arguments are string types.","name":"String Heavy Function Arguments","file":"apps/mobile/src/utils/formatters.ts","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"what-changed":"In this module, 42.9% of all arguments to its 9 functions are strings. The threshold for string arguments is 39.0%","how-to-fix":"Heavy string usage indicates a missing domain language. Introduce data types that encapsulate the semantics. For example, a user_name is better represented as a constrained User type rather than a pure string, which could be anything.","change-type":"introduced"},{"why-it-occurs":"Duplicated code often leads to code that's harder to change since the same logical change has to be done in multiple functions. More duplication gives lower code health.","name":"Code Duplication","file":"apps/web/src/components/ui/context-menu.tsx","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"line":161,"what-changed":"The module contains 2 functions with similar structure: ContextMenuCheckboxItem,ContextMenuRadioItem","how-to-fix":"A certain degree of duplicated code might be acceptable. The problems start when it is the same behavior that is duplicated across the functions in the module, ie. a violation of the Don't Repeat Yourself (DRY) principle. DRY violations lead to code that is changed together in predictable patterns, which is both expensive and risky. DRY violations can be identified using CodeScene's X-Ray analysis to detect clusters of change coupled functions with high code similarity. [Read More](https://codescene.com/blog/software-revolution-part3/)\n\nOnce you have identified the similarities across functions, look to extract and encapsulate the concept that varies into its own function(s). These shared abstractions can then be re-used, which minimizes the amount of duplication and simplifies change.","change-type":"introduced"},{"why-it-occurs":"Duplicated code often leads to code that's harder to change since the same logical change has to be done in multiple functions. More duplication gives lower code health.","name":"Code Duplication","file":"apps/web/src/components/ui/dropdown-menu.tsx","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"line":176,"what-changed":"The module contains 2 functions with similar structure: DropdownMenuCheckboxItem,DropdownMenuRadioItem","how-to-fix":"A certain degree of duplicated code might be acceptable. The problems start when it is the same behavior that is duplicated across the functions in the module, ie. a violation of the Don't Repeat Yourself (DRY) principle. DRY violations lead to code that is changed together in predictable patterns, which is both expensive and risky. DRY violations can be identified using CodeScene's X-Ray analysis to detect clusters of change coupled functions with high code similarity. [Read More](https://codescene.com/blog/software-revolution-part3/)\n\nOnce you have identified the similarities across functions, look to extract and encapsulate the concept that varies into its own function(s). These shared abstractions can then be re-used, which minimizes the amount of duplication and simplifies change.","change-type":"introduced"},{"why-it-occurs":"Duplicated code often leads to code that's harder to change since the same logical change has to be done in multiple functions. More duplication gives lower code health.","name":"Code Duplication","file":"apps/web/src/components/ui/select.tsx","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"line":156,"what-changed":"The module contains 2 functions with similar structure: SelectScrollDownButton,SelectScrollUpButton","how-to-fix":"A certain degree of duplicated code might be acceptable. The problems start when it is the same behavior that is duplicated across the functions in the module, ie. a violation of the Don't Repeat Yourself (DRY) principle. DRY violations lead to code that is changed together in predictable patterns, which is both expensive and risky. DRY violations can be identified using CodeScene's X-Ray analysis to detect clusters of change coupled functions with high code similarity. [Read More](https://codescene.com/blog/software-revolution-part3/)\n\nOnce you have identified the similarities across functions, look to extract and encapsulate the concept that varies into its own function(s). These shared abstractions can then be re-used, which minimizes the amount of duplication and simplifies change.","change-type":"introduced"},{"why-it-occurs":"Duplicated code often leads to code that's harder to change since the same logical change has to be done in multiple functions. More duplication gives lower code health.","name":"Code Duplication","file":"apps/web/src/components/ui/sidebar.tsx","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"line":406,"what-changed":"The module contains 9 functions with similar structure: SidebarFooter,SidebarGroup,SidebarGroupContent,SidebarHeader and 5 more functions","how-to-fix":"A certain degree of duplicated code might be acceptable. The problems start when it is the same behavior that is duplicated across the functions in the module, ie. a violation of the Don't Repeat Yourself (DRY) principle. DRY violations lead to code that is changed together in predictable patterns, which is both expensive and risky. DRY violations can be identified using CodeScene's X-Ray analysis to detect clusters of change coupled functions with high code similarity. [Read More](https://codescene.com/blog/software-revolution-part3/)\n\nOnce you have identified the similarities across functions, look to extract and encapsulate the concept that varies into its own function(s). These shared abstractions can then be re-used, which minimizes the amount of duplication and simplifies change.","change-type":"introduced"},{"method":"Sidebar","why-it-occurs":"A Complex Method has a high cyclomatic complexity. The recommended threshold for the React language is a cyclomatic complexity lower than 10.","name":"Complex Method","file":"apps/web/src/components/ui/sidebar.tsx","refactoring-examples":[{"architectural-component-id":null,"author-name":"rsquare","training-data":{"loc-added":"1","loc-deleted":"2","delta-cc-mean":"0.0","delta-cc-total":"0","delta-penalties":"1.0","delta-n-functions":"0","current-file-score":"10.0"},"author-email":"rahulrumalla@gmail.com","commit-full-message":"* fix: align button sizes with design system standards\n\nFixes button size regressions by updating MUI theme configuration:\n- Medium buttons: 44px → 36px height (design system spec)\n- Large buttons: undefined → 42px height (design system spec)\n- Removes manual height overrides (sx={{ height: '42px' }})\n- Migrates all compact variant usages to standard medium size\n- Deprecates compact and stretched custom variants\n\nAffects 38 buttons across 27 files in dashboard, asset tables,\ncreate/load safe flows, settings, and activation flows.\n\nCo-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>\n\n* test: updated snap\n\n* fix: update Back button sizes in CREATE safe flow\n\nFixes 3 Back buttons that were missed in initial migration:\n- OwnerPolicyStep: size small → large (42px)\n- AdvancedOptionsStep: size small → large (42px)\n- ReviewStep: size small → large (42px)\n\nAll Back buttons in CREATE safe flow now consistent at 42px height,\nmatching their corresponding Next/Create buttons.\n\nCo-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>\n\n* fix: migrate buttons from deprecated variants to standard sizes\n\nReplaces deprecated 'stretched' and 'compact' button size variants with\nstandard 'large' and 'small' variants to align with design system.\n\nChanges:\n- stretched (40px) → large (42px): 8 buttons\n- compact (28px) → small (32px): 3 buttons\n- Removed custom padding overrides (py: 0.6, 0.8, 1) from 5 buttons\n\nUpdated components:\n- Transaction buttons: ExecuteTxButton, SignTxButton, RejectTxButton\n- Message buttons: SignMsgButton\n- Recovery buttons: ExecuteRecoveryButton, CancelRecoveryButton\n- Feature buttons: EarnButton, StakeButton\n- Onboarding: WalletLogin, ActivateAccountFlow\n- UI: PromoBanner\n\nAll buttons now use standard MUI variants (small/medium/large) with\nheights of 32px, 36px, or 42px as defined in the theme.\n\nCo-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>\n\n* tests: update snapshots after merge\n\n* fix: add xlarge button size for hero CTAs\n\n- Add xlarge size variant (58px height) to MUI theme for hero buttons\n- Update TxButton components (Send, Swap, TX Builder) to use xlarge\n- Update ActivateAccountFlow activation button to use xlarge\n- Update ReviewStep create safe button to use xlarge\n- Update WalletLogin continue button to use xlarge\n- Mark stretched and compact button sizes as deprecated\n- Remove hardcoded height from TxButton in favor of size prop\n\nCo-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>\n\n* fix: changing create account size to large\n\n* test: updated snaps\n\n---------\n\nCo-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>","commit-date":"2026-02-19T09:49:47Z","current-rev":"c567a78b1","filename":"safe-wallet-monorepo/apps/web/src/components/safe-messages/SignMsgButton/index.tsx","previous-rev":"4a9deed56","commit-title":"fix(web): align button sizes with design system standards (#7076)","language":"React","id":"ca0ab5ecdd3e23065e72fd2b7bea47084d3a74a9","model-score":0.92,"author-id":null,"project-id":76120,"delta-file-score":0.31179166,"diff":"diff --git a/apps/web/src/components/safe-messages/SignMsgButton/index.tsx b/apps/web/src/components/safe-messages/SignMsgButton/index.tsx\nindex 19092c423..a651f4b46 100644\n--- a/apps/web/src/components/safe-messages/SignMsgButton/index.tsx\n+++ b/apps/web/src/components/safe-messages/SignMsgButton/index.tsx\n@@ -33,4 +33,3 @@ const SignMsgButton = ({ msg, compact = false }: { msg: MessageItem; compact?: b\n                 disabled={!isOk || !isSignable}\n-                size={compact ? 'small' : 'stretched'}\n-                sx={compact ? { py: 0.8 } : undefined}\n+                size={compact ? 'small' : 'large'}\n               >\n","improvement-type":"Complex Method"},{"architectural-component-id":null,"author-name":"katspaugh","training-data":{"loc-added":"11","loc-deleted":"11","delta-cc-mean":"0.0","delta-cc-total":"0","delta-penalties":"1.17","delta-n-functions":"0","current-file-score":"10.0"},"author-email":"381895+katspaugh@users.noreply.github.com","commit-full-message":"Revert the revert (c473c634) to re-apply the original optimization that:\n- Removes unnecessary /safe-apps API fetch from NetworkSelector\n- Moves chain-compatibility redirect to /apps/open page via useSafeAppRedirects hook\n- Increases chains pagination limit to 50 to reduce API requests\n- Restores tx-builder static icon\n\nPreserves the fix from #7146 (c23d4317e) that allows custom Safe Apps\nadded via URL to load by only redirecting when the app IS in the remote\nlist but doesn't support the current chain.\n\nCo-authored-by: Claude Opus 4.6 <noreply@anthropic.com>","commit-date":"2026-02-11T19:34:14Z","current-rev":"4fcfbf75a","filename":"safe-wallet-monorepo/apps/web/src/pages/apps/open.tsx","previous-rev":"8f403ca94","commit-title":"fix(web): reapply safe-apps fetch optimization and chains pagination (#7123) (#7149)","language":"React","id":"428d248e7f9333da2665f8705db54e46ea85feb4","model-score":0.56,"author-id":null,"project-id":76120,"delta-file-score":0.36371157,"diff":"diff --git a/apps/web/src/pages/apps/open.tsx b/apps/web/src/pages/apps/open.tsx\nindex 1e0c91c17..71d3c1baa 100644\n--- a/apps/web/src/pages/apps/open.tsx\n+++ b/apps/web/src/pages/apps/open.tsx\n@@ -18,2 +18,3 @@ import { getOrigin } from '@/components/safe-apps/utils'\n import { useHasFeature } from '@/hooks/useChains'\n+import { useSafeAppRedirects } from '@/hooks/safe-apps/useSafeAppRedirects'\n \n@@ -55,13 +56,12 @@ const SafeApps: NextPage = () => {\n \n-  // appUrl is required to be present\n-  if (!isSafeAppsEnabled || !appUrl || !router.isReady) return null\n+  const shouldRender = useSafeAppRedirects({\n+    safeAppData,\n+    chainId,\n+    isSafeAppsEnabled,\n+    appUrl,\n+    remoteSafeAppsLoading,\n+    goToList,\n+  })\n \n-  // No `safe` query param, redirect to the share route\n-  if (router.isReady && !router.query.safe) {\n-    router.push({\n-      pathname: AppRoutes.share.safeApp,\n-      query: { appUrl },\n-    })\n-    return null\n-  }\n+  if (!shouldRender) return null\n \n@@ -93,3 +93,3 @@ const SafeApps: NextPage = () => {\n     <SafeAppsErrorBoundary render={() => <SafeAppsLoadError onBackToApps={() => router.back()} />}>\n-      <AppFrame appUrl={appUrl} allowedFeaturesList={getAllowedFeaturesList(origin)} safeAppFromManifest={safeApp} />\n+      <AppFrame appUrl={appUrl!} allowedFeaturesList={getAllowedFeaturesList(origin)} safeAppFromManifest={safeApp} />\n     </SafeAppsErrorBoundary>\n","improvement-type":"Complex Method"},{"architectural-component-id":null,"author-name":"Daniel Dimitrov","training-data":{"loc-added":"84","loc-deleted":"22","delta-cc-mean":"0.0","delta-cc-total":"0","delta-penalties":"1.35","delta-n-functions":"0","current-file-score":"10.0"},"author-email":"daniel.d@safe.global","commit-full-message":"* feat(web): nested safe curation\n\n* fix(web): prettier\n\n* fix(web): knip warning\n\n* fix(web): unit test\n\n* fix(web): merge error\n\n* fix(web): ui improvements\n\n* fix(web): try to reduce complexity","commit-date":"2026-02-09T09:43:58Z","current-rev":"3af4b5da1","filename":"safe-wallet-monorepo/apps/web/src/components/sidebar/NestedSafesList/index.tsx","previous-rev":"7099b52fc","commit-title":"feat(web): nested safe curation (#7118)","language":"React","id":"1aec175608a023acea210e9efb31b4d9d972e5f4","model-score":0.34,"author-id":null,"project-id":76120,"delta-file-score":0.41834745,"diff":"diff --git a/apps/web/src/components/sidebar/NestedSafesList/index.tsx b/apps/web/src/components/sidebar/NestedSafesList/index.tsx\nindex 4f63d211b..06394402c 100644\n--- a/apps/web/src/components/sidebar/NestedSafesList/index.tsx\n+++ b/apps/web/src/components/sidebar/NestedSafesList/index.tsx\n@@ -19,2 +19,3 @@ import type { SafeOverview } from '@safe-global/store/gateway/AUTO_GENERATED/saf\n import WarningIcon from '@/public/images/notifications/warning.svg'\n+import { SimilarityGroupContainer } from './SimilarityGroupContainer'\n \n@@ -22,3 +23,3 @@ const MAX_NESTED_SAFES = 5\n \n-type SafeItemWithStatus = SafeItem & { isValid: boolean; isAutoHidden: boolean; isUserUnhidden: boolean }\n+type SafeItemWithStatus = SafeItem & { isValid: boolean; isCurated: boolean }\n \n@@ -32,2 +33,3 @@ function NestedSafeItem({\n   showWarning,\n+  showSimilarityWarning,\n }: {\n@@ -40,2 +42,3 @@ function NestedSafeItem({\n   showWarning: boolean\n+  showSimilarityWarning: boolean\n }) {\n@@ -68,3 +71,10 @@ function NestedSafeItem({\n         />\n-        <AccountItem.Info address={safeItem.address} name={name} chainId={safeItem.chainId} />\n+        <AccountItem.Info\n+          address={safeItem.address}\n+          name={name}\n+          chainId={safeItem.chainId}\n+          fullAddress\n+          highlight4bytes={showSimilarityWarning}\n+          monospace\n+        />\n         <AccountItem.Group>\n@@ -93,2 +103,7 @@ function NestedSafeItem({\n \n+interface GroupedSafes {\n+  groups: { key: string; safes: NestedSafeWithStatus[] }[]\n+  ungrouped: NestedSafeWithStatus[]\n+}\n+\n export function NestedSafesList({\n@@ -99,2 +114,4 @@ export function NestedSafesList({\n   isSafeSelected,\n+  isFlagged,\n+  groupedSafes,\n }: {\n@@ -105,2 +122,4 @@ export function NestedSafesList({\n   isSafeSelected?: (address: string) => boolean\n+  isFlagged?: (address: string) => boolean\n+  groupedSafes?: GroupedSafes\n }): ReactElement {\n@@ -111,2 +130,17 @@ export function NestedSafesList({\n \n+  // Helper to convert NestedSafeWithStatus to SafeItemWithStatus\n+  const toSafeItem = (safe: NestedSafeWithStatus): SafeItemWithStatus | null => {\n+    if (!chain) return null\n+    return {\n+      address: safe.address,\n+      chainId: chain.chainId,\n+      isReadOnly: false,\n+      isPinned: false,\n+      lastVisited: 0,\n+      name: undefined,\n+      isValid: safe.isValid,\n+      isCurated: safe.isCurated,\n+    }\n+  }\n+\n   const safeItems: SafeItemWithStatus[] = useMemo(() => {\n@@ -121,4 +155,3 @@ export function NestedSafesList({\n       isValid: safe.isValid,\n-      isAutoHidden: safe.isAutoHidden,\n-      isUserUnhidden: safe.isUserUnhidden,\n+      isCurated: safe.isCurated,\n     }))\n@@ -129,2 +162,26 @@ export function NestedSafesList({\n \n+  // Helper to render a single safe item\n+  const renderSafeItem = (safeItem: SafeItemWithStatus) => {\n+    const safeOverview = safeOverviews?.find(\n+      (overview) => overview.chainId === safeItem.chainId && sameAddress(overview.address.value, safeItem.address),\n+    )\n+    const isSelected = isSafeSelected?.(safeItem.address) ?? false\n+    const showWarning = isManageMode && !safeItem.isValid\n+    const showSimilarityWarning = isManageMode && (isFlagged?.(safeItem.address) ?? false)\n+\n+    return (\n+      <NestedSafeItem\n+        key={safeItem.address}\n+        safeItem={safeItem}\n+        safeOverview={safeOverview}\n+        onClose={onClose}\n+        isManageMode={isManageMode}\n+        isSelected={isSelected}\n+        onToggle={() => onToggleSafe?.(safeItem.address)}\n+        showWarning={showWarning}\n+        showSimilarityWarning={showSimilarityWarning}\n+      />\n+    )\n+  }\n+\n   const { data: safeOverviews } = useGetMultipleSafeOverviewsQuery(\n@@ -143,24 +200,29 @@ export function NestedSafesList({\n \n+  // In manage mode with grouped safes, render groups first then ungrouped\n+  if (isManageMode && groupedSafes) {\n+    return (\n+      <List sx={{ gap: 1, display: 'flex', flexDirection: 'column', alignItems: 'stretch', p: 0 }}>\n+        {/* Render similarity groups first */}\n+        {groupedSafes.groups.map((group) => (\n+          <SimilarityGroupContainer key={group.key}>\n+            {group.safes.map((safe) => {\n+              const safeItem = toSafeItem(safe)\n+              return safeItem ? renderSafeItem(safeItem) : null\n+            })}\n+          </SimilarityGroupContainer>\n+        ))}\n+\n+        {/* Render ungrouped safes */}\n+        {groupedSafes.ungrouped.map((safe) => {\n+          const safeItem = toSafeItem(safe)\n+          return safeItem ? renderSafeItem(safeItem) : null\n+        })}\n+      </List>\n+    )\n+  }\n+\n+  // Default rendering (non-manage mode or manage mode without grouping)\n   return (\n     <List sx={{ gap: 1, display: 'flex', flexDirection: 'column', alignItems: 'stretch', p: 0 }}>\n-      {nestedSafesToShow.map((safeItem) => {\n-        const safeOverview = safeOverviews?.find(\n-          (overview) => overview.chainId === safeItem.chainId && sameAddress(overview.address.value, safeItem.address),\n-        )\n-        const isSelected = isSafeSelected?.(safeItem.address) ?? false\n-        const showWarning = isManageMode && !safeItem.isValid\n-\n-        return (\n-          <NestedSafeItem\n-            key={safeItem.address}\n-            safeItem={safeItem}\n-            safeOverview={safeOverview}\n-            onClose={onClose}\n-            isManageMode={isManageMode}\n-            isSelected={isSelected}\n-            onToggle={() => onToggleSafe?.(safeItem.address)}\n-            showWarning={showWarning}\n-          />\n-        )\n-      })}\n+      {nestedSafesToShow.map((safeItem) => renderSafeItem(safeItem))}\n       {safeItems.length > MAX_NESTED_SAFES && !showAll && !isManageMode && (\n@@ -175,3 +237,3 @@ export function NestedSafesList({\n           >\n-            Show all Nested Safes\n+            Show all nested Safes\n             <ChevronRight color=\"border\" sx={{ transform: 'rotate(90deg)', ml: 1 }} fontSize=\"inherit\" />\n","improvement-type":"Complex Method"}],"change-level":"warning","is-hotspot?":false,"line":242,"what-changed":"Sidebar has a cyclomatic complexity of 10, threshold = 10","how-to-fix":"There are many reasons for Complex Method. Sometimes, another design approach is beneficial such as a) modeling state using an explicit state machine rather than conditionals, or b) using table lookup rather than long chains of logic. In other scenarios, the function can be split using [EXTRACT FUNCTION](https://refactoring.com/catalog/extractFunction.html). Just make sure you extract natural and cohesive functions. Complex Methods can also be addressed by identifying complex conditional expressions and then using the [DECOMPOSE CONDITIONAL](https://refactoring.com/catalog/decomposeConditional.html) refactoring.","change-type":"introduced"},{"method":"SidebarProvider","why-it-occurs":"A complex conditional is an expression inside a branch such as an <code>if</code>-statmeent which consists of multiple, logical operations. Example: <code>if (x.started() && y.running())</code>.Complex conditionals make the code even harder to read, and contribute to the Complex Method code smell. Encapsulate them.","name":"Complex Conditional","file":"apps/web/src/components/ui/sidebar.tsx","refactoring-examples":[{"diff":"diff --git a/complex_conditional.js b/complex_conditional.js\nindex c43da09584..94259ce874 100644\n--- a/complex_conditional.js\n+++ b/complex_conditional.js\n@@ -1,16 +1,34 @@\n function messageReceived(message, timeReceived) {\n-   // Ignore all messages which aren't from known customers:\n-   if (!message.sender &&\n-       customers.getId(message.name) == null) {\n+   // Refactoring #1: encapsulate the business rule in a\n+   // function. A clear name replaces the need for the comment:\n+   if (!knownCustomer(message)) {\n      log('spam received -- ignoring');\n      return;\n    }\n \n-  // Provide an auto-reply when outside business hours:\n-  if ((timeReceived.getHours() > 17) ||\n-      (timeReceived.getHours() < 8)) {\n+  // Refactoring #2: encapsulate the business rule.\n+  // Again, note how a clear function name replaces the\n+  // need for a code comment:\n+  if (outsideBusinessHours(timeReceived)) {\n     return autoReplyTo(message);\n   }\n \n   pingAgentFor(message);\n+}\n+\n+function outsideBusinessHours(timeReceived) {\n+  // Refactoring #3: replace magic numbers with\n+  // symbols that communicate with the code reader:\n+  const closingHour = 17;\n+  const openingHour = 8;\n+\n+  const hours = timeReceived.getHours();\n+\n+  // Refactoring #4: simple conditional rules can\n+  // be further clarified by introducing a variable:\n+  const afterClosing = hours > closingHour;\n+  const beforeOpening = hours < openingHour;\n+\n+  // Yeah -- look how clear the business rule is now!\n+  return afterClosing || beforeOpening;\n }\n\\ No newline at end of file\n","language":"react","improvement-type":"Complex Conditional"}],"change-level":"warning","is-hotspot?":false,"line":184,"what-changed":"SidebarProvider has 1 complex conditionals with 2 branches, threshold = 2","how-to-fix":"Apply the [DECOMPOSE CONDITIONAL](https://refactoring.com/catalog/decomposeConditional.html) refactoring so that the complex conditional is encapsulated in a separate function with a good name that captures the business rule. Optionally, for simple expressions, introduce a new variable which holds the result of the complex conditional.","change-type":"introduced"},{"why-it-occurs":"Duplicated code often leads to code that's harder to change since the same logical change has to be done in multiple functions. More duplication gives lower code health.","name":"Code Duplication","file":"apps/web/src/components/ui/table.tsx","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"line":73,"what-changed":"The module contains 2 functions with similar structure: TableCell,TableHead","how-to-fix":"A certain degree of duplicated code might be acceptable. The problems start when it is the same behavior that is duplicated across the functions in the module, ie. a violation of the Don't Repeat Yourself (DRY) principle. DRY violations lead to code that is changed together in predictable patterns, which is both expensive and risky. DRY violations can be identified using CodeScene's X-Ray analysis to detect clusters of change coupled functions with high code similarity. [Read More](https://codescene.com/blog/software-revolution-part3/)\n\nOnce you have identified the similarities across functions, look to extract and encapsulate the concept that varies into its own function(s). These shared abstractions can then be re-used, which minimizes the amount of duplication and simplifies change.","change-type":"introduced"},{"method":"render","why-it-occurs":"Overly long functions make the code harder to read. The recommended maximum function length for the React language is 120 lines of code. Severity: Brain Method - Complex Method - Long Method.","name":"Large Method","file":"apps/web/src/components/ui/stories/aspect-ratio.stories.tsx","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"line":25,"what-changed":"render has 127 lines, threshold = 120","how-to-fix":"We recommend to be careful here -- just splitting long functions don't necessarily make the code easier to read. Instead, look for natural chunks inside the functions that expresses a specific task or concern. Often, such concerns are indicated by a Code Comment followed by an if-statement. Use the [EXTRACT FUNCTION](https://refactoring.com/catalog/extractFunction.html) refactoring to encapsulate that concern.","change-type":"introduced"},{"method":"render","why-it-occurs":"Overly long functions make the code harder to read. The recommended maximum function length for the React language is 120 lines of code. Severity: Brain Method - Complex Method - Long Method.","name":"Large Method","file":"apps/web/src/components/ui/stories/input-otp.stories.tsx","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"line":26,"what-changed":"render has 127 lines, threshold = 120","how-to-fix":"We recommend to be careful here -- just splitting long functions don't necessarily make the code easier to read. Instead, look for natural chunks inside the functions that expresses a specific task or concern. Often, such concerns are indicated by a Code Comment followed by an if-statement. Use the [EXTRACT FUNCTION](https://refactoring.com/catalog/extractFunction.html) refactoring to encapsulate that concern.","change-type":"introduced"},{"method":"render","why-it-occurs":"Overly long functions make the code harder to read. The recommended maximum function length for the React language is 120 lines of code. Severity: Brain Method - Complex Method - Long Method.","name":"Large Method","file":"apps/web/src/components/ui/stories/table.stories.tsx","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"line":19,"what-changed":"render has 122 lines, threshold = 120","how-to-fix":"We recommend to be careful here -- just splitting long functions don't necessarily make the code easier to read. Instead, look for natural chunks inside the functions that expresses a specific task or concern. Often, such concerns are indicated by a Code Comment followed by an if-statement. Use the [EXTRACT FUNCTION](https://refactoring.com/catalog/extractFunction.html) refactoring to encapsulate that concern.","change-type":"introduced"}]},"positive-impact-count":13,"repo":"safe-wallet-monorepo","code-health":9.714455160527509,"version":"3.0","authors":["katspaugh","Daniel Dimitrov","Tong Yao","valleXYZ","rsquare","Fbartoli","Dasha Kobzeva","dsh"],"directives":{"added":[],"removed":[]},"positive-findings":{"number-of-types":3,"number-of-files-touched":13,"findings":[{"method":"useAppCommunicator","why-it-occurs":"A Complex Method has a high cyclomatic complexity. The recommended threshold for the TypeScript language is a cyclomatic complexity lower than 9.","name":"Complex Method","file":"apps/web/src/components/safe-apps/AppFrame/useAppCommunicator.ts","change-level":"improvement","is-hotspot?":false,"line":72,"what-changed":"useAppCommunicator is no longer above the threshold for cyclomatic complexity","how-to-fix":"There are many reasons for Complex Method. Sometimes, another design approach is beneficial such as a) modeling state using an explicit state machine rather than conditionals, or b) using table lookup rather than long chains of logic. In other scenarios, the function can be split using [EXTRACT FUNCTION](https://refactoring.com/catalog/extractFunction.html). Just make sure you extract natural and cohesive functions. Complex Methods can also be addressed by identifying complex conditional expressions and then using the [DECOMPOSE CONDITIONAL](https://refactoring.com/catalog/decomposeConditional.html) refactoring.","change-type":"fixed"},{"name":"Overall Code Complexity","file":"apps/web/src/features/counterfactual/services/safeDeployment.ts","change-type":"improved","change-level":"improvement","is-hotspot?":false,"why-it-occurs":"Overall Code Complexity is measured by the mean cyclomatic complexity across all functions in the file. The lower the number, the better.\n\nCyclomatic complexity is a function level metric that measures the number of logical branches (if-else, loops, etc.). Cyclomatic complexity is a rough complexity measure, but useful as a way of estimating the minimum number of unit tests you would need. As such, prefer functions with low cyclomatic complexity (2-3 branches).","how-to-fix":"You address the overall cyclomatic complexity by a) modularizing the code, and b) abstract away the complexity. Let's look at some examples:\n\nModularizing the Code: Do an X-Ray and inspect the local hotspots. Are there any complex conditional expressions? If yes, then do a [DECOMPOSE CONDITIONAL](https://refactoring.com/catalog/decomposeConditional.html) refactoring. Extract the conditional logic into a separate function and put a good name on that function. This clarifies the intent and makes the original function easier to read. Repeat until all complex conditional expressions have been simplified.\n\n","what-changed":"The mean cyclomatic complexity decreases from 4.38 to 4.25, threshold = 4"},{"method":"waitForRelayedTx","why-it-occurs":"Overly long functions make the code harder to read. The recommended maximum function length for the TypeScript language is 70 lines of code. Severity: Brain Method - Complex Method - Long Method.","name":"Large Method","file":"apps/web/src/services/tx/txMonitor.ts","change-level":"improvement","is-hotspot?":false,"line":108,"what-changed":"waitForRelayedTx decreases from 99 to 90 lines of code, threshold = 70","how-to-fix":"We recommend to be careful here -- just splitting long functions don't necessarily make the code easier to read. Instead, look for natural chunks inside the functions that expresses a specific task or concern. Often, such concerns are indicated by a Code Comment followed by an if-statement. Use the [EXTRACT FUNCTION](https://refactoring.com/catalog/extractFunction.html) refactoring to encapsulate that concern.","change-type":"improved"},{"method":"RelayTxWatcher.watchTaskId","why-it-occurs":"A Complex Method has a high cyclomatic complexity. The recommended threshold for the TypeScript language is a cyclomatic complexity lower than 9.","name":"Complex Method","file":"packages/utils/src/services/RelayTxWatcher.ts","change-level":"improvement","is-hotspot?":false,"line":108,"what-changed":"RelayTxWatcher.watchTaskId decreases in cyclomatic complexity from 14 to 12, threshold = 9","how-to-fix":"There are many reasons for Complex Method. Sometimes, another design approach is beneficial such as a) modeling state using an explicit state machine rather than conditionals, or b) using table lookup rather than long chains of logic. In other scenarios, the function can be split using [EXTRACT FUNCTION](https://refactoring.com/catalog/extractFunction.html). Just make sure you extract natural and cohesive functions. Complex Methods can also be addressed by identifying complex conditional expressions and then using the [DECOMPOSE CONDITIONAL](https://refactoring.com/catalog/decomposeConditional.html) refactoring.","change-type":"improved"},{"method":"SettingsMenu","why-it-occurs":"A Complex Method has a high cyclomatic complexity. The recommended threshold for the React language is a cyclomatic complexity lower than 10.","name":"Complex Method","file":"apps/mobile/src/features/Settings/components/Navbar/SettingsMenu.tsx","change-level":"improvement","is-hotspot?":false,"line":22,"what-changed":"SettingsMenu decreases in cyclomatic complexity from 14 to 13, threshold = 10","how-to-fix":"There are many reasons for Complex Method. Sometimes, another design approach is beneficial such as a) modeling state using an explicit state machine rather than conditionals, or b) using table lookup rather than long chains of logic. In other scenarios, the function can be split using [EXTRACT FUNCTION](https://refactoring.com/catalog/extractFunction.html). Just make sure you extract natural and cohesive functions. Complex Methods can also be addressed by identifying complex conditional expressions and then using the [DECOMPOSE CONDITIONAL](https://refactoring.com/catalog/decomposeConditional.html) refactoring.","change-type":"improved"},{"method":"ProposersList","why-it-occurs":"A Complex Method has a high cyclomatic complexity. The recommended threshold for the React language is a cyclomatic complexity lower than 10.","name":"Complex Method","file":"apps/web/src/components/settings/ProposersList/index.tsx","change-level":"improvement","is-hotspot?":false,"line":67,"what-changed":"ProposersList decreases in cyclomatic complexity from 14 to 13, threshold = 10","how-to-fix":"There are many reasons for Complex Method. Sometimes, another design approach is beneficial such as a) modeling state using an explicit state machine rather than conditionals, or b) using table lookup rather than long chains of logic. In other scenarios, the function can be split using [EXTRACT FUNCTION](https://refactoring.com/catalog/extractFunction.html). Just make sure you extract natural and cohesive functions. Complex Methods can also be addressed by identifying complex conditional expressions and then using the [DECOMPOSE CONDITIONAL](https://refactoring.com/catalog/decomposeConditional.html) refactoring.","change-type":"improved"},{"method":"SignerForm","why-it-occurs":"A Complex Method has a high cyclomatic complexity. The recommended threshold for the React language is a cyclomatic complexity lower than 10.","name":"Complex Method","file":"apps/web/src/components/tx-flow/features/SignerSelect/SignerForm/index.tsx","change-level":"improvement","is-hotspot?":false,"line":16,"what-changed":"SignerForm decreases in cyclomatic complexity from 26 to 24, threshold = 10","how-to-fix":"There are many reasons for Complex Method. Sometimes, another design approach is beneficial such as a) modeling state using an explicit state machine rather than conditionals, or b) using table lookup rather than long chains of logic. In other scenarios, the function can be split using [EXTRACT FUNCTION](https://refactoring.com/catalog/extractFunction.html). Just make sure you extract natural and cohesive functions. Complex Methods can also be addressed by identifying complex conditional expressions and then using the [DECOMPOSE CONDITIONAL](https://refactoring.com/catalog/decomposeConditional.html) refactoring.","change-type":"improved"},{"method":"InternalDeleteProposer.onConfirm","why-it-occurs":"A Complex Method has a high cyclomatic complexity. The recommended threshold for the React language is a cyclomatic complexity lower than 10.","name":"Complex Method","file":"apps/web/src/features/proposers/components/DeleteProposerDialog.tsx","change-level":"improvement","is-hotspot?":false,"line":81,"what-changed":"InternalDeleteProposer.onConfirm decreases in cyclomatic complexity from 13 to 11, threshold = 10","how-to-fix":"There are many reasons for Complex Method. Sometimes, another design approach is beneficial such as a) modeling state using an explicit state machine rather than conditionals, or b) using table lookup rather than long chains of logic. In other scenarios, the function can be split using [EXTRACT FUNCTION](https://refactoring.com/catalog/extractFunction.html). Just make sure you extract natural and cohesive functions. Complex Methods can also be addressed by identifying complex conditional expressions and then using the [DECOMPOSE CONDITIONAL](https://refactoring.com/catalog/decomposeConditional.html) refactoring.","change-type":"improved"},{"method":"EditProposerDialog","why-it-occurs":"A Complex Method has a high cyclomatic complexity. The recommended threshold for the React language is a cyclomatic complexity lower than 10.","name":"Complex Method","file":"apps/web/src/features/proposers/components/EditProposerDialog.tsx","change-level":"improvement","is-hotspot?":false,"line":13,"what-changed":"EditProposerDialog decreases in cyclomatic complexity from 11 to 10, threshold = 10","how-to-fix":"There are many reasons for Complex Method. Sometimes, another design approach is beneficial such as a) modeling state using an explicit state machine rather than conditionals, or b) using table lookup rather than long chains of logic. In other scenarios, the function can be split using [EXTRACT FUNCTION](https://refactoring.com/catalog/extractFunction.html). Just make sure you extract natural and cohesive functions. Complex Methods can also be addressed by identifying complex conditional expressions and then using the [DECOMPOSE CONDITIONAL](https://refactoring.com/catalog/decomposeConditional.html) refactoring.","change-type":"improved"},{"method":"UpsertProposer.onConfirm","why-it-occurs":"A Complex Method has a high cyclomatic complexity. The recommended threshold for the React language is a cyclomatic complexity lower than 10.","name":"Complex Method","file":"apps/web/src/features/proposers/components/UpsertProposer.tsx","change-level":"improvement","is-hotspot?":false,"line":119,"what-changed":"UpsertProposer.onConfirm decreases in cyclomatic complexity from 12 to 10, threshold = 10","how-to-fix":"There are many reasons for Complex Method. Sometimes, another design approach is beneficial such as a) modeling state using an explicit state machine rather than conditionals, or b) using table lookup rather than long chains of logic. In other scenarios, the function can be split using [EXTRACT FUNCTION](https://refactoring.com/catalog/extractFunction.html). Just make sure you extract natural and cohesive functions. Complex Methods can also be addressed by identifying complex conditional expressions and then using the [DECOMPOSE CONDITIONAL](https://refactoring.com/catalog/decomposeConditional.html) refactoring.","change-type":"improved"},{"method":"usePendingSafeStatus","why-it-occurs":"A Complex Method has a high cyclomatic complexity. The recommended threshold for the TypeScript language is a cyclomatic complexity lower than 9.","name":"Complex Method","file":"apps/web/src/features/counterfactual/hooks/usePendingSafeStatuses.ts","change-level":"improvement","is-hotspot?":false,"line":70,"what-changed":"usePendingSafeStatus decreases in cyclomatic complexity from 31 to 28, threshold = 9","how-to-fix":"There are many reasons for Complex Method. Sometimes, another design approach is beneficial such as a) modeling state using an explicit state machine rather than conditionals, or b) using table lookup rather than long chains of logic. In other scenarios, the function can be split using [EXTRACT FUNCTION](https://refactoring.com/catalog/extractFunction.html). Just make sure you extract natural and cohesive functions. Complex Methods can also be addressed by identifying complex conditional expressions and then using the [DECOMPOSE CONDITIONAL](https://refactoring.com/catalog/decomposeConditional.html) refactoring.","change-type":"improved"},{"method":"AppSettingsContainer","why-it-occurs":"Overly long functions make the code harder to read. The recommended maximum function length for the React language is 120 lines of code. Severity: Brain Method - Complex Method - Long Method.","name":"Large Method","file":"apps/mobile/src/features/Settings/components/AppSettings/AppSettings.container.tsx","change-level":"improvement","is-hotspot?":false,"line":20,"what-changed":"AppSettingsContainer decreases from 178 to 177 lines of code, threshold = 120","how-to-fix":"We recommend to be careful here -- just splitting long functions don't necessarily make the code easier to read. Instead, look for natural chunks inside the functions that expresses a specific task or concern. Often, such concerns are indicated by a Code Comment followed by an if-statement. Use the [EXTRACT FUNCTION](https://refactoring.com/catalog/extractFunction.html) refactoring to encapsulate that concern.","change-type":"improved"},{"method":"useTokenBalances","why-it-occurs":"A Complex Method has a high cyclomatic complexity. The recommended threshold for the TypeScript language is a cyclomatic complexity lower than 9.","name":"Complex Method","file":"apps/mobile/src/features/Assets/components/Tokens/useTokenBalances.ts","change-level":"improvement","is-hotspot?":false,"line":23,"what-changed":"useTokenBalances is no longer above the threshold for cyclomatic complexity","how-to-fix":"There are many reasons for Complex Method. Sometimes, another design approach is beneficial such as a) modeling state using an explicit state machine rather than conditionals, or b) using table lookup rather than long chains of logic. In other scenarios, the function can be split using [EXTRACT FUNCTION](https://refactoring.com/catalog/extractFunction.html). Just make sure you extract natural and cohesive functions. Complex Methods can also be addressed by identifying complex conditional expressions and then using the [DECOMPOSE CONDITIONAL](https://refactoring.com/catalog/decomposeConditional.html) refactoring.","change-type":"fixed"}]},"notices":{"number-of-types":0,"number-of-files-touched":0,"findings":[]},"external-review-provider":"GitHub"},"analysistime":"2026-02-26T15:40:34.000Z","project-name":"safe-wallet-monorepo","repository":"https://github.com/safe-global/safe-wallet-monorepo.git"}}