-
Notifications
You must be signed in to change notification settings - Fork 519
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
Add ability to render preview browsers (introduced in BCD 4.0.0) #3997
Conversation
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.
Here's what I did to test this:
- Fetched the
Elchi3:preview-browsers
branch ofmdn/browser-compat-data
locally - Fetched the
Elchi3:preview-browsers
branch ofmdn/yari
locally, and re-based it on the latestmain
branch ofmdn/yari
to prevent an error related to a popularities file. - Changed line 52 in
package.json
to use my localElchi3:preview-browsers
branch ofmdn/browser-compat-data
so I'm using the new BCD 4.0.0 data and format:"@mdn/browser-compat-data": "file:../browser-compat-data",
- Copied the
api/ANGLE_instanced_arrays.json
from the introduction into my localmdn/browser-compat-data
- Ran the tests (looked good)
- Ran a complete build of the English docs (no errors)
- Checked the BCD table that was built locally (looked good!)
I did have to make one minor change that's also necessary to change in this PR (see below), but otherwise, this looks good to me!
client/src/document/ingredients/browser-compatibility-table/atoms/_bc-supports.scss
Outdated
Show resolved
Hide resolved
…oms/_bc-supports.scss Co-authored-by: Ryan Johnson <[email protected]>
Thank you so much Ryan! 🎉 |
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.
Thanks @Elchi3! This is ready to go once version 4.0.0
of @mdn/browser-compat-data
is released and Yari is updated to use that version. 🎉 🚀
FYI, the tests should all pass once Yari is updated to use version 4.0.0
of @mdn/browser-compat-data
.
When Yari upgrades to v4.0.0, this PR needs to go along with it. |
What are some good pages to test it on? |
(This will fail as it depends on BCD 4.0.0 which will include mdn/browser-compat-data#10334.
Edit: Marked as draft to prevent it from being merged early. This is ready for review but needs a coordinated merge with the release of BCD 4.0.0.)
For a long time BCD contributors and browser vendors have asked for a way to include preview browsers, that is, data for Firefox Nightly, Chrome Canary, and Safari Technical Preview. In mdn/browser-compat-data#10334 we modeled and agreed on a way forward: The BCD data model will be extended to include a "preview" enum to indicate support in these browsers.
So, BCD 4.0.0 can include compat data like this:
Expand
This PR aims to extend the BCD renderer so that the data can be displayed like this: