You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add an Error pattern to help with required component props #1690
This is an idea@calebeby came up with as a way to help make sure required component props are not accidentally missed when using a given component.
Maybe you could do something with defined? Maybe render a message instead of the component if a given prop is not defined? 🤔
Oh yeah that might be helpful. IDK if it's worth it, but we could probably make a error pattern that is very visible/flashy and then go through all our patterns and make them render the error pattern if any of their required props are missing
It may not be a higher priority, but would be helpful throughout the implementation of the components.
PR #1937 finished the design aspect of this issue, which was to create an error message pattern that could be used for the described functionality. Re-opening and labeling the issue to represent the work left to do.
Activity
tylersticka commentedon Apr 7, 2022
This is a good idea, but I'm going to move it outside of this project as something to pursue in the future.
tylersticka commentedon Jun 28, 2022
In terms of how this displays, it seems like this could be a new visual style for our Alert component rather than a brand-new component.
tylersticka commentedon Jul 11, 2022
@AriannaChau Let's keep this out of the project because it isn't a launch blocker (but you can continue to work on the issue).
tylersticka commentedon Jul 19, 2022
PR #1937 finished the design aspect of this issue, which was to create an error message pattern that could be used for the described functionality. Re-opening and labeling the issue to represent the work left to do.