Skip to main content

Service Report #017 In Review

Date: 2026-02-18


Bug Fix — JSA Co-Review Issues

This report covers 2 bug fixes, 1 related improvement, and 1 feature request pending clarification. Issues include review comments blocked during co-review, WO/SO unable to sign JSA during co-review, workflow stepper display for completed tasks, and a request for partial JSA approval.

Feature Overview

#FeaturePR/IssueTypeStatus
1JSA Review Comments Blocked During Co-Review#440Bug Fix Done
2Workflow Stepper Shows Step 1 for Completed TasksImprovement🔍 In Review
3WO/SO Cannot Sign JSA During Co-Review#442Bug Fix Done
4JSA Partial Approval Request#441Feature Request Done

1. JSA Review Comments Blocked During Co-Review

Issue: #440 Thai Name: เจ้าของงาน / จป : JSA คอมเม้นด้านล่างไม่ได้

Description: Work Owner and Safety Officer could not add review comments in the "Reviewer Comments" section during JSA co-review. The comment area was hidden because the form was in read-only mode for approval, which also blocked the comment feature.

Location: Tasks > JSA Preparation > Co-Review state > Open JSA document > Bottom of form

Behavior (After Fix)

RoleCo-Review StatePreparation StateCompleted
Work OwnerCan add/edit/delete commentsCan add/edit/delete commentsRead-only
Safety OfficerCan add/edit/delete commentsCannot add commentsRead-only
ContractorRead-only commentsCannot see commentsRead-only

What to Test

#Test CaseStatus
1Login as WO > Open JSA in co-review > Add review comment at bottom Pending
2Login as SO > Open JSA in co-review > Add review comment at bottom Pending
3Login as Contractor > Open JSA > Cannot add comments (read-only) Pending
4Task completed > No one can add comments Pending

2. Workflow Stepper Shows Step 1 for Completed Tasks

Thai Name: Stepper แสดงสถานะไม่ถูกต้องสำหรับงานที่เสร็จแล้ว

Description: When a JSA or Tool List task is approved and completed, the workflow stepper and workflow tab showed the task at step 1 instead of showing all steps as completed. This was because the backend sends the state name as "Approved" but the frontend only recognized "Completed".

Location: Tasks > JSA Preparation or Tool List Preparation > Completed task > Stepper tab and Workflow tab

Behavior (After Fix)

Task StateStepper DisplayWorkflow Tab
Approved / CompletedAll steps shown as completedShows final "Completed" state
In ProgressCurrent step highlightedShows current state

What to Test

#Test CaseStatus
1Open a completed JSA task > Stepper shows all steps completed Pending
2Open a completed Tool List task > Stepper shows all steps completed Pending
3Open a completed JSA task > Workflow tab shows "Completed" state Pending

3. WO/SO Cannot Sign JSA During Co-Review

Issue: #442 Thai Name: เจ้าของงาน / จป : เซ็น JSA ไม่ได้

Description: During JSA co-review, Work Owner and Safety Officer could not sign their respective signature slots. Additionally, roles could sign any slot (not restricted to their own), and the signing dialog loaded the wrong user's saved signature when switching between accounts.

Location: Tasks > JSA Preparation > Co-Review state > Open JSA document > Signature section

Behavior (After Fix)

RoleCan SignRequired Before Approve
Contractor"ผู้จัดทำ (ผู้รับเหมา)" onlyYes, before submitting JSA
Work Owner"ผู้อนุมัติ (เจ้าของงาน)" onlyYes, before approving
Safety Officer"ผู้อนุมัติ (เจ้าหน้าที่ความปลอดภัย)" onlyYes, before approving

Three-Layer Approval Gating

LayerWhat Happens
Form validationSubmit/Approve buttons disabled until current role signs their slot
Document approvalPer-document approve button disabled until signature is complete
Workflow commandAll JSA forms checked for current role's signatures before proceeding

What to Test

#Test CaseStatus
1Login as Contractor > Open JSA > Can only click "ผู้จัดทำ" slot > Other slots show gray placeholder Pending
2Login as WO in co-review > Can only click "ผู้อนุมัติ (เจ้าของงาน)" > Other slots show gray placeholder Pending
3Login as SO in co-review > Can only click "ผู้อนุมัติ (จป.)" > Other slots show gray placeholder Pending
4WO tries to approve without signing > Approve button is disabled Pending
5SO tries to approve without signing > Approve button is disabled Pending
6Contractor tries to submit without signing > Submit button is disabled + error dialog Pending
7Login as SO > Sign > Logout > Login as WO > Sign > Shows WO's saved signature (not SO's) Pending
8Multiple JSA forms > All must be signed before workflow approval Pending

4. JSA Partial Approval Request

Issue: #441 Thai Name: เจ้าของงาน / จป : JSA ไม่จำเป็นต้องเลือกทุกรายการก็สามารถอนุมัติได้

Description: Feature request from tester — WO/SO should be able to approve the JSA workflow without approving every individual JSA document. Currently, all JSA documents must be approved (with signatures) before the workflow-level "Approve JSA" button is enabled.

Location: Tasks > JSA Preparation > Co-Review state > Approve JSA button

Status: Pending clarification from requester. A comment has been posted on the GitHub issue asking for the real-world scenario and expected behavior for unapproved items.

Concerns

AspectCurrent DesignRequested Change
Per-document approvalMust approve all JSA documentsCan skip some documents
Workflow approvalBlocked until all documents approvedAllowed with partial approval
Signature requirementWO/SO must sign each JSA formUnclear

Open Questions

  1. What happens to unapproved JSA items? (Deleted, returned, or skipped?)
  2. What is the real-world scenario requiring partial approval?
  3. How do signatures work for items that are not approved?

Summary

#IssueStatus
1#440 — JSA review comments blocked during co-review Done
2Workflow stepper display for completed tasks🔍 In Review
3#442 — WO/SO cannot sign JSA during co-review Done
4#441 — JSA partial approval request Done