Commit Graph

15 Commits

Author SHA1 Message Date
Claude afe00b3534 Fix OpenRouter API key not working for translation and improve error handling
- API key retrieval now trims whitespace (pasted keys with spaces caused auth failures)
- Fallback to Vue data property if localStorage is empty (covers forgot-to-save case)
- Auto-saves key to localStorage when found only in Vue data
- HTTP-level error handling (401/402/403) with clear user-facing messages
- Changed HTTP-Referer from window.location.origin to window.location.href
  (origin returns "null" for file:// URLs, breaking OpenRouter requests)
- Handle non-JSON error responses gracefully
- Handle string-type error responses from OpenRouter
- Added missing else branch for empty API responses
- Updated README with AI Translation, PromptCraft, and OpenRouter key setup docs

https://claude.ai/code/session_01DjqbQB8WcZoGVe78sjvh72
2026-03-21 02:11:28 +00:00
pliny 2eefb913ea Update TranslateTool.js 2026-03-20 18:31:22 -07:00
pliny 41bf8a9659 Update error message for missing API key 2026-03-20 18:28:39 -07:00
pliny 6144c568f5 Update TranslateTool.js 2026-03-20 18:20:34 -07:00
pliny 9c11572f97 Add files via upload 2026-03-20 18:16:57 -07:00
pliny 43116ba23a Fix formatting in TranslateTool.js 2026-03-20 17:51:38 -07:00
pliny 6a72161544 Update TranslateTool.js 2026-03-20 17:51:25 -07:00
pliny 472a25b7a3 Fix emoji flag for Portugal in TranslateTool.js 2026-03-20 17:47:17 -07:00
pliny 67c2fa9a47 Update TranslateTool.js 2026-03-20 17:46:30 -07:00
pliny 8ebe61cad3 Update TranslateTool.js 2026-03-20 17:44:16 -07:00
pliny 42884083fb Update TranslateTool.js 2026-03-20 17:43:33 -07:00
pliny 50f17b44e2 Update TranslateTool.js 2026-03-20 17:40:06 -07:00
pliny b56e419bca Add files via upload 2026-03-20 17:02:44 -07:00
Dustin Farley 27d63583a5 favs, last used, sortable columns, and update splitter transforms to match selection 2025-12-06 00:21:38 -08:00
Dustin Farley dc10a90851 refactor: migrate to modular tool-based architecture
- Implement tool registry system with individual tool modules
- Reorganize transformers into categorized source modules
- Remove emojiLibrary.js, consolidate into EmojiUtils and emojiData
- Fix mobile close button and tooltip functionality
- Add build system for transforms and emoji data
- Migrate from Python backend to pure JavaScript
- Add comprehensive documentation and testing
- Improve code organization and maintainability
- Ignore generated files (transforms-bundle.js, emojiData.js)
2025-12-02 20:26:32 -08:00