fix(docsite): add examples for DateTimeInput and DateRangeInput (# 2724)#3282
fix(docsite): add examples for DateTimeInput and DateRangeInput (# 2724)#3282mohitWeb-lab wants to merge 1 commit into
Conversation
…ebook#2724) Both components had no non-showcase example blocks, leaving their docsite pages with empty Examples sections and no playground link. Add a Validation example for each (error/warning/success status states), plus a With Presets example for DateRangeInput demonstrating quick-select analytics ranges.
|
@mohitWeb-lab is attempting to deploy a commit to the Meta Open Source Team on Vercel. A member of the Team first needs to authorize it. |
|
Hi @mohitWeb-lab! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks! |
Summary
This PR fixes missing example blocks on the DateTimeInput and DateRangeInput docsite pages, which left both components with empty Examples sections and no "Open in playground" link.
Cause
Both components only had a showcase block (isShowcase: true), which populates the component thumbnail/hero. Showcases are not picked up as Examples — those require separate block files with isShowcase omitted or false. With no example blocks registered under exampleFor: 'DateTimeInput' / exampleFor: 'DateRangeInput', the Examples section on each page was empty and the playground link never appeared.
Fix
Added new example blocks under packages/cli/templates/blocks/components/:
Closes #2724
Closes #2709