-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(framework): Add new Inbox properties to step.inApp
schema
#6075
Conversation
step.inApp
schema to support new Inbox properties
step.inApp
schema to support new Inbox propertiesstep.inApp
schema
Not sure, if this is clear now, but still want to address here for visibility. |
Thanks for the update @BiswaViraj . In that case, given that the presence of
const inAppRes = await step.inApp('send-in-app', async () => ({
body: 'Test Body',
actor: {
type: 'user',
subscriberId: '[email protected]', // required when type is user
firstName: 'Joe', // optional when type is user, overrides default subscriber first name
lastName: 'Smith', // optional when type is user, overrides default subscriber last name
avatar: 'https://novu.co/image', // optional when type is user, overrides the default subscriber avatar
},
}));
const inAppRes = await step.inApp('send-in-app', async () => ({
body: 'Test Body',
actor: {
type: 'custom',
avatar: 'https://novu.co/image', // type: URL - required when type is `custom`
},
}));
const inAppRes = await step.inApp('send-in-app', async () => ({
body: 'Test Body',
actor: {
type: 'system',
avatar: 'robot', // type: IconName - required when type is system
},
})); Wdyt? |
Converted to draft as we still need to wire-up the Worker implementation to support these new attributes in Framework. |
apps/web/src/components/workflow/preview/in-app/Content.styles.ts
Outdated
Show resolved
Hide resolved
apps/web/src/components/workflow/preview/in-app/InAppPreview.tsx
Outdated
Show resolved
Hide resolved
apps/worker/src/app/workflow/usecases/send-message/send-message-in-app.usecase.ts
Outdated
Show resolved
Hide resolved
…ub.com/novuhq/novu into nv-4095-polish-the-inbox-dx-in-workflows
What changed? Why was the change needed?
step.inApp
properties are needed to support the inbox component.Screenshots
Everything specified
Studio Preview
Dashboard Preview
V1 In-App Delivered Notification
V2 Inbox Delivered Notification
Expand for optional sections
Related enterprise PR
Special notes for your reviewer