Commit graph

375 commits

Author SHA1 Message Date
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
2363944fa6 update src files with latest changes 2025-07-11 14:30:44 -04:00
affa6f5ca8 modified: journal.rst 2025-07-11 07:28:18 -04:00
595ac0a597 add model count feedback to refresh button: shows loading state and final count 2025-07-11 01:24:01 -04:00
cd218cc4a1 fix refresh models button: include custom API config in cache key to properly bust cache 2025-07-11 01:08:57 -04:00
02e614d733 add detailed logging for custom API model fetching to debug blog site issue 2025-07-11 01:05:35 -04:00
0af7efc863 fix model selection: add missing ID to modal model dropdown 2025-07-11 00:37:02 -04:00
525c4c315f add debug logging to getSelectedModel to trace model selection issue 2025-07-11 00:34:03 -04:00
98592efb8d Revert "fix model mismatch: validate selected model exists on custom API, fallback to default if not"
This reverts commit f4f6ae6a9c.
2025-07-11 00:32:45 -04:00
f4f6ae6a9c fix model mismatch: validate selected model exists on custom API, fallback to default if not 2025-07-11 00:31:52 -04:00
fd4cf9684b add dynamic max_tokens to all chat functions: regular chat, custom history, and intro generation 2025-07-11 00:27:28 -04:00
1b571b4ed6 add dynamic max_tokens support: capture from /v1/models API and use in translation 2025-07-11 00:24:33 -04:00
461194ee83 use base URL as endpoint ID and remove model name input field - models now selected from dropdown 2025-07-11 00:14:51 -04:00
81a4062b19 fix custom API models registry: use endpointsToFetch instead of VLLM_ENDPOINTS for lookup 2025-07-11 00:11:14 -04:00
c96a09c1f1 add custom API models to refresh: fetch /v1/models from custom endpoint when configured 2025-07-11 00:09:05 -04:00
dc95e4c535 add !important to grid styles in PicoCSS override to force 2-column layout 2025-07-11 00:05:48 -04:00
35157b052b revert dynamic import: put getAPIConfig back to static import 2025-07-11 00:03:57 -04:00
be508bcfb1 fix module caching issue: dynamically import getAPIConfig in ui.js to prevent blog site button failure 2025-07-11 00:02:45 -04:00
e9a1acf546 add detailed error logging for API failures to help debug custom endpoint issues 2025-07-10 23:52:25 -04:00
83c6ac9a2c patch all API calls: translate and intro generation now use custom API when configured 2025-07-10 23:50:20 -04:00
4259e6774c add console logging to verify custom API configuration is working 2025-07-10 23:42:23 -04:00
96082cf750 implement custom API endpoint support: centralized config function intercepts all chat API calls 2025-07-10 23:38:05 -04:00
8560ea43ce update useCustomAPI translations across all languages 2025-07-10 23:34:32 -04:00
d557ffcfbe remove labels from API configuration inputs and update placeholders 2025-07-10 23:28:48 -04:00
ebc574db25 remove unused translation keys from all language files 2025-07-10 23:21:03 -04:00
2284c4e7cb remove section labels from settings panel for cleaner UI 2025-07-10 23:16:44 -04:00
0c6277536c add mobile responsive override for settings grid to stack on small screens 2025-07-10 23:12:37 -04:00
d12428c267 restructure settings panel with two columns and add model name field to API config 2025-07-10 23:09:47 -04:00
10c5352739 move quick actions to top of settings panel 2025-07-10 23:06:51 -04:00
68b2c85966 add API configuration UI to settings panel with grid layout 2025-07-10 23:04:55 -04:00
988349b67e fix: remove hardcoded English from alerts and pass errors verbatim
- Replace English wrapper text in error alerts with direct error.message
- Use existing translation keys where available (pleaseEnterTranslateText, pleaseSelectFile)
- Remove unnecessary alerts for modal failures and operation errors
- All error messages now passed through verbatim without English text
2025-07-10 22:45:19 -04:00
f87f59c194 fix: reset heading styles to prevent blog site CSS interference
- Add CSS rules to reset all padding and margin for h1-h6 inside our modals
- Prevents blog site heading styles like 'padding-top: 30px' from breaking modal layouts
- Applied to all three modals: uncloseai-embedded-modal, tts-modal, translate-modal
2025-07-10 22:20:50 -04:00
78e4a80f36 fix: remove light background from chat area
- Change .uncloseai-modal-chat-area background from #f8f9fa to transparent
- Prevents white background showing behind short AI messages on blog sites
2025-07-10 22:15:01 -04:00
e02fb10b11 fix: remove PicoCSS modal overlay effects for TTS and translate modals
- Override --pico-modal-overlay-backdrop-filter and --pico-modal-overlay-background-color
- Set both variables to none/transparent for dialog#tts-modal and dialog#translate-modal
- Prevents upstream PicoCSS from applying default modal backdrop effects
2025-07-10 22:10:17 -04:00
4f4993b605 feat: add translations for chat message button tooltips
- Add deleteMessage, copyRawMarkdown, copyHTML translation keys to all 19 language files
- Update all chat bubble button tooltips to use translation functions
- Provides proper localization for Delete message, Copy raw (Markdown), and Copy HTML buttons
2025-07-10 22:01:43 -04:00
48c5146e65 fix: resolve chat bubble download button issues
- Fix multiple download button creation by using correct selector
- Add download buttons to historical messages during creation
- Ensure download buttons appear next to play buttons consistently
- Show/hide download buttons instead of creating them dynamically
2025-07-10 21:54:32 -04:00
e58303f971 fix: update pico.css modal controls grid template to match builtin 2025-07-10 21:46:53 -04:00
d2a2683ea2 fix: correct modal controls grid template and adjust spacing to 18px 2025-07-10 21:43:52 -04:00
0c64b7c137 fix: add downloadChatAudio translations and improve chat bubble UX
- Add downloadChatAudio translation key to all 19 language files
- Update chat bubble download buttons to use correct translation
- Fix download button duplication by creating buttons initially
- Position download buttons next to play buttons in chat bubbles
- Adjust action toolbelt spacing to 24px for better layout
2025-07-10 21:38:11 -04:00
c3d336806f modified: src/languages/ar.js
modified:   src/languages/bn.js
	modified:   src/languages/de.js
	modified:   src/languages/en.js
	modified:   src/languages/es.js
	modified:   src/languages/fr.js
	modified:   src/languages/hi.js
	modified:   src/languages/id.js
	modified:   src/languages/ja.js
	modified:   src/languages/ko.js
	modified:   src/languages/mr.js
	modified:   src/languages/pt.js
	modified:   src/languages/ru.js
	modified:   src/languages/sw.js
	modified:   src/languages/te.js
	modified:   src/languages/tr.js
	modified:   src/languages/ur.js
	modified:   src/languages/zh-tw.js
	modified:   src/languages/zh.js
	modified:   src/uncloseai-embed-modal.js
