Skip to content

✨ feature: opportunity audit log contract (sdk#350) - #374

Merged
arturasmckwcz merged 2 commits into
mainfrom
350-opportunity-audit-log
Nov 21, 2026
Merged

arturasmckwcz merged 2 commits into
mainfrom
350-opportunity-audit-log

Conversation

@arturasmckwcz

@arturasmckwcz arturasmckwcz commented Nov 21, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #350

Contract for the opportunity activity log, mirroring volunteer-audit-log.ts.

  • OpportunityAuditLogType: status-changed, details-changed, contact-changed, ngo-changed, match-changed (kebab-case per shared rules; the older volunteer enum is snake_case)
  • ApiOpportunityAuditLogGet { id, opportunityId, type, detail, actorUserId: number | null, occurredAt } for GET /opportunity/:id/audit-log

Not in this PR: widening ApiMyActivityItem.changeType to include opportunity types (planned in #357). fe passes changeType straight to its volunteer-only formatter, so widening it now breaks fe on upgrade; it belongs with need4deed-org/be#1360 plus the matching fe change.

Consumers: be need4deed-org/be#1360, fe need4deed-org/fe#1305.

🤖 Generated with Claude Code

OpportunityAuditLogType and ApiOpportunityAuditLogGet, mirroring the
volunteer audit log; ApiMyActivityItem.changeType widens to include it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@arturasmckwcz arturasmckwcz self-assigned this Nov 21, 2026
… volunteer-only (sdk#350)

Widening ApiMyActivityItem.changeType breaks fe's volunteer-only
formatter; it moves to be#1360 together with the fe change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@need4deed need4deed 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

@arturasmckwcz
arturasmckwcz merged commit 4113660 into main Nov 21, 2026
1 check passed
@arturasmckwcz
arturasmckwcz deleted the 350-opportunity-audit-log branch November 21, 2026 23:42
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.

feat: opportunity profile changes tracker contract (same as volunteer)

2 participants