Commit graph

167 commits

Author SHA1 Message Date
Anish Sarkar
22b2d6e400 feat: add archived column to notifications and implement archiving functionality
- Introduced an archived boolean column in the notifications table to allow users to archive inbox items without deletion.
- Updated Notification model to include the archived field with default value.
- Added ArchiveRequest and ArchiveResponse models for handling archive/unarchive operations.
- Implemented API endpoint to archive or unarchive notifications, ensuring real-time updates with Electric SQL.
- Enhanced InboxSidebar to filter and display archived notifications appropriately.
2026-01-21 20:34:58 +05:30
DESKTOP-RTLN3BA\$punk
e163708bad feat: Refactor role permissions and access checks
- Removed the Admin role and updated the permission sets for Owner, Editor, and Viewer roles in db.py.
- Clarified access requirements for chat threads in new_chat_routes.py, ensuring ownership checks are prioritized.
- Added preset permission options for quick role creation in the CreateRoleDialog component of the team page.
2026-01-20 02:59:32 -08:00
CREDO23
2839501503 feat: add Electric SQL replication for chat_comment_mentions 2026-01-19 17:28:44 +02:00
CREDO23
6b9695e848 chore: resolve migration file conflicts 2026-01-19 17:10:11 +02:00
CREDO23
7f5f4a6893 feat: add Electric SQL replication for chat_comments 2026-01-19 16:39:08 +02:00
CREDO23
47fbc83d48 Merge branch 'dev' into sur-90-feat-comments-in-chats 2026-01-19 14:49:10 +02:00
CREDO23
8ad6c268df chore: cleanup unused files and update cache keys 2026-01-19 14:38:05 +02:00
Anish Sarkar
8654c98afe chore: update redundant comments 2026-01-18 20:13:51 +05:30
Anish Sarkar
b001b65067 feat: add pg_trgm indexes and lightweight document title search
- Introduced pg_trgm extension and GIN trigram indexes for efficient document title searches, enhancing performance for mention picker functionality.
- Implemented a new API endpoint for lightweight document title searches, returning only essential fields.
- Updated frontend components to utilize the new title search feature with throttling for improved user experience.
- Added necessary schemas and types for the new search functionality.
2026-01-17 20:45:10 +05:30
DESKTOP-RTLN3BA\$punk
8aad15d392 Reapply "Merge pull request #686 from AnishSarkar22/feat/replace-logs"
This reverts commit 3418c0e026.
2026-01-16 11:32:06 -08:00
CREDO23
80e19a52cb refactor: remove read tracking from mentions (prep for notification center) 2026-01-16 19:15:10 +02:00
CREDO23
f37bf90138 feat: add comments permissions to existing roles 2026-01-16 15:32:06 +02:00
CREDO23
6b5468bd7d feat: integrate comments UI into chat messages 2026-01-16 15:09:51 +02:00
DESKTOP-RTLN3BA\$punk
3418c0e026 Revert "Merge pull request #686 from AnishSarkar22/feat/replace-logs"
This reverts commit 5963a1125e, reversing
changes made to 0d2a2f8ea1.
2026-01-16 00:49:33 -08:00
CREDO23
266a5be38b Add chat_comment_mentions table migration 2026-01-15 16:26:49 +02:00
CREDO23
d48b3680d3 Add chat_comments table migration 2026-01-15 16:24:29 +02:00
Anish Sarkar
b9dc785a1c chore: ran frontend and backend linting 2026-01-15 15:55:27 +05:30
Anish Sarkar
ab63b23f0a Merge remote-tracking branch 'upstream/dev' into feat/replace-logs 2026-01-15 15:52:47 +05:30
DESKTOP-RTLN3BA\$punk
7ae68455b3 chore: linting 2026-01-15 00:05:53 -08:00
Anish Sarkar
35392c8e62 fix: made migartion idempotent and fixed docker-compose 2026-01-15 13:26:23 +05:30
Anish Sarkar
32b8bb33f9 feat: add notifications table and configure Electric SQL replication
- Created a new notifications table with necessary fields and indexes.
- Set up Electric SQL replication for notifications, search_source_connectors, and documents tables.
- Implemented idempotent checks for user and publication creation in the migration script.
2026-01-15 11:22:12 +05:30
Anish Sarkar
f7f11877ce Merge remote-tracking branch 'upstream/dev' into feat/replace-logs 2026-01-15 11:05:45 +05:30
DESKTOP-RTLN3BA\$punk
bff37789c8 fix: migrations 2026-01-14 15:19:00 -08:00
Anish Sarkar
94e65129cd chore: ran backend linting 2026-01-15 04:26:34 +05:30
Anish Sarkar
31a5581af1 feat: add notifications table and Electric SQL replication setup
- Introduced a new notifications table with relevant fields and indexes.
- Configured Electric SQL replication for the notifications, search_source_connectors, and documents tables.
- Centralized Electric SQL user credentials in the migration script for better management.
- Ensured idempotency in the migration process for creating users and publications.
2026-01-15 03:28:10 +05:30
Anish Sarkar
2e0f742000 Merge remote-tracking branch 'upstream/dev' into feat/replace-logs 2026-01-15 03:07:20 +05:30
Anish Sarkar
e28be9d78c feat: centralize Electric SQL user credentials in configuration
- Added centralized configuration for Electric SQL user credentials in env.py.
- Updated migration script to utilize these credentials for creating and granting permissions to the Electric SQL user.
2026-01-15 03:03:34 +05:30
Rohan Verma
f3f52170a0
Merge pull request #697 from CREDO23/implement-surfsense-docs-mentions
[Feat] Capture Google profile data, add user profile settings & document mentions picker improvements
2026-01-14 13:19:10 -08:00
Rohan Verma
4fb9017eac
Merge pull request #693 from manojag115/feat/mcp-connector-backend
Add backend code for adding MCPs as a connector
2026-01-14 13:18:12 -08:00
Anish Sarkar
7a9a14aa66 feat: fixed migration for electric-sql 2026-01-14 23:23:45 +05:30
CREDO23
efcc394b0c migration: add author_id to messages 2026-01-14 18:24:28 +02:00
CREDO23
924e621a6b feat: add migration 0 for initial schema setup 2026-01-14 17:04:37 +02:00
CREDO23
2e2534ccac migration: add user profile columns 2026-01-14 14:37:29 +02:00
Manoj Aggarwal
f00a2f1a52 fix: make MCP migrations linear after dev branch migrations 2026-01-13 14:14:42 -08:00
Manoj Aggarwal
de1658cd88 fix: resolve alembic migration conflicts by using unique revision ID for MCP migration 2026-01-13 14:10:59 -08:00
Manoj Aggarwal
0c3e25a07b fix linting issues with ruff 2026-01-13 13:57:04 -08:00
Manoj Aggarwal
063c272b98 remove is_active functionality from MCP connectors 2026-01-13 13:53:18 -08:00
Manoj Aggarwal
305a981d14 feat: add MCP connector backend support 2026-01-13 13:46:01 -08:00
Anish Sarkar
fede7413fb fix: fixed notifications table and Electric SQL replication setup. Removed redirects for upload button 2026-01-14 02:33:43 +05:30
Anish Sarkar
5bd6bd3d67 chore: ran both frontend and backend linting 2026-01-14 02:05:40 +05:30
Anish Sarkar
99bd2df463 Merge remote-tracking branch 'upstream/dev' into feat/replace-logs 2026-01-14 02:04:54 +05:30
CREDO23
443e877a59 Make migration 55 idempotent 2026-01-13 20:13:50 +02:00
CREDO23
dcc6e067bd Make migration 52 idempotent 2026-01-13 20:13:30 +02:00
CREDO23
6f15655552 Make migration 49 idempotent 2026-01-13 20:13:19 +02:00
CREDO23
e99e2134fa Make migration 34 idempotent 2026-01-13 20:13:13 +02:00
CREDO23
60a7269ce8 Make migration 24 idempotent 2026-01-13 20:13:08 +02:00
CREDO23
8ed295c053 Make migration 10 idempotent 2026-01-13 20:13:03 +02:00
CREDO23
2af555f1d7 Make migration 5 idempotent 2026-01-13 20:12:58 +02:00
CREDO23
d256fdc7a5 Make migration 1 idempotent 2026-01-13 20:12:51 +02:00
Anish Sarkar
e38e6d90e0 feat: Add notifications table and integrate Electric SQL for real-time updates
- Introduced a new notifications table in the database schema to manage user notifications.
- Implemented Electric SQL replication setup for the notifications table, ensuring real-time synchronization.
- Updated existing database functions to support real-time updates for connectors and documents using Electric SQL.
- Refactored UI components to utilize new hooks for fetching connectors and documents, enhancing performance and user experience.
2026-01-13 16:54:06 +05:30