Skip to content

feat(npqs): load tea and coconut commodity names from static data - #65

Merged
ginaxu1 merged 1 commit into
mainfrom
feat/npqs-tea-coconut-commodity-dropdowns
Sep 8, 2026
Merged

feat(npqs): load tea and coconut commodity names from static data#65
ginaxu1 merged 1 commit into
mainfrom
feat/npqs-tea-coconut-commodity-dropdowns

Conversation

@ginaxu1

@ginaxu1 ginaxu1 commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Additional request from Poorima in https://github.com/LSFLK/lsf-govtech-tnsw/issues/84
Values based on last 2 tabs "Coconut" and "Tea" in this Spreadsheet

Summary

NPQS phytosanitary application Commodity Common Name is now a dropdown of tea and coconut commodity names, loaded from one static_data artifact instead of a hardcoded list in each form copy.

Changes Made

  • Added tnsw/npqs/1-apply/commodity_common_names.data.json with 49 unique tea and coconut common names (case-duplicate "common coconut palm" omitted).
  • Registered it in tnsw/manifest.json as npqs-apply-phyto-cert--commodity-common-names (kind: static_data).
  • Pointed commodity_common_name on all 10 copies of npqs-apply-phyto-cert--user-form at that artifact via x-search (static-data, small-list), same pattern as importing country in PR refactor(npqs): load importing country list from static data artifact #60.
  • Updated the treatment-request officer view schema so the field is { value, label } to match the submitted object.
  • Botanical Name remains free text.

Verification

Manually verified. Confirmed the trader apply form renders the tea/coconut dropdown, selecting a name saves { value, label }, officer views show the selected label, and all user-form copies stay identical.

@coderabbitai

coderabbitai Bot commented Sep 7, 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: Advanced

Run ID: 42e017a2-63c7-44e9-81df-166a1762ec91


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.

@ginaxu1
ginaxu1 force-pushed the feat/npqs-tea-coconut-commodity-dropdowns branch 2 times, most recently from ca7938a to 07114f5 Compare September 7, 2026 07:02
@ginaxu1

ginaxu1 commented Sep 7, 2026

Copy link
Copy Markdown
Contributor Author
Screen.Recording.2026-09-07.at.12.28.46.mov

basically this but Ive since updated the dropdown values to be Title-cased, so "Sea Coconut Palm" instead of "sea coconut palm"

@ginaxu1
ginaxu1 requested a review from mushrafmim September 7, 2026 08:00
Replace the free-text commodity common name field with an x-search
dropdown sourced from a single static_data artifact, matching the
importing-country pattern.

Co-authored-by: Cursor <cursoragent@cursor.com>
@ginaxu1
ginaxu1 force-pushed the feat/npqs-tea-coconut-commodity-dropdowns branch from 07114f5 to dac89ea Compare September 8, 2026 03:53

@mushrafmim mushrafmim left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM! I tested manually. It's working E2E. But @Aravinda-HWK needs to approve.

@ginaxu1
ginaxu1 merged commit e65db98 into main Sep 8, 2026
1 check passed
@ginaxu1
ginaxu1 deleted the feat/npqs-tea-coconut-commodity-dropdowns branch September 8, 2026 07:12
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.

3 participants