Skip to content

Commit

Permalink
Update spec report
Browse files Browse the repository at this point in the history
  • Loading branch information
dontcallmedom committed Jan 31, 2025
1 parent 5a3d718 commit 0ddcdc2
Show file tree
Hide file tree
Showing 7 changed files with 140 additions and 80 deletions.
33 changes: 29 additions & 4 deletions cg-transitions.json
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,27 @@
}
],
"specs": [
{
"repo": "WICG/devtools-protocol",
"notice": "https://github.com/w3c/webdriver-bidi/commit/8cbb5fe4b74cdbf0b749385a2ddcd2e3ac0bbbff",
"date": "2020-05-25",
"status": "complete",
"wgshortname": "w3c/browser-tools-testing"
},
{
"repo": "WICG/pointer-event-extensions",
"notice": "https://github.com/w3c/pointerevents/pull/495",
"date": "2024-01-11",
"status": "complete",
"wgshortname": "w3c/pointerevents"
},
{
"repo": "bfcache-not-restored-reason",
"wgshortname": "whatwg/html",
"date": "2023-05-30",
"notice": "https://github.com/whatwg/html/pull/9360",
"status": "complete"
},
{
"repo": "WICG/conditional-focus",
"date": "2022-10-05",
Expand Down Expand Up @@ -374,7 +395,8 @@
"repo": "WICG/canvas-color-space",
"date": "2021-04-11",
"wgshortname": "whatwg/html",
"notice": "https://github.com/whatwg/html/pull/6562"
"notice": "https://github.com/whatwg/html/pull/6562",
"status": "complete"
},
{
"repo": "WICG/auxclick",
Expand Down Expand Up @@ -429,7 +451,8 @@
"repo": "WICG/navigation-api",
"date": "2022-11-14",
"wgshortname": "whatwg/html",
"notice": "https://github.com/whatwg/html/pull/8502"
"notice": "https://github.com/whatwg/html/pull/8502",
"status": "complete"
},
{
"repo": "WICG/focus-ring",
Expand Down Expand Up @@ -554,7 +577,8 @@
"repo": "WICG/visual-viewport",
"date": "2021-06-02",
"notice": "https://github.com/w3c/csswg-drafts/issues/6339",
"wgshortname": "w3c/csswg/cssom-view"
"wgshortname": "w3c/csswg/cssom-view",
"status": "complete"
},
{
"repo": "WICG/priority-hints",
Expand Down Expand Up @@ -688,7 +712,8 @@
"repo": "WICG/spatial-navigation",
"notice": "https://github.com/WICG/spatial-navigation/issues/138",
"date": "2018-11-16",
"wgshortname": "w3c/css"
"wgshortname": "w3c/css",
"status": "complete"
},
{
"repo": "WICG/mst-content-hint",
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
"parse-link-header": "^2.0.0",
"rss-parser": "^3.13.0",
"undici": "^5.28.4",
"web-specs": "^3.36.0"
"web-specs": "^3.37.0"
}
}
16 changes: 12 additions & 4 deletions report-specs.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,20 +80,25 @@ for (const spec of report.wicg.specs.sort((a, b) => a.lastModified.localeCompare
}


for (const repo of Object.keys(report.wicg.repos).sort()) {
for (const repo of Object.keys(report.wicg.repos).sort((a,b) => report.wicg.repos[a]?.lastModified?.localeCompare(report.wicg.repos[b].lastModified))) {
const dt = document.createElement("dt");
const link = document.createElement("a");
link.href = `https://github.com/${repo}`;
link.textContent = repo;
dt.append(link);
list.append(dt);
const {transition, lastModified, notes} = report.wicg.repos[repo];
let computedNotes = notes;

if (transition?.notice) {
const transitionDd = document.createElement("dd");
const transitionLink = document.createElement("a");
transitionLink.href = transition.notice;
transitionLink.append(`${transition.status || ""} to ${transition.wgshortname} (${transition.date})`);
transitionDd.append(transitionLink);
if (transition.status === "complete") {
computedNotes = "transitioned, needs archiving";
}
list.append(transitionDd);
}
if (lastModified) {
Expand All @@ -102,7 +107,10 @@ for (const repo of Object.keys(report.wicg.repos).sort()) {
list.append(lmDd);
}

const dd = document.createElement("dd");
dd.append(notes);
list.append(dd);
if (computedNotes) {
const dd = document.createElement("dd");
dd.classList.add("warning");
dd.textContent = "⚠" + computedNotes;
list.append(dd);
}
}
8 changes: 7 additions & 1 deletion spec-annotations.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,11 @@
"https://wicg.github.io/media-feeds/": "editors said they wanted to re-evaluate incubation (in Feb 2023) https://github.com/WICG/media-feeds/issues/59#issuecomment-1439286577",
"https://wicg.github.io/css-parser-api/": "editor thinks still worth exploring, but no change since Feb 2023 https://github.com/WICG/css-parser-api/issues/21#issuecomment-1433704949",
"https://wicg.github.io/datacue/": "Singe implementation for a very long time",
"": ""
"WICG/display-override": "overtaken by manifest-incubations, needs archiving",
"WICG/storage-foundation-api-explainer": "overtaken by filesystem-access, needs archiving",
"WICG/origin-policy": "explicitly no longer worked on, archive?",
"WICG/pwa-url-handler": "proposal now explicitly obsoleted by manifest-incubations, needs archiving",
"WICG/bundle-preloading": "protocol part sent to IETF WG which has since been closed for lack of progress",
"mobile-document-request-api": "moved to digital-credentials, clean up and archive see https://github.com/WICG/mobile-document-request-api/issues/14",
"raw-clipboard-access": "replaced with web customer format https://github.com/WICG/raw-clipboard-access/issues/8 , needs archiving"
}
2 changes: 1 addition & 1 deletion spec-monitor.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ for (const repo of repoData.repos.filter(r => r.w3c?.["repo-type"]?.includes("cg
if (!specs.length) {
const lastCommit = await fetchLastCommit(repoName);
const lastModificationDate = new Date(lastCommit.commit.committer.date);
report[cgShortname].repos[repoName] = { notes: `${repoName} does not have a matching entry in browser-specs`, lastModified: lastModificationDate.toJSON(), transition};
report[cgShortname].repos[repoName] = { notes: specAnnotations[repoName] ?? "", lastModified: lastModificationDate.toJSON(), transition};
continue;
}

Expand Down
Loading

0 comments on commit 0ddcdc2

Please sign in to comment.