Skip to content

[docs] Fix playground editor template dropdown — restore 4 missing templates#25528

Merged
pelikhan merged 1 commit intomainfrom
docs/fix-playground-template-dropdown-25526-7a20044cc0e56f35
Apr 9, 2026
Merged

[docs] Fix playground editor template dropdown — restore 4 missing templates#25528
pelikhan merged 1 commit intomainfrom
docs/fix-playground-template-dropdown-25526-7a20044cc0e56f35

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions github-actions bot commented Apr 9, 2026

Restores the 4 missing template entries (Issue Triage, CI Doctor, Contribution Guidelines Checker, Daily Repo Status) as inline content in the SAMPLES object in docs/public/editor/editor.js.

Root Cause

Commit c46362c4c7 removed the URL-based fetching from editor.js for security, and deleted the 4 non-hello-world template entries from SAMPLES. However, the corresponding <option> elements were left in index.html. When loadSample(key) is called for any key other than hello-world, SAMPLES[key] returns undefined and the function returns early — leaving the editor unchanged.

Fix

Restored the 4 templates as inline content in the SAMPLES object:

Key Label
issue-triage Issue Triage
ci-doctor CI Doctor
contribution-check Contribution Guidelines Checker
daily-repo-status Daily Repo Status

No changes to index.html, event handlers, or deep-link logic — they already work correctly; they just needed SAMPLES data populated.

📝 Detailed Changes & References

Changes Made

  • Added 4 template entries to SAMPLES in docs/public/editor/editor.js as inline content
  • No URL fetching — all content is inline JavaScript strings
  • No new dependencies — editor remains dependency-free

Merged PRs Referenced

None — this is a standalone doc bug fix.

Skipped Issues

Notes

Closes #25526

Generated by Daily Documentation Updater · ● 504.7K ·

  • expires on Apr 10, 2026, 8:40 PM UTC

Restores 4 template entries (Issue Triage, CI Doctor, Contribution
Guidelines Checker, Daily Repo Status) as inline content in the
SAMPLES object in docs/public/editor/editor.js.

These were previously removed in c46362c when URL-based fetching
was disabled for security, but the corresponding HTML <option> elements
were left in place, breaking the template dropdown for all templates
other than Hello World.

Closes #25526

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions github-actions bot added automation documentation Improvements or additions to documentation labels Apr 9, 2026
@pelikhan pelikhan merged commit e300d18 into main Apr 9, 2026
@pelikhan pelikhan deleted the docs/fix-playground-template-dropdown-25526-7a20044cc0e56f35 branch April 9, 2026 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automation documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Playground editor template dropdown is broken — only Hello World works

1 participant