Commit graph

428 commits

Author SHA1 Message Date
Luis Novo
040cfbad88
Merge pull request #343 from lfnovo/fix/note-editor-fullscreen-observer-optimization
fix(ui): optimize MutationObserver in NoteEditorDialog
2025-12-20 10:16:49 -03:00
LUIS NOVO
2a4d98772b fix(ui): optimize MutationObserver in NoteEditorDialog
Only observe DOM mutations when dialog is open, preventing
unnecessary observer activity when the dialog is closed.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-20 10:13:49 -03:00
Luis Novo
a8bb88e10f
Merge pull request #305 from xeader/fix/issue-271.1-note-editor-not-full-screen
feat(notebooks): Enhance dialog content styling for fullscreen mode
2025-12-20 10:12:29 -03:00
Antonio Gatta
cdb074193f feat: support fullscreen mode in NoteEditorDialog
- Added `isEditorFullscreen` state to track fullscreen mode for the Markdown editor.
- Integrated `MutationObserver` to detect changes related to the `.w-md-editor-fullscreen` class.
- Adjusted dialog and editor styles dynamically based on fullscreen state using `cn`.
- Enhanced UX by resetting fullscreen state on dialog close.
2025-12-20 11:38:31 +01:00
Luis Novo
34aaad4162
Merge pull request #341 from lfnovo/fix/merge-conflict-insight-dialog
fix: resolve merge conflict in SourceInsightDialog
2025-12-19 23:12:15 -03:00
LUIS NOVO
79f4d5ea6a fix: resolve merge conflict in SourceInsightDialog
Add missing state variables and handlers for delete functionality
that were lost during merge of PRs #334 and #340
2025-12-19 23:10:49 -03:00
Luis Novo
d6eedde5a3
Merge pull request #333 from jflo/fix/strip-thinking-tags
fix: strip <think> tags from chat responses
2025-12-19 22:52:43 -03:00
Luis Novo
86329f406d
Merge pull request #334 from jflo/feat/delete-insight
feat: add delete insight functionality
2025-12-19 22:51:18 -03:00
Luis Novo
c41cc074b5
Merge branch 'main' into feat/delete-insight 2025-12-19 22:50:53 -03:00
Luis Novo
8fdb0f0539
Update frontend/src/components/source/SourceDetailContent.tsx
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2025-12-19 22:48:09 -03:00
Justin Florentine
c7de8ecd86
fix: address PR feedback for delete insight feature
- Fix AlertDialogAction closing before async delete completes by using
  asChild with Button and event.preventDefault()
- Add delete button to SourceInsightDialog header for consistent UX
- Add confirmation dialog in SourceInsightDialog
- Pass onDelete callback from SourceDetailContent to SourceInsightDialog

Addresses PR #334 feedback from lfnovo and cubic-dev-ai.

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-19 20:45:11 -05:00
Justin Florentine
855e730577
fix: preserve AIMessage metadata when cleaning thinking content
Use model_copy() instead of creating new AIMessage to preserve
response_metadata, id, usage_metadata, etc. Also adds test coverage
for malformed thinking tags pattern.

Addresses PR #333 feedback from lfnovo and cubic-dev-ai.

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-19 20:08:12 -05:00
Luis Novo
bbe06df7e4
Merge pull request #340 from lfnovo/fix/chat-model-selection
fix: chat model selection issues + Docker troubleshooting docs
2025-12-19 17:46:09 -03:00
LUIS NOVO
7f19c916ae feat: add View Source button to insight modal
- Add button to navigate from insight popup to its parent source
- Uses existing modal manager to open source detail view
- Shows button only when source_id is available
2025-12-19 17:10:55 -03:00
LUIS NOVO
a1d0a3a666 fix: allow model override before chat session exists
- Add pendingModelOverride state to useNotebookChat hook
- Store model selection when no session exists yet
- Apply pending model override when session is auto-created on first message
- Simplify ChatColumn by using new setModelOverride function
2025-12-19 16:55:26 -03:00
LUIS NOVO
e11f0a4db8 fix: resolve chat model selection and session display issues
- Add nullable_fields support to ObjectModel base class
- Configure ChatSession to allow model_override to be cleared to null
- Fix JSX conditional that rendered "0" when message_count was 0
- Display model name instead of raw ID in session manager

Fixes issues:
1. Switching to default model now persists correctly
2. Session list shows human-readable model names
3. Sessions with 0 messages no longer show "0" badge
2025-12-19 16:47:34 -03:00
LUIS NOVO
33b8f7a2b8 docs: add troubleshooting for common Docker installation issues
- Add fix for quotes in environment variables causing empty URL errors
- Add SurrealDB configuration section (single container includes DB, v2 only)
- Add network timeout fix for slow connections and Chinese users
- Update table of contents with new sections