2025-07-10 20:57:59 -04:00
86ce18f181 fix: implement tooltip-based read page status with persistent download button
- Convert read page button to use tooltips for status updates
- Add download button that appears after audio generation
- Keep download button persistent after audio ends for continued access
- Remove DOM status container creation, use tooltips instead

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-10 20:21:07 -04:00
30e80b98b3 fix: complete tooltip implementation and remove DOM status element
- Update all readPageWithHermes calls to pass button parameter
- Remove CSS styling for page reader status DOM element
- Ensure all Read Page buttons use tooltips instead of separate status div

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-10 20:04:25 -04:00
40a95fa7a6 fix: convert read page status messages to tooltips with translations
- Replace DOM status element with tooltip functionality in page-reader.js
- Add translation keys for read page status messages to all 18 languages
- Update page-reader.js to use button tooltips instead of separate status div
- Fix TTS download button duplication guard with consistent CSS classes

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-10 19:54:13 -04:00
28db40609d fix: redesign read page status as bottom-right tooltip 2025-07-10 19:19:00 -04:00
db5a243228 fix: remove chat area padding and unify copy button styling
- Set chat area padding to 0px
- Remove light mode specific copy button styling for consistency

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-10 19:10:01 -04:00
6419528ae1 fix: theme-aware styling for copy button, logo, and chat box
- Remove copy button background, add light mode styling with white bg
- Ensure modal title stays white across themes
- Set chat box to off-white (#f8f9fa) for light mode, dark (#1a1a1a) for dark mode

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-10 19:05:53 -04:00
b9ee32e518 fix: apply syntax highlighting to code blocks on page reload
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-10 18:17:54 -04:00
e8066e29f9 fix: light mode styling for copy button and modal title
- Add light mode specific styling for copy code button (white bg, dark text)
- Ensure modal title stays white in both builtin and pico CSS versions
- Prevent PicoCSS from overriding title color in light mode

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-10 18:15:26 -04:00
bbbd24503f fix: set chat bubble font size to 14px explicitly
- Add font-size: 14px to .user-message and .ai-message classes
- Prevents inheritance of 18px font from emoji-only styles
- Ensures chat bubbles maintain proper 14px text size
- Applied to both builtin and PicoCSS styles
2025-07-10 18:06:11 -04:00