-
Notifications
You must be signed in to change notification settings - Fork 51
[App Gen] Updated Docs For Modal Bug in App Gen #3579
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
base: 2025-10
Are you sure you want to change the base?
Conversation
|
We detected some changes in |
fad53a5 to
6dfca9b
Compare
davebcn87
left a comment
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 don't think that will work, that typescript definition only affects the docs, but the real component won't have those methods.
Let's discuss possible other solutions.
Correct me if I'm wrong but the real component does have these methods. They weren't added here, just documented |
|
Yeah we just want it to use the methods properly, rather than incorrectly. Here is the diff before and after this change: https://docs.google.com/document/d/10NzJe2FEFfL0g4xrWIE8sMDRmZq111RWD6OFYCfqecc/edit?tab=t.0 |

Background
Resolves shop/issues-sidekick/issues/#2055
Improves the TypeScript definitions for the Modal component's overlay control methods.
Problem
The documentation for modal overlay methods (
hideOverlay,showOverlay, andtoggleOverlay) lacks clarity on how these methods should be used programmatically versus through user interactions..Solution
This PR updates the TypeScript definitions for the
Modalcomponent by moving the overlay control methods (hideOverlay,showOverlay, andtoggleOverlay) from the excluded props list to be properly defined as methods with detailed JSDoc comments.The added documentation clarifies that these methods are meant to be called imperatively on the modal element instance (via refs) rather than being passed as props. It also provides guidance on the proper usage patterns for controlling modal visibility through user interactions.
🎩
Checklist