Addresses feedback from issue #316
2025-12-19 16:30:55 -03:00
Justin Florentine
8644f1923c
feat: add delete insight functionality
Add ability to delete insights from sources with a confirmation dialog.
Uses AlertDialog component for a native React experience instead of
browser confirm().

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-18 18:04:41 -05:00
Justin Florentine
869664a10b
fix: strip <think> tags from chat responses
Add thinking content cleaning to notebook and source chat graphs.
Previously, models that output <think>...</think> tags (like DeepSeek)
or malformed variants without opening tags (like Nemotron) would leak
reasoning content into user-visible responses.

Changes:
- chat.py: Clean AI response content before returning messages
- source_chat.py: Same fix for source-specific chat
- text_utils.py: Handle malformed output where opening <think> tag
  is missing but </think> is present

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-18 16:31:23 -05:00
Luis Novo
65166d4d2a
Merge pull request #326 from lfnovo/fix-ollama-json
chore: bump esperanto to fix ollama json
2025-12-15 21:56:32 -03:00
LUIS NOVO
f98522606d chore: bump esperanto to fix ollama json 2025-12-15 21:55:28 -03:00
Luis Novo
040e7ccf42
Merge pull request #325 from lfnovo/feat/ui-improv
feat: UI improvements and bug fixes
2025-12-14 22:24:15 -03:00
LUIS NOVO
26e989fdbb fix: query key consistency and timeout configuration
- Use QUERY_KEYS.sourcesInfinite for infinite scroll query key
  Starting with ['sources', ...] ensures mutations that invalidate
  ['sources'] will also invalidate the infinite scroll cache

- Use httpx.Timeout for chat service with short connect (10s) and
  long read (600s) timeouts. Prevents 10 min wait on connection errors
2025-12-14 21:55:38 -03:00
LUIS NOVO
1be8ef1116 chore: bump to 1.2.4 2025-12-14 21:34:49 -03:00
LUIS NOVO
5eac002b91 bump: fix ssl issue with langchain - relates to #274 2025-12-14 21:33:31 -03:00
Luis Novo
8b37104040
Merge pull request #323 from talkenigs/fix/start-all-flow
fix(install): specify docker compose and port
2025-12-14 19:49:29 -03:00
talkenigs
5d9eb5284f fix: specifiy docker compose and add port 2025-12-14 19:14:11 +02:00
LUIS NOVO
6e8f46420a feat(ui): add markdown table rendering support
Added remark-gfm plugin to enable GitHub Flavored Markdown support,
which includes proper table rendering. Updated all ReactMarkdown
usages with table styling components:

- ChatPanel (source and notebook chat)
- StreamingResponse (search/ask results)
- SourceInsightDialog
- SourceDetailContent
- TransformationPlayground

Tables now render with proper borders, headers with background,
and horizontal scroll for wide tables.
2025-12-14 12:01:28 -03:00
LUIS NOVO
ef6274c83a Merge remote-tracking branch 'origin/main' into feat/ui-improv 2025-12-14 11:47:43 -03:00
LUIS NOVO
d0d5d97578 fix: wait for API to be ready before starting frontend
Users reported "Unable to Connect to API Server" errors on startup
because the frontend started before the API finished initialization
(database migrations, etc.).

- Add wait-for-api.sh script that polls /health endpoint
- Update supervisord configs to use wait script instead of sleep 5
- Waits up to 5 minutes for API to be ready before starting frontend
- Applies to both single-container and multi-container deployments

Fixes #315
2025-12-14 11:39:59 -03:00
LUIS NOVO
3001537aa7 fix: increase timeout for Ollama and local LLM operations
Users with Ollama reported timeout errors on notebook chat while the
backend was still processing. The answer would appear after refresh.

- Frontend axios timeout: 5 min → 10 min
- Backend chat service timeout: 2 min → 10 min

Local LLMs can take several minutes for complex questions with large
contexts, especially on slower hardware.
2025-12-14 11:31:03 -03:00
LUIS NOVO
e5eeb90341 feat(ui): add infinite scroll for notebook sources
Previously, notebook sources were limited to 50 items due to API default.
This adds pagination with infinite scroll to the sources column:

