Skip to content

Show error msg on Job Details page in toast if Job was Failed#9

Merged
babourine merged 5 commits intomainfrom
CU-86dwv08te_Heimdall-Job-Details-Error-Message
Jun 3, 2025
Merged

Show error msg on Job Details page in toast if Job was Failed#9
babourine merged 5 commits intomainfrom
CU-86dwv08te_Heimdall-Job-Details-Error-Message

Conversation

@gauravwarale
Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings June 2, 2025 10:40
Copy link
Copy Markdown
Contributor

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 functionality to display an error toast on the Job Details page when a job fails.

  • Adds a conditional toast in JobDetails.tsx to show error messages when job status is 'FAILED'.
  • Extends JobType in Helper.tsx to include an optional error field.
  • Introduces a new ToastContainer component and integrates it into the app layout in layout.tsx.

Reviewed Changes

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

File Description
web/src/modules/Jobs/JobDetails/JobDetails.tsx Added conditional toast logic to display error messages on failure.
web/src/modules/Jobs/Helper.tsx Updated JobType to optionally include an error message.
web/src/common/ToastContainer/ToastContainer.tsx Introduced a new ToastContainer component in the UI.
web/src/app/layout.tsx Integrated the ToastContainer within the main layout.

Comment thread web/src/modules/Jobs/JobDetails/JobDetails.tsx Outdated
Comment thread web/src/modules/Jobs/JobDetails/JobDetails.tsx Outdated
@babourine babourine merged commit e1963b0 into main Jun 3, 2025
5 checks passed
@babourine babourine deleted the CU-86dwv08te_Heimdall-Job-Details-Error-Message branch June 3, 2025 21:03
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.

4 participants