Skip to content

Fix non-functional Smart Mapping review buttons#2

Draft
kevinmeix1 wants to merge 1 commit into
mainfrom
cursor/fix-button-clicks-e018
Draft

Fix non-functional Smart Mapping review buttons#2
kevinmeix1 wants to merge 1 commit into
mainfrom
cursor/fix-button-clicks-e018

Conversation

@kevinmeix1

Copy link
Copy Markdown
Owner

Summary

The Smart Mapping Review panel buttons (Approve match, Reject, New contact) were rendered without click handlers, so clicking them had no effect.

This change wires those actions end-to-end:

  • Adds POST /api/mapping/review to record mapping decisions
  • Updates match card state and status badges after review
  • Writes SMART_MAPPING_REVIEWED entries to the audit log
  • Shows confirmation feedback in the mapping panel
  • Improves Refresh and Approve feedback in the command bar

Test plan

  • pnpm typecheck
  • pnpm test
  • Verified POST /api/mapping/review returns updated match status and audit entry
  • Click Approve match on a mapping card and confirm status updates + audit log entry
  • Click Reject and New contact and confirm matching feedback
  • Click Refresh and confirm loading state appears
  • Click Approve and confirm confirmation message appears in the command bar
Open in Web Open in Cursor 

Wire Approve match, Reject, and New contact actions to a new
/api/mapping/review endpoint with audit logging. Update match cards
with status badges and confirmation messages, and improve Refresh and
Approve feedback in the command bar.

Co-authored-by: Kevin Mei <kevinmeix1@users.noreply.github.com>
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.

2 participants