- Add useNotebookSources hook with useInfiniteQuery for paginated fetching
- Update SourcesColumn with scroll detection to load more sources
- Fetch 30 sources per page, loading more as user scrolls near bottom
2025-12-14 10:56:38 -03:00
Luis Novo
cba79e55bc
Merge pull request #321 from lfnovo/dependabot/npm_and_yarn/frontend/next-15.4.10
chore(deps): bump next from 15.4.9 to 15.4.10 in /frontend
2025-12-14 10:23:12 -03:00
dependabot[bot]
3b7d99a687
chore(deps): bump next from 15.4.9 to 15.4.10 in /frontend
Bumps [next](https://github.com/vercel/next.js) from 15.4.9 to 15.4.10.
- [Release notes](https://github.com/vercel/next.js/releases)
- [Changelog](https://github.com/vercel/next.js/blob/canary/release.js)
- [Commits](https://github.com/vercel/next.js/compare/v15.4.9...v15.4.10)

---
updated-dependencies:
- dependency-name: next
  dependency-version: 15.4.10
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-14 13:11:44 +00:00
Luis Novo
bf438298bd
Merge pull request #317 from lfnovo/dependabot/npm_and_yarn/frontend/next-15.4.9
chore(deps): bump next from 15.4.8 to 15.4.9 in /frontend
2025-12-14 10:10:24 -03:00
dependabot[bot]
64212814cc
chore(deps): bump next from 15.4.8 to 15.4.9 in /frontend
Bumps [next](https://github.com/vercel/next.js) from 15.4.8 to 15.4.9.
- [Release notes](https://github.com/vercel/next.js/releases)
- [Changelog](https://github.com/vercel/next.js/blob/canary/release.js)
- [Commits](https://github.com/vercel/next.js/compare/v15.4.8...v15.4.9)

---
updated-dependencies:
- dependency-name: next
  dependency-version: 15.4.9
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-12 00:44:15 +00:00
Antonio Gatta
45ac425484 feat: enhance dialog content for fullscreen mode
- Added styles to ensure `.w-md-editor-fullscreen` behaves statically and adjusts height dynamically with `!static` and `!h-[calc(90vh-(var(--spacing)*41))]`.
2025-12-08 02:18:07 +01:00
Antonio Gatta
eb67e33965 feat: improve dialog content responsive styling
- Added support for `.w-md-editor-fullscreen` class to dynamically adjust height and width for fullscreen mode.
2025-12-08 01:41:05 +01:00
Luis Novo
8644e995f1
Merge pull request #290 from lfnovo/dependabot/npm_and_yarn/frontend/mdast-util-to-hast-13.2.1
chore(deps): bump mdast-util-to-hast from 13.2.0 to 13.2.1 in /frontend
2025-12-06 08:25:57 -03:00
Luis Novo
6ae5c11130
Merge pull request #295 from lfnovo/dependabot/npm_and_yarn/frontend/next-15.4.8
chore(deps): bump next from 15.4.7 to 15.4.8 in /frontend
2025-12-06 08:25:46 -03:00
Luis Novo
40c540cbf7
Merge pull request #296 from mgmanzella/fix/dev-docs-surreal-db-image
fix(docs) - Update documentation for surrealdb docker image from v1-latest to v2
2025-12-06 08:25:08 -03:00
Morisa Manzella
1dde858cfb Update surrealdb docker image from v1-latest to v2 in dev docs 2025-12-03 18:19:36 -05:00
dependabot[bot]
8ad38bf1b1
chore(deps): bump next from 15.4.7 to 15.4.8 in /frontend
Bumps [next](https://github.com/vercel/next.js) from 15.4.7 to 15.4.8.
- [Release notes](https://github.com/vercel/next.js/releases)
- [Changelog](https://github.com/vercel/next.js/blob/canary/release.js)
- [Commits](https://github.com/vercel/next.js/compare/v15.4.7...v15.4.8)

---
updated-dependencies:
- dependency-name: next
  dependency-version: 15.4.8
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-03 20:45:51 +00:00
dependabot[bot]
647f60d197
chore(deps): bump mdast-util-to-hast from 13.2.0 to 13.2.1 in /frontend
Bumps [mdast-util-to-hast](https://github.com/syntax-tree/mdast-util-to-hast) from 13.2.0 to 13.2.1.
- [Release notes](https://github.com/syntax-tree/mdast-util-to-hast/releases)
- [Commits](https://github.com/syntax-tree/mdast-util-to-hast/compare/13.2.0...13.2.1)

---
updated-dependencies:
- dependency-name: mdast-util-to-hast
  dependency-version: 13.2.1
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-02 04:05:47 +00:00
Luis Novo
53cbea6809
Merge pull request #289 from lfnovo/fix/command-palette-search-navigation
fix(ui): handle URL params in search page for command palette navigation
2025-12-01 20:55:07 -03:00
LUIS NOVO
d8e61c6b5b fix(ui): address review feedback for URL param handling
- Fix race condition: only set hasAutoTriggeredRef after successful execution
- Add URL mode validation: ensure mode is either 'search' or 'ask'
2025-12-01 20:52:35 -03:00
LUIS NOVO
33be80ab7c fix(ui): handle URL params in search page for command palette navigation
The search page now reads `q` and `mode` query parameters from the URL,
enabling proper integration with the command palette's search/ask actions.

Changes:
- Read URL params using useSearchParams hook
- Initialize form fields and active tab from URL params
- Auto-trigger search/ask when arriving with URL params
- Handle subsequent navigations while on the search page
2025-12-01 20:46:49 -03:00
Luis Novo
728f036eeb
Merge pull request #281 from lfnovo/fix/ssl
docs: add SSL verification configuration for local providers
2025-12-01 15:05:40 -03:00
LUIS NOVO
92f3076b02 Merge remote-tracking branch 'origin/main' into fix/ssl
# Conflicts:
#	uv.lock
2025-12-01 15:05:17 -03:00
Bui Thanh Son
60566c9c4d
refactor: move environment variables loading to application entry point (#283) 2025-12-01 14:59:50 -03:00