Commit graph

96 commits

Author SHA1 Message Date
01df4d1e77 new file: src/chat.js
new file:   src/config.js
	new file:   src/content.js
	new file:   src/file-upload.js
	new file:   src/models.js
	new file:   src/page-reader.js
	new file:   src/storage.js
	new file:   src/tts.js
	new file:   src/ui.js
	modified:   uncloseai.js
	new file:   uncloseai.js.orig
2025-06-30 20:28:42 -04:00
2fed53f74b Enhance demo page with comprehensive isolated examples and integration snippets 2025-06-30 20:07:14 -04:00
7a6996bc30 Fix: Expose uncloseai.js functions to global scope
Exposed , , , , , , , , , and  functions to the global  object. This resolves  issues when these functions are called directly from HTML  attributes, particularly in .
2025-06-30 19:03:22 -04:00
a5fd6902ba Docs: Document UNCLOSEAI_FLOATING_BUTTON in index.html and demo.html
Updated index.html to correctly show the script tag for disabling the floating button. Also added the same documentation to demo.html for consistency.
2025-06-30 18:42:15 -04:00
f8a146f241 Feat: Implement per-page conversation history and ensure per-page Hermes intro caching.
This commit introduces a  function to generate unique localStorage keys based on the current page's URL. This key is now used for storing and retrieving conversation history, ensuring that each page maintains its own isolated chat thread. The Hermes introduction already uses a content-based hash for per-page caching, and this change aligns the conversation history with that behavior. Additionally, clearing the conversation history now only affects the current page and correctly repopulates the Hermes introduction for that page.
2025-06-30 18:28:24 -04:00
880c9370c0 Feat: Repopulate Hermes initial message on clear 2025-06-30 18:13:52 -04:00
50a6d39363 fix: ensure chat message delete buttons are not circular in purecss mode 2025-06-30 17:52:52 -04:00
941a5fe648 fix: remove duplicate initializeUncloseaiElements function 2025-06-30 17:30:29 -04:00
cbf48e370d feat: add debug logging to uncloseai.js 2025-06-30 17:27:32 -04:00
8f256b19fa fix: move event listener to prevent script crash 2025-06-30 17:24:31 -04:00
8c5c71eb02 fix: ensure floating button appears on all pages 2025-06-30 17:21:11 -04:00
c30194613f Reapply "fix floating button by removing duplicate check before creation"
This reverts commit e7a3371826.
2025-06-30 17:15:40 -04:00
e7a3371826 Revert "fix floating button by removing duplicate check before creation"
This reverts commit 37722fe392.
2025-06-30 17:14:52 -04:00
9a56d7f0fa fix: re-enable floating button 2025-06-30 17:10:34 -04:00
37722fe392 fix floating button by removing duplicate check before creation 2025-06-30 16:55:05 -04:00
0b573a2a86 implement class-based initialization system and DRY refactoring for uncloseai.js
- Add .uncloseai class support with data-features configuration
- Create shared utility functions for buttons, chat messages, TTS controls, voice selects, and modal headers
- Refactor class-based feature creators to use shared utilities
- Add comprehensive documentation for class-based integration in index.html
- Add live examples of class-based usage in demo.html
- Maintain backward compatibility with existing floating button and API functions
2025-06-30 16:50:16 -04:00
db57965ef4 fix unicode handling in content hash generation for hermes introduction caching 2025-06-30 15:54:53 -04:00
fac46e5afa make modal use full viewport height and react to onscreen keyboard changes 2025-06-30 15:50:02 -04:00
6c0f3df6ef improve close button styling for PureCSS with proper theming and hover effects 2025-06-30 15:43:23 -04:00
b2a63f44f4 add auto-scroll to bottom for all chat messages and streaming responses 2025-06-30 15:26:01 -04:00
6e84ee58b1 fix TTS button text, progress indicator z-index, and hermes introduction loading feedback 2025-06-30 15:14:44 -04:00
c318e68b5a fix hermes introduction to add to chat history and update system prompt with hermes identity 2025-06-30 14:55:51 -04:00
d6b28dc126 remove max-width/height constraints from modal and reduce button min-width for mobile responsiveness 2025-06-30 14:35:52 -04:00
9340c410ff align labels and dropdowns horizontally using grid layout 2025-06-30 13:21:15 -04:00
79d8c590fd convert modal layout from flexbox to CSS grid 2025-06-30 12:01:42 -04:00
0cc64921cf override min-width constraints to fix modal hiding on narrow mobile screens 2025-06-30 11:51:24 -04:00
08eae89f5b add webpage title under hermes chat and move action buttons above model selection 2025-06-30 11:44:09 -04:00
48d4261a54 make modal fullscreen on mobile - 100% width and height 2025-06-30 11:41:21 -04:00
53693f5ff0 fix voice label styling to respect USE_CUSTOM_STYLING flag 2025-06-30 09:19:25 -04:00
4cdbcbcbc3 Fix TTS modal z-index and scale down modal for PureCSS
- Fixed TTS modal z-index detection after dialog conversion (hermes-modal vs hermes-modal-backdrop)
- Added 60% scale transform to modal when custom styling disabled for better fit
- Reduced chat area minimum heights (300px->200px, 250px->150px) for more compact layout
- Modal now appears properly sized for PureCSS framework integration
2025-06-29 21:51:55 -04:00
d21913611b Convert Hermes modal to dialog element and reduce CSS in JS
- Changed Hermes modal from div+backdrop to proper dialog element like TTS modal
- Removed inline CSS when custom styling disabled, using semantic classes instead
- Added uncloseai-controls and uncloseai-button-group classes for framework styling
- Modal now properly inherits CSS framework styling without hardcoded backgrounds
- Cleaner separation between custom styling and framework integration
2025-06-29 21:36:02 -04:00
407713d1b7 Improve floating button size and fix modal layout/theming
- Increased floating button width from 80px to 120px for better proportions
- Added proper minimum heights to chat areas for PureCSS sites
- Removed hardcoded white background from modal to respect dark theme
- Improved spacing and padding for framework consistency
2025-06-29 21:12:36 -04:00
b78bc6ab2f Fix Hermes modal to respect styling configuration
Applied conditional styling to Hermes modal header, container, title, close button, and send button. Modal now properly inherits framework styling when UNCLOSEAI_CUSTOM_STYLING is false, removing gradients and custom fonts for clean PicoCSS integration.
2025-06-29 19:32:13 -04:00
459291addf Add optional styling system and disable custom styling for this repo
- Added USE_CUSTOM_STYLING configuration flag to uncloseai.js
- TTS modal now uses clean HTML elements when custom styling disabled
- Updated index.html and demo.html to disable custom styling
- This repo will now use clean PicoCSS styling instead of custom gradients
- Other sites can still enable custom styling by setting window.UNCLOSEAI_CUSTOM_STYLING = true
2025-06-29 19:22:06 -04:00
888910c8b4 Consolidate and improve TTS modal, add theme-aware floating button
- Consolidated duplicate TTS modals into single function with smart z-index
- Updated floating button to be theme-aware (black/white based on dark mode)
- Added toggle functionality to floating button (click to open/close modal)
- Fixed voice controls layout with proper line breaks
- Redesigned TTS modal with consistent styling matching site theme
2025-06-29 19:02:35 -04:00
7698a63362 Replace popup menu with full Hermes chat modal
Replaced simple skills popup with comprehensive modal interface featuring chat area, model/voice selection, action buttons (Read Page, TTS, Refresh Models), file upload, and TTS playback for responses. Modal uses ChunkFive branding and gradient styling.
2025-06-29 18:46:33 -04:00
af67a7be99 Add floating AI button with skills menu
Added always-on floating 'uncloseai.' button in bottom right corner that provides quick access to all AI skills: Chat, Read Page, TTS Anything, Upload File, and Refresh Models. Button uses ChunkFive font and gradient styling with smooth animations.
2025-06-29 18:36:44 -04:00
84a90f4dc2 AI responses now use main page voice selection
new file:   CLAUDE.md
	modified:   uncloseai.js
2025-06-29 18:11:05 -04:00
9ce4e261e0 disable analytics.unturf.com 2025-06-01 09:08:30 -04:00
6f2be4436b Merge branch 'Groupr-master-patch-68456' into 'master'
Update uncloseai.js Removed naptha

See merge request engineering/unturf/ai.unturf.com!2
2025-05-24 15:52:18 +00:00
6d4857503a Update index.html 2025-05-23 19:00:24 +00:00
c1fcb56aa6 Update uncloseai.js Removed naptha 2025-05-23 14:42:20 +00:00
faea5e1628 Update uncloseai.js 2025-04-22 11:24:11 +00:00
ce5f6adf3e redundant hermes 2025-04-21 21:47:24 +00:00
0bf99fbba8 redundant hermes on 4090 2025-04-21 20:07:25 +00:00
90b7c3fcdd Update uncloseai.js 2025-04-21 19:55:44 +00:00
4f81c0c3e2 Update uncloseai.js 2025-03-29 13:06:12 +00:00
efcb776f7c Update uncloseai.js 2025-03-16 01:32:09 +00:00
0414ed3ad8 Update uncloseai.js 2025-02-28 13:37:07 +00:00
f143d4180c Update uncloseai.js 2025-02-25 12:13:57 +00:00