Skip to content

feat: search learning paths; e2e and axe checks (spec 006 T4, T6) - #41

Merged
matbrgz merged 1 commit into
masterfrom
feat/learning-paths-search
Oct 12, 2026
Merged

matbrgz merged 1 commit into
masterfrom
feat/learning-paths-search

Conversation

@matbrgz

@matbrgz matbrgz commented Oct 12, 2026

Copy link
Copy Markdown
Member

Closes the remaining spec 006 tasks.

  • Search (T4): /api/<lang>/search-index.json lists every learning path (type learning-path) with its summary and step titles, so step topics find their path. Entries go through the same HTML escaping as the rest of the index.
  • e2e (T6): e2e/tests/learning-paths.spec.mjs checks three things:
    • progress persists across reloads and is announced;
    • with JavaScript, only the next unfinished step is open;
    • without JavaScript, every step is open and its resources are readable.
  • axe: the learning paths index and a pt-BR path are added to accessibility.spec.mjs.
  • Build test: the pt-BR index lists the 12 paths and indexes no "see also" link as a resource.

Checked

  • The e2e and axe tests ran against production (E2E_BASE_URL=https://ipl.better-web.org), where the paths are already live: 12 of 12 pass, desktop and mobile, light and dark.
  • The search change was rendered in a Ruby 3.2.2 container: the pt-BR index has the 12 paths.

🤖 Generated with Claude Code

- The flat search index lists every learning path with its summary and
  step titles, so searching "Flexbox" or "Kubernetes" finds the path.
- e2e: progress persists across reloads and is announced; only the next
  unfinished step opens with JavaScript; every step is open and readable
  without it.
- axe: the learning paths index and a pt-BR path are covered in light and
  dark, desktop and mobile.
- Build test: the pt-BR search index lists the 12 paths and no "see also"
  link as a resource.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Deploying iplibrary-website with  Cloudflare Pages  Cloudflare Pages

Latest commit: e168891
Status: ✅  Deploy successful!
Preview URL: https://97e3103c.iplibrary-website.pages.dev
Branch Preview URL: https://feat-learning-paths-search.iplibrary-website.pages.dev

View logs

@matbrgz
matbrgz merged commit 6d565cb into master Oct 12, 2026
10 of 13 checks passed
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