Skip to content

refactor: add AppInlineChart component#1889

Merged
pedrolamas merged 4 commits into
fluidd-core:developfrom
pedrolamas:pedrolamas/refactor-inline-charts
Jun 22, 2026
Merged

refactor: add AppInlineChart component#1889
pedrolamas merged 4 commits into
fluidd-core:developfrom
pedrolamas:pedrolamas/refactor-inline-charts

Conversation

@pedrolamas

Copy link
Copy Markdown
Member

Adds new AppInlineChart component for easy inline charts usage across Fluidd.

Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
@pedrolamas pedrolamas added this to the 1.37.2 milestone Jun 22, 2026
@pedrolamas pedrolamas requested a review from Copilot June 22, 2026 11:57
@pedrolamas pedrolamas added the Code - Optimizations Everything that relates to code optimizations! label Jun 22, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Refactors the system widget inline charts to use a new shared AppInlineChart UI component, replacing the dedicated SystemChart wrapper.

Changes:

  • Add AppInlineChart component to standardize inline chart rendering + label/value display.
  • Update system widget chart components (memory/load/MCU/Klipper/Moonraker) to pass label definitions via a new labels computed property.
  • Remove the now-redundant SystemChart component.

Reviewed changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/components/widgets/system/SystemMemoryChart.vue Migrates to AppInlineChart and supplies label metadata for memory usage.
src/components/widgets/system/SystemLoadChart.vue Migrates to AppInlineChart and supplies label metadata for system load (incl. cores suffix).
src/components/widgets/system/MoonrakerLoadChart.vue Migrates to AppInlineChart and supplies label metadata for Moonraker load.
src/components/widgets/system/McuLoadChart.vue Migrates to AppInlineChart and supplies two labels (load + awake).
src/components/widgets/system/KlipperLoadChart.vue Migrates to AppInlineChart and supplies label metadata for Klipper load.
src/components/widgets/system/SystemChart.vue Removed (replaced by AppInlineChart).
src/components/ui/AppInlineChart.vue New shared component that renders an inline chart and derived label/value rows.
components.d.ts Updates global component typing to include AppInlineChart (and regenerated Vuetify typings).

Comment thread src/components/ui/AppInlineChart.vue
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 7 out of 8 changed files in this pull request and generated 2 comments.

Comment thread src/components/ui/AppInlineChart.vue
Comment thread src/components/ui/AppInlineChart.vue
- Drop `inheritAttrs: false`: the root `<v-col>` never forwarded
  `$attrs`/`$listeners`, so the flag only blocked passthrough.
- Treat empty arrays as empty in `isEmpty`, matching AppDataTableRow.
- Remove the unused `customGetter` prop and Getter/DefaultGetter types;
  `suffix` covers every consumer.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 7 out of 8 changed files in this pull request and generated no new comments.

Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
@pedrolamas pedrolamas merged commit 1f87be8 into fluidd-core:develop Jun 22, 2026
4 checks passed
@pedrolamas pedrolamas deleted the pedrolamas/refactor-inline-charts branch June 22, 2026 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Code - Optimizations Everything that relates to code optimizations!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants