Skip to content

Feat: Generic Sparkline Component & Grid Column #8954

@tobiu

Description

@tobiu

Goal

Promote the DevRank.view.SparklineComponent implementation to a generic framework component (Neo.component.Sparkline) and create a corresponding grid column (Neo.grid.column.Sparkline) to enable widespread usage.

Scope

  1. Create src/component/Sparkline.mjs:
    • Extend Neo.component.Canvas.
    • Port the controller logic from apps/devrank/view/SparklineComponent.mjs.
    • Ensure the renderer connection is configurable.
    • Update class names to be generic (e.g., neo-sparkline-canvas).
  2. Create src/grid/column/Sparkline.mjs:
    • Extend Neo.grid.column.Component.
    • Implement applyRecordConfigs to map record data fields to the component.
    • Set Neo.component.Sparkline as the default module.
  3. Create resources/scss/src/grid/column/Sparkline.scss:
    • Extract sparkline-specific styles from resources/scss/src/apps/devrank/GridContainer.scss.
    • Rename classes to match the generic component (e.g., .neo-sparkline-wrapper).
  4. Export:
    • Add Neo.grid.column.Sparkline to src/grid/column/_export.mjs.

Note

  • The Canvas worker renderer (apps/devrank/canvas/Sparkline.mjs) will be moved in a separate step.

Metadata

Metadata

Assignees

Labels

aienhancementNew feature or requestfeatureNew feature functionality

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions