Commit graph

1967 commits

Author SHA1 Message Date
CREDO23
cd9d8ca991 feat: rewrite use-comments-electric hook from Electric to Zero
Replace PGlite sync+live query+stream subscriber with Zero useQuery.
All transformation logic preserved exactly: nested comments, mention
rendering, permissions, React Query cache writes. 414 → 207 lines.
2026-03-23 19:08:17 +02:00
CREDO23
5dd101b203 feat: rewrite use-documents-processing hook from Electric to Zero
Replace PGlite aggregate SQL (SUM/CASE) with Zero useQuery + client-side
status counting. State machine (idle/processing/success/error) preserved
exactly. 167 → 79 lines.
2026-03-23 19:06:32 +02:00
CREDO23
c60d2f071c feat: rewrite use-connectors-electric hook from Electric to Zero
Replace PGlite sync+live query with Zero useQuery. Maps camelCase
to snake_case for SearchSourceConnector type. 217 → 44 lines.
2026-03-23 19:04:51 +02:00
CREDO23
5ad25d10ea feat: rewrite use-messages-electric hook from Electric to Zero
Replace PGlite sync+live query with Zero useQuery. Maps camelCase
output to snake_case to preserve consumer contract. 162 → 38 lines.
2026-03-23 19:00:20 +02:00
CREDO23
b27061e44a feat: rewrite use-chat-session-state hook from Electric to Zero
Replace @electric-sql/react useShape with @rocicorp/zero/react useQuery.
Same Jotai atom update, same logic, same consumer contract.
2026-03-23 18:56:32 +02:00
CREDO23
6ad5ead320 docs: add Zero sync documentation and update existing docs
- Create how-to/zero-sync.mdx setup guide
- Update docker-compose.mdx with zero-cache service, env vars, troubleshooting
- Update dev-compose.mdx with Zero build arg
- Update install-script.mdx with zero-cache URL
- Update manual-installation.mdx with Zero frontend env var
- Add Zero sync page to how-to index, meta.json, and sitemap
2026-03-23 18:35:39 +02:00
CREDO23
f29a3edcab chore: update postgresql.conf and contracts comments for Zero
- Replace Electric SQL references in postgresql.conf with Zero-cache
- Clean Electric SQL comments in chat-comments.types.ts and chat-messages.types.ts
2026-03-23 18:30:49 +02:00
CREDO23
f9ba7e52d9 feat: add Zero infra — docker-compose, env vars, Dockerfile, CI workflows
- Add zero-cache service to docker-compose.yml and docker-compose.dev.yml
- Add ZERO_* env vars to docker/.env.example
- Add NEXT_PUBLIC_ZERO_CACHE_URL to surfsense_web/.env.example
- Add NEXT_PUBLIC_ZERO_CACHE_URL placeholder ARG/ENV to Dockerfile
- Add NEXT_PUBLIC_ZERO_CACHE_URL runtime substitution to docker-entrypoint.js
- Add NEXT_PUBLIC_ZERO_CACHE_URL build arg to docker-build.yml and desktop-release.yml
2026-03-23 18:27:18 +02:00
CREDO23
6143a91406 feat: add ZeroProvider and wire into app layout
- Create components/providers/ZeroProvider.tsx with schema, queries,
  userID, context, and cacheURL configuration
- Wire ZeroProvider into app/layout.tsx wrapping GlobalLoadingProvider
  inside ReactQueryClientProvider (same position ElectricProvider had)
2026-03-23 18:09:59 +02:00
CREDO23
da8f90bfe2 feat: add Zero queries for all 6 synced tables
Define named queries matching each Electric hook's data needs:
- notifications.byUser (use-inbox)
- documents.bySpace (use-documents, use-documents-processing)
- connectors.bySpace (use-connectors-electric)
- messages.byThread (use-messages-electric)
- comments.byThread (use-comments-electric)
- chatSession.byThread (use-chat-session-state)

