Week 074 — reportReturned Working
One state transition works. The others are close.
Week of April 20, 2026
Progress
The lost-to-returned state transition is now saving correctly. It took most of Wednesday.
A geolocation naming inconsistency was also addressed: coordinates had been using x_pos and y_pos throughout the codebase. These were renamed to long and lat for clarity and alignment with standard geolocation conventions. The transition required updating the DB column names, the DTO fields, and all the places the coordinates were read and written.
The remaining gap: when a user makes a state transition and also changes the item name or image in the same save, only the state change is processed. Item property changes during a state transition aren't wired.
Custom exception classes were added to the service layer to make error reporting clearer — instead of generic PHP exceptions, state transition failures now include context about what failed and where.
Next Week
Lost state saving. Wire item property changes through state transitions.
