Commit graph

356 commits

Author SHA1 Message Date
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
d0096e6943 fix: lower copy code button z-index to stay below settings panel
- Reduce z-index from 10 to 5 for copy code buttons
- Prevents buttons from appearing on top of settings panel
- Settings panel has z-index 10 and should stay on top when open
- Applied to both builtin and PicoCSS styles
2025-07-10 18:03:06 -04:00
46def6655b fix: move copy code button to bottom-right and increase modal width
- Move copy code button from bottom-left to bottom-right of code blocks
- Increase main modal width from 70vw to 80vw
- Increase max-width from 800px to 1000px
- Prevents horizontal scrolling in chat area
- Applied to both builtin and PicoCSS override styles
2025-07-10 17:32:12 -04:00
884364a934 style: change action buttons from pills to square emoji buttons
- Change border-radius from 20px to 6px for square corners
- Make emoji-only buttons fixed 36x36px squares
- Use grid layout with place-content: center for emoji centering
- Matches the style of emoji buttons used in chat messages
- Reduced padding to 8px for consistent square appearance
2025-07-10 17:28:15 -04:00
9407f157bc fix: convert markdown button to emoji format
- Change fullPageRaw button from text to emoji + tooltip format
- Use 📝 emoji for markdown conversion functionality
- Follows same pattern as other action buttons
2025-07-10 17:25:30 -04:00
a5e135eca6 fix: convert action buttons to emoji-only with tooltips and remove modal backdrops
- Remove smart translate button functionality (non-working)
- Convert all action buttons to emoji + tooltip format:
  📖 Read Page, 🔊 TTS Anything, 🌐 Translate, 📋 Copy Raw, 📄 Copy HTML
- Add emoji-only CSS class with 18px font size for emojis
- Add backdrop removal for TTS and translate modals in builtin CSS
- Update button creation to use title attribute for tooltips
- Reduce padding for emoji-only buttons (8px 12px vs 8px 16px)
2025-07-10 17:14:15 -04:00
85415e2221 fix: make action buttons expand to fit text content
- Remove overflow hidden and text-overflow ellipsis from buttons
- Change grid-auto-columns from minmax(0, max-content) to max-content
- Allow buttons to stretch to accommodate full text without truncation
- Keep white-space: nowrap to prevent text wrapping
2025-07-10 17:01:42 -04:00
a8be7730a3 fix: improve settings panel positioning and button centering
- Lower settings panel by 15px more (80px to 95px top offset)
- Use place-content instead of place-items for proper grid centering
- Keep all layouts using CSS Grid as requested
- Fix gear and close button centering in both CSS files
2025-07-10 16:55:33 -04:00
7f64ff0d51 fix: remove distracting PicoCSS backdrop filters from modals
- Add ::backdrop overrides for all dialog modals
- Set backdrop-filter to none and background-color to transparent
- Applied to uncloseai-embedded-modal, translate-modal, and tts-modal
- Removes the blurry backdrop effect from PicoCSS theme
2025-07-10 16:39:30 -04:00
e2b413917f fix: improve settings panel and button overflow issues
- Increase settings panel top offset from 60px to 80px to avoid header
- Remove max-height: 40vh restriction on settings panel
- Add overflow hidden and text-overflow ellipsis to buttons
- Change grid-auto-columns to minmax(0, max-content) for proper sizing
- Ensure buttons don't expand beyond their content width
2025-07-10 16:34:33 -04:00
e7f90a266d fix: repair grid layout issues from conversion
- Use grid-auto-flow: column for horizontal button layouts
- Fix controls and message actions to display horizontally
- Add theme-aware background colors for settings panel
- Move settings panel top position to avoid covering header
- Ensure all button text stays within button boundaries
2025-07-10 16:27:31 -04:00
a7323e68cd refactor: convert all flexbox layouts to CSS Grid in modal styles
- Convert modal container from flex column to grid with explicit rows
- Replace flex centering with grid place-items: center
- Convert header layouts from flex space-between to grid 1fr auto
- Transform input areas from flex to grid column layouts
- Update chat messages from flex column to grid single column
- Convert TTS controls, voice selection, and audio controls to grid
- Replace flex-wrap patterns with grid auto-fit minmax columns
- Remove all flex-shrink, flex-direction, and space-between properties
- Update align-self flex-start/end to justify-self start/end for grid
- Apply changes to both builtin and PicoCSS override stylesheets

This completes the systematic conversion from Flexbox to CSS Grid
layouts throughout the modal interface as requested.
2025-07-10 13:49:37 -04:00
8c61e7e8e4 fix: settings panel now fills entire modal using CSS Grid
- Changed settings panel from flex to CSS Grid layout
- When open, settings panel covers the entire modal with absolute positioning
- Uses grid-template-columns: 1fr with 20px gap and align-content: start
- Added background color and z-index for proper overlay behavior
- Updated both PicoCSS and built-in CSS versions
2025-07-10 13:15:32 -04:00
4517e280fa fix: improve button and message visibility
- Increased font-size from 13px to 18px for .uncloseai-btn-control (toolbelt buttons)
- Moved code copy button to bottom-left and increased size to 18px
- Increased background opacity from 0.7 to 0.9 for code copy button
- Changed message backgrounds from solid colors to 95% opacity for better visibility
- Updated both PicoCSS and built-in CSS versions
2025-07-10 08:35:14 -04:00
b515efac53 fix: increase emoji button font size from 12px to 18px
- Updated .uncloseai-btn-small font-size from 12px to 18px in both CSS files
- Makes emoji icons more visible and appropriately sized
- Improves button usability and visual hierarchy
2025-07-10 08:25:51 -04:00
54d98679ff fix: increase floating button width to prevent text wrapping
- Increased width from 110px to 120px to accommodate 'uncloseai.' text
- Added white-space: nowrap to prevent any text wrapping
- Updated both PicoCSS and built-in CSS versions
2025-07-10 08:23:56 -04:00
d9ee717d13 fix: ensure CSS loads before creating floating button
- Wait for CSS to load via onload event before creating button
- Prevents button appearing unstyled on initial page load
- Fallback to direct modal opening if toggleUncloseaiEmbeddedModal not available
- Refactored button creation into separate function for better flow control
2025-07-10 07:03:48 -04:00
675b8fefd1 fix: add delay for CSS loading to ensure floating button styles are applied
- Added 100ms delay when CSS needs to be loaded for floating button
- This ensures CSS rules are parsed before button is displayed
- Fixes issue where button appeared unstyled in top-left corner
2025-07-10 07:00:50 -04:00
a1a53fcf07 fix: load CSS for floating button on blog sites to restore position and styling 2025-07-10 06:56:56 -04:00
3f9cb2c40f refactor: replace all inline styles with CSS classes for better maintainability
- Moved 115+ inline styles from uncloseai-embed-modal.js to CSS classes
- Cleaned all inline styles from page-reader.js, widget-library.js, chat.js, models.js, file-upload.js
- Added CSS custom properties for theming support
- Created reusable CSS classes for buttons, containers, and UI elements
- Only retained legitimate dynamic styles (height calculations, position adjustments)
- Improved consistency with PicoCSS overrides
2025-07-09 21:32:55 -04:00