Commit Graph

66 Commits

Author SHA1 Message Date
Gabriel Horner
70383cd813 fix: stop shadowing vars for rest of frontend
Follow up to 5ff364ba1e
2024-09-07 00:13:09 -04:00
rcmerci
1b08681a2d feat: add upload-avatar task 2024-07-16 16:22:56 +08:00
rcmerci
3cd31f1571 refactor(rtc): add async-upload-graph 2024-03-26 17:40:45 +08:00
Tienson Qin
dd63079aa4 fix: can't delete remote graph 2024-03-26 14:49:40 +08:00
Gabriel Horner
8296426614 fix: lookup hardcoded db names by db/ident
also fix lint
2024-03-25 10:07:24 -04:00
Tienson Qin
18079d7e84 fix: only manager can delete remote graph
Fixes LOG-3118
2024-03-22 12:29:31 +08:00
rcmerci
67dcc78911 enhance(rtc): add :created-by when push local-updates 2024-03-14 16:11:54 +08:00
rcmerci
7f26deed45 enhance: display username too (#11105)
* enhance: display username too

* enhance(ui): polish the user item from the global dots menu

---------

Co-authored-by: charlie <xyhp915@qq.com>
2024-03-12 16:53:00 +08:00
Andelf
d114756212 fix(sync): logout and clear cognito keys 2024-03-12 16:10:06 +08:00
Tienson Qin
0185c2cbb9 chore: remove invalid token instrument 2023-12-08 20:18:42 +08:00
Tienson Qin
5761f206be Add Posthog instrument when failed to refresh access token (#10625)
* Add posthog instrument when refresh token failed

* Add user-id to instrument

* fix: clear tokens iff oauth2/token returns 400 and invalid_grant
2023-12-03 23:10:22 +08:00
Andelf
0e4e42ac2b fix(sync): check user refresh-token as well 2023-09-07 21:53:26 +08:00
rcmerci
2d34af9f6a Enhance(sync): serveral enhancements in sync (#10134)
* enhance(sync): 1. dont clear-tokens when refresh-token failed

2. log invalid json when fail to parse api json body,
   usually, it's returned by firewall (e.g. a XML)
3. handle exceptions carefully in frontend.fs.sync

* enhance(sync): update avoid reentrancy related code

* rename exp to guard-ex
2023-09-04 17:27:51 +08:00
Ben Yorke
96101b9a6d setting up PR 2023-06-09 10:49:18 -04:00
Ben Yorke
db278d92ec lemonsqueezy connected 2023-06-09 10:49:18 -04:00
rcmerci
edb3ad48a0 fix: decode username for jwt 2023-04-03 12:46:23 +08:00
Charlie
95c5cba9db Feat: The new login UI (#8865)
Built-in login UI instead of callback

---------

Co-authored-by: rcmerci <rcmerci@gmail.com>
Co-authored-by: Konstantinos Kaloutas <konstantinos@logseq.com>
Co-authored-by: Tienson Qin <tiensonqin@gmail.com>
2023-03-27 19:56:18 +08:00
Tienson Qin
a92588a18b Release whiteboard to everyone (#8853)
* chore: release whiteboards for everyone

Also, toggle it on by default

* fix: e2e test

* add onboarding tour test

---------

Co-authored-by: Konstantinos Kaloutas <konstantinos@logseq.com>
2023-03-21 19:37:21 +08:00
Konstantinos Kaloutas
16c1e30589 fix: clear user info on logout 2023-02-10 11:40:25 +08:00
rcmerci
6fd8d8d165 feat: export login-callback fn
if users can't redirect from browser back to app,
the workaround is calling
frontend.handler.user.login_callback("<code>") to finish login progress
2023-01-12 23:25:20 +08:00
rcmerci
ea71240a4f enhance: add login fn for e2e test (#8214)
* enhance: add login fn for e2e test
* expose login-with-username-password-e2e fn to js/window
* export login-with-username-password-e2e
* require sha256&hmac
* update login-with-username-password-e2e
2023-01-04 23:12:11 +08:00
Konstantinos Kaloutas
561b16f522 fix: open whiteboards for beta 2022-12-16 20:58:57 +08:00
Tienson Qin
2bf07a3851 enhance: automatically enable whiteboards for alpha or beta users 2022-12-16 20:58:57 +08:00
Tienson Qin
cc3abd5daa fix: private fn 2022-12-14 12:35:43 +08:00
Konstantinos Kaloutas
ef9075a684 Merge branch 'master' into feat/whiteboards-onboarding 2022-11-28 12:56:41 +02:00
Tienson Qin
e1c5a40c30 chore: rename :user/login to :user/fetch-info-and-graphs 2022-11-28 17:50:06 +08:00
Tienson Qin
a46b7226ad fix: refresh tokens when starting the app 2022-11-28 17:45:30 +08:00
rcmerci
9bd1fb490a fix(sync): won't refresh tokens&remote-graphs after started app 2022-11-28 13:11:07 +08:00
Konstantinos Kaloutas
718ebc0fe7 wip: whiteboards onboarding 2022-11-23 21:25:04 +02:00
rcmerci
decd47c8a9 enhance(sync): check token not expired before api-calls (#7267)
* enhance(sync): check token not expired before api-calls

* fix(sync): ensure id-token exists when calling user/user-uuid

* enhance(sync): add <wrap-ensure-id&access-token, remove refresh-token-loop

* fix: check exception before using the result of <user-uuid

* fix: notify users ex message instead of ex info

Co-authored-by: Tienson Qin <tiensonqin@gmail.com>
2022-11-09 11:06:45 +08:00
Tienson Qin
4aeaaeb01e chore: remove unused code 2022-11-08 23:30:52 +08:00
Tienson Qin
1a0012974f Move sync to close beta 2022-10-28 17:22:16 +08:00
rcmerci
bc89d60664 fix: refresh tokens when almost-expired-or-expired 2022-10-08 20:49:40 +08:00
Gabriel Horner
1f0e22275d Add ns docstrings for most ns in src/main
- Added to CI now that it passes
- Added no-doc for docstrings that don't add any more than what's in the
ns name or for ones where I didn't know the ns that well
2022-09-27 13:55:16 +08:00
Andelf
23ecc641ef chore: debug print 2022-09-15 11:17:35 +08:00
rcmerci
0b6328fcfa fix(sync): api calls fail when network offline 2022-09-08 18:36:02 +08:00
Charlie
01d879c18e feat!: File Sync (#5355)
- file sync for electron/ios/android
- age encryption of both file content and file path
- massive UI enhancement
- corresponding CI tasks

Co-authored-by: llcc <lzhes43@gmail.com>
Co-authored-by: rcmerci <rcmerci@gmail.com>
Co-authored-by: Tienson Qin <tiensonqin@gmail.com>
Co-authored-by: Andelf <andelf@gmail.com>
Co-authored-by: Gabriel Horner <gabriel@logseq.com>
2022-09-01 00:31:49 +08:00
rcmerci
adc80088e8 fix(login): auth-callback&auth-refresh-token return json type resp 2022-05-10 18:21:26 +08:00
Andelf
ece4f0ba8c feat(ios): add FileSync plugin 2022-05-05 16:31:25 +08:00
Tienson Qin
b3f67c69b1 misc: delete both web github integration and encryption 2022-04-24 11:17:47 +08:00
rcmerci
dd57f6c695 enhance(sync): add logout 2022-04-14 09:29:01 -04:00
Gabriel Horner
dba1db1429 Address cleanup from #3839
- Remove unused translation key
- Delete or TODO commented code
- Capitalize notifications to users
2022-04-13 19:12:24 +08:00
rcmerci
f072a29727 feat(sync): support dev&prod env 2022-04-12 09:24:21 +08:00
rcmerci
e147753146 chore(sync): rename logged? to logged-in? 2022-04-04 22:31:18 +08:00
rcmerci
d4e8f3135e fix(sync): lint 2022-04-04 22:31:17 +08:00
rcmerci
ddbc677cd9 fix(sync): lint 2022-04-04 22:30:27 +08:00
rcmerci
882c7f7434 feat(sync): add basic ui 2022-04-04 22:28:25 +08:00
rcmerci
aea611b439 feat(sync): update ui & sync-state 2022-04-04 22:27:44 +08:00
rcmerci
371bcfa855 feat(sync): update SyncManager 2022-04-04 22:27:43 +08:00
rcmerci
54a58a9ef7 chore: mark some funcs as deprecated, add user/login-notify 2022-04-04 22:27:42 +08:00