Skip to content

fix: use component-defined color for GraphQL mapper#4754

Open
Lucky-Rathore wants to merge 1 commit into
superplanehq:mainfrom
Lucky-Rathore:fix/graphql-component-color
Open

fix: use component-defined color for GraphQL mapper#4754
Lucky-Rathore wants to merge 1 commit into
superplanehq:mainfrom
Lucky-Rathore:fix/graphql-component-color

Conversation

@Lucky-Rathore
Copy link
Copy Markdown

What changed

Changed the GraphQL mapper to use the component's defined color instead of hardcoded black.

Why

The GraphQL component was appearing darker than other core components because the mapper was using getColorClass("black") instead of using the component's defined color (violet).

How

Updated web_src/src/pages/workflowv2/mappers/graphql.ts to use getColorClass(context.componentDefinition.color) which matches the pattern used by other integration components.

Closes #4483

The GraphQL component mapper was hardcoded to use black color instead
of using the component's defined violet color. This made it appear
darker than other core components.

Fixes superplanehq#4483

Signed-off-by: Lucky Rathore <luckyrathore03@gmail.com>
@superplanehq-integration
Copy link
Copy Markdown

👋 Commands for maintainers:

  • /sp start - Start an ephemeral machine (takes ~30s)
  • /sp stop - Stop a running machine (auto-executed on pr close)

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.

GraphQL component color is darker than the rest of the core components

1 participant