Skip to content

fix: keep stale needs_more_info copy out of trader status after resubmit - #54

Open
ginaxu1 wants to merge 1 commit into
mainfrom
fix/stale-needs-more-info-after-resubmit
Open

fix: keep stale needs_more_info copy out of trader status after resubmit#54
ginaxu1 wants to merge 1 commit into
mainfrom
fix/stale-needs-more-info-after-resubmit

Conversation

@ginaxu1

@ginaxu1 ginaxu1 commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Resolves https://github.com/LSFLK/lsf-govtech-tnsw/issues/103

Recreation of #52 on latest main (#49 is already merged). Same defect class on other same-step needs_more_info loops: after the trader resubmits, QUEUED_EXTERNALLY still showed leftover officer “please correct / resubmit” copy as current status.

Summary

  • Split trader UI by task state, matching the SLTB blendsheet / pickup-scheduling pattern.
  • PENDING_USER / COMPLETED: action-required or terminal assessment (deficiencies, approve).
  • QUEUED_EXTERNALLY: Current Status (submitted vs resubmitted, awaiting officer). Prior officer comments move to Review History.
  • Applied to:
    • NPQS phytosanitary apply
    • NPQS treatment request
    • FCAU health-cert apply
    • FCAU lab-fee and post-warehouse lab-fee payment
    • Customs CusDec
    • CDA coconut cert, King Coconut / Fresh Nuts, and kernel ASYCUDA apply

Not changed: split-step loops (NPQS docs upload↔review, treatment-cert upload↔review), SLTB levy, CDA lot adjustment, SLTB pickup scheduling — those already hide correction copy except when the trader can act.

Test plan

  • First submit → QUEUED_EXTERNALLY shows submitted / awaiting; no deficiency banner; no Review History
  • Officer selects needs_more_infoPENDING_USER shows deficiencies / “please resubmit”
  • Trader resubmits → QUEUED_EXTERNALLY shows resubmitted / awaiting; officer comments only under Review History
  • Officer approves → COMPLETED shows the terminal assessment, not the old correction copy

@coderabbitai

coderabbitai Bot commented Sep 1, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Team

Run ID: 5bc80339-194f-40c2-904c-49f1db4f6ab8


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Same-step correction loops were still showing "please resubmit" as current
status in QUEUED_EXTERNALLY because leftover officer outcome data was not
gated by task state. Split awaiting vs action-required banners the same
way as the SLTB blendsheet fix.

Co-authored-by: Cursor <cursoragent@cursor.com>
@Aravinda-HWK
Aravinda-HWK force-pushed the fix/stale-needs-more-info-after-resubmit branch from d5bdccf to 6261721 Compare September 6, 2026 05:26
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.

1 participant