Skip to content
This repository has been archived by the owner on Jun 21, 2022. It is now read-only.

feat(macros/Compat): Import browser‑compat‑toolkit changes #1010

Closed

Conversation

@ExE-Boss ExE-Boss changed the title Import **browser-compat-toolkit** changes feat(macros/Compat): Import browser‑compat‑toolkit changes Nov 30, 2018
@ExE-Boss
Copy link
Contributor Author

review?(@jwhitlock, @wbamberg): Can we please get this merged?

macros/Compat.ejs Outdated Show resolved Hide resolved
@ExE-Boss ExE-Boss force-pushed the macros/compat/import-bc-toolkit-changes branch from fa807a0 to df172c2 Compare February 12, 2019 16:01
@Elchi3 Elchi3 added the bcd label Feb 26, 2019
Copy link
Member

@Elchi3 Elchi3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I glanced over this PR and tested it locally. It does render and fixes a variety of things. For reviewing, this PR is uncomfortable as there are like 6 different things fixed at once here. If we could split this up, it would be much easier to review and to blame if things regress later on.
My summary of the changes here are:

  1. typo fixes: "displayBrowers", "unnested", "supprt"
  2. Make mdn_urls work with anchors
  3. Have mdn_urls localized properly
  4. Rewrite entire writeFlagNote function to use info from BCD and localized strings
  5. Fix a stray </tr>
  6. Formatting fixes in the entire traverseFeatures function (it looks like no code changes to me, but the diff is hard to read).

Is this correct? Some of this is actually reviewable quite easily (1, 2, 3, 5). Other stuff might need a deeper look (4 and 6). I guess most things come with tests (except typo fixes and stuff that doesn't need tests).
So, I believe, if you would split out and explain these changes in separate PRs, we can ship many of these things and review other things more in depth. What do you think about that? Thanks for your work.

@@ -37,6 +37,7 @@ var output = '';
var category = query.split(".")[0];
var legendItems = new Set(); // entries will be unique

// TODO: Migrate localization to Fluent ( https://www.npmjs.com/package/fluent )
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove this TODO. I don't think we decided to use Fluent. A decision likely requires an ADR. https://github.com/mdn/mdn/tree/master/ADRs

@ExE-Boss
Copy link
Contributor Author

Number 6 is a result of whitespace changes, which I’ve moved to #1084.

@ExE-Boss
Copy link
Contributor Author

ExE-Boss commented Feb 26, 2019

I’ve now split the changes into the following PRs:

@ExE-Boss ExE-Boss closed this Feb 26, 2019
@Elchi3
Copy link
Member

Elchi3 commented Feb 26, 2019

Thank you!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants