Skip to content

feat(palette): wire real lessons into search and fix remaining French strings#47

Merged
srfwb merged 1 commit into
mainfrom
dev
Apr 27, 2026
Merged

feat(palette): wire real lessons into search and fix remaining French strings#47
srfwb merged 1 commit into
mainfrom
dev

Conversation

@srfwb
Copy link
Copy Markdown
Owner

@srfwb srfwb commented Apr 27, 2026

Summary

Two fixes: the command palette now shows real lessons and challenges instead of a placeholder, and 8 French strings that were missed during the translation pass are now in English.

What changed

User-facing

  • The command palette's Lessons group shows the actual lessons and challenges (title, difficulty, estimated time) instead of a generic "Lesson path / Coming soon" placeholder. Clicking a result starts the lesson directly from the search.
  • Template section heading translated: "Commence un nouveau projet" → "Start a new project".
  • Template titles translated: "Dossier vierge" → "Blank project", "Démarrage HTML + CSS" → "HTML + CSS Starter".
  • Bottom tip translated: "Astuce. Survole n'importe quel mot…" → "Tip. Hover any keyword…".

Internal

  • src/palette/sources.tsbuildLessonItems() now maps over ALL_CONTENT from the lesson registry instead of returning a hardcoded placeholder. Each item calls useLessonStore.getState().startLesson(id) on select. Removed unused toast import.
  • src/projects/templates.ts — 4 French strings translated.
  • src/home/sections/TemplatesSection.tsx — heading translated.
  • src/home/sections/BottomTip.tsx — 3 French strings translated.

@srfwb srfwb merged commit 32e2bf6 into main Apr 27, 2026
2 checks passed
@srfwb srfwb deleted the dev branch April 27, 2026 12:18
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