feat: Add CMD+K command palette with ninja-keys integration

Implement a command palette accessible via CMD+K/Ctrl+K using the ninja-keys
web component. Features include:

- New /api/cmd-k endpoint serving dynamic CV entries (experiences, projects, courses)
- Language-aware responses with 1-hour cache headers
- Scroll-to-section functionality for quick navigation
- Enhanced keyboard shortcuts modal with CMD+K documentation
- Comprehensive test coverage for API and UI interactions

Also includes cleanup of deprecated debug test files and various UI polish
improvements to contact form, themes, and action bar components.
This commit is contained in:
juanatsap
2025-12-01 13:03:06 +00:00
parent 976b8ae2e2
commit 9a848e8c53
45 changed files with 3070 additions and 1587 deletions
+39 -1
View File
@@ -121,6 +121,10 @@
},
"actions": {
"title": "Actions",
"cmdK": {
"key": "⌘/Ctrl K",
"description": "Open command bar"
},
"print": {
"key": "Ctrl / Cmd + P",
"description": "Print or save as PDF"
@@ -187,6 +191,38 @@
"title": "Error"
}
},
"cmdK": {
"placeholder": "Type a command or search...",
"noResults": "No results found",
"sections": {
"navigation": "Navigation",
"shortcuts": "Shortcuts",
"downloads": "Downloads"
},
"actions": {
"jumpToExperience": "Jump to Experience",
"jumpToEducation": "Jump to Education",
"jumpToSkills": "Jump to Skills",
"jumpToProjects": "Jump to Projects",
"jumpToCourses": "Jump to Courses",
"jumpToLanguages": "Jump to Languages",
"jumpToAwards": "Jump to Awards",
"toggleLength": "Toggle CV Length",
"toggleIcons": "Toggle Icons",
"toggleTheme": "Toggle Theme",
"showShortcuts": "Show Keyboard Shortcuts",
"print": "Print CV",
"downloadPdfShort": "Download PDF (Short)",
"downloadPdfDefault": "Download PDF (Default)",
"downloadPdfExtended": "Download PDF (Extended)",
"viewTextCv": "View Text CV",
"downloadTextCv": "Download Text CV"
},
"button": {
"tooltip": "Command Bar",
"ariaLabel": "Open command bar (Cmd+K)"
}
},
"widgets": {
"backToTop": {
"ariaLabel": "Back to top",
@@ -232,7 +268,9 @@
"downloadPdf": "Download as PDF",
"printFriendly": "Print Friendly",
"plainText": "Plain Text",
"contact": "Contact"
"contact": "Contact",
"search": "Search",
"searchAriaLabel": "Open command bar (Cmd+K)"
}
}
}