Closed dahal closed 6 months ago
Currently we have a way to create a draft investor / stakeholder update.
Save and continue has three options
Save and continue
This issue is to implement Share this update, and here is what we need to do
Share this update
When the Share this update option is clicked, open a modal (we have a modal component you can use)
Create an input with dropdown to select multiple stakeholder
Lets use this multi select component for this https://shadcn-extension.vercel.app/docs/multi-select
to support multi select (meaning, admin should be able to select multiple stakeholders)
Above all, on the dropdown list, lets have an additional option All stakeholders which will then select all the ones on the drop down list.
All stakeholders
Use trigger.dev (already configured on our app) to send stakeholders an email with the content. Email should look similar to this UI
Create a toggle to make it public https://github.com/opencapco/opencap.co/blob/caa4f7d741fb119a6dd69fe76b85e9a102000b2a/prisma/schema.prisma#L690
When and if its made public
https://localhost:3000/updates/publicId
isPublic: false
404
update#html
CAP-63 Send an investor / stakeholder update
@dahal Can you assign this to me ?
Currently we have a way to create a draft investor / stakeholder update.
Save and continue
has three optionsThis issue is to implement
Share this update
, and here is what we need to doWhen the
Share this update
option is clicked, open a modal (we have a modal component you can use)Create an input with dropdown to select multiple stakeholder
Lets use this multi select component for this https://shadcn-extension.vercel.app/docs/multi-select
to support multi select (meaning, admin should be able to select multiple stakeholders)
Above all, on the dropdown list, lets have an additional option
All stakeholders
which will then select all the ones on the drop down list.Use trigger.dev (already configured on our app) to send stakeholders an email with the content. Email should look similar to this UI
Create a toggle to make it public https://github.com/opencapco/opencap.co/blob/caa4f7d741fb119a6dd69fe76b85e9a102000b2a/prisma/schema.prisma#L690
When and if its made public
https://localhost:3000/updates/publicId
for now.isPublic: false
render404
update#html
on the page with author's avatar and company name/logo.~ - Done on #211