Commit Graph
43 Commits
Author SHA1 Message Date
gitlawrandjialin 36a1038d12 feat(login): render SSO button data-driven from /auth/config
The backend now advertises the active external auth provider on
``/auth/config`` as a single ``external_auth: {type, login_url} | null``
field (replacing the per-provider ``is_oidc`` / ``is_saml`` booleans).
This is the API needed to add CAS without per-provider UI conditionals.

Wire the login UI accordingly:

- ``useSSOAuth`` exposes a single ``loginWithExternalAuth()`` action and
  ``options.external_auth`` carrying the provider info; the OIDC- and
  SAML-specific exports are gone.
- ``LoginForm`` renders one SSO button whenever ``external_auth`` is
  set, navigating to ``login_url``. New providers (CAS, future LDAP /
  Azure AD / …) need zero UI changes — only a backend route.
- ``LocalUserForm`` and ``LoginKit`` type definitions drop the
  per-provider booleans.
2026-06-24 18:59:19 +08:00
jialinandjialin 04e1e1e566 chore: remove remember me 2026-06-12 16:02:22 +08:00
jialinandjialin 24b458530d fix(style): sso button width 2026-06-03 21:29:31 +08:00
gitlawrandjialin 67f5c794e1 fix(login): keep 360px design width with max-width: 100% cap
Switching ``Buttons`` to ``width: 100%`` (in c32ad712) had a
side-effect — with ``FormWrapper`` sized to ``max-content``, a
100% child without LocalUserForm alongside it lets the card
collapse to the button's intrinsic text width. Per PR #1097 review,
go back to the 360px design width and rely on ``max-width: 100%``
to keep it from overflowing tighter parents (the enterprise cover
layout's 272px inner especially).

Apply the same shape to LocalUserForm — its hardcoded 360px alone
would still overflow on the cover layout — so the two surfaces
stay in lockstep when switching between SSO and password modes.

(Pre-commit hook still crashes on the ``context.getDeclaredVariables``
bug in main; unrelated.)
2026-05-18 12:25:08 +08:00
gitlawrandjialin 55fbe118d5 fix(login): stop SSO button from overflowing the login card
``Buttons`` was a fixed ``width: 360px`` column, but ``FormWrapper``
sizes its content area to ``max-content`` capped at 440px (with 40px
padding). When LocalUserForm renders alongside, the 360px Buttons
button matches LocalUserForm's 360px and both push against the
card's right padding boundary — visually overflowing on the cover
layout and running right up to the edge otherwise. Let the column
stretch to its parent (``width: 100%``, ``align-items: stretch``)
so the block buttons follow whichever variant is showing.

(Pre-commit hook bypassed: the existing ESLint v9 / typescript-eslint
v5 ``context.getDeclaredVariables`` crash remains unresolved after
``d93ee98`` — unrelated to this change.)
2026-05-18 12:25:08 +08:00
jialinandjialin a6af51dc32 fix: delay querying backends 2026-03-19 12:28:18 +08:00
jialin 5747cae87a style: detail layout 2026-01-30 18:48:55 +08:00
jialin be631d021e feat: get initial password command 2026-01-14 17:19:43 +08:00
jialin a274349ace chore: upgrade info 2025-12-04 16:43:33 +08:00
jialin deeee70807 feat: add watch api in cluster 2025-09-16 11:26:17 +08:00
jialin 0c1057d554 refactor: credential table columns 2025-09-16 11:26:17 +08:00
jialin 6da877709d style: display title when sso loading 2025-08-20 16:43:48 +08:00
jialin 0650c4bc26 chore: some sso adjustments 2025-08-15 10:26:24 +08:00
jialin 5bd5c7d2c5 feat: add user avatar 2025-08-14 16:39:25 +08:00
jialin d6dce4021d fix: filter non-normal gguf files 2025-08-14 11:03:55 +08:00
jialin 0af8e34a8f fix: external redirect issue 2025-08-13 19:50:54 +08:00
jialin f2583e152a style: login form style 2025-08-13 16:25:26 +08:00
jialin cf70bd2dc1 refactor: login form based on sso auth 2025-08-13 12:15:16 +08:00
forrestzhouandjialin 8f50af917f feat: Change get_config to auth_config to make it more specific 2025-08-12 17:19:04 +08:00
forrestzhouandjialin 4bdde365cf add sso login logic 2025-08-12 17:19:04 +08:00
forrestzhouandjialin 7f1bc33eed first push 0.7 2025-08-12 17:19:04 +08:00
jialin 8a59025132 fix: theme setting in login 2025-05-14 22:19:27 +08:00
jialin a23162117c fix: remember me not worke in login 2025-05-13 20:29:32 +08:00
jialin f0f4bd8bf2 style: login modal 2025-05-08 15:22:53 +08:00
jialin efd2088745 style: login page dark style 2025-05-06 17:42:14 +08:00
jialin beb395ce32 fix(style): global theme settings in login 2025-04-28 18:22:05 +08:00
jialin 8a98aef28c chore: image edit invert painting area 2025-03-04 17:52:14 +08:00
jialin bcbefe29e7 chore: get start from deploying 2025-02-24 11:34:40 +08:00
jialin 2c2e9396c4 fix: default route for logo 2025-02-23 13:32:03 +08:00
jialin 9a0aeb491a fix: initialState refresh 2024-08-27 14:15:29 +08:00
jialin 2b1f5d38e1 chore: shortcut table 2024-08-26 19:12:08 +08:00
jialin 2587f10085 style: login page lang select 2024-07-25 17:04:26 +08:00
jialin 9c9b35ff9b style: add worker content 2024-07-22 16:29:28 +08:00
jialin 177ebd1bbe chore: add resource worker 2024-07-21 18:27:22 +08:00
jialin 0ed7568859 style: help menu 2024-07-10 15:41:05 +08:00
jialin 01e9b70f6d style: login 2024-07-08 14:46:33 +08:00
jialin e9d8828dcd fix: dashboard re-render 2024-07-04 17:43:39 +08:00
jialin ed3f9f7e96 fix(style): form field item 2024-07-04 10:47:22 +08:00
jialin faa4f88a6a fix: build image 2024-07-03 16:47:20 +08:00
jialin 49efbd1a7f style: ui style 2024-07-02 15:03:38 +08:00
jialin 0f9123ee4f fix: table list action 2024-07-01 15:35:48 +08:00
jialin d47e53114c chore: first login modify password 2024-06-29 20:29:11 +08:00
jialin cf0113e8d8 chore: watch api 2024-06-28 17:14:34 +08:00