feat(team): click-tracking on Report wrong + member-profile deep link#3469
Merged
Conversation
Two polish items deferred from the PR #3450 review (product expert recommendations): - Click-tracking endpoint POST /api/organizations/:orgId/brand-classification-report records {orgId, userId, kind, subject_domain} to registry_audit_log on every Report-wrong click. The mailto: opens regardless via the existing anchor href; sendBeacon doesn't block navigation. Gives us a triage queue + lets us detect when N different members all flag the same domain. Member-or-above can flag (broader than admin/owner since the action is informational and the corrective action is admin-side). - One-line deep link from /member-profile's Brand identity section to the /team page where the registry hierarchy is now shown. Closes the "I came to member-profile to check if my company is classified right" bounce-off case. 1 new integration test (happy path + invalid-kind 400 + invalid-domain 400). 13/13 pass on the toggles suite. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two polish items deferred from the PR #3450 review (product expert recommendations):
Click-tracking on "Report wrong" — new endpoint
POST /api/organizations/:orgId/brand-classification-reportrecords{orgId, userId, kind, subject_domain}toregistry_audit_logon every click. The frontend firesnavigator.sendBeaconfrom the anchor's click handler; the existingmailto:opens normally. This gives us a triage queue and lets us detect when N different members flag the same domain — without building a full intake form yet. Member-or-above can flag (broader than admin/owner since the action is informational).Deep link from
/member-profileto/team— one-liner under "Brand identity" pointing at the team page where the registry hierarchy is now shown. Closes the "I came to member-profile to check if my company is classified right" bounce-off case.Test plan
npm run typecheckclean🤖 Generated with Claude Code