Skip to content

#5687 - Disable View assessment when assessment data not available#5892

Open
weskubo-cgi wants to merge 2 commits intomainfrom
feature/#5687-assessment-disable-view
Open

#5687 - Disable View assessment when assessment data not available#5892
weskubo-cgi wants to merge 2 commits intomainfrom
feature/#5687-assessment-disable-view

Conversation

@weskubo-cgi
Copy link
Collaborator

@weskubo-cgi weskubo-cgi commented Mar 12, 2026

Overview

  • Update View logic in Assessment to prevent viewing when the assessment data isn't available (e.g. when supporting user info is pending). Note, the View Assessment screen already handles missing assessment data gracefully.
  • Updated button styling

Screenshots

Ministry - Supporting User declaration pending (View hidden)

image image

Ministry - Unsuccessful Completion (View hidden - existing logic)

image

Ministry - View shown

image

Student - View shown

image

Institution - View shown

image

@weskubo-cgi weskubo-cgi self-assigned this Mar 12, 2026
@sonarqubecloud
Copy link

@github-actions
Copy link

Backend Unit Tests Coverage Report

Totals Coverage
Statements: 20.17% ( 4564 / 22624 )
Methods: 9.52% ( 262 / 2751 )
Lines: 24.51% ( 3916 / 15977 )
Branches: 9.91% ( 386 / 3896 )

@github-actions
Copy link

E2E Workflow Workers Coverage Report

Totals Coverage
Statements: 48.61% ( 2712 / 5579 )
Methods: 38.57% ( 285 / 739 )
Lines: 55.39% ( 2049 / 3699 )
Branches: 33.13% ( 378 / 1141 )

Copy link
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 updates the Assessment history UI logic to avoid showing the View action when the assessment data is not available (e.g., when supporting user information is pending), aligning the History table behavior with cases where the assessment cannot actually be viewed.

Changes:

  • Updates the Assessment history table to show the View button only when assessmentDate is present and the row is not an unsuccessful-weeks entry.
  • Refactors the visibility condition into a dedicated showViewButton helper for clarity/reuse.

@github-actions
Copy link

E2E Queue Consumers Coverage Report

Totals Coverage
Statements: 79.6% ( 9155 / 11501 )
Methods: 78.79% ( 1181 / 1499 )
Lines: 82.83% ( 6881 / 8307 )
Branches: 64.48% ( 1093 / 1695 )

@github-actions
Copy link

E2E SIMS API Coverage Report

Totals Coverage
Statements: 64.4% ( 12680 / 19689 )
Methods: 60.57% ( 1473 / 2432 )
Lines: 68.2% ( 9250 / 13564 )
Branches: 52.99% ( 1957 / 3693 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants