Skip to main content

Bug #440 — WO/SO: JSA review comments blocked during co-review

Issue: #440 Reporter: Kang-Supreeya Date: 2026-02-18 Version: Preview35 Severity: Medium Frequency: Always


Description

Work Owner and Safety Officer cannot add review comments in the "Reviewer Comments" section during JSA co-review state. The comment textarea and "Add Comment" button are hidden. This is a regression from the review comments feature (#430).

Related: #430 (JSA review comments feature — implemented in Preview35)

Location

Tasks > JSA Preparation > Open JSA document > Reviewer Comments section (bottom of form)

Bug Details

RoleExpectedActual
Work OwnerCan add review comments during co-reviewComment area hidden
Safety OfficerCan add review comments during co-reviewComment area hidden

Steps to Reproduce

  1. Login as Work Owner or Safety Officer
  2. Go to Tasks > JSA Preparation (during co-review state)
  3. Open a JSA document
  4. Scroll to "Reviewer Comments" section at bottom
  5. Observe — comment textarea and add button are missing

Root Cause

The review comments visibility depended on isFormEditable(), which returns false during co-review because the form is in read-only mode for approval. This blocked both editing AND commenting, but comments should still be allowed for WO/SO during review.

Fix Applied

LayerChange
FrontendChanged canAddReviewComment to allow WO/SO comments during co-review state (when documentApprovalEnabled is true)
FrontendFixed workflow stepper showing step 1 instead of completed for approved JSA/Tool List tasks

PR: (pending)

What to Test

#Test CaseStatus
1Login as WO during co-review > Open JSA > Can add review comment🔍 In Review
2Login as SO during co-review > Open JSA > Can add review comment🔍 In Review
3Login as Contractor > Open JSA > Cannot add review comment (read-only)🔍 In Review
4Task completed > Open JSA > No one can add comments🔍 In Review
5Approved/completed task > Stepper shows all steps completed🔍 In Review