Skip to content

[AN-450465] S2 Line: Trendline showEndCaps prop for aggregate methods#804

Open
c-lamoureux wants to merge 1 commit into
mainfrom
epic/AN-450439/AN-450465
Open

[AN-450465] S2 Line: Trendline showEndCaps prop for aggregate methods#804
c-lamoureux wants to merge 1 commit into
mainfrom
epic/AN-450439/AN-450465

Conversation

@c-lamoureux

Copy link
Copy Markdown
Contributor

Description

Adds showEndCaps?: boolean to TrendlineOptions. When true, renders caret end markers (reusing REFERENCE_LINE_START_CAP_PATH / REFERENCE_LINE_END_CAP_PATH) at both ends of aggregate trendlines (mean, median, mode, min, max). Scoped to aggregate methods only — regression and window trendlines do not support end caps.

Related Issue

Jira: AN-450465 (AN-450439)

Motivation and Context

The S2 Figma designs show trendlines with optional caret decorations at both ends, matching the reference line visual language. This prop brings trendline end caps into parity with that design intent.

How Has This Been Tested?

  • Unit tests updated and passing
  • Build and TSC verified clean (pre-existing TSC errors excluded)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

🤖 Generated with Claude Code

Adds optional arrowhead caps at both endpoints of average/median trendlines.
Reuses REFERENCE_LINE_START_CAP_PATH / REFERENCE_LINE_END_CAP_PATH path marks
already defined in constants; not supported for regression or window methods.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
89.3% Coverage on New Code (required ≥ 90%)

See analysis details on SonarQube Cloud

@github-actions

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant