Skip to content

#5569 - Fix defect when viewing empty assessment#5763

Merged
weskubo-cgi merged 2 commits intomainfrom
feature/#5569-empty-assessment-defect
Feb 12, 2026
Merged

#5569 - Fix defect when viewing empty assessment#5763
weskubo-cgi merged 2 commits intomainfrom
feature/#5569-empty-assessment-defect

Conversation

@weskubo-cgi
Copy link
Copy Markdown
Collaborator

@weskubo-cgi weskubo-cgi commented Feb 11, 2026

Overview

Fixed issue where clicking View when no assessment has been created shows a blank screen. Recent update to toggled logic did not take into account that there is a prop default of {}. Changed default to undefined so existing logic works as expected. Note, there will be a future fix to disable or hide the View button in this scenario.

image image

@weskubo-cgi weskubo-cgi self-assigned this Feb 11, 2026
@weskubo-cgi weskubo-cgi added Bug Something isn't working Web portal labels Feb 11, 2026
@weskubo-cgi weskubo-cgi requested a review from Copilot February 11, 2026 20:32
@weskubo-cgi weskubo-cgi changed the title Removed prop default which caused toggled check to fail. #5569 - Fix defect when viewing empty assessment Feb 11, 2026
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

Fixes a UI blank-screen scenario in the student application “Assessment Award” details flow by ensuring the “no assessment data” state is detectable (instead of being masked by an empty-object default).

Changes:

  • Removed the {} default for assessmentAwardData so falsy checks (e.g., toggle/empty-state rendering) work correctly.

@github-actions
Copy link
Copy Markdown

E2E SIMS API Coverage Report

Totals Coverage
Statements: 77.84% ( 9057 / 11635 )
Methods: 77.34% ( 1058 / 1368 )
Lines: 82% ( 6564 / 8005 )
Branches: 63.44% ( 1435 / 2262 )

@@ -53,7 +53,6 @@ export default defineComponent({
assessmentAwardData: {
type: Object as PropType<AwardDetailsAPIOutDTO>,
required: true,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

We can follow the copilot suggestion and add loading like we do with some other components. This will ensure that till the time the assessmentAwardData is fulfilled with the API call, it will show loading for a few fraction of seconds / seconds.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Thanks for the suggestion. I ended up going with the simplest approach.

@sonarqubecloud
Copy link
Copy Markdown

@github-actions
Copy link
Copy Markdown

Backend Unit Tests Coverage Report

Totals Coverage
Statements: 20.39% ( 4426 / 21705 )
Methods: 9.94% ( 262 / 2636 )
Lines: 24.51% ( 3778 / 15414 )
Branches: 10.56% ( 386 / 3655 )

@github-actions
Copy link
Copy Markdown

E2E Workflow Workers Coverage Report

Totals Coverage
Statements: 75.41% ( 1055 / 1399 )
Methods: 79.31% ( 115 / 145 )
Lines: 78.79% ( 769 / 976 )
Branches: 61.51% ( 171 / 278 )

@weskubo-cgi
Copy link
Copy Markdown
Collaborator Author

404 is now handled gracefully. In the future, the user shouldn't be able to navigate to the screen in this scenario (unless by direct url navigation).

image

@github-actions
Copy link
Copy Markdown

E2E Queue Consumers Coverage Report

Totals Coverage
Statements: 85.68% ( 1616 / 1886 )
Methods: 85% ( 187 / 220 )
Lines: 88.64% ( 1287 / 1452 )
Branches: 66.36% ( 142 / 214 )

Copy link
Copy Markdown
Collaborator

@dheepak-aot dheepak-aot left a comment

Choose a reason for hiding this comment

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

Thanks for taking care of the bug. Looks good 👍

Copy link
Copy Markdown
Collaborator

@sh16011993 sh16011993 left a comment

Choose a reason for hiding this comment

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

LGTM @weskubo-cgi 👍

@weskubo-cgi weskubo-cgi added this pull request to the merge queue Feb 12, 2026
Merged via the queue into main with commit 85b15cc Feb 12, 2026
12 of 13 checks passed
@weskubo-cgi weskubo-cgi deleted the feature/#5569-empty-assessment-defect branch February 12, 2026 00:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Something isn't working Web portal

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants