-
Notifications
You must be signed in to change notification settings - Fork 805
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
OpenTable Block #14220
OpenTable Block #14220
Conversation
This is an automated check which relies on |
Nice work getting this stubbed out! Here's what I'm currently seeing: In comparing the this current state of this PR to the design mockups we've still got quite a few things to clean up: Would it be helpful for me to go through and itemize the changes that still need to be made, or do you want to take another pass at cleaning things up first? |
f5be7df
to
7deda00
Compare
Because this is still in progress as of now, I'm going to move this to the next milestone. |
There are a few inconsistencies on the front end rendering, likely caused by some different CSS opinions between OpenTable and TwentyTwenty, that I think we should address. These should be a good start, but I'm not exactly sure how to enqueue in the "Jetpack way" front-end styles ( .ot-dtp-picker {
box-sizing: content-box;
.ot-title {
margin: 4px auto 12px auto;
}
.ot-dtp-picker-selector-link {
text-decoration: none;
}
input[type='submit'] {
text-transform: none;
padding: 0;
}
} |
I'm wondering about the UX of the restaurant picker with the If I'm not mistaken, this is the last version of that component before its removal: https://github.com/Automattic/wp-calypso/blob/3932cbd44a2a26897d233d094c9f44ad231c8ba8/apps/full-site-editing/full-site-editing-plugin/full-site-editing/components/post-autocomplete/index.js What do y'all think if we adapted it (and modernized it with React hooks as well!) to use the OpenTable API? |
Sounds like a good idea! |
I was wondering about the UX of displaying just the ID, and I ran up against some problems. Using the Also, when I looked into doing that, I couldn't find a way of retrieving specific restaurant details by ID from the API endpoint we're using. There are a few problems with that, but one of the biggest is if someone enters their ID and it's a subset of another, like 432 and 4321. You nearly always get back restaurants with 432 in the name, street address, or with IDs starting and ending in 432, but never the restaurant with ID 432. The only official OpenTable API I could find didn't seem to offer this information either, but if it did, we'd have to proxy the requests and I'm not sure how that would work with access tokens etc. It looks like you have to become a partner to use their Consumer API. We might want to go that route depending on what's involved. As a side thought, would it be worth adding the features of your post autocomplete component to the |
For the record, I filled this form back in December and approached a few folks at Open Table without any success so far. I'll keep trying to get on that whitelist. |
Ah, I forgot about my
@pablinos Right, damn!
This is rather annoying. - Enter your restaurant name, OpenTable Restaurant ID or embed code
+ Enter your restaurant name, or paste an OpenTable Reservation Widget embed code |
Co-Authored-By: Jeremy Herve <jeremy@jeremy.hu>
Co-Authored-By: Jeremy Herve <jeremy@jeremy.hu>
Co-Authored-By: Jeremy Herve <jeremy@jeremy.hu>
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 think this should be good to go for now. I created issues for feedback that was discussed above and other things that I found while testing, but that are not blockers for this PR. I think we should be able to address those issues in follow-up PRs.
I'll merge this now.
* [not verified] Remove empty readme section * Initial changelog for 8.2 * Changelog: add #14220 * Changelog: add #14252 * Changelog: add #14291 * Changelog: add #14309 * Changelog: add #14304 * Changelog: add general connection log. * Changelog: add #14275 * Changelog: add #14313 * Changelog: add #14213 * Changelog: add #14357 * Add sync testing instructions * Add 8.1.1 changelog back See eeaafab and 61757eb * Changelog: add #14371 * Changelog: add #14386 * Changelog: add #14471 * Changelog: add #14325 * Changelog: add #14194 * Changelog: add #14340 * Changelog: add #14418 * Changelog: add #14417 * Changelog: add #14075 * Changelog: add #14467 * Changelog: add #14307 * Changelog: add #14326
This PR adds an OpenTable block, providing block-editor native equivalent functionality of the existing OpenTable embed.
It supports embed code pasted from the OpenTable widget creator:
https://www.opentable.com/widget/reservation/preview?rid=1&lang=en-US
Changes proposed in this Pull Request:
jetpack/opentable
.Is this a new feature or does it add/remove features to an existing part of Jetpack?
New feature.
Internal reference: pb5gDS-er-p2
The goal would be to release it as a beta block first, in Jetpack 8.1.
Internal reference: p1576850286103100-slack-explorers
Testing instructions:
This is currently marked as a beta block, you will need to add
define( 'JETPACK_BETA_BLOCKS', true );
to yourwp-config.php
file.Proposed changelog entry for your changes: