Editing in the app

CanDeactivate guard

This is used to prevent accidental loss of edits when accidentally routing to another page.

However, I'm wondering if the 'dialog boxes' could be intergrated into the page, so that they aren't effected by pop up blockers. Also they would work better on mobile devices.

Over-mapping with mapper

Mapper allows entity from the repo to have a subset of fields updated from the dto.  This is quite nice.  For cases where multiple users can edit a record, would need to do some form of check for updates.

Host Listener

This can be used to listen for browser events such as closing a browser tab and cancel to avoid losing edits.

ClaimsPrincipal

The User (ClaimsPrincipal) is checked so that only the token authenticated user can update the profile relating to that user.  Need to learn more about claims.

Cloudinary - which is used to host pictures and to the picture transformations.

File upload component - which is used to visually support the file upload rest service

Updating other components after editing

Uses a BehaviorSubject wrapper around a property so that it can be exposed as an Observable.  This means that it can be subscribed to for changes and published to by the changers (editors, login and init etc)


Comments

Popular posts from this blog

Understanding the technologies - Angular 8 and ASP.NET Web API Core 3

Bits and bobs