Is your feature request related to a problem? Please describe.
Following work in #282, it would be good to have a system whereby photos a user has taken are stored within the app and available after app restart.
Describe the solution you'd like
Move photo-input code to the libs\shared\src\features folder (as will be a shared feature, consisting of both components and service)
Create a database schema to store photos. Likely this should include an id, the photo data, a timestamp, and optional custom_meta fields.
Update component to retrieve photo from database as required and display
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Example schema used for feature can be found in: libs\shared\src\features\video-player
When storing the photo it might be useful to ask capacitor to return as binary object and use the existing libs\shared\src\services\core\db_v2\db-attachment.service.ts to handle storing.
Additionally, for use in debugging you may want to create a route for /photos and display components to show a list of all available photos in db. The easiest way to do this would be to create the photo-list component in the same feature folder and register within the extension app
apps\picsa-apps\extension-app\src\app\app-routing.module.ts
Is your feature request related to a problem? Please describe. Following work in #282, it would be good to have a system whereby photos a user has taken are stored within the app and available after app restart.
Describe the solution you'd like
photo-input
code to thelibs\shared\src\features
folder (as will be a shared feature, consisting of both components and service)custom_meta
fields.Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.
Additional context
libs\shared\src\features\video-player
libs\shared\src\services\core\db_v2\db-attachment.service.ts
to handle storing.Additionally, for use in debugging you may want to create a route for
/photos
and display components to show a list of all available photos in db. The easiest way to do this would be to create thephoto-list
component in the same feature folder and register within the extension appapps\picsa-apps\extension-app\src\app\app-routing.module.ts
(the
loadComponent
syntax can be used to display a route for any component that has been setup as a standalone component - https://blog.angular-university.io/angular-standalone-components/)