You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Introducing 2 new profiles CG-LIVING and CG-SNAPSHOT following the upcoming updates with the CG spec lifecycle. These profiles use different headers (see mockups) and rely on assets and metadata. The existing profiles CG-DRAFT and CG-FINAL remain untouched.
The new profiles come with 2 configuration options cgMaturity (draft, transferred or unmaintained) and transferredTo (only applies if cgMaturity = transferred)
Description of the new processing files:
src/w3c/templates/cg-headers.js builds the redesign headers for the 4 variants (draft, transferred, unmaintained and snapshot) and adds the different containers (with a data-cg-region attribute) that cg-metadata fills when the spec loads
src/w3c/cg-sections.js adds the "Get involved" and "Usage guidance" sections
src/w3c/cg-spec.js emits three new tags that cg-metadata relies on to fetch the appropriate metadata
src/w3c/templates/cg-sotd.js reduces the SotD to what the editors wrote (we do not have required paragraphs for the new profiles)
Some URLs are still subject to change while we are working on the new incubation website.
The reason will be displayed to describe this comment to others. Learn more.
I'm a bit confused about "transferred"... if the document has been transferred, won't it just be a WD or ED? or is the expectation that transferred things would still be maintained? My experience has been that once transferred, they just transition to an appropriate W3C status.
- CG-LIVING
- CG-SNAPSHOT
Include the cgbgStatus and new CG assets (base.css, cg-spec.css, dark.css, cg-fixup.js and cg-metadata.js) for these new profiles.
Introduce <meta> tags required by the new profiles.
Run some validation.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
The new CG header breaks caniuse and implementation-status widgets, and the suite’s reliance on live CG assets makes tests vulnerable to network timing and upstream changes.
The new header has no .head dl, but core/caniuse.js:85 and core/implementation-status.js:182 still require that selector. Configuring caniuse or implementationStatus with either new status therefore loses the requested widget; caniuse also warns on export with its default removeOnSave setting. Update those consumers to support the redesigned header and add CG-profile coverage for both options.
Use local CG asset fixtures to make tests deterministic
tests/spec/w3c/cg-spec.js:35
Documents created with cgOps load live CG scripts and styles from incubation.w3.org; seedGroupCache only fixtures group responses. Those scripts can change regions and themes before assertions, making results depend on network timing and upstream changes. Serve fixed local CG asset fixtures for this suite, as required by the project's testing guidance.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CG-LIVINGandCG-SNAPSHOTfollowing the upcoming updates with the CG spec lifecycle. These profiles use different headers (see mockups) and rely on assets and metadata. The existing profilesCG-DRAFTandCG-FINALremain untouched.cgMaturity(draft,transferredorunmaintained) andtransferredTo(only applies ifcgMaturity = transferred)Description of the new processing files:
src/w3c/templates/cg-headers.jsbuilds the redesign headers for the 4 variants (draft, transferred, unmaintained and snapshot) and adds the different containers (with adata-cg-regionattribute) thatcg-metadatafills when the spec loadssrc/w3c/cg-sections.jsadds the "Get involved" and "Usage guidance" sectionssrc/w3c/cg-spec.jsemits three new tags thatcg-metadatarelies on to fetch the appropriate metadatasrc/w3c/templates/cg-sotd.jsreduces the SotD to what the editors wrote (we do not have required paragraphs for the new profiles)Some URLs are still subject to change while we are working on the new incubation website.
A good chunk of the PR was generated by Claude.