-
Notifications
You must be signed in to change notification settings - Fork 55
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
Email: Sending allowed even with missing button URL #2263
Comments
@ziggabyte: I thought we built something for this, but maybe in the end we didn't? Do you have any idea if this is an existing feature that is malfunctioning, or the lack of a feature that should be added? |
I think I have discovered the cause for this bug. I've started attempting to solve this but If someone could explain what their individual purpose is could understand and get to a possible solution quicker :) <src/features/emails/types.ts>
export enum BLOCK_TYPES {
BUTTON = 'button',
HEADER = 'header',
LIBRARY_IMAGE = 'libraryImage',
PARAGRAPH = 'paragraph',
}
export enum BlockKind {
BUTTON = 'button',
HEADER = 'header',
IMAGE = 'image',
PARAGRAPH = 'paragraph',
} |
Great question! Judging by how it's used in the code linked below, it looks like
I would be surprised if this problem is because of an enum mixup. That doesn't mean you're wrong (I could be wrong about this!) but because the bug has to do with buttons, and both enums have the same value for I think you're looking in the right part of the code ( Again, don't take my word for it because I might be wrong in one or several of my assumptions. I just want to add some more information as you continue to look for the issue. |
Description
In production, one email was sent while the buttons had no links. This should not be possible. If a user creates a button but does not add a URL there will be a small yellow warning triangle next to the button in the outline. But there should also be an error message in the "delivery" popper, which I guess in some (or all?) cases doesn't work since someone managed to get past it.
Steps to reproduce
Expected Behaviour
Because the button is not fully defined (it has no URL) delivery should be prevented. There should be an error message in the delivery box saying that the email can't be scheduled or sen yet.
Actual Behaviour
The normal delivery popper shows up with a scheduling UI. There's nothing preventing the user from sending the email even though the buttons have no URLs.
Screenshots (if you have any)
The text was updated successfully, but these errors were encountered: