Commit graph

46 commits

Author SHA1 Message Date
Nathan.fooo
af38efe6d9
feat: sync document through http request (#1064)
* chore: query embedding

* chore: create embeddings

* chore: apply update to editing collab

* refactor: web-update

* chore: calculate missing update the sv is not none

* chore: add test

* chore: fix audit

* chore: commit sqlx

* chore: fix client api

* test: add

* chore: clippy

* chore: fix collab drop when save
2024-12-12 14:53:07 +08:00
Zack Fu Zi Xiang
25cec9982f
chore: revoke for apple user 2024-09-02 17:25:21 +08:00
Zack Fu Zi Xiang
eb74e095b5
fix: update for later version of gotrue 2024-08-27 10:15:20 +08:00
Nathan.fooo
30f87457f3
feat: support uploading file with multiple part (#625)
* refactor: replace crate

* chore: remove s3-rust crate

* chore: test multiple upload

* chore: client api

* chore: client api

* chore: v1 version upload,download

* chore: fix test

* chore: fix test

* chore: remove workspace test

* chore: fix wasm build

* chore: update path

* chore: update path

* chore: rename

* chore: expose file entity

* chore: introduce client-api-entity

* chore: fix build

* chore: new url

* chore: fix test

* chore: merge main

* chore: fix clippy
2024-06-19 13:06:58 +08:00
Nathan.fooo
bdee9fa8dc
feat: add feature brotli (#452)
* feat: add feature brotli

* chore: update reqwest version

* chore: update actix-http

* chore: fix wasm build
2024-04-06 16:43:38 +08:00
Zack Fu Zi Xiang
9b28edb5bc
feat: use email for af workspace invitation table 2024-03-06 11:29:07 +08:00
Nathan.fooo
0e4442159e
chore: support client version when connect using webscoket (#368)
* chore: support client version when connect using webscoket

* chore: update tokio version

* chore: fix audit

* chore: fix wasm test

* chore: update

* chore: update

* chore: update

* chore: update
2024-03-05 07:22:56 +08:00
Zack Fu Zi Xiang
c50f872bb7
Revert "Merge pull request #328 from AppFlowy-IO/workspace-add-email"
This reverts commit 5e7794646a, reversing
changes made to d5869742c2.
2024-02-22 10:48:10 +08:00
Zack Fu Zi Xiang
32fe1cc24d
feat: send email and create user if adding member but member not exist 2024-02-19 15:40:36 +08:00
Zack Fu Zi Xiang
8626b54de8
fix: redirect users after signup via magiclink 2024-02-09 02:13:11 +08:00
Zack Fu Zi Xiang
b4fd4cea05
feat: enable login via email magic link 2024-02-08 12:03:21 +08:00
Nathan.fooo
14a146d65f
chore: add logs (#286)
* chore: add logs

* chore: add logs

* chore: add logs
2024-02-03 07:40:18 +08:00
Nathan.fooo
199452d3b7
refactor: bear token (#280)
* refactor: bear token

* chore: fix clippy
2024-01-30 08:01:24 +08:00
Nathan.fooo
480b7377f2
chore: client api wasm (#262)
* feat: client_api wasm

* ci: client_api wasm ci

* ci: client_api wasm ci
2024-01-17 03:20:24 +08:00
Zack
97d1bb532c
feat: revamp storage api (#251)
* feat: revamp storage api

* feat: client api add method to generate url

* feat: remove some unused deps

* feat: upgrade deps

* feat: add mime to resp
2024-01-11 00:32:11 +08:00
Fu Zi Xiang
8984a2421c
feat: sso saml admin frontend 2023-11-28 00:39:36 +08:00
Fu Zi Xiang
c35e121ccf
feat: sso saml admin placeholders 2023-11-27 15:45:10 +08:00
Fu Zi Xiang
39b5ca28ad
feat: dynamic load oauth login options if supported by gotrue 2023-11-22 22:45:15 +08:00
Fu Zi Xiang
b934664b8c
feat: redirect to web if login from web 2023-11-22 13:25:51 +08:00
Nathan.fooo
c7e90eb24b
feat: stop recv messages when subscribe drop (#159)
* feat: stop recv messages when subscribe drop

* chore: update collab rev

* chore: fmt
2023-11-11 12:04:52 +08:00
Nathan.fooo
507d19628b
feat: logs and debounce refresh token (#150)
* chore: rename error

* chore: debounce refresh token

* refactor: gotrue error

* feat: retry refresh token if it's failed by network error

* chore: reset token

* chore: foramt logs
2023-11-06 16:34:52 +08:00
Nathan.fooo
41e01b91fc
feat: update collab rev and fix some bugs (#148)
* chore: remove todo

* chore: update collab rev

* chore: fmt

* chore: fmt

* chore: cache collab user

* fix: internal error

* ci: fix test

* chore: update collab rev

* ci: fix
2023-11-05 22:43:20 +08:00
Zack
33b699cbae
feat: user invite (#135)
* feat: user invites another user through magic link

* feat: user invitation

* chore: use google oauth logo from official branding guideline

* chore: use appflowy svg

* chore: home page use appflowy svg

* feat: UI improvement

* chore: edit mailer url path for nginx reverse proxy

* feat: added discord login

* feat: added login with github

* feat(web-api): provide link to open appflowy app

* refactor: simplify sidebar

* feat: added navigational features

* chore: shadow on navigate

* chore: removed unneeded files

* feat: message box improvement

* refactor: remove most javascript
2023-10-25 18:46:41 +08:00
Nathan.fooo
d0d2e916a7
refactor: hiding sqlx row entitis from client api (#132) 2023-10-22 22:10:03 +08:00
Nathan.fooo
fe5ef43333
refactor: workspace member crud (#128)
* refactor: workspace member crud

* refactor: update user api

* test: fix test
2023-10-21 20:50:32 +08:00
Zack
6bfa76aff8
feat: Password change (#125)
* feat: user update params

* fix: client_api and tests

* chore: sqlx metadata

* feat: added password change for user

* feat: top bar as components

* feat: login page improvement

* fix: add missing files

* feat: redesign login page

* feat: redesign admin and home page
2023-10-20 19:45:12 +08:00
Zack
d638c01763
feat: added oauth login for admin (#119)
* doc: added deployment guide for appflowy cloud

* feat: added oauth login for admin

* feat: specify redirect_url

* feat: implemented google oauth

* fix: default value for redirect_to

* fix: add check for location hash
2023-10-17 10:21:06 +08:00
Fu Zi Xiang
de5a33da97
feat: set user password 2023-10-13 16:32:28 +08:00
Fu Zi Xiang
591b66b73e
feat: auto refresh session 2023-10-13 12:08:53 +08:00
Fu Zi Xiang
bf6f010b90
feat: added add user by email 2023-10-11 17:47:34 +08:00
Fu Zi Xiang
89a4c0756d
feat: user details 2023-10-10 18:14:14 +08:00
Fu Zi Xiang
0ef6095481
feat: added funtionality to show all users 2023-10-10 16:11:49 +08:00
Nathan.fooo
4a279bc108
chore: config nginx (#93)
* chore: config nginx

* chore: update nginx
2023-10-04 22:11:46 +08:00
Nathan.fooo
c0aea377d0
test: test with dev client (#91)
* test: test with dev client

* chore: add nginx conf

* chore: fix clippy

* chore: disable docker in lint
2023-10-04 21:43:21 +08:00
Zack
e3ff765137
feat: Gotrue admin api (#74)
* feat: set up admin account and auto confirm during appflowy start

* feat: client auth against gotrue whenever possible

* feat: admin add user

* feat: implement admin add user

* feat: generate registered user

* fix: enable cloud feature for client_api

* fix: test same user fix

* feat: added admin magic link generation
2023-09-23 20:06:37 +08:00
Zack
f1a16058ce
feat: Gotrue admin api (#73)
* feat: set up admin account and auto confirm during appflowy start

* feat: client auth against gotrue whenever possible

* feat: admin add user

* feat: implement admin add user

* feat: generate registered user

* fix: enable cloud feature for client_api

* fix: test same user fix
2023-09-23 17:07:02 +08:00
Nathan.fooo
b0622efe08
Feat update user (#69)
* chore: update user

* refactor: token

* chore: update
2023-09-22 20:28:39 +08:00
Zack
3c598f178e
ci: test env docker-compose deployment (#48)
* ci: test env docker-compose deployment

* ci: test deployment

* fix: replace delimiter with pipe to avoid conflict

* fix: API_EXTERNAL_URL_TEST from secrets

* chore: remove unneeded deploy when pull request

* fix: cloud public host name/address

* chore: trigger: change to push

* chore: add ext_url for exposed gotrue auth server
2023-09-15 21:13:43 +08:00
Zack
b3be09e264
feat: added refresh ability on server and client (#41)
* feat: added refresh ability on server and client

* fix: use refresh token for refresh and add test case

* chore: cargo fmt --all

* chore: cargo clippy

* fix: cargo clippy

* test: added async mutex for registered user for consistency

* fix: remove unneeded files

---------

Co-authored-by: nathan <nathan@appflowy.io>
2023-09-14 15:58:18 +08:00
Zack
8d11d7b6cf
feat: support external oauth (#35)
* feat: support external oauth

* chore: cargo fmt

* doc: add docs for google oauth2

* fix: use btree map and get for oauth

* feat: client to open url for oauth login

* feat: add test case for oauth not available

* feat: add placeholder for sign_in_url

* fix: use

* feat: client sign up with url

* feat: add sign_in_with_url simple test

* fix: use url fragments and string split

* fix: test case and gotrue error handling

* fix: return error and remove unwrap

* chore: remove unused file not in module tree

* fix: test cases

* chore: add cfg feature cloud to isolate dependencies
2023-09-13 21:08:13 +08:00
Nathan.fooo
3aa4d20ad3
chore: reduce deps of client_api crate (#37) 2023-09-13 13:12:07 +08:00
Zack
853f089ca0
feat: test gotrue when app start, use state for gotrue client, use go… (#24)
* feat: test gotrue when app start, use state for gotrue client, use gotrue UUID instead of BIGINT for user uid

* feat: backward compatibility with native authetication

* fix: native auth use uuid instead

* fix: sqlx preparation

* fix: sqlx metadata and unused variable

* fix: clippy

* fix: create workspace if not exist after sign in

* chore: update .sqlx with new query

* feat: query workspace

* revert: revert using i64 for user id

* fix: update sqlx queries

* fix: update .sqlx metadata

* feat: only use uuid from sqlx types, select user_profile view

* ci: add version check

* ci: add missing sqlx files

* chore: cargo fmt
2023-09-11 17:16:41 +08:00
Nathan.fooo
d0fdde7bf5
chore: remove unused deps (#29)
* chore: remove unused deps

* tests: fix
2023-09-11 16:21:16 +08:00
Nathan.fooo
4a56cbb91f
refactor: refactor app data struct (#23)
* refactor: refactor app data struct to reduce memory cost

* refactor: rename AppData to AppResponse

* chore: implement traits

* chore: remove default features of actix-web
2023-09-10 11:56:22 +08:00
Zack
d4577f5e61
Feat: enrich http dto (#20)
* feat: add scripts for easier dev

* feat: add Json<T> as resp type for http server

* feat: restructure server and client shared entity

* feat: restructure server and client shared entity

* feat: use serde_repr to deserialize enum into json number

* feat: minor adjustment to results and server error

* feat: test: fix unconfirmed email message

* feat: test: add test case for existing user

* feat: test: modified api for sign_out

* feat: test: add test case pass
2023-09-08 20:01:28 +08:00
Nathan.fooo
c1f8d79169
chore: separate crates (#18) 2023-09-07 19:40:11 +08:00