Skip to content

chore(frontend): remove unused npm dependencies - #399

Merged
vermorag merged 1 commit into
mainfrom
feat/remove-extra-deps
Oct 24, 2026
Merged

vermorag merged 1 commit into
mainfrom
feat/remove-extra-deps

Conversation

@amazing-cat

@amazing-cat amazing-cat commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Removes npm packages that have no usage in the frontend or are already provided transitively by Laravel Mix. First PR of the upgrade stack: feat/laravel-12 (#395) is based on this branch.

Changes

  • Removed from package.json / pnpm-lock.yaml: axios-concurrency, cross-env, laravel-mix-alias (no references); chokidar, compression-webpack-plugin, css-loader (transitive via laravel-mix / laravel-mix-compress, the pnpm override is kept); vue-moment (only a Vue.use() registration, $moment and its filters are unused); vue-multiselect (only a CSS import, no .multiselect classes in the code); lodash.debounce (imports switched to lodash/debounce).
  • process is kept on purpose: Laravel Mix's legacy node polyfills resolve process/browser.js from the project root.

Verification

pnpm install --frozen-lockfile, pnpm lint and pnpm prod in node:24-slim.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Removed several frontend dependencies and integrations, including date-formatting support and multiselect styling.
    • Updated report and project screens to use a different Lodash debounce import. No changes to their behavior are indicated.

@amazing-cat
amazing-cat requested a review from a team October 24, 2026 19:47
@cattr-cla-bot

cattr-cla-bot Bot commented Oct 24, 2026

Copy link
Copy Markdown

Contributor License Agreement

✅ Every human contributor has accepted Cattr CLA version 1.

CLA SHA-256: 68cb254dc87c899f320d5a8977e7e380fd8f6cf6f9388e51d07d936f3a8ce38b

@coderabbitai

coderabbitai Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

Files ignored due to path filters: 1
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
Run configuration
Commits

Reviewing files that changed from the base of the PR and between d6f954c and 2295bc3.

Files ignored due to path filters: 1
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

No actionable comments were generated in the recent review.

Recent review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between f39614e and d6f954c.

Files ignored due to path filters: 1
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
Files selected for processing: 8
  • package.json
  • resources/frontend/core/index.js
  • resources/frontend/core/modules/PlannedTimeReport/views/PlannedTimeReport.vue
  • resources/frontend/core/modules/ProjectGroups/components/GroupProjects.vue
  • resources/frontend/core/modules/ProjectGroups/views/ProjectGroups.vue
  • resources/frontend/core/modules/ProjectReport/views/ProjectReport.vue
  • resources/frontend/core/modules/TimeUseReport/views/TimeuseReport.vue
  • resources/frontend/core/sass/app.scss
Files with no reviewable changes: 3
  • resources/frontend/core/sass/app.scss
  • resources/frontend/core/index.js
  • package.json

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.

Walkthrough

The change removes several package dependencies and Vue integrations. Five frontend components now import debounce from lodash/debounce instead of lodash.debounce.

Changes: Frontend dependency cleanup

Layer / File(s) Summary
Update debounce imports and dependencies
package.json, resources/frontend/core/modules/PlannedTimeReport/views/PlannedTimeReport.vue, resources/frontend/core/modules/ProjectGroups/components/GroupProjects.vue, resources/frontend/core/modules/ProjectGroups/views/ProjectGroups.vue, resources/frontend/core/modules/ProjectReport/views/ProjectReport.vue, resources/frontend/core/modules/TimeUseReport/views/TimeuseReport.vue
Five components now import debounce from lodash/debounce. The package manifest removes lodash.debounce and other listed dependencies.
Remove Vue integrations
package.json, resources/frontend/core/index.js, resources/frontend/core/sass/app.scss
The vue-moment import and registration, and the vue-multiselect stylesheet import, were removed. The package manifest also removes both dependencies.

Priority: Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Possibly related PRs

Suggested labels: dependencies, javascript

Suggested reviewers: vermorag

Merge Risk: Minimal · up to d6f95

No actionable build or runtime regression was established, so this cleanup is mergeable.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely describes the primary change: removing unused frontend npm dependencies. It also covers the related import updates.
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (5 skipped: 5 unsupported.)

Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Drop packages that have no usage outside package.json or are already
provided transitively by Laravel Mix:

- axios-concurrency, cross-env, laravel-mix-alias: no references
- chokidar, compression-webpack-plugin, css-loader: transitive via
  laravel-mix / laravel-mix-compress (pnpm override kept)
- vue-moment: only Vue.use() registration, $moment and filters unused
- vue-multiselect: only a CSS import, no .multiselect classes in code
- lodash.debounce: imports switched to lodash/debounce

`process` is kept: Laravel Mix's legacy node polyfills resolve
process/browser.js from the project root.

Verified with pnpm install --frozen-lockfile, pnpm lint and pnpm prod
in node:24-slim.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@vermorag
vermorag force-pushed the feat/remove-extra-deps branch from d6f954c to 2295bc3 Compare October 24, 2026 19:54
@vermorag
vermorag enabled auto-merge October 24, 2026 19:59
@vermorag
vermorag merged commit 33da4c3 into main Oct 24, 2026
12 checks passed
@vermorag
vermorag deleted the feat/remove-extra-deps branch October 24, 2026 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants