Skip to content

feat: log status changes to an Application as an Interaction - #16

Merged
Treggats merged 1 commit into
mainfrom
feature/log-changes-to-an-application
Sep 3, 2026
Merged

feat: log status changes to an Application as an Interaction#16
Treggats merged 1 commit into
mainfrom
feature/log-changes-to-an-application

Conversation

@Treggats

@Treggats Treggats commented Sep 3, 2026

Copy link
Copy Markdown
Owner

Logs status_change interactions when an Application's status changes.

  • Inline model observer on Application::boot(), reacting to
    updated + wasChanged('status') — kept inline rather than a separate
    Observer class, see .ai/decisions.md
  • Records old/new status in the Interaction body via getPrevious('status')
  • Feature test covering the actual status change (factory lead()
    applied, not a same-value update)

An inline model observer (boot()) on Application reacts to
updated + wasChanged('status') and creates a status_change Interaction
recording the old and new status. Kept inline rather than a separate
Observer class so it stays visible next to the model, per
.ai/decisions.md.
@Treggats
Treggats merged commit f255b9e into main Sep 3, 2026
1 check passed
@Treggats
Treggats deleted the feature/log-changes-to-an-application branch September 3, 2026 14:00
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.

1 participant