Skip to content

Remove website modal and use cookbook detail routes#2312

Merged
aaronpowell merged 2 commits into
mainfrom
aaronpowell-modal-removal-exploration
Jul 16, 2026
Merged

Remove website modal and use cookbook detail routes#2312
aaronpowell merged 2 commits into
mainfrom
aaronpowell-modal-removal-exploration

Conversation

@aaronpowell

Copy link
Copy Markdown
Contributor
  • replace cookbook recipe/example modal views with dedicated detail pages
  • add legacy #file cookbook hash redirects to canonical routes
  • remove modal component/runtime and associated CSS and stale page references

Co-authored-by: Copilot App 223556219+Copilot@users.noreply.github.com

Copilot-Session: ca1a64ec-678f-45ac-ba68-33a37717398a

Pull Request Checklist

  • I have read and followed the CONTRIBUTING.md guidelines.
  • I have read and followed the Guidance for submissions involving paid services.
  • My contribution adds a new instruction, prompt, agent, skill, workflow, or canvas extension file in the correct directory.
  • The file follows the required naming convention.
  • The content is clearly structured and follows the example format.
  • I have tested my instructions, prompt, agent, skill, workflow, or canvas extension with GitHub Copilot.
  • I have run npm start and verified that README.md is up to date.
  • I am targeting the main branch for this pull request.

Description


Type of Contribution

  • New instruction file.
  • New prompt file.
  • New agent file.
  • New plugin.
  • New skill file.
  • New agentic workflow.
  • New canvas extension.
  • Update to existing instruction, prompt, agent, plugin, skill, workflow, or canvas extension.
  • Other (please specify):

Additional Notes


By submitting this pull request, I confirm that my contribution abides by the Code of Conduct and will be licensed under the MIT License.

- replace cookbook recipe/example modal views with dedicated detail pages
- add legacy #file cookbook hash redirects to canonical routes
- remove modal component/runtime and associated CSS and stale page references

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: ca1a64ec-678f-45ac-ba68-33a37717398a
Copilot AI review requested due to automatic review settings July 16, 2026 04:52
@github-actions github-actions Bot added new-submission PR adds at least one new contribution website-update PR touches website content or code labels Jul 16, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Replaces cookbook modals with canonical recipe detail pages and redirects legacy cookbook hashes.

Changes:

  • Adds cookbook recipe detail routes with file browsing.
  • Replaces modal buttons with direct links and legacy redirects.
  • Removes modal components, runtime, and styles.
Show a summary per file
File Description
website/src/styles/global.css Removes modal styles.
website/src/scripts/pages/samples.ts Adds legacy hash redirects.
website/src/scripts/pages/samples-render.ts Links cards to detail routes.
website/src/scripts/modal.ts Removes modal runtime.
website/src/pages/learning-hub/cookbook/index.astro Removes cookbook modal.
website/src/pages/learning-hub/cookbook/[cookbook]/[language]/[recipe].astro Adds recipe detail page.
website/src/pages/index.astro Removes homepage modal.
website/src/integrations/pagefind-resources.ts Removes obsolete search hashes.
website/src/components/Modal.astro Removes modal component.

Review details

  • Files reviewed: 9/9 changed files
  • Comments generated: 2
  • Review effort level: Medium

return Astro.redirect("/learning-hub/cookbook/");
}

const { markdownHtml } = readResourceMarkdown(variant.doc);
Comment on lines +948 to 950
.hidden {
display: none;
}
Copilot AI review requested due to automatic review settings July 16, 2026 05:13
@aaronpowell
aaronpowell merged commit 1a77b83 into main Jul 16, 2026
18 of 19 checks passed
@aaronpowell
aaronpowell deleted the aaronpowell-modal-removal-exploration branch July 16, 2026 05:17

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Review details

  • Files reviewed: 9/9 changed files
  • Comments generated: 3
  • Review effort level: Medium

return Astro.redirect("/learning-hub/cookbook/");
}

const { markdownHtml } = readResourceMarkdown(variant.doc);
Comment on lines +169 to +174
<FileBrowser
files={files}
primaryPath={variant.doc}
primaryName={variant.doc.split("/").pop() ?? variant.doc}
primaryHtml={markdownHtml}
githubBase={GITHUB_BASE}
Comment on lines +948 to 950
.hidden {
display: none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new-submission PR adds at least one new contribution website-update PR touches website content or code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants