-
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(dashboard): Nv 4884 push mini preview #7318
Conversation
…ance custom step controls
…ctionality and animations
…ison in configure step template form
…rols for improved layout
…nt value change handling
…ult functionality and documentation link
…nnecessary wrappers around custom step controls
…essary fragments in ConfigureStepForm
…rm for consistency
…ustomControlValues and update references
…override toggle UI
…roved UI structure in CustomStepControls
…ance custom step controls
…nnecessary wrappers around custom step controls
…elete functionality for control values
…d update related logic
… case in upsert workflow use case
…necessary checks and methods
…ance custom step controls
…or improved aesthetics
); | ||
} | ||
|
||
if (previewData?.result.type !== ChannelTypeEnum.PUSH) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't we already have guarantees in parent components that this push-preview will only be rendered when the channel type is a PUSH?
If yes, we can remove this conditional.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, but this also helps TS narrowing the types
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hahaha Ok, not a good enough reason but not a blocker as well. If we change the preview DTO to a much flatter alternative it would be much easier for us to fix this issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've put the phone used in SMS to public/phones/iphone-sms.svg
maybe we could follow same pattern e.g. iphone-notification.svg
What changed? Why was the change needed?
Screenshots
Screen.Recording.2024-12-17.at.9.46.12.PM.mov
Expand for optional sections
Related enterprise PR
Special notes for your reviewer