Skip to content

🎉 (admin) add refresh DIs button#6232

Open
sophiamersmann wants to merge 1 commit intomasterfrom
admin-refresh-dis
Open

🎉 (admin) add refresh DIs button#6232
sophiamersmann wants to merge 1 commit intomasterfrom
admin-refresh-dis

Conversation

@sophiamersmann
Copy link
Member

@sophiamersmann sophiamersmann commented Mar 13, 2026

Resolves #4804

There’s currently a limitation where new content from gdocs is only fetched when the admin preview is visited, so DIs shown on the DI index page in the admin can go stale.

Authors sometimes update the figma-url field in the gdoc and expect the ‘Figma URL’ and ‘Update image’ buttons to appear on the DI index page. One workaround is to visit the DI preview page in the admin, but this keeps coming up, so I thought it was time to fix it.

I went with a ‘Refresh’ button, instead of refreshing automatically in the background on page load, because it’s much simpler and means I don’t have to worry about things like debouncing while typing in the search input, etc

@github-actions github-actions bot added the staging-viz Let SVG tester fail silently in CI label Mar 13, 2026
@owidbot
Copy link
Contributor

owidbot commented Mar 13, 2026

Quick links (staging server):

Site Dev Site Preview Admin Wizard Docs

Login: ssh owid@staging-site-admin-refresh-dis

Archive:
SVG tester:

Number of differences (graphers): 0 ✅
Number of differences (grapher views): 0 ✅
Number of differences (mdims): 0 ✅
Number of differences (explorers): 0 ✅
Number of differences (thumbnails): 0 ✅

Edited: 2026-03-13 13:25:26 UTC
Execution time: 1.32 seconds

@sophiamersmann sophiamersmann marked this pull request as ready for review March 13, 2026 14:41
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a054678994

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

staging-viz Let SVG tester fail silently in CI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

(admin) DI index page shows outdated data

2 participants