mirror of
https://github.com/Dvorinka/Bookra.git
synced 2026-10-28 15:51:15 +00:00
feat(activity): per-tenant audit feed in notification dropdown
activity_events records booking lifecycle transitions with the actor behind each change — staff (dashboard), customer (self-service), or system (auto-promotion). The notification dropdown leads with the real feed instead of derived recent-booking guesses. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
e5cb9bd543
commit
d86cba61e3
18 files changed
+634
-28
No files matched your search
@@ -55,6 +55,14 @@ func PromoteWaitlist(ctx context.Context, repo db.Repository, tenantID, sessionI
|
||||
}
|
||||
confirmed++
|
||||
promoted = append(promoted, booking)
|
||||
_ = repo.AppendActivityEvent(ctx, db.ActivityEventParams{
|
||||
TenantID: tenantID,
|
||||
ActorKind: "system",
|
||||
Action: "booking.promoted",
|
||||
EntityType: "booking",
|
||||
EntityID: &booking.ID,
|
||||
Summary: booking.CustomerName + " — " + session.Title,
|
||||
})
|
||||
}
|
||||
return promoted, nil
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user