Commit Graph

56 Commits

Author SHA1 Message Date
bc3532ce2c Add update check and auto-update functionality 2026-03-20 08:47:32 +01:00
3baab9feaf Include backendApiUrl in dependency array for useEffect in App.jsx 2026-03-20 08:18:28 +01:00
629719eb26 Ensure ollamaApiUrl has a default value in GeneralSettings.jsx 2026-03-20 08:18:28 +01:00
66c1678d34 Update API URL key and usage in App.jsx 2026-03-20 08:17:02 +01:00
d24ea89ed1 Add app settings management and update API URL handling 2026-03-20 08:16:40 +01:00
1dd21643c8 Update styles for library panel layout and footer actions 2026-03-20 00:01:02 +01:00
c7e2d88aa7 Move library toolbar actions to footer 2026-03-20 00:00:51 +01:00
f01df5005c Refactor LibraryManager.jsx for better readability and performance 2026-03-19 23:57:58 +01:00
bcd6a5aa4a Refactor styles for placeholder-view and library-panel, add new classes for toast notifications 2026-03-19 23:57:52 +01:00
556b559b44 Add toast notifications and update UI for LibraryManager.jsx 2026-03-19 23:57:44 +01:00
da520af8d2 Clarify placeholder text and syncing note in LibraryManager.jsx 2026-03-19 22:16:41 +01:00
70e083f031 Update sync details in LibraryManager.jsx 2026-03-19 22:16:41 +01:00
15f1729772 Add library file mode styles 2026-03-19 22:15:27 +01:00
8accf4f3b9 Add enrichment toggle and update status messages in LibraryManager.jsx 2026-03-19 22:15:24 +01:00
afc6b73015 Add retry sync functionality to LibraryManager.jsx 2026-03-19 21:48:27 +01:00
3f3d41a5a8 Add styles for library file sync and progress bar 2026-03-19 21:45:42 +01:00
71d94dda5e Add file sync status display in LibraryManager 2026-03-19 21:45:36 +01:00
4ad4fa15eb auto-git:
[add] dist/assets/index-HsqF-Zwv.css
 [add] dist/assets/index-gF5dDH11.js
 [change] dist/index.html
 [change] src/App.jsx
 [unlink] dist/assets/index-C2JOafdN.js
 [unlink] dist/assets/index-Cc0DLWqA.css
2026-03-19 21:39:14 +01:00
f45910e1ca auto-git:
[change] src/LibraryManager.jsx
2026-03-19 21:39:14 +01:00
4d84e203c8 Add styles for footer tool group and database picker 2026-03-19 21:38:14 +01:00
075ccbf2b7 Remove unnecessary check in regenerateFromIndex 2026-03-19 21:38:14 +01:00
ea261db04b Update LibraryManager.jsx to remove chat-related functionality and simplify UI elements 2026-03-19 21:37:37 +01:00
26624423b7 Refactor database picker and status display in App.jsx 2026-03-19 21:37:24 +01:00
174fd0d4f3 Update session deletion to clear chat library 2026-03-19 21:37:24 +01:00
adc07c5027 Update context fetching logic in App.jsx 2026-03-19 21:36:47 +01:00
68cb83d32a Enhance prompt enrichment with local library context and web search results 2026-03-19 21:36:41 +01:00
b253f9f44c Add fetchLocalLibraryContext function to App.jsx 2026-03-19 21:36:30 +01:00
3e69cc5e35 Add functions for managing chat library sessions and update effects in App.jsx 2026-03-19 21:36:27 +01:00
b10a2b4cdb Refactor library handling and remove unused state variables in App.jsx 2026-03-19 21:36:21 +01:00
c52ac00cd5 Update chat library handling in App.jsx 2026-03-19 21:35:51 +01:00
35e9f046f3 Remove rename functionality from LibraryManager.jsx 2026-03-19 21:28:38 +01:00
95e8c6ec15 Add library renaming functionality in App.jsx 2026-03-19 21:28:09 +01:00
7289dcc22c Update LibraryManager.jsx to simplify job handling and improve UI messages 2026-03-19 21:24:31 +01:00
b045c6a006 Add 'Preparing' badge for pending chat libraries and update header display logic 2026-03-19 21:23:56 +01:00
041e5cd294 Refactor chat attachment library and job preparation in App.jsx 2026-03-19 21:23:51 +01:00
0188ccb117 Update library handling logic in App.jsx 2026-03-19 21:23:51 +01:00
d4662d2416 Update App.jsx to include pendingChatLibrarySlug and toggleChatLibrary 2026-03-19 21:16:09 +01:00
d94a692cce Update LibraryManager.jsx for pending chat library state handling and UI updates 2026-03-19 21:15:02 +01:00
c1e8a25aae Remove redundant library job start calls in App.jsx 2026-03-19 21:15:02 +01:00
74fd88fb3d Add pendingChatLibrarySlug state and related logic in App.jsx 2026-03-19 21:14:51 +01:00
bc66329f3f Move useEffect hook in src/App.jsx 2026-03-19 21:10:52 +01:00
3399661809 auto-git:
[change] src/App.jsx
 [unlink] dist/assets/index-Cc0DLWqA.css
 [unlink] dist/assets/index-DKAz6gtp.js
 [unlink] dist/index.html
