dheerajnaik259 / data-management
Code health
Hotspots average 6.1, the place fixes pay off most.
Explore this codebase
- Code health map20hotspots across 119 files
- Ownership95sole-owned files: one author, no second reader
- Architecture3modules, 2 entry points
- Decisions4recorded, of which 0 accepted and 4 awaiting review
- Refactoring1open opportunity, one per file
- TestsNo coverage report yet. Run your tests with coverage on, then add the report:
AlsoDocsChatFilesKnowledge graphChange couplingCommitsStatsCosts
Do next · 4
4 things worth doing in the week to Nov 13, the last indexed commit.
Worth planning
Break up InvoicePreviewModal (CCN 68, 304 lines)
src/components/invoices/InvoicePreviewModal.tsx:72
InvoicePreviewModal has many paths; easier to read and change once split, which also removes a duplicate; function changed in 7 commits; its file is imported by 4 files, changed 7 times in 90 days.
- gain
- up to +2.3 health on this file(inferred)
- finding
- Complex method
- size
- CCN 68, 304 lines
- severity
- high
Medium effort, worth a checkBreak up CameramanForm (CCN 42, 102 lines)
src/components/cameramen/CameramanForm.tsx:30
CameramanForm has many paths; easier to read and change once split, which also removes a duplicate; function changed in 8 commits; its file is imported by 3 files, changed 8 times in 90 days.
- gain
- up to +2.7 health on this file(inferred)
- finding
- Complex method
- size
- CCN 42, 102 lines
- severity
- high
Medium effort, worth a checkTidy the code shape this week's commits left: 35 findings in 24 files
6 commits in the last 7 days added or worsened long, complex or deeply nested code, still open. Start with
src/routes/Shoots.tsx(2 findings): tidying it while the change is fresh costs less than after the next one.- code-shape findings
- 35
- files
- 24
- commits
- 6
Large effortBreak up ClientForm (CCN 48, 127 lines)
src/components/clients/ClientForm.tsx:34
ClientForm has many paths; easier to read and change once split, which also removes a duplicate; function changed in 6 commits; its file is imported by 3 files, changed 6 times in 90 days.
- gain
- up to +2.2 health on this file(inferred)
- finding
- Complex method
- size
- CCN 48, 127 lines
- severity
- high
Medium effort, worth a check
Improve what Repowise can see
Add a test coverage report
Without one, Repowise cannot tell tested code from untested code, so every test-related action says “unknown”.
- line coverage
- Unknown, no report
Small effort
Everything we found
5 areas
Every detector's open count by area. The actions above are the part worth doing.
- Code health177 open findingsCriticalChange entropy · src/routes/Settings.tsx23 findings · 6.1 deducted
- Refactoring1 open opportunitiesLowgenerateClientInvoicePDF+0.3 health, M effort · src/utils/pdfGenerator.ts
- Decisions4 to reviewMediumsrc/routes/Dashboard.tsx4 awaiting review, 0 drifting from the code
- Ownership95 sole-owned filesMediumsrc/context/DataContext.tsxOne author, no second reader
- Dead code2LowremoveFileUnreachable function (5 lines)