126 Commits

Author SHA1 Message Date
Hakan Shehu
6a90063f0d Fix otp code expiresAt parsing (#292) 2026-01-15 10:01:01 +01:00
Hakan Shehu
be42137b99 Remove storage checks and add a workspace readonly state (#282)
* Remove storage checks and add a workspace readonly state
* Make deprecated migrations as no-op
2026-01-09 11:57:52 +01:00
Hakan Shehu
0e79e47eb1 Implement database locks (#279) 2026-01-08 14:23:09 +01:00
Hakan Shehu
c93f416a5a Use tanstackdb for queries and mutations (#275)
* Use tanstackdb for records query

* Use tanstackdb for chat list

* Use tanstackdb for database and view queries

* Use tanstackdb for space queries

* Remove unused query

* Use tanstackdb for files query and update live query deps

* Use tanstackdb for message queries

* Use tanstackdb for some node queries

* Use tanstackdb for channel deletes

* Improve node delete handling

* Use tanstackdb for channel creation

* Use tanstackdb for folder creation

* Use tanstackdb for space creation

* Flatten node object attributes

* Use tanstackdb for page creation

* Use tanstackdb for record creation

* Use tanstackdb for record updates

* Use tanstackdb for channel update

* Use tanstackdb for folder updates

* Use tanstackdb for space update

* Use tanstackdb for page update

* Use tanstackdb for database created & update

* Use tanstackdb for view create & delete

* Use tanstackdb for some field mutations

* Use tanstackdb for select option mutations

* Refactor workspace collections

* Use paced mutations for some rename inputs

* Use paced mutations for select option settings

* Use paced mutations for record updates

* Refactor some record queries

* Improve some view update handlers

* Improve view filters and sorts

* Use live infinite queries for some paginated lists

* Use tanstack/db for node reactions

* Fix message reactions dialog

* Remove unused file

* Remove node tree get query with tanstackdb recursive queries

* Replace live queries with plain ones for emojis and icons

* Replace some live queries

* MInor updates

* fix node updates

* fix tanstack db queries

* cleanup some inputs
2026-01-07 16:05:26 +01:00
Hakan Shehu
18cc7b44be Improve storage tracking and UI (#259) 2025-11-17 16:56:28 -08:00
Hakan Shehu
eee31d61bd Improve server loading and syncing (#253) 2025-11-14 07:50:19 -08:00
Hakan Shehu
b4cd046b53 Improve authentication flow (#251) 2025-11-13 22:38:19 -08:00
Hakan Shehu
3e4c8b8125 Implement new routing with tanstack router and mobile app kickoff (#248)
* Init mobile app
* Minor fixes and improvements
* Improve assets loading
* Fix event bus proxy
* Improve emojis and icons loading
* Improve app initialization in web
* Init tanstack router
* Refactor components
* Refactor some more components
* Refactor layouts
* Improve routing
* Improve routing
* Routing improvements
* Make sidebar work in mobile
* Refactor container and breadcrumb
* Fix some packages and warnings
* Encode and decode yjs update for ipc communication
* Refactor servers in client
* Fix some errors and warnings in editor and sidebar
* Add route masking for web
* Improve container layout
* Improve ui for mobile
* Improve mobile ui
* Create custom link component
* Router improvements
* Implement tabs for desktop
* tabs improvements
* Refactor routes
* Layout improvements
* Improve desktop tabs
* Use tanstack-db for global collections
* Improve tanstack db collections
* Refactor workspaces and accounts databases and routes locally
* Use tanstackdb for users
* Use tanstackdb for uploads and downloads
* Use tanstackdb for temp files
* Rename database to collections
* Improve tabs
* Fix packages
* Improve local file handling
* Rename sync cursor keys
* Save some bootstrap data in a file
* Reset all data on new version update in desktop
* Minor refactor
* Implement app reset on startup
* UI fixes and improvements
* More Ui improvements
* Fix logout
* Add tab in route contexts for workspace routes
* Store last used workspace id as metadata
* Fix account logout
* Fix file preview
* Fix file thumbnail loading in tabs
* Fix chat tab loading
* Fix some redirect handling
* Disable staletime for icon.svg.get query
* Fix not found pages and throws
* add readme for mobile
* fix some keys
* Improve add tab handler
* Fix path
2025-11-11 07:00:14 -08:00
Hakan Shehu
94815bca5c Fix date picker date conversion (#243) 2025-10-23 11:28:24 +02:00
Hakan Shehu
766952b31e Add plain tables to editor (#180) 2025-08-08 11:19:19 +02:00
Hakan Shehu
80dd1c60c6 Define chunk and file part size constant (#170) 2025-08-01 23:07:21 +02:00
Hakan Shehu
eaf2b4afb2 Add max file size settings for user (#167) 2025-08-01 19:53:16 +02:00
Hakan Shehu
79925e1fc6 Improve file uploads and downloads (#164)
* Track upload progress in clients
* Implement client side jobs
* Separate local files, downloads and uploads
* Use dates instead of timestamps in jobs
* Improve some recurring jobs
* Local file improvements
* Remove job schedules on cancel
* Improve avatar handling
* Fix manual download
* Improve file uploads and downloads
* Improve downloads
* Use tus resumable uploads
* Drop file states table migration
* Remove some unused file system methods and types
* Use Redis KV and Locker for distributed TUS deployments
* Fix file name generation
* Add uploads clean job
* Have a dedicated endpoint for TUS uploads
* Do not revert uploads state because ot TUS resumables
* Use integer instead of text for job and job schedule status
* Rename a query
* Fix error handling for file uploads and downloads jobs
* Check node sync for file uploads
* Rename the temp files clean job
* Minor renames for consistency
* Improve uploads badge
* Small refactor in server job service
* Add env varaibles config for some tus stuff
* Use ms package for millisecond conversions
* Fix some migrations
* Fix logout
* Update hosting values
2025-08-01 14:13:40 +02:00
Hakan Shehu
e1e503e7b2 Workspace storage limits (#140) 2025-07-21 09:22:15 +02:00
Hakan Shehu
6fe6f324e8 Filter and sort by name (#117) 2025-07-06 14:55:40 +02:00
Hakan Shehu
f86e7afe11 Allow database name field update (#116) 2025-07-06 11:03:54 +02:00
Hakan Shehu
66ac097923 Reorder space children in sidebar (#115) 2025-07-06 09:30:12 +02:00
Hakan Shehu
e8f56449d5 Implement save file (#108)
* Implement save file
* Delete locally downloaded files that have not been opened in last 7 days
2025-07-03 20:42:21 +02:00
Hakan Shehu
756af021d1 Implement login with google (#57) 2025-06-12 22:08:54 +02:00
Hakan Shehu
9e6d53d147 Allow users to delete custom servers (#48) 2025-06-11 16:13:48 +02:00
Hakan Shehu
08ffd69229 Update mutation naming convention (#47) 2025-06-11 12:55:15 +02:00
Hakan Shehu
30e15e4bd3 Web version (#43)
* Create client package
* Create the UI package
* Init web app
* Use isomorphic 'ws' for web sockets
* File and asset implementations
* Use Opfs SAH version of sqlite in browser
* Generate Svg sprites for emojis and icons
* Include emojis sprite
* Improve and refactor assets
* More assets improvements
* Implement emoji and icons db import as readonly
* Improve import paths
* Handle concurrency limits for sqlite
* Fix event broadcast in web
* Pass windowId for subscribe and unsubscribe queries in desktop
* Remove asset context
* Implement avatar upload/download with the new structure
* Improve file handlings
* Move the necessary dependencies to client and ui packages
* Update packages
* Improve open file dialog
* Make sure database files are deleted in browser
* Improve avatar loading
* Improve file loading
* Fix some assets
* Implement asset caching for offline access
* Small fixes and improvements
* Use server instead of pre signed urls for file upload/download
* Cleanup some client related metadata
* Switch Axios with ky
* Refactor mutation results
* Minor concurrency fix
* Refactor web sockets
* Improve file uploading
* Handle connection close on server
* Use stream for downloading the file
* Add config options for cors
* Update document in all tabs on local change
* Include necessary icons for web
* Update docker compose
* Implement server upgrade required component
* Use correct client type and platform in web and desktop
* Improve service worker
* Improve versioning
* Fix an import
* Minor fixes
* Update some user endpoints
* Minor endpoint changes
* Enable app badge for desktop
* Add error handling in some database operations
* Update mutation naming convention
* Update query naming convention
* Update event and some metadata naming conventions
* Update event and job naming conventions in server
* Update Github workflow files
* Restructure assets directory
* Update packages
* Upgrade to Zod v4
* Upgrade to react 19
* Upgrade to tailwind v4
* Minor ui improvements
* Fix some cursor pointers
* Add browser not supported message in web
* Enhance server create flow, allow insecure connections and custom api paths
* Execute electron-rebuild as postinstall command
* Update docker compose
2025-06-11 00:14:17 +02:00
Hakan Shehu
90c7a22685 Send client metadata as headers on each request (#19) 2025-05-01 10:57:24 +02:00
Hakan Shehu
7e5c31d7f8 Include immutable version and commit sha as part of server docker build (#18) 2025-05-01 10:41:10 +02:00
Hakan Shehu
412a396b28 Switch from express to fastify (#16)
* Switch from express to fastify

* Use zod validation for api routes

* Fix type in password reset routes

* Use string as data type for bigint because of serialization issues

* Fix use of user id instead of account id for some file operations
2025-04-30 11:07:58 +02:00
Hakan Shehu
1d739879c3 Implement mentions 2025-04-28 19:28:58 +02:00
Hakan Shehu
c10ec7e856 Mark preview tab as opened in double click 2025-04-24 17:44:27 +02:00
Hakan Shehu
63437894bf Implement password reset 2025-04-23 14:33:23 +02:00
Hakan Shehu
d095dbbd16 Add recurring jobs to check node and document embeddings 2025-03-03 23:07:50 +01:00
Ylber Gashi
29c96f7dd6 Add support for specifying context nodes in AI assistant response 2025-02-21 22:49:00 +01:00
Ylber Gashi
913c2f05cf Merge branch 'main' of https://github.com/colanode/colanode into ai-assistant-rag 2025-02-20 22:21:22 +01:00
Hakan Shehu
81dd328d4b Store all uploads in a special table in server 2025-02-20 08:55:25 +01:00
Hakan Shehu
f7a1388536 Rename some pending entries to nodes 2025-02-19 19:50:43 +01:00
Ylber Gashi
cce2d41f8d Merge branch 'restructure' of https://github.com/colanode/colanode into ai-assistant-rag 2025-02-19 19:38:33 +01:00
Ylber Gashi
ee111a845f Enhance assistant response handling and node type support
- Update assistant response job to handle optional citations
- Modify node creation to trigger assistant response for question messages
- Add new message subtypes: 'question' and 'answer'
- Refactor node embedding scheduling to skip embedding for message nodes
- Integrate Langfuse callback for LLM service tracing
- Update SQL vector similarity queries for embedding retrieval
2025-02-19 19:16:10 +01:00
Hakan Shehu
a0eaf40735 Fix an issue with node sync 2025-02-19 15:17:48 +01:00
Hakan Shehu
0c2fb121c9 Refactor node updates 2025-02-19 13:14:57 +01:00
Hakan Shehu
25fb7ac46a Refactor documents and text indexing 2025-02-19 11:23:03 +01:00
Hakan Shehu
18b15e09c3 Add document update validation and revert 2025-02-18 11:23:36 +01:00
Hakan Shehu
99b3189fc3 Refactor node reaction permission check 2025-02-18 10:00:39 +01:00
Hakan Shehu
f4ad5756f3 Merge files with nodes 2025-02-12 21:45:02 +01:00
Hakan Shehu
6d79824f93 Minor renames for clarity 2025-02-12 12:32:14 +01:00
Hakan Shehu
95999b4f9e Permission checks improvements 2025-02-12 12:16:05 +01:00
Hakan Shehu
d8745d84cd Separate documents into it's own table 2025-02-11 18:43:07 +01:00
Hakan Shehu
c82fbedefa Consolidate entries and messages into 'nodes' 2025-02-05 22:40:35 +01:00
Hakan Shehu
15b2384a7e User access improvements 2025-01-20 10:23:32 +01:00
Hakan Shehu
1d8bb8760b Use sqlite for emojis and icons 2025-01-19 15:41:39 +01:00
Hakan Shehu
89c3969b72 Add some extra columns in desktop tables 2025-01-18 01:56:43 +01:00
Hakan Shehu
2c4b92120f Send event on user created 2025-01-17 16:47:56 +01:00
Hakan Shehu
74f74ea37a Restructure and refactor services in desktop 2025-01-17 14:35:13 +01:00