Skip to content

fix(charts): Rename LineSeries factory to lowercase for React Compiler - #121927

Open
sentry[bot] wants to merge 2 commits into
masterfrom
seer/fix/chart-lineseries-naming
Open

fix(charts): Rename LineSeries factory to lowercase for React Compiler#121927
sentry[bot] wants to merge 2 commits into
masterfrom
seer/fix/chart-lineseries-naming

Conversation

@sentry

@sentry sentry Bot commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

The LineSeries function in components/charts/series/lineSeries.tsx is an ECharts option factory, not a React component. However, its capitalized name caused the React Compiler's CapitalizedCalls diagnostic to flag it as a potential component being called incorrectly (without JSX).

This change renames LineSeries to lineSeries (lowercase) in its definition and updates all import statements and call sites across the codebase. This resolves the no-capitalized-function-calls warning without altering any functionality, aligning the naming convention with React Compiler expectations for non-component functions.

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

Fixes CODING-CONVENTIONS-1PA

@sentry
sentry Bot requested review from a team as code owners August 13, 2026 01:43
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Aug 13, 2026
@ryan953 ryan953 added the Trigger: getsentry tests Once code is reviewed: apply label to PR to trigger getsentry tests label Aug 13, 2026
The rename of the LineSeries factory to lineSeries left eight modules importing the old capitalized name, breaking typecheck and the frontend build.
@ryan953
ryan953 requested review from a team as code owners August 13, 2026 05:12
@github-actions github-actions Bot removed the Trigger: getsentry tests Once code is reviewed: apply label to PR to trigger getsentry tests label Aug 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant