Skip to content

feat: per-tool /integrations pages + llms.txt + UI cleanup#132

Merged
tomasz-tomczyk merged 1 commit intomainfrom
improve-install-docs
Apr 27, 2026
Merged

feat: per-tool /integrations pages + llms.txt + UI cleanup#132
tomasz-tomczyk merged 1 commit intomainfrom
improve-install-docs

Conversation

@tomasz-tomczyk
Copy link
Copy Markdown
Owner

Summary

  • 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.
  • New /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 from CritWeb.PageHTML (view) into Crit.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.
  • JS copy buttons consolidated to a single .copy-btn class with document-level click delegation, matching the existing identity-popover pattern. Same delegation pattern for .install-tab and .agent-tab so they keep working after live navigation between pages.
  • Controller tests added for /integrations index, all eight per-tool pages (including the marketplace branch), and the 404 fallback for unknown tool slugs.

See also: tomasz-tomczyk/crit#TBD

Review

  • Code review: elixir-expert pass + fixup applied (data layer split, dead GenServer removed, HEEx case/cond instead of if/else, latent 404 view bug fixed, component lookup foot-gun replaced with fetch_component!)
  • Parity audit: paired with crit changes that ship the new install behavior documented here

Test plan

  • mix compile --warnings-as-errors clean
  • mix test — 471 tests, 0 failures
  • mix sobelow --skip — no new vulnerabilities (existing low-confidence flags unchanged)
  • Manual: /integrations renders the card grid with logos, links navigate to each tool page
  • Manual: /integrations/cursor (and each other tool) renders correctly; copy-to-clipboard buttons work
  • Manual: /integrations/does-not-exist returns 404
  • Manual: curl https://crit.md/llms.txt returns the structured install index
  • Manual: https://crit.md/sitemap.xml includes all eight per-tool URLs

🤖 Generated with Claude Code

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>
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 27, 2026

Codecov Report

❌ Patch coverage is 85.71429% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 77.21%. Comparing base (27f7d6a) to head (dbdd48e).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
lib/crit/integrations.ex 75.00% 2 Missing ⚠️
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     
Flag Coverage Δ
unit 77.21% <85.71%> (+1.41%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@tomasz-tomczyk tomasz-tomczyk merged commit ae68bf9 into main Apr 27, 2026
4 checks passed
@tomasz-tomczyk tomasz-tomczyk deleted the improve-install-docs branch April 27, 2026 12:40
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.

1 participant