Commit graph

423 commits

Author SHA1 Message Date
cfc6dec1f4 remove unnecessary preservation in progress calculation that was creating placeholder confusion 2025-07-11 21:18:59 -04:00
a7dddf24d8 fix small model cutoffs by accounting for translation output expansion in chunking logic 2025-07-11 21:02:23 -04:00
a43714f82d fix tab content visibility and add proper styling to URL input 2025-07-11 20:59:43 -04:00
9550fb8e94 re-enable relative to absolute URL conversion for remote translations 2025-07-11 20:54:56 -04:00
e0a784c073 fix remote translation double processing by calling translateHTML directly 2025-07-11 20:53:54 -04:00
004764a05b add translation ID tracking to debug repeated page issues 2025-07-11 20:50:07 -04:00
84b06202dd fix countTokens returning object instead of number causing incorrect chunking 2025-07-11 20:48:40 -04:00
af6108e988 add debug logging to see why chunking is being triggered when it shouldn't 2025-07-11 20:46:44 -04:00
f476b6e476 disable URL conversion during chunking and add debug logging for chunk content 2025-07-11 20:43:09 -04:00
8e78df00c0 fix DOM duplication by chunking only body content and reassembling properly 2025-07-11 20:39:15 -04:00
bbac26b487 fix chunking to work on original HTML before preservation, not placeholder soup 2025-07-11 20:29:05 -04:00
a2a786040e remove preservations references from translateTextRaw function 2025-07-11 20:24:50 -04:00
99bdb1c6f8 clean up preservations scope in translation functions 2025-07-11 20:22:30 -04:00
7d3e7ec111 complete translateTextRaw function to properly separate raw and preserved translation 2025-07-11 20:19:39 -04:00
36828be6ae fix double HTML preservation in chunked translations by using raw translate function 2025-07-11 20:18:46 -04:00
5ddf7d36d7 fix HTML placeholder restoration in parallel chunk translation 2025-07-11 20:16:27 -04:00
eed55b922a add parallel chunk translation for massive speed improvement on large pages 2025-07-11 20:13:38 -04:00
0b02a3d75e implement intelligent chunking for large page translations based on actual token limits 2025-07-11 20:11:31 -04:00
0f51d07eb1 add translateHTML function to unify translation logic between current page and remote page translations 2025-07-11 19:47:04 -04:00
a340ea4f75 convert all relative URLs to absolute URLs in remote translations 2025-07-11 19:42:11 -04:00
46a7a8c92e fix base URL resolution for remote translations using proper URL constructor 2025-07-11 19:31:21 -04:00
d09b204f60 fix preservations variable name in translateRemoteHTML 2025-07-11 19:28:09 -04:00
3d06f28954 fix remote translation to preserve full DOM structure like page translation 2025-07-11 19:25:23 -04:00
4d53518087 fix translate modal: 3 columns layout and always open remote translations in new window 2025-07-11 19:19:38 -04:00
a89a45e177 update CORS proxy to use cors-proxy.uncloseai.com endpoint 2025-07-11 19:05:47 -04:00
2b69a4d17d update CORS proxy URL to use query parameter format 2025-07-11 17:46:23 -04:00
196527c674 use uncloseai.com CORS proxy at /api/fetch/ 2025-07-11 17:05:44 -04:00
695049ff90 use public CORS proxy for remote URL fetching 2025-07-11 17:04:03 -04:00
aa1285ba6c update remote URL fetching to use uncloseai.com CORS proxy 2025-07-11 17:01:33 -04:00
b050bbc6bf fix syntax errors: remove double commas from translation files 2025-07-11 16:50:57 -04:00
928f658328 add remote URL translation tab: fetch and translate any website just-in-time 2025-07-11 16:44:02 -04:00
2587fcf050 fix translation title: add original title + translated into language to new window 2025-07-11 16:35:49 -04:00
5477c2d6a5 fix ui.js buffer variable conflict: rename stream buffer to avoid redeclaration 2025-07-11 16:32:44 -04:00
10de872c6c fix variable conflict: rename stream buffer to avoid const redeclaration error 2025-07-11 16:31:17 -04:00
54f05b0af0 implement proportional token buffer: use 1.5x input tokens instead of fixed 2048 2025-07-11 16:29:11 -04:00
21349b9fcc fix openTranslateModal error: use window.openTranslateModal and remove duplicate import 2025-07-11 16:25:54 -04:00
a991ca4626 improve UX: close button closes settings panel first, then modal on second click 2025-07-11 16:16:48 -04:00
f304b6f634 standardize modal dropdown ID: use 'modal-model-selection' consistently 2025-07-11 15:56:44 -04:00
f939d1c782 fix model endpoint routing: properly route custom endpoint models to custom API with correct credentials 2025-07-11 15:52:08 -04:00
047d1e7856 add debug logging to track custom endpoint detection issue 2025-07-11 15:41:49 -04:00
559dd59522 fix CI pipeline: handle JSDOM dependency gracefully for modal tests 2025-07-11 15:39:08 -04:00
04e7e71e2e fix model refresh: include custom endpoint in model fetching when checkbox is checked regardless of current model routing 2025-07-11 15:36:23 -04:00
8b0fe6d2ac apply 2048 token buffer to all upstream API requests: translation and TTS now calculate available tokens properly 2025-07-11 15:25:02 -04:00
3a4952087d increase token buffer to 2048 for safer margin 2025-07-11 15:15:23 -04:00
96f8edc2e7 fix token limit calculation: use available tokens instead of model max to prevent context overflow 2025-07-11 15:04:29 -04:00
f7ddf32fff track package-lock.json for reproducible builds 2025-07-11 14:59:05 -04:00
cc03367fb1 update gitignore: add node_modules and package-lock.json 2025-07-11 14:58:29 -04:00
527fbfad1b remove jest dependencies and old test files: clean migration to custom test framework 2025-07-11 14:57:22 -04:00
133daabd77 add jest-free testing framework: comprehensive integration, modal, and simple test suites with improved error handling 2025-07-11 14:56:57 -04:00
ca9c994bfe fix model endpoint routing: use model's registered endpoint over custom when available, add page title to translate modal tab 2025-07-11 14:56:02 -04:00