Also moves schema files from zero/tables/ to zero/schema/ for
consistent modular folder structure.
2026-03-23 17:54:43 +02:00
CREDO23
af2bd744fb feat: add Zero schema with 6 table definitions and relationships
- Create zero/tables/inbox.ts (notifications)
- Create zero/tables/documents.ts (documents, search_source_connectors)
- Create zero/tables/chat.ts (new_chat_messages, chat_comments, chat_session_state)
- Create zero/schema.ts (combines tables, defines relationships, exports zql)
- Consolidate Zero type augmentations into types/zero.d.ts
2026-03-23 17:44:05 +02:00
CREDO23
8298aad2d7 feat: add @rocicorp/zero package and auth context type
- Install @rocicorp/zero@0.26.2 (replaces 4 @electric-sql/* packages)
- Add types/zero-auth.d.ts with Context type for Zero's permission system
2026-03-23 17:23:49 +02:00
CREDO23
2b7465cdaa chore: remove Electric SQL plumbing and infrastructure
Remove all Electric SQL client code, Docker service, env vars, CI build
args, install scripts, and documentation. Feature hooks that depend on
Electric are intentionally left in place to be rewritten with Rocicorp
Zero in subsequent commits.

Deleted:
- lib/electric/ (client.ts, context.ts, auth.ts, baseline.ts)
- ElectricProvider.tsx
- docker/scripts/init-electric-user.sh
- content/docs/how-to/electric-sql.mdx

Cleaned:
- package.json (4 @electric-sql/* deps)
- app/layout.tsx, UserDropdown.tsx, LayoutDataProvider.tsx
- docker-compose.yml, docker-compose.dev.yml
- Dockerfile, docker-entrypoint.js
- .env.example (frontend, docker, backend)
- CI workflows, install scripts, docs
2026-03-23 16:53:20 +02:00
DESKTOP-RTLN3BA\$punk
de17ef7f44 style: update GitHub stars badge appearance with improved spacing and color adjustments 2026-03-22 03:17:05 -07:00
DESKTOP-RTLN3BA\$punk
cb6db30143 feat: add new carousel item for AI-generated video creation 2026-03-22 00:34:41 -07:00
DESKTOP-RTLN3BA\$punk
eb8cfd296c feat: add public routes for video presentations and audio streaming 2026-03-21 23:29:23 -07:00
DESKTOP-RTLN3BA\$punk
d90b6d35ce feat: enhance video presentation agent with parallel theme assignment and watermarking 2026-03-21 23:02:09 -07:00
DESKTOP-RTLN3BA\$punk
0fe5e034fe feat: add video presentation tool to generate group 2026-03-21 22:17:08 -07:00
DESKTOP-RTLN3BA\$punk
b28f135a96 feat: init video presentation agent 2026-03-21 22:13:41 -07:00
Rohan Verma
c6a83535d2
Merge pull request #889 from CREDO23/electon-desktop
[Feat] Desktop app (Win, Mac, Linux)
2026-03-18 12:56:42 -07:00
DESKTOP-RTLN3BA\$punk
86b21458e0 feat: enhance HeroCarousel with autoplay and visibility handling
- Implemented autoplay functionality for the carousel, allowing automatic slide transitions when not expanded or hovered.
- Added visibility change detection to pause autoplay when the tab is not visible.
- Improved button styles to reflect autoplay state visually with progress indicators.
2026-03-17 23:33:45 -07:00
DESKTOP-RTLN3BA\$punk
79208c9812 chore: update tutorial GIFs and MP4s for homepage
- Replaced existing binary files for BQnaGif, ConnectorFlowGif, and DocUploadGif with updated versions to enhance visual content on the homepage.
2026-03-17 23:11:52 -07:00
DESKTOP-RTLN3BA\$punk
9b9279ec54 refactor: update user mutation and query atoms to use USER_QUERY_KEY
- Replaced cacheKeys with USER_QUERY_KEY in user-mutation.atoms.ts for consistency.
- Updated query function in user-query.atoms.ts to use a separate userQueryFn for clarity.
2026-03-17 22:56:59 -07:00
CREDO23
ec118ed011 fix: set outputFileTracingRoot for predictable standalone output 2026-03-17 19:28:27 +02:00
CREDO23
d4ad5c7fe4 feat(desktop): intercept OAuth redirects to hosted frontend via webRequest 2026-03-17 18:56:33 +02:00
CREDO23
a866e6caa1 feat(web): desktop OAuth deep link redirect 2026-03-17 17:44:56 +02:00
CREDO23
6f9eef6118 feat(desktop): add deep link protocol handler for OAuth login 2026-03-17 17:32:28 +02:00
Anish Sarkar
00b3aac1e3 refactor: enhance mobile document display in DocumentsTableShell with additional skeleton loading and avatar integration 2026-03-17 19:01:57 +05:30
Anish Sarkar
f2c959b034 style: update button styles in DocumentsTableShell and GitHub stars badge for improved UI consistency 2026-03-17 18:51:25 +05:30
Anish Sarkar
d036b7ff4f fix: remove unnecessary transition classes in DocumentsTableShell for cleaner UI 2026-03-17 18:38:47 +05:30
Anish Sarkar
3a2f80780a feat: replace image rendering with Avatar component in team content and sidebar user profile
- Updated team content to utilize Avatar for member display, enhancing visual consistency.
- Modified SidebarUserProfile to include select-none class for improved styling.
2026-03-17 18:36:46 +05:30
Anish Sarkar
1db716ab6d feat: update UI components to use Avatar for member display
- Replaced image rendering with Avatar component in PublicChatSnapshotRow, ImageModelManager, and ModelConfigManager for improved consistency.
- Adjusted DocumentsFilters to modify PopoverContent width for better layout.
- Enhanced DocumentsTableShell with new state management for member data and added bulk delete functionality.
2026-03-17 18:31:58 +05:30
Anish Sarkar
f9606679e0 refactor: delete the old editor page with atom-based state management for document editing 2026-03-17 17:03:28 +05:30
Anish Sarkar
f617ae8742 feat: implement editor panel functionality and integrate with existing components
- Added editor panel state management using Jotai atoms.
- Integrated editor panel into the right panel and documents sidebar.
- Updated DocumentsTableShell to open the editor panel on edit action.
- Enhanced NewChatPage to close the editor panel when navigating away.
- Improved context menu actions for document editing and deletion.
2026-03-17 16:55:31 +05:30
Anish Sarkar
0d56cfb663 chore: ran linting 2026-03-17 15:19:16 +05:30
Anish Sarkar
e5180aa0a3 feat: implement tool grouping in ComposerAction for improved UI organization 2026-03-17 15:18:58 +05:30
Anish Sarkar
591bd6bb46 feat: enhance TooltipIconButton to conditionally disable tooltips 2026-03-17 15:09:24 +05:30
Anish Sarkar
893df1718b feat: add tool icons for enhanced UI in ComposerAction 2026-03-17 15:02:56 +05:30
Anish Sarkar
9f7da91775 feat: add web search documentation to sitemap 2026-03-17 14:33:59 +05:30
Anish Sarkar
ab7946f417 feat: add web search docs 2026-03-17 14:17:51 +05:30
Anish Sarkar
9321d27021 fix: update styling and accessibility in various components
- Simplified text in DocumentsTableShell for clarity.
- Enhanced RightPanel styling for better visual consistency.
- Adjusted ChatListItem styles for improved interaction.
- Updated ReportPanelContent to include background styling and improved layout.
- Modified Drawer and FixedToolbar components for better UI integration.
2026-03-17 14:16:22 +05:30
Anish Sarkar
440f5aec72 fix: improve accessibility and styling in sidebar components 2026-03-17 12:42:25 +05:30
Anish Sarkar
591a39ee56 fix: enhance ChatListItem styling for improved UI interaction 2026-03-17 12:27:05 +05:30
Anish Sarkar
ac0f2fa2eb chore: ran linting 2026-03-17 04:40:46 +05:30
Anish Sarkar
bc1f31b481 feat: enhance SearxNG settings and improve loading indicators
- Added new search engines (qwant news, qwant images, qwant videos, mojeek images, mojeek news) to the default settings for better search results.
- Updated outgoing request settings by removing the decimal from `extra_proxy_timeout` for consistency.
- Integrated a `Spinner` component in `LayoutDataProvider` to improve loading feedback during chat deletion processes.
2026-03-17 04:35:13 +05:30
Anish Sarkar
651d381bcb feat: enhance chat sidebar functionality and UI
- Updated `LayoutDataProvider` to toggle sidebar states for shared and private chats more efficiently.
- Added new props to `MobileSidebar`, `Sidebar`, and `LayoutShell` to manage the open states of chat panels.
- Improved button interactions in the sidebar to show/hide chat panels with updated tooltip text.
- Enhanced styling for tab triggers in `AllPrivateChatsSidebar` and `AllSharedChatsSidebar` for better user experience.
- Added new localization strings for "show all" and "hide" actions in multiple languages.
2026-03-17 03:55:49 +05:30
Anish Sarkar
54156633ff refactor: update ConnectToolsBanner layout 2026-03-17 03:36:32 +05:30
Anish Sarkar
54e6a4a2cf refactor: simplify joyride attributes and enhance skeleton loading styles
- Removed the joyride attribute for the "Documents" section in the sidebar.
- Updated skeleton loading components in MorePagesContent to include a muted background for improved visibility.
2026-03-17 02:52:21 +05:30
Anish Sarkar
ed3443bc9e refactor: remove documents management step from onboarding tour 2026-03-17 02:00:16 +05:30
Anish Sarkar
0edaf429ba feat: enhance onboarding tour and more pages UI
- Added a new joyride step for the upload button to guide users in uploading documents.
- Updated existing tour steps to reflect changes in document management and tool configuration.
- Adjusted tooltip styles for improved visibility and user experience.
- Enhanced MorePagesContent button styling for better interaction feedback.
2026-03-17 01:58:12 +05:30