Skip to content

feat: US-007 - Finalization: external companion view, README done, AGENTS.md (run complete) - #12

Merged
Varonal merged 1 commit into
mainfrom
ralph/external-companion
Nov 20, 2026
Merged

Varonal merged 1 commit into
mainfrom
ralph/external-companion

Conversation

@Varonal

@Varonal Varonal commented Nov 20, 2026

Copy link
Copy Markdown
Owner

Summary (US-007 — finalization, all stories)

  • Companion view on the second screen: GameCompanionView.ShowExternal(ExternalCompanionSnapshot, PlaySessionStats?) renders dex %, party /6, save playtime, session chrono + total (US-006) as a read-only overlay on the lower screen only — it never covers or blocks the external emulator on the first screen. SecondScreenBoxPage.SwapCoreAsync feeds it from IGameCompanionStore.External + IExternalCompanionStateStore.Current.RomPath + IPlaySessionStore.Find(romPath) and reacts to the External PropertyChanged (coalesced QueueSwap, like Live/Current).
  • README: « Companion de jeu externe (modèle polling .sav) » moved 🚧 En cours → ✅ Fait, with the polling-model description (stat every 5 s, re-read after a stable flush, parse, show dex/party/save-time/session/restore points).
  • AGENTS.md created at repo root with the run's reusable patterns (3-layer architecture, DispatchProxy fakes, atomic JSON stores, battery-friendly polling, timestamp-based measuring, App.Resumed lifecycle hook, AppStrings FR/EN localization, Ralph loop mechanics).
  • All new UI strings FR-default/EN in AppStrings. prd.json: all 7 stories passes: true. progress.txt: final entry appended. Git history: conventional feat: US-XXX + fix:/docs: only, no WIP.

Verification

  • CI (this PR): full dotnet test tests/PKForge.Domain.Tests -c Release + dotnet build src/PKForge.App -f net10.0-android.
  • Local: no .NET SDK in this sandbox — static checks (view/page wiring, README move, AppStrings keys, AGENTS.md) passed.
  • Manual on device (prd.json notes): launch a DS game in melonDS → lower screen shows the external companion, refreshes within ~10 s of an in-game save, first screen untouched; back in PKForge → companion stops, trophy scan runs.

…reen, README, AGENTS.md

- GameCompanionView.ShowExternal(ExternalCompanionSnapshot, PlaySessionStats?):
  lower-screen overlay with dex %, party, save playtime, session chrono and total
  (US-006). Read-only; never covers the emulator's first screen.
- SecondScreenBoxPage.SwapCoreAsync feeds it from IGameCompanionStore.External +
  IExternalCompanionStateStore.Current.RomPath + IPlaySessionStore, and reacts to
  the External PropertyChanged alongside Live/Current.
- README: "Companion de jeu externe (modele polling .sav)" moved En cours -> Fait
  with the polling-model description line.
- AGENTS.md created at repo root with the run's reusable patterns (3-layer
  architecture, DispatchProxy fakes, atomic JSON stores, battery-friendly polling,
  timestamp-based measuring, App.Resumed lifecycle hook, AppStrings localization,
  Ralph loop mechanics).
- All new UI strings are FR-default/EN in AppStrings. prd.json: US-007 passes=true
  (all stories pass). progress.txt: appended final entry.

Co-authored-by: Varonal <Varonal@users.noreply.github.com>
@Varonal
Varonal merged commit 0497d5e into main Nov 20, 2026
1 check passed
@Varonal
Varonal deleted the ralph/external-companion branch November 20, 2026 14:25
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.

2 participants