-
-
Notifications
You must be signed in to change notification settings - Fork 202
Feat: Generic Sparkline Component & Grid Column #8954
Copy link
Copy link
Closed
Labels
aienhancementNew feature or requestNew feature or requestfeatureNew feature functionalityNew feature functionality
Description
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
- 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).
- Extend
- Create
src/grid/column/Sparkline.mjs:- Extend
Neo.grid.column.Component. - Implement
applyRecordConfigsto map record data fields to the component. - Set
Neo.component.Sparklineas the default module.
- Extend
- 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).
- Extract sparkline-specific styles from
- Export:
- Add
Neo.grid.column.Sparklinetosrc/grid/column/_export.mjs.
- Add
Note
- The Canvas worker renderer (
apps/devrank/canvas/Sparkline.mjs) will be moved in a separate step.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
aienhancementNew feature or requestNew feature or requestfeatureNew feature functionalityNew feature functionality