mirror of
https://github.com/direct-img/direct-img.link.git
synced 2026-10-29 07:24:52 +00:00
Feat: Link the deploy report's top images to the run summary, with a button for the run
Also drops the Pages fallback notes, since the Pages project is gone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -167,7 +167,7 @@ Object.assign(report, {
|
||||
ok: true, promoted: ids.length, bytes,
|
||||
added: ids.filter(id => !prev[id]).length, removed: Object.keys(prev).filter(id => !chosen[id]).length,
|
||||
promotedViews: ids.reduce((a, id) => a + chosen[id].views, 0),
|
||||
top: ids.slice(0, 5).map(id => ({ id, views: chosen[id].views })),
|
||||
top: ids.slice(0, 50).map(id => ({ id, views: chosen[id].views })),
|
||||
});
|
||||
await writeFile(`${CACHE}/report.json`, JSON.stringify(report, null, 2));
|
||||
console.log(JSON.stringify(report, null, 2));
|
||||
|
||||
Reference in New Issue
Block a user