Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add hardware usage widget #848

Closed
wants to merge 1 commit into from

Conversation

manuel-rw
Copy link
Member

@manuel-rw manuel-rw commented Jul 21, 2024


Homarr

Thank you for your contribution. Please ensure that your pull request meets the following pull request:

  • Builds without warnings or errors (pnpm buid, autofix with pnpm format:fix)
  • Pull request targets dev branch
  • Commits follow the conventional commits guideline
  • No shorthand variable names are used (eg. x, y, i or any abbrevation)

image

The widget does not include the storage graphs yet. I will implement them in a second step.
Also the widget doesn't scale well yet - maybe this would be something @SeDemal could do quickly? You understand it much better than I do :D

@manuel-rw manuel-rw self-assigned this Jul 21, 2024
@manuel-rw manuel-rw force-pushed the feature/hardware-usage-widget branch from 74b8043 to 1a7aed8 Compare July 22, 2024 19:26
@manuel-rw manuel-rw force-pushed the feature/hardware-usage-widget branch from b602105 to 78ac370 Compare August 6, 2024 16:12
Copy link

deepsource-io bot commented Aug 6, 2024

Here's the code health analysis summary for commits d76b4d0..4f08ef5. View details on DeepSource ↗.

Analysis Summary

AnalyzerStatusSummaryLink
DeepSource JavaScript LogoJavaScript❌ Failure
❗ 13 occurences introduced
View Check ↗

💡 If you’re a repository administrator, you can configure the quality gates from the settings.

Copy link

github-actions bot commented Aug 6, 2024

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 21.22% 6385 / 30085
🔵 Statements 21.22% 6385 / 30085
🔵 Functions 24.22% 257 / 1061
🔵 Branches 58.61% 803 / 1370
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
packages/api/src/router/widgets/hardware-usage.ts 0% 0% 0% 0% 1-53
packages/api/src/router/widgets/index.ts 0% 0% 0% 0% 1-30
packages/cron-jobs-core/src/creator.ts 0% 0% 0% 0% 1-112
packages/cron-jobs-core/src/expressions.ts 0% 0% 0% 0% 1-11
packages/cron-jobs/src/index.ts 0% 0% 0% 0% 1-34
packages/cron-jobs/src/jobs/integrations/hardware-usage.ts 0% 0% 0% 0% 1-67
packages/definitions/src/integration.ts 96.81% 100% 16.66% 96.81% 162, 165, 198-200
packages/definitions/src/widget.ts 100% 100% 100% 100%
packages/integrations/src/index.ts 100% 100% 100% 100%
packages/integrations/src/base/creator.ts 55.81% 100% 0% 55.81% 28-37, 40-51
packages/integrations/src/base/integration.ts 87.5% 92.3% 80% 87.5% 27-28, 33-38, 77-79
packages/integrations/src/dashdot/dashdot-integration.ts 22.22% 100% 0% 22.22% 9-11, 14-19, 22-27, 30-35, 38-44
packages/integrations/src/interfaces/hardware-usage/cpu-load.ts 0% 0% 0% 0%
packages/integrations/src/interfaces/hardware-usage/memory-load.ts 0% 0% 0% 0%
packages/integrations/src/interfaces/hardware-usage/network-load.ts 0% 0% 0% 0%
packages/integrations/src/interfaces/hardware-usage/server-info.ts 0% 0% 0% 0%
packages/old-import/src/widgets/options.ts 78.94% 100% 0% 78.94% 33-40, 144-165
packages/old-import/src/widgets/definitions/index.ts 96% 100% 0% 96% 80
packages/widgets/src/index.tsx 52% 100% 0% 52% 65-81, 96-105
packages/widgets/src/hardware-usage/component.tsx 0% 0% 0% 0% 1-62
packages/widgets/src/hardware-usage/index.ts 100% 100% 100% 100%
packages/widgets/src/hardware-usage/graphs/cpu-graph.tsx 0% 0% 0% 0% 1-71
packages/widgets/src/hardware-usage/graphs/memory-graph.tsx 0% 0% 0% 0% 1-73
packages/widgets/src/hardware-usage/graphs/network-graph.tsx 0% 0% 0% 0% 1-104
packages/widgets/src/hardware-usage/graphs/wrapper.tsx 0% 0% 0% 0% 1-22
Generated in workflow #3837 for commit 4f08ef5 by the Vitest Coverage Report Action

@manuel-rw manuel-rw force-pushed the feature/hardware-usage-widget branch from dd5ea56 to 4a57cc6 Compare August 8, 2024 17:19
@SeDemal SeDemal self-assigned this Aug 19, 2024
@SeDemal
Copy link
Collaborator

SeDemal commented Aug 19, 2024

I'm noticing a few things I'm implementing in the download clients could be really useful, here or everywhere else really.
I'll make sure to 100% finish it asap so I can get started properly on this widget.

@manuel-rw manuel-rw force-pushed the feature/hardware-usage-widget branch from 7bc3c58 to 2af5f6e Compare September 1, 2024 13:48
@manuel-rw manuel-rw force-pushed the feature/hardware-usage-widget branch 3 times, most recently from d30c412 to 5655254 Compare September 16, 2024 19:33
@manuel-rw manuel-rw force-pushed the feature/hardware-usage-widget branch from ba048e0 to cd0c1d6 Compare September 18, 2024 19:08
@manuel-rw manuel-rw assigned SeDemal and unassigned manuel-rw Sep 18, 2024
@manuel-rw manuel-rw force-pushed the feature/hardware-usage-widget branch from a39988d to 3049584 Compare October 20, 2024 13:19
@manuel-rw manuel-rw assigned manuel-rw and unassigned SeDemal Oct 20, 2024
@manuel-rw manuel-rw force-pushed the feature/hardware-usage-widget branch from 96d5864 to b7428a2 Compare October 22, 2024 18:24
@Meierschlumpf Meierschlumpf force-pushed the dev branch 2 times, most recently from 09ac2bf to c37a0e3 Compare October 23, 2024 15:30
@manuel-rw manuel-rw force-pushed the feature/hardware-usage-widget branch 2 times, most recently from fd6f204 to b98d876 Compare November 2, 2024 21:20
@manuel-rw manuel-rw marked this pull request as ready for review November 2, 2024 21:20
@manuel-rw manuel-rw requested a review from a team as a code owner November 2, 2024 21:20
@manuel-rw manuel-rw force-pushed the feature/hardware-usage-widget branch from b98d876 to 76fae25 Compare November 2, 2024 21:20
@manuel-rw manuel-rw linked an issue Nov 2, 2024 that may be closed by this pull request
@manuel-rw manuel-rw force-pushed the feature/hardware-usage-widget branch from 76fae25 to 4f08ef5 Compare November 23, 2024 23:17
@manuel-rw manuel-rw closed this Nov 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dash.
2 participants