Skip to content

src/screens/Job: add CCIPSpec toml rendering #100

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Conversation

makramkd
Copy link
Contributor

Description

Add CCIPSpec toml rendering to the operator UI.

Steps to Test

  1. yarn test

Checklist

If this PR creates changes to the operator-ui itself, rather than tests, pipeline changes, etc. Then please create a changeset so that a new release is created, and the changelog is updated. See: https://github.com/changesets/changesets/blob/main/docs/adding-a-changeset.md#what-is-a-changeset

  • This PR has an accompanying changeset if needed.

@makramkd makramkd requested a review from Copilot April 16, 2025 11:33
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for CCIPSpec TOML rendering in the operator UI.

  • Modifies the job definition generator to handle CCIPSpec.
  • Introduces a test case verifying the CCIPSpec definition output.
  • Updates the GraphQL query in the JobView component and adds an accompanying changeset.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
src/screens/Job/generateJobDefinition.ts Adds CCIPSpec case to merge job and spec fields for TOML output.
src/screens/Job/generateJobDefinition.test.ts Adds test case for validating the generated CCIPSpec definition.
src/screens/Job/JobView.tsx Extends the GraphQL query to fetch additional CCIPSpec fields.
.changeset/silent-turkeys-deny.md Provides the changeset for a minor operator-ui release.
Comments suppressed due to low confidence (2)

src/screens/Job/generateJobDefinition.ts:295

  • Confirm that using 'CCIPSpec' for branch selection is intentional and clearly distinguishes between job.type and spec.__typename if both exist. This will help maintain consistency and reduce potential confusion.
case 'CCIPSpec':

src/screens/Job/JobView.tsx:151

  • Review the new fields (p2pv2Bootstrappers and relayConfigs) included in the CCIPSpec fragment to ensure they are consistent with the data rendered in the TOML output by generateJobDefinition. Confirm that these additional fields are required in the UI logic.
... on CCIPSpec {

@cl-sonarqube-production
Copy link

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