2026-03-19 21:10:12 +01:00
3694704470 Add index check and disable button if not indexed 2026-03-19 21:10:12 +01:00
1caed7f2c2 Check if chatLibrary is indexed before sending message 2026-03-19 21:10:12 +01:00
795f4d272a auto-git:
[add] README.md
 [add] backend/libraries/punk/library.json
 [add] backend/libraries/punk/stage/19f1e5d2ceaab5fd1f1dc58ff07422388f156610d16dfdea2bdb35a5b9e70813--GeorgeJordac-TheVoiceOfHumanJustice.pdf
 [add] backend/libraries/punk/stage/85fce554ff7685f7bccb136aff5768e54b9ba8361672fe45dbce599598c4be4b--4_Strings_-_Take_Me_Away_Into_The_Night_Vocal_Radio_Mix_.mp3
 [add] backend/libraries/punk/stage/e816ca61aebd84159747d248fedd6d5ff318c471c36bcc31b1ac6bf9aebcd3c1--The_Evolution_of_Cooperation_Robert_Axelrod_liber3.pdf
 [add] backend/local_rag.py
 [add] backend/rag/__init__.py
 [add] backend/rag/corpus_builder.py
 [add] backend/rag/corpus_enricher.py
 [add] backend/rag/index_builder.py
 [add] backend/rag/unified_rag.py
 [add] dist/assets/index-Cc0DLWqA.css
 [add] dist/assets/index-DKAz6gtp.js
 [add] dist/index.html
 [add] src/LibraryManager.jsx
 [add] wheelcheck2117/pydantic-2.11.7-py3-none-any.whl
 [add] wheelcheck274/pydantic-2.7.4-py3-none-any.whl
 [change] backend/main.py
 [change] backend/requirements.txt
 [change] backend/schemas.py
 [change] electron/main.cjs
 [change] electron/preload.cjs
 [change] package.json
 [change] run.sh
 [change] src/App.jsx
 [change] src/InterfaceSettings.jsx
 [change] src/colorSchemes.js
 [change] src/main.jsx
 [change] src/styles.css
2026-03-19 21:07:22 +01:00
9c6143a55a auto-git:
[change] src/App.jsx
 [change] src/colorSchemes.js
 [change] src/styles.css
2025-08-29 13:36:19 +02:00
728c7763e2 Add web search enrichment feature with source persistence and UI integration
Introduce optional web search enrichment flow for chat and regenerate requests. New /websearch endpoint calls enrich_prompt via SearXNG and returns enriched_prompt + citation sources.

DB: add sources_json column to chat_messages via ensure_sources_column migration helper.

Backend: persist sources_json for assistant replies (streaming and non-streaming); extend ChatRequest/RegenerateRequest to accept enriched_message and sources; history endpoint returns sources.

Frontend: add toggle for web search, settings for SearXNG URL + engines, and optional enrichment calls in sendMessage/regenerate. Render citation sources as rounded chips labeled with base domain under assistant replies.

Dependencies: add beautifulsoup4, httpx[http2], numpy for enrichment pipeline.
2025-08-27 04:27:18 +02:00
e262e4b4fe Improved codeblock-markdown-parser for a better experiencing when the LLM responds with code in Stream-mode 2025-08-26 05:32:45 +02:00
eb753582c1 Add user‑message collapse/expand feature
Implemented a per‑message collapse state that hides long user messages (>30 lines) with a “Show entire message / Collapse” button.
• Added collapsedUserMsgs map and helper collapseKeyFor to generate stable keys.
• Initialized or updated the collapse map whenever chat sessions or the active session change, preserving user toggles.
• Provided toggleUserMsgCollapse to switch the collapsed state.
• Updated the JSX to render the truncated content with an ellipsis when collapsed and render the expand/collapse button.
• Adjusted CSS for the new expand button: changed color to var(--muted), added align-self: flex-start, removed stray left margin, and retained bold, pointer cursor, and left‑aligned text.
• Minor style tweaks for the button hover effect.
2025-08-26 05:05:43 +02:00
f5d383ec94 Add user editing UI improvements and bubble styling
Implemented an editing state that visually highlights the user message bubble with an accent border and shadow.
  • Updated the message render logic to handle an  CSS class and overlay a textarea that perfectly aligns with the bubble using a hidden shadow element.
  • Re‑worked the  and  styles to apply the accent border, box‑shadow, and transition effects.
  • Adjusted the textarea styling (, ) so it inherits the bubble’s look, respects whitespace, and automatically resizes without extra padding or borders.
  • Added a hidden  to keep the bubble width/height consistent while editing.
  • Included new  button styling for expandable user messages.
  • Minor cleanup of redundant padding, margin, and color definitions in the styles.
  • Updated the JSX to conditionally render the overlay textarea only during editing, ensuring a smooth UX.
  • Added appropriate ARIA attributes and cursor styles for clarity.
2025-08-26 04:49:54 +02:00