diff --git a/.codescene/code-health-rules.json b/.codescene/code-health-rules.json new file mode 100644 index 000000000..97eebecff --- /dev/null +++ b/.codescene/code-health-rules.json @@ -0,0 +1,62 @@ +{ + "rule_sets": [ + { + "matching_content_path": "**/*.ts", + "rules": [ + { + "name": "Large Method", + "weight": 0.8 + }, + { + "name": "Complex Method", + "weight": 0.8 + }, + { + "name": "Lines of Code in a Single File", + "weight": 0.8 + }, + { + "name": "Number of Functions in a Single Module", + "weight": 0.8 + }, + { + "name": "Primitive Obsession", + "weight": 0.7 + } + ] + }, + { + "matching_content_path": "**/*.test.ts", + "rules": [ + { + "name": "Code Duplication", + "weight": 0.5 + }, + { + "name": "Large Method", + "weight": 0.5 + }, + { + "name": "Complex Method", + "weight": 0.5 + }, + { + "name": "Duplicated Assertion Blocks", + "weight": 0.0 + }, + { + "name": "Excess Number of Function Arguments", + "weight": 0.5 + }, + { + "name": "Large Assertion Blocks", + "weight": 0.7 + }, + { + "name": "Deep, Nested Complexity", + "weight": 0.7 + } + ] + } + ] +} diff --git a/src/components/Coaching/CoachingDetail/CoachingDetail.tsx b/src/components/Coaching/CoachingDetail/CoachingDetail.tsx index 4aa8a0d57..50f52530c 100644 --- a/src/components/Coaching/CoachingDetail/CoachingDetail.tsx +++ b/src/components/Coaching/CoachingDetail/CoachingDetail.tsx @@ -13,6 +13,7 @@ import { import { styled } from '@mui/material/styles'; import { useTranslation } from 'react-i18next'; import DonationHistories from 'src/components/Dashboard/DonationHistories'; +import MonthlyGoal from 'src/components/Dashboard/MonthlyGoal/MonthlyGoal'; import { useGetTaskAnalyticsQuery } from 'src/components/Dashboard/ThisWeek/NewsletterMenu/NewsletterMenu.generated'; import { navBarHeight } from 'src/components/Layouts/Primary/Primary'; import { useGetDonationGraphQuery } from 'src/components/Reports/DonationsReport/GetDonationGraph.generated'; @@ -213,6 +214,9 @@ export const CoachingDetail: React.FC = ({ } currencyCode={accountListData?.currency} /> + + +