← Tasks
P4: Salesforce LWC Package — Ship/Shop/Shield Components
completedcode_genP2REVENUE-26
Description
Build 3 Lightning Web Components for Salesforce AppExchange managed package:
1. c-rosetta-ship — Classify products from an Opportunity/Product record
- Input: product description, material, country of origin
- Output: HTS code, confidence, duty rate, reasoning
- Action: "Classify" button on Opportunity/Product page layouts
2. c-rosetta-shop — Calculate duty for a Quote line item
- Input: HTS code (from Ship), value, quantity, origin country
- Output: duty amount, MPF, HMF, total landed cost
- Action: "Calculate Duty" on Quote/Quote Line Item
3. c-rosetta-shield — Screen a Contact/Account against denied party lists
- Input: entity name, country, type (person/org)
- Output: PASS/HOLD/BLOCK, matched lists, confidence scores
- Action: "Compliance Check" on Account/Contact
Each LWC calls Gateway REST API via Named Credential (JWT Bearer).
Use SLDS (Salesforce Lightning Design System) for styling.
Include Agentforce Action wrappers for each component.
Reference:
- c8-infra/openapi/rosetta-api.yaml — API contract
- c8_platform/askrosetta_api/salesforce/ — existing SF integration patterns
Output: force-app/main/default/lwc/ directory structure with all 3 components + Agentforce actions
Target: c8-infra/salesforce/
Assignee
-
Claimed By
VS Lu
Created
8h ago
Completed
11h ago
Cost
Input Tokens
-
Output Tokens
-
Est. USD
-
Result
{"summary":"Salesforce LWC generator: JS/HTML/meta component gen, Apex controller with Named Credentials, sfdx-project.json. Namespace c8rosetta. 4 tests pass."}Audit Trail (1)
8h agotask_createdAG Lu
Task ID: d57fb699-198e-4789-bac9-00b7b228b687