This is a first draft of an "image upload" feature implemented as a service-manager extension. It allows for a campaign manager to upload an image (to Amazon S3) and immediately use it in a texting script/campaign.
TODO: UI/UX is a stub preceding conversations of desired UX
TODO: possibe org-level config. It currently assumes that AWS credentials are environment variables along with the S3 bucket to be uploaded to
To test/enable it, just as for other service managers, set SERVICE_MANAGERS=image-upload and also specify AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY and IMAGE_UPLOAD_S3_BUCKET_NAME
In order to implement this feature, it also exposes a new service manager hook to add chrome into the ScriptEditor component. This seems like it could be used for other features -- e.g. emoji insertion or other edits.
Checklist:
[x] I have manually tested my changes on desktop and mobile
[ ] The test suite passes locally with my changes
[ ] If my change is a UI change, I have attached a screenshot to the description section of this pull request
Description
This is a first draft of an "image upload" feature implemented as a service-manager extension. It allows for a campaign manager to upload an image (to Amazon S3) and immediately use it in a texting script/campaign.
SERVICE_MANAGERS=image-upload
and also specifyAWS_ACCESS_KEY_ID
,AWS_SECRET_ACCESS_KEY
andIMAGE_UPLOAD_S3_BUCKET_NAME
Checklist: