mirror of
https://github.com/claunia/marechai.git
synced 2026-07-08 17:57:08 +00:00
feat: Add lessons learned documentation and guidelines for persistent agent notes
This commit is contained in:
7
.agents/lessons-learned.md
Normal file
7
.agents/lessons-learned.md
Normal 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.
|
||||
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user