Commit Graph

81 Commits

Author SHA1 Message Date
Charlie
a0a19a91fa feat: new authenticate UI (#12172)
* enhance(ui): login form

* enhance(ui): add localization support with translate and locale management

* enhance(ui): WIP implement new authentication forms with context management

* enhance(ui): add password visibility toggle to input row

* enhance(ui): adjust padding for password visibility toggle

* enhance(i18n): implement internationalization support for authentication UI

* enhance(ui): implement sign in and sign up functionality with loading state

* enhance(ui): add session management and error handling in login form

* enhance(ui): add confirm code form and enhance authentication flow

* enhance(ui): improve sign-in flow and confirm code handling

* enhance(ui): add warning variant to alerts and improve error handling

* enhance(ui): implement countdown timer for code resend functionality

* enhance(ui): implement countdown timer for password reset and enhance login flow

* enhance(ui): export authentication and enhance UI components

* enhance(ui): integrate new login component and refresh token handling

* chore: clear amplify related codes

* enhance(i18n): normalize language codes and update locale handling

* enhance(auth): add multilingual support for signup and password reset flows

* enhance(ui): update login styles to inherit text color

* enhance(ui): adjust input color variables for improved accessibility

* enhance(auth): add password policy validation and tips in multiple languages

* enhance(ui): improve localization handling and update alert styles

* enhance(mobile): enhance login modal styling and accessibility

* fix(ui): update password validation regex for special characters

* enhance(ui): add padding to card header in login dialog

---------

Co-authored-by: Tienson Qin <tiensonqin@gmail.com>
2025-10-28 16:55:43 +08:00
Tienson Qin
abe1046f22 fix: rtc group 2025-07-10 23:21:57 +08:00
Tienson Qin
9abe6864c1 Add rtc test group 2025-07-10 18:06:58 +08:00
rcmerci
e4431a1d46 fix(rtc): doesn't automatically start after refreshing 2025-05-14 19:42:40 +08:00
rcmerci
25d61bdb79 fix: restart rtc if switch master-client 2025-04-22 15:58:52 +08:00
rcmerci
411292cd73 fix: skip add created-by when no user-block 2025-04-11 22:00:00 +08:00
rcmerci
c591598d22 enhance: move adding created-by logic to pipeline-hook 2025-04-11 21:49:03 +08:00
rcmerci
ff40821994 feat(rtc): add property :logseq.property/created-by-ref 2025-04-10 19:22:16 +08:00
rcmerci
66b5983088 enhance(rtc): stop rtc when user logout 2025-02-24 23:01:54 +08:00
rcmerci
f7815b487d fix: nbb test 2024-12-28 16:39:33 +08:00
rcmerci
26e2fad13d fix: move missionary_util to deps/common, fix some deps issue 2024-12-28 14:22:16 +08:00
rcmerci
eb273f1aff fix(rtc): auto rtc-start when created&uploaded a new graph 2024-12-03 16:50:19 +08:00
Tienson Qin
60b723a975 chore: add team group check 2024-12-02 13:20:05 +08:00
rcmerci
356705914c chore: temp way to enable login button 2024-12-02 13:03:31 +08:00
rcmerci
f09422f4a0 chore: temp fn to enable login button 2024-12-02 12:52:16 +08:00
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