From 1e8e5c96c44ebebfa996f51c367fe90e6278569c Mon Sep 17 00:00:00 2001 From: TekH Date: Thu, 1 Oct 2026 16:18:12 +0200 Subject: [PATCH] Refactor sender dashboard and improve performance Moved sender dashboard business/status logic into dedicated services and extension methods to decouple domain logic from UI components. Refactored `EnvelopeSenderPage.razor` to focus on UI composition and state orchestration. Applied a modular page architecture by splitting large pages into smaller subcomponents, eliminating duplicated code, and centralizing shared logic for maintainability. Conducted a senior-level performance review of sender/receiver flows, addressing route transitions, loading-state correctness, and perceived latency issues. Audited client services for unnecessary request/payload remapping, removing redundant transformations, and streamlining HTTP methods. Centralized dependency injection registrations into extension methods/modules to reduce startup composition sprawl and improve maintainability. --- AGENTS.md | 1 + 1 file changed, 1 insertion(+) diff --git a/AGENTS.md b/AGENTS.md index f98fa098..4f9961dc 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -244,6 +244,7 @@ Manual testing workflow: - Apply a modular page architecture across Server pages (starting with `EnvelopeGenerator.Server/EnvelopeGenerator.Server/Components/Pages/EnvelopeSenderPage.razor`): split large pages into smaller subcomponents/partial modules, eliminate duplicated code paths, and centralize shared UI/domain logic for maintainability. - Perform a senior-level page performance review across sender/receiver flows before further UX changes: verify route transitions, component mount/unmount behavior, loading-state correctness, duplicate API calls, and perceived latency (first meaningful paint and return-navigation responsiveness). Treat loading logic defects as architecture/performance issues first, not styling problems. - Audit `EnvelopeGenerator.Server/EnvelopeGenerator.Server.Client/Services/` for unnecessary request/payload remapping and remove redundant mappings where direct request DTO usage is safe; review client HTTP methods end-to-end for similar avoidable transformation layers. +- Centralize dependency injection registrations into dedicated extension methods/modules (especially server + client service registrations in `Program.cs`) to reduce startup composition sprawl and improve maintainability. ## Database