feat: Add lessons learned documentation and guidelines for persistent agent notes

This commit is contained in:
2026-06-18 04:18:59 +01:00
parent c0ea7f1b80
commit 3b23cd3c4c
2 changed files with 9 additions and 1 deletions

View File

@@ -0,0 +1,7 @@
# Lessons Learned
## 2026-06-18
- In `Marechai/Pages/Admin/SoftwareReleaseDialog.razor`, release regions and languages cannot rely on `ReleaseId` during add mode because the release does not exist yet. Keep provisional junction selections in local dialog state and return them through `SoftwareReleaseDialogResult`.
- Persist add-mode release regions and languages only after `SoftwareReleasesService.CreateAsync(...)` succeeds in `Marechai/Pages/Admin/SoftwareReleases.razor.cs`.
- When fixing add-mode behavior for one release junction picker in this dialog, check the sibling pickers for the same `ReleaseId <= 0` pattern. Regions and languages had the same bug shape.

View File

@@ -110,6 +110,8 @@ Test results are stored in the `TestResults/` directory.
## Notes for AI Agents
0. Persistent agent notes and lessons learned should be stored under `.agents/` in this repository.
1. When adding new pages/views to Marechai.App:
- Create ViewModel in `Presentation/ViewModels/`
- Create View (XAML) in `Presentation/Views/`
@@ -129,4 +131,3 @@ Test results are stored in the `TestResults/` directory.
4. Package versions are centrally managed - update `Directory.Packages.props` when adding/updating packages.
5. The project targets .NET 10.0 preview - be aware of potential API changes.