feat: per-tool /integrations pages + llms.txt + UI cleanup#132
Merged
tomasz-tomczyk merged 1 commit intomainfrom Apr 27, 2026
Merged
feat: per-tool /integrations pages + llms.txt + UI cleanup#132tomasz-tomczyk merged 1 commit intomainfrom
tomasz-tomczyk merged 1 commit intomainfrom
Conversation
Each supported agent now has its own URL (/integrations/claude-code, /integrations/cursor, etc.) with a tool-specific intro, install commands, and component breakdown. The /integrations index becomes a card grid linking to each tool, with logos that swap on theme. Adds /llms.txt at the site root so AI agents looking up "how do I install crit?" land on a structured installation index. Per-tool URLs added to sitemap.xml. Integration data and component definitions moved out of CritWeb.PageHTML and into Crit.Integrations as a plain module (the previous GenServer that hourly-fetched GitHub snippets is removed). Controller no longer reaches into the view module for data. JS copy buttons consolidated to a single .copy-btn class with document- level click delegation, matching the existing identity-popover pattern. Same delegation pattern applied to .install-tab and .agent-tab handlers so they keep working after live navigation between pages. Adds controller tests for /integrations index, all eight per-tool pages (including the marketplace branch), and the 404 fallback for unknown tool slugs. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
7 tasks
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #132 +/- ##
==========================================
+ Coverage 75.80% 77.21% +1.41%
==========================================
Files 52 52
Lines 1579 1567 -12
==========================================
+ Hits 1197 1210 +13
+ Misses 382 357 -25
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/integrations/claude-code,/integrations/cursor, etc.) with a tool-specific intro, install commands, and component breakdown. The/integrationsindex becomes a card grid linking to each tool, with logos that swap on theme./llms.txtat the site root so AI agents looking up "how do I install crit?" land on a structured installation index. Per-tool URLs added tositemap.xml.CritWeb.PageHTML(view) intoCrit.Integrations(domain) as a plain module. The previous GenServer that hourly-fetched GitHub snippets is removed. Controller no longer reaches into the view module for data..copy-btnclass with document-level click delegation, matching the existing identity-popover pattern. Same delegation pattern for.install-taband.agent-tabso they keep working after live navigation between pages./integrationsindex, all eight per-tool pages (including the marketplace branch), and the 404 fallback for unknown tool slugs.See also: tomasz-tomczyk/crit#TBD
Review
case/condinstead ofif/else, latent 404 view bug fixed, component lookup foot-gun replaced withfetch_component!)Test plan
mix compile --warnings-as-errorscleanmix test— 471 tests, 0 failuresmix sobelow --skip— no new vulnerabilities (existing low-confidence flags unchanged)/integrationsrenders the card grid with logos, links navigate to each tool page/integrations/cursor(and each other tool) renders correctly; copy-to-clipboard buttons work/integrations/does-not-existreturns 404curl https://crit.md/llms.txtreturns the structured install indexhttps://crit.md/sitemap.xmlincludes all eight per-tool URLs🤖 Generated with Claude Code