Skip to content

[WIP] Add recently added and updated lists to index page#64

Merged
simonw merged 3 commits intomainfrom
copilot/add-recently-lists-index-page
Oct 18, 2025
Merged

[WIP] Add recently added and updated lists to index page#64
simonw merged 3 commits intomainfrom
copilot/add-recently-lists-index-page

Conversation

Copy link
Contributor

Copilot AI commented Oct 18, 2025

  • Understand the repository structure and build process
  • Identify the issue: Recently added/updated sections were being placed in the wrong location
  • Fix build_index.py to inject the sections between <!-- recently starts --> and <!-- recently stops --> comments instead of before the "Image and media" heading
  • Add clickable date links that point to the colophon page with anchors (e.g., https://tools.simonwillison.net/colophon#rtf-to-html.html)
  • Test the fix locally and verify the output

Changes Made

Modified build_index.py to:

  1. Inject the "Recently added" and "Recently updated" sections between the <!-- recently starts --> and <!-- recently stops --> comment markers in the README.md
  2. Make dates clickable links that point to the corresponding entry in the colophon page (e.g., clicking "17th October 2025" for rtf-to-html takes you to https://tools.simonwillison.net/colophon#rtf-to-html.html)

Screenshot

The recently sections now appear in the correct location with clickable dates:

Recently sections

Original prompt

This section details on the original issue you should resolve

<issue_title>Recently added and recently updated on index page</issue_title>
<issue_description>It's a bit stale right now, the interesting stuff is all on /colophon.</issue_description>

Comments on the Issue (you are @copilot in this section)

@simonw Codex Cloud prompt:

Add "Recently added" and "Recently updated" lists to the generated index.html page, as two columns next to each other, each listing 5 files (listed just as the stub filename e.g. svg-render plus the date they were added or updated as "4th October 2025" style). Figure out recently added first and only show things in Recently updated if they were not already shown in Recently added. Make sure the build.sh script and the github actions scripts both do whatever is needed to update that information. Put these two columns together above the Image and media heading.

@simonw OK, it now looks like this: Image

That's not quite right. I want these two columns to appear where I just added these comments to the README.md:

<!-- recently starts -->
<!-- recently stops -->

Also they all seem to be showing the same date. That's wrong, they should be showing the date of either the first commit that touched them or the most recent commit that edited them, depending on which column they are in.</comment_new>

Fixes #62


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: simonw <9599+simonw@users.noreply.github.com>
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Oct 18, 2025

Deploying tools with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1189ad8
Status: ✅  Deploy successful!
Preview URL: https://42c36a8e.tools-b1q.pages.dev
Branch Preview URL: https://copilot-add-recently-lists-i.tools-b1q.pages.dev

View logs

@simonw
Copy link
Owner

simonw commented Oct 18, 2025

I sent this to Copilot while it was working:

The dates in those two columns should link to https://tools.simonwillison.net/colophon#rtf-to-html.html or similar so that the user can click the date to see what was added/changed

Co-authored-by: simonw <9599+simonw@users.noreply.github.com>
@simonw simonw marked this pull request as ready for review October 18, 2025 04:47
@simonw
Copy link
Owner

simonw commented Oct 18, 2025

Screenshot looks great. The Cloudflare preview still shows the wrong date, presumably it's only doing a shallow checkout.

@simonw simonw merged commit 0598049 into main Oct 18, 2025
4 of 6 checks passed
@simonw simonw deleted the copilot/add-recently-lists-index-page branch October 18, 2025 04:48
Copilot AI requested a review from simonw October 18, 2025 04:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Recently added and recently updated on index page

2 participants