Refactor ReceiverPage for WebAssembly and state persistence

Switched from server-side Blazor (`InteractiveServer`) to client-side WebAssembly (`InteractiveWebAssembly`) rendering for `ReceiverPage` and `ReceiverRejectedPage`.

Refactored dependency injection:
- Removed: `IMediator`, `EnvelopeReceiverAuthorizationService`, `EnvelopeReceiverPageDataService`, `IPdfPageImageRenderer`.
- Added: `DocumentService`, `EnvelopeReceiverService`, `PdfRenderService`, `PersistentComponentState`.

Implemented state persistence using `PersistentComponentState` to improve user experience by restoring page state. Added `ReceiverPageInitialState` class and implemented `IDisposable` for cleanup.

Simplified authorization by replacing claims-based checks with `AuthService.CheckEnvelopeAccessAsync`. Updated service usage to streamline data fetching and PDF rendering.

Refactored `IsRejected` logic to rely solely on `EnvelopeStatus`. Cleaned up unused namespaces and modernized code patterns for better readability and maintainability.

Updated `PdfRenderController` to allow anonymous access to the `RenderPages` endpoint, enabling broader use cases.

Overall, these changes improve maintainability, simplify dependencies, and align the application with a more scalable client-side architecture.
This commit is contained in:
2026-11-24 14:47:46 +01:00
parent 24613bd598
commit 0fbaaf0b92
3 changed files with 90 additions and 49 deletions

File diff suppressed because it is too large Load Diff