Skip to content

fix(landing-page): make #agents-all anchor link functional#777

Merged
JeremyDev87 merged 1 commit intomasterfrom
fix/agents-all-anchor-762
Mar 21, 2026
Merged

fix(landing-page): make #agents-all anchor link functional#777
JeremyDev87 merged 1 commit intomasterfrom
fix/agents-all-anchor-762

Conversation

@JeremyDev87
Copy link
Owner

Summary

  • Fix broken #agents-all anchor on the landing page that produced no visible action or scroll
  • Use useSyncExternalStore to reactively track URL hash (#agents-all) and toggle between showing 8 agents and all agents
  • Add id="agents-all" anchor target on the agents grid element
  • Add showLess translation key to all 5 locales (en, ko, ja, zh-CN, es)
  • Add 3 new tests: expand on click, collapse on Show Less, auto-expand on hash navigation

Test plan

  • All 239 landing-page tests pass (16 AgentsShowcase tests including 3 new)
  • Lint, format, typecheck, circular dependency check all pass
  • Next.js build succeeds with static generation for all locales
  • Coverage at 97.4%
  • Navigate to /ko#agents-all — all agents should be visible
  • Click "View All Agents" — expands to show all 29 agents, URL updates to #agents-all
  • Click "Show Less" — collapses back to 8 agents, scrolls to section top

Closes #762

- Add showAll toggle using useSyncExternalStore to track URL hash
- Add id="agents-all" anchor target on the agents grid element
- Show all agents when hash is #agents-all, collapse with Show Less
- Add showLess translation key to all 5 locales
- Add tests for expand, collapse, and auto-expand on hash navigation

Closes #762
@JeremyDev87 JeremyDev87 added fix landing-page Landing page project tasks labels Mar 21, 2026
@vercel
Copy link

vercel bot commented Mar 21, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
codingbuddy-landing Ready Ready Preview, Comment Mar 21, 2026 3:40pm

@JeremyDev87 JeremyDev87 merged commit 79b6911 into master Mar 21, 2026
25 checks passed
@JeremyDev87 JeremyDev87 deleted the fix/agents-all-anchor-762 branch March 21, 2026 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix landing-page Landing page project tasks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: Landing page #agents-all section not responding

1 participant