# NexusCRM Task Tracker

## Confirmed Issues from Manual Testing (confirmed_issue.pdf)

Source: `confirmed_issue.pdf` — 11 issues found by manual QA testing.
Test framework: `tests/contract/scenarios/` — 25 scenario tests (17 API + 6 Chrome + 2 new issues).
A/B methodology: Same frontend, switch backend via `.env` + Vite proxy. See `tests/contract/scenarios/SKILL.md`.

### Status Legend

| Symbol | Meaning |
|--------|---------|
| :white_check_mark: | Fix PR created and open |
| :memo: | Issue created, no fix PR yet |
| :package: | Delivered (merged) |
| :no_entry: | Excluded by A/B testing (not a backend issue) |

### Issue Tracker

| # | PDF Problem | Issue | Fix PR | Status | Test Scenario | A/B Verified? |
|---|-------------|-------|--------|--------|---------------|---------------|
| 1 | Flow Builder boolean values show `{null}` | [#352](https://github.com/pingcap-inc/MetaDrivenPlatform4AI/issues/352) | [PR #359](https://github.com/pingcap-inc/MetaDrivenPlatform4AI/pull/359) | :white_check_mark: Open | FLOW-001 (API), FLOW-002 (Chrome) | YES — SF canvas complete, NexusCRM assignment missing |
| 2 | Approval User ID not cross-reference resolved | [#353](https://github.com/pingcap-inc/MetaDrivenPlatform4AI/issues/353) | [PR #360](https://github.com/pingcap-inc/MetaDrivenPlatform4AI/pull/360) | :white_check_mark: Open | APPR-001 (API), APPR-002 (Chrome) | Partial — NexusCRM shows "Unknown", SF has no pending data |
| 3 | Validation Rule formula engine (NOT, ISCHANGED, $Profile.Name) | [#351](https://github.com/pingcap-inc/MetaDrivenPlatform4AI/issues/351) | [PR #361](https://github.com/pingcap-inc/MetaDrivenPlatform4AI/pull/361) | :white_check_mark: Open | VAL-001/002/003/004/005 | YES — SF shows friendly error, NexusCRM shows "unknown name NOT" |
| 4 | Lead Convert feature missing | [#354](https://github.com/pingcap-inc/MetaDrivenPlatform4AI/issues/354) | — | :memo: Issue only | LEAD-001 (API) | N/A — Lead object doesn't exist |
| 5 | Object count mismatch + field labels reset to API Names | [#355](https://github.com/pingcap-inc/MetaDrivenPlatform4AI/issues/355) | — | :memo: Issue only | OBJ-001, DATA-001, DATA-004 | YES — SF shows "Account Name" (Label), NexusCRM shows "Name" (ApiName) |
| 6 | Performance: session init >2min | [#357](https://github.com/pingcap-inc/MetaDrivenPlatform4AI/issues/357) | — | :memo: Issue only | PERF-001 (API) | N/A — API latency 868ms (OK), PDF issue may be UI-specific |
| 7 | ListView changes not persisting | [#356](https://github.com/pingcap-inc/MetaDrivenPlatform4AI/issues/356) | — | :no_entry: Frontend issue | DATA-002, DATA-005 | YES — Both SF and NexusCRM use localStorage (SELECTED 0) |
| 8 | Navigation bar Object Names revert to API Names | [#356](https://github.com/pingcap-inc/MetaDrivenPlatform4AI/issues/356) | — | :no_entry: App config issue | DATA-003 | YES — Both SF and NexusCRM show SYSTEM-only sidebar |
| 9 | Cannot create role-based test accounts (Sales) | [#358](https://github.com/pingcap-inc/MetaDrivenPlatform4AI/issues/358) | [PR #362](https://github.com/pingcap-inc/MetaDrivenPlatform4AI/pull/362) | :white_check_mark: Open | ROLE-001/002/003 | N/A — sales@test.com not provisioned yet |
| 10 | Testing not standardized | — | [PR #363](https://github.com/pingcap-inc/MetaDrivenPlatform4AI/pull/363) | :package: Merged | `/sf-scenario-test` skill | N/A |

### New Issues Discovered During Testing

| # | Problem | Issue | Fix PR | Status | Test Scenario |
|---|---------|-------|--------|--------|---------------|
| 11 | Flow Builder does not render API-created Assignment nodes | [#364](https://github.com/pingcap-inc/MetaDrivenPlatform4AI/issues/364) | — | :memo: Issue only | FLOW-002 (Chrome) |
| 12 | crypto.randomUUID() fails on HTTP deployments | [#365](https://github.com/pingcap-inc/MetaDrivenPlatform4AI/issues/365) | — | :memo: Issue only | Discovered during Chrome A/B testing |
| 13 | Approval Queue shows "Unknown" for all record names | Part of [#353](https://github.com/pingcap-inc/MetaDrivenPlatform4AI/issues/353) | Part of [PR #360](https://github.com/pingcap-inc/MetaDrivenPlatform4AI/pull/360) | :white_check_mark: Open | APPR-002 (Chrome) |
| 14 | ProcessNode not auto-created from approval XML | Part of [#353](https://github.com/pingcap-inc/MetaDrivenPlatform4AI/issues/353) | Part of [PR #360](https://github.com/pingcap-inc/MetaDrivenPlatform4AI/pull/360) | :white_check_mark: Open | APPR-001 (API) |
| 15 | Single-record Insert does not run validation rules | Part of [#351](https://github.com/pingcap-inc/MetaDrivenPlatform4AI/issues/351) | Part of [PR #361](https://github.com/pingcap-inc/MetaDrivenPlatform4AI/pull/361) | :white_check_mark: Open | VAL-003 (API) |

### Parent & Tracking Issues

| Issue | Purpose |
|-------|---------|
| [#350](https://github.com/pingcap-inc/MetaDrivenPlatform4AI/issues/350) | Parent issue — confirmed issues index with sub-issue links |
| [#349](https://github.com/pingcap-inc/MetaDrivenPlatform4AI/issues/349) | A/B contract test results (155 contract tests × 2 backends) |

---

## Open Fix PRs (ready for review/merge)

| PR | Issue | Scope | Merge Conflicts? |
|----|-------|-------|-----------------|
| [#359](https://github.com/pingcap-inc/MetaDrivenPlatform4AI/pull/359) | #352 Flow booleans | Backend + Frontend (4 files) | Unknown |
| [#360](https://github.com/pingcap-inc/MetaDrivenPlatform4AI/pull/360) | #353 Approval ID | Backend + Schema (6 files, includes codegen) | Unknown |
| [#361](https://github.com/pingcap-inc/MetaDrivenPlatform4AI/pull/361) | #351 Formula engine | Backend (10 files, signature changes cascade) | Conflicts with #362 on persistence_insert.go |
| [#362](https://github.com/pingcap-inc/MetaDrivenPlatform4AI/pull/362) | #358 Sales role | Backend (7 files, seed data + permissions) | Conflicts with #361 on persistence_insert.go |

**Note**: PRs #361 and #362 both modify `persistence_insert.go` — merge one first, then rebase the other.

---

## Next Steps

### Immediate (merge fix PRs)
- [ ] Review and merge PR #359 (Flow booleans)
- [ ] Review and merge PR #360 (Approval ID)
- [ ] Review and merge PR #361 (Formula engine) — merge before #362
- [ ] Rebase and merge PR #362 (Sales role) — after #361
- [ ] After each merge: run `/sf-scenario-test` to verify fixes flip tests from FAIL to PASS

### After PRs merged
- [ ] Deploy updated backend to `34.59.60.122:8082`
- [ ] Re-run full API scenario test suite to verify fixes
- [ ] Re-run Chrome scenarios to verify UI-level fixes
- [ ] Update scenario statuses in `scenarios.yaml` (reproduced → pass)

### Remaining work (no fix PR yet)
- [ ] #354 Lead Convert — new feature implementation
- [ ] #355 Object completeness + field labels — metadata pipeline fix
- [ ] #357 Performance — investigate if UI-specific (API is fast)
- [ ] #364 Flow Builder Assignment rendering — frontend canvas fix
- [ ] #365 crypto.randomUUID — add proper fallback or deploy HTTPS
