Commit Graph

471 Commits

Author SHA1 Message Date
khorshuheng 50f24a174f fix: filter out children which the view's parent does not match the actual parent view id 2024-09-05 14:35:55 +08:00
Nathan.fooo 5d356718fa
fix: using spawn_blocking in order to not block the runtime (#793)
* fix: using blocking in order to not block the runtime

* chore: increase deps count
2024-09-05 09:19:34 +08:00
Khor Shu Heng 348f2c8ff1
feat: add is published field to published outline response (#790) 2024-09-04 19:14:39 +08:00
Nathan.fooo 4e384b982e
chore: pass chat metadata (#789)
* chore: pass chat metadata

* chore: clippy
2024-09-04 17:19:39 +08:00
Zack Fu Zi Xiang 6d0a7cc95b
fix: delete user should only remove owned workspaces 2024-09-04 12:00:34 +08:00
Zack Fu Zi Xiang 7fd94d5ab7
fix: parent database id for inline doc 2024-09-03 23:36:35 +08:00
khorshuheng a7a1a2f8a4 chore: reuse get collab folder 2024-09-03 15:40:33 +08:00
khorshuheng e397510834 feat: add max depth to prevent excessive recursion 2024-09-03 15:28:01 +08:00
khorshuheng 56b9f9daf4 feat: published view outline endpoint 2024-09-03 15:27:59 +08:00
Zack Fu Zi Xiang 14a1382d1c
feat: call workspace delete when deleting user 2024-09-03 10:49:53 +08:00
Zack Fu Zi Xiang 7980bb04c5
chore: merge with main 2024-09-03 09:43:14 +08:00
Zack 826546c5cb
feat: duplicate published doc (#700)
* chore: test collab sync

* feat: folder view for user workspace

* feat: add private indicator

* chore: use collab cache instead

* chore: initial impl

* chore: cargo sqlx

* fix: write back to collab cache

* fix: assign page id

* fix: text map

* chore: connect api and refactor

* chore: switch to using mem storage

* fix: collab type

* feat: use group manager to manage sync

* feat: try add send command instead

* chore: add client api code

* feat: try use sink and stream from group collab

* chore: disable sync first

* fix: insert page before stopping group

* feat: add extra for view

* feat: add metadata to doc

* fix: icon

* fix: page circular dep

* fix: page circular dep

* fix: live update

* feat: database initial impl

* feat: workspace database

* chore: link database

* fix: database validation

* fix: workspace database oid

* fix: workspace database oid

* fix: specify view layout

* feat: add txn when inserting collab and rework database views

* fix: parent view id for new database

* fix: database view for folder

* fix: database ids

* fix: database row id

* fix: main database layout and write database before folder

* fix: metadata for non database main view

* chore: database in doc wip

* chore: filter visible views

* chore: use structure value instead of json

* chore: database in doc wip

* fix: remove child item push

* fix: main database view meta

* chore: rework inline database in doc

* fix: make duplicate more error forgiving

* chore: use get instead of get key value

* chore: merge with main

* feat: set max depth for folder view

* chore: update dependency counter

* chore: remove unneeded arg

* chore: simplify collab new from source

* chore: remove unneeded param

* chore: rename and doc

* feat: rework inline database and use duplicated ref

* chore: simplify params

* chore: fmt

* feat: deduplicate database wip

* fix: compatible with newer appflowy version

* fix: database views

* feat: database in doc

* chore: cargo clippy

* chore: update dockerfile rust toolchain

* fix: doc inline db parent id

* fix: database id

* fix: document data modification

* chore: minor refactor and todo

* chore: remove unneeded nesting

* fix: enforce ordering for views to add

* chore: add doc and test case for folder view

* fix: remove the need for cloning published collab

* fix: some review

* chore: move folder conversion logic

* fix: remove collab folder deps on shared entity

* chore: cargo fmt

* fix: compile

* chore: remove group manager dependency

* fix: dep count

* fix: add messages sent by server

* fix: dep count

* chore: add test for doc ref and inline doc database

* chore: cargo clippy

* chore: add more test scenarios

* chore: fix tests

* chore: get database id

* chore: update collab

* chore: add more assert and database row id checks

* fix: suggestions from review

* chore: sqlx

* fix: accumulate collab before insert

* chore: add tokio spawn blocking for encoding

* fix: reduce limit for publish collabs

---------

Co-authored-by: Bartosz Sypytkowski <b.sypytkowski@gmail.com>
Co-authored-by: nathan <nathan@appflowy.io>
2024-09-03 09:12:29 +08:00
Zack Fu Zi Xiang 6acaf69add
Merge branch 'main' into feat/delete-user 2024-09-03 02:24:58 +08:00
Nathan.fooo 365c64c5c2
chore: use colla storage instead of select from db directly (#782) 2024-09-02 21:25:21 +08:00
Zack Fu Zi Xiang 95460924f8
fix: dont return error if fail to revoke for apple signed in user 2024-09-02 21:20:32 +08:00
Zack Fu Zi Xiang c96d93f7cd
Merge branch 'main' into feat/delete-user 2024-09-02 21:13:50 +08:00
Nathan.fooo 299680c14a
chore: decode encode collab using spawn blocking (#781) 2024-09-02 20:27:40 +08:00
Zack Fu Zi Xiang 25cec9982f
chore: revoke for apple user 2024-09-02 17:25:21 +08:00
Zack Fu Zi Xiang 89f2c7003b
feat: support user deletion 2024-09-02 11:14:04 +08:00
Zack Fu Zi Xiang a2af9c3b63
Merge branch 'main' into feat/delete-user 2024-09-02 01:00:28 +08:00
Nathan.fooo c2a5369313
chore: set chat request timeout (#777)
* chore: set chat request timeout

* chore: clippy
2024-09-01 15:16:11 +08:00
Zack Fu Zi Xiang 1b7f3f817c
Merge branch 'main' into feat/delete-user 2024-09-01 00:51:38 +08:00
Zack Fu Zi Xiang 06a5a22032
feat: delete user 2024-09-01 00:51:05 +08:00
Bartosz Sypytkowski 2af1999375
chore: added locks with timeouts (#765)
* chore: added locks with timeouts

* chore: roll back collab locks in client api
2024-08-29 16:13:27 +08:00
Zack Fu Zi Xiang e5e89be371
fix: import 2024-08-29 10:16:19 +08:00
Zack Fu Zi Xiang de8387b3af
fix: admin sign in instead of only sign up 2024-08-29 10:08:14 +08:00
Lucas.Xu e7bf221ff0
feat: update built-in README for new users (#757)
* feat: add getting_started, desktop_guide and mobile_guide json

* feat: update built-in readme data

* feat: support adding database as template

* feat: support creating nested documents

* chore: refactor code

* chore: refactor code

* chore: remove println

* chore: update collab version

* feat: update built-in readme and image ref

* chore: remove template icon

* feat: use database::create_with_view to create collab

* chore: add template tests

* chore: update collab version

* chore: remove debug code

* chore: add comment

* chore: fix lint & test

* fix: code review

* fix: rust lint

* chore: update comment

* test: add default workspace test

* test: add default user workspace test

* chore: use workspace database body

* chore: fix typo and clippy

* fix: insert_folder_data_success test

* fix: insert_folder_data_success test

* feat: update content in gettting_started

* chore: update to-dos json

---------

Co-authored-by: nathan <nathan@appflowy.io>
2024-08-28 19:40:23 +08:00
Bartosz Sypytkowski 8beac5c85f
chore: reuse group collab for indexing (#737)
* chore: reuse group collab for indexing

* chore: fix linting errors

* chore: post rebase fixes
2024-08-28 00:13:41 +08:00
Bartosz Sypytkowski 69f7b7f6dd chore: drop endpoints used before client version 0.5.0 2024-08-26 18:53:24 +02:00
Bartosz Sypytkowski 43f6f3bc61 chore: apply same change to other ws endpoint 2024-08-26 15:03:18 +02:00
Khor Shu Heng 52f33e4d85
feat: endpoint for avatar upload (#736) 2024-08-23 16:36:09 +08:00
Khor Shu Heng 9c8e718246
feat: Template CRUD Endpoint (#731)
* feat: template crud endpoint

* fix: clippy error

* fix: categories for related view

* fix: add created at and last updated at to template response

* feat: template api delete endpoint

* feat: include number of template count for template creator

* fix: use params instead of individual fields for template api

* fix: seach template creator by name query

* chore: simplify query

* feat: support template count limit for template homepage
2024-08-20 15:22:56 +08:00
khorshuheng 63bee6f545 Merge branch 'main' into template-category-api 2024-08-19 12:41:08 +08:00
nathan 6bca2d2f2a chore: fix compile 2024-08-19 10:45:57 +08:00
nathan 2d7a4bde92 Merge branch 'main' into no-lock-collab 2024-08-19 10:38:07 +08:00
Nathan.fooo d342039cfd
chore: create user awareness when creating a new user (#728)
* chore: create user awareness when creating a new user

* chore: fix client api compile
2024-08-16 16:05:15 +08:00
khorshuheng 59e5a13ee4 fix: replace rank with priority 2024-08-14 14:17:21 +08:00
khorshuheng fc56654e61 chore: use UUID value instead of ref for func arg as UUID implements Copy 2024-08-14 13:26:36 +08:00
Bartosz Sypytkowski ef860c2d5a chore: fix cargo fmt and clippy errors 2024-08-13 19:59:48 +02:00
Bartosz Sypytkowski c27866fb25 chore: upgrade code to use asynchronous locks 2024-08-13 19:59:46 +02:00
Nathan.fooo 71d292ebcd
chore: add app version when querying ai configuratino (#724)
* chore: update api endpoint that accepts app version

* chore: update env

* chore: disable locai ai config test
2024-08-13 11:14:32 +08:00
Nathan.fooo 7878a018a1
chore: Update index content api (#723)
* chore: support index pdf file

* chore: fix compile

* chore: fix test
2024-08-12 15:10:49 +08:00
khorshuheng f6e78a941f feat: api endpoint for template categories and creators 2024-08-12 13:43:14 +08:00
Nathan.fooo 0b3949152b
feat: support chat with markdown (#718)
* chore: store metatdata

* chore: support markdown

* chore: update test
2024-08-08 13:19:19 +08:00
Nathan.fooo a371912c61
chore: enable chat with provided context (#713)
* chore: enable chat with provided context

* chore: rename

* chore: update create chat message api endpoint

* chore: use list context

* chore: use list context

* chore: fix test

* chore: update api endpoint

* chore: rename client api function

* chore: rename client api function

* chore: expose entity

* chore: update sqlx files

* chore: update test
2024-08-05 14:06:44 +08:00
Khor Shu Heng 3b389d7911
fix: impose character limits on comment (#712) 2024-08-01 12:00:59 +08:00
Zack Fu Zi Xiang c185063847
fix: publish nothing should result in error 2024-07-30 09:55:29 +08:00
Khor Shu Heng ff7de66dfa feat: add can be deleted field to GlobalComment 2024-07-29 19:32:16 +08:00
khorshuheng 422683d717 fix: order reactions by reaction type first creation date 2024-07-29 16:02:03 +08:00
khorshuheng ea8ca36b5b fix: share query param struct for api client and server 2024-07-29 11:36:38 +08:00