Skip to content

Conversation

gauravwarale
Copy link
Contributor

This pull request updates how job context properties are accessed and structured in the job-related components. The main change is introducing a new parameters object inside the context field of the JobType, and updating all references to job context properties to use this new structure.

Type and data structure updates:

  • Updated the JobType type definition in Helper.tsx to nest properties inside a new parameters object within context.

Component logic updates:

  • Modified JobDetailsHeader.tsx to reference jobData.context.parameters.properties instead of jobData.context.properties when displaying job context properties.

@Copilot Copilot AI review requested due to automatic review settings August 20, 2025 09:50
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 pull request restructures the job context data model by nesting the properties object inside a new parameters container within the job's context field, and updates the UI component to access properties through this new nested structure.

  • Updated JobType type definition to wrap properties inside a new parameters object
  • Modified job details component to access context properties through the new nested path

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
web/src/modules/Jobs/Helper.tsx Added parameters wrapper around existing properties object in JobType definition
web/src/modules/Jobs/JobDetails/JobDetailsHeader.tsx Updated property access from context.properties to context.parameters.properties

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

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.

3 participants