Skip to content

chore(dashboard): remove 5 unused files#10408

Merged
ChmaraX merged 1 commit intonextfrom
cursor/dead-code-cleanup-355b
Mar 19, 2026
Merged

chore(dashboard): remove 5 unused files#10408
ChmaraX merged 1 commit intonextfrom
cursor/dead-code-cleanup-355b

Conversation

@cursor
Copy link
Contributor

@cursor cursor bot commented Mar 19, 2026

Summary

Removed 5 unused dashboard files identified by knip dead-code analysis. All files had zero importers across the codebase.

Changes

# File What was removed Rationale
1 apps/dashboard/src/utils/time.ts Deleted file Zero importers outside the also-unused time-picker.tsx
2 apps/dashboard/src/components/primitives/time-picker.tsx Deleted file Zero importers, only consumer of time.ts
3 apps/dashboard/src/components/icons/repeat-round-line.tsx Deleted file Zero importers, unused SVG icon component
4 apps/dashboard/src/components/resource-row.tsx Deleted file Zero importers, not used in any page or component
5 apps/dashboard/src/components/tree-view.tsx Deleted file Zero importers, unused TreeView component

Validation

  • tsc --noEmit (dashboard): passed — zero new errors
  • Changes reverted: 0

Skipped findings

The knip report found 118 unused files and 486 unused exports total. The remaining items were skipped for one or more of these reasons:

  • Barrel index.ts re-exports (may be imported via directory path)
  • NestJS providers potentially wired via @Module() decorators
  • Config, migration, seed, script, or infrastructure files
  • Files under enterprise/
  • *.module.ts, main.ts, package.json, tsconfig*, or *.config.* files
  • Insufficient confidence for automated removal

This automation runs periodically and will pick up more candidates in future runs.

Full knip report

The knip scan found 118 unused files and 486 unused exports across the monorepo. 5 of the safest unused files were removed in this PR. The remaining findings require manual review due to NestJS module wiring, barrel re-exports, config files, or enterprise scope.

Open in Web View Automation 

Co-authored-by: Adam Chmara <adam.chmara1@gmail.com>
@netlify
Copy link

netlify bot commented Mar 19, 2026

Deploy Preview for dashboard-v2-novu-staging ready!

Name Link
🔨 Latest commit 950318e
🔍 Latest deploy log https://app.netlify.com/projects/dashboard-v2-novu-staging/deploys/69bc21ffbaf8590009e39b8a
😎 Deploy Preview https://deploy-preview-10408.dashboard-v2.novu-staging.co
📱 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 project configuration.

@github-actions
Copy link
Contributor

Hey there and thank you for opening this pull request! 👋

We require pull request titles to follow specific formatting rules and it looks like your proposed title needs to be adjusted.

Your PR title is: chore(dashboard): remove 5 unused files

Requirements:

  1. Follow the Conventional Commits specification
  2. As a team member, include Linear ticket ID at the end: fixes TICKET-ID or include it in your branch name

Expected format: feat(scope): Add fancy new feature fixes NOV-123

Details:

PR title must end with 'fixes TICKET-ID' (e.g., 'fixes NOV-123') or include ticket ID in branch name

@ChmaraX ChmaraX marked this pull request as ready for review March 19, 2026 16:42
@ChmaraX ChmaraX merged commit 7595f9f into next Mar 19, 2026
29 checks passed
@ChmaraX ChmaraX deleted the cursor/dead-code-cleanup-355b branch March 19, 2026 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants