Commit Graph
63 Commits
Author SHA1 Message Date
gitlawrandjialin 85268b8917 fix(api-keys): scope creator filter to current org members
The "Filter by creator" dropdown was listing every user in the
system. For an Org owner viewing an Org-scoped key list, picking
a user outside the Org always produced an empty result. Pass
scope=current_org to `/user-directory` so the picker matches the
list's actual scope. BE drops the param when the request has no
Org context, so callers without an Org are unchanged.
2026-06-04 18:09:32 +08:00
jialinandjialin 234e42ccfa chore: remove comment 2026-06-03 15:50:06 +08:00
jialinandjialin 9f7a99f370 fix: refresh list after creating key 2026-06-03 15:50:06 +08:00
gitlawrandjialin 57fec89f2d feat(api-keys): show creator column and filter to org owners
Switch the gate from `currentUser.is_admin` to `access.canSeeOrgAdmin`
so Org owners get the same all-keys view (Creator column, creator
filter, `user_id: '*'` default) that platform admins have. Mirrors
the BE's "platform admin OR current-Org owner" gate on listing every
key in scope.

The user picker now fetches `/user-directory` instead of the
admin-only `/users` endpoint, which would 403 Org owners. Rename the
filter placeholder from the misnamed `models.table.filterByName` to
`common.filter.byCreator`.
2026-06-03 15:25:38 +08:00
Yuxing Dengandjialin ae8ec8572c feat: generic configActions plugin slot for api-keys & model-routes
Introduce `pages/api-keys/plugin.tsx` and `pages/model-routes/plugin.tsx`
defining a unified `{ key, labelId, icon, priority, danger, form,
useCreate }` contract that plugins use to contribute per-row
"configure this record" actions. The host renders one dropdown entry
per registered action and mounts each entry's form, ordered by a
single numeric priority (built-ins are ranked on the same scale; rows
flagged `danger` sink to the bottom).

Drops the older `apiKeys.rowActions` / `modelRoutes.rowActions` slots
and the implicit drawer half of
`<PluginExtraFields name="APIKeysPageGlobal" />`. The model-routes
mount point stays for the page-level quota-defaults bulk-fetch and now
also accepts a `refreshToken` so per-row saves can invalidate derived
page data without changing the row set.
2026-05-18 12:14:19 +08:00
jialinandjialin ac99156c90 feat: ip access control 2026-04-29 18:09:55 +08:00
jialinandjialin c68f546be9 fix: apikey filters 2026-04-29 18:09:55 +08:00
jialinandjialin 6fccee3711 fix: impoer external components 2026-04-24 14:28:30 +08:00
jialinandjialin 597a86562a fix: rebase main 2026-04-24 14:28:30 +08:00
jialinandjialin 8711c27b78 chore: replace components with core-ui, upgrade eslint 2026-04-24 14:28:30 +08:00
jialinandjialin 2d726ded30 feat: admin apikeys 2026-04-17 20:35:16 +08:00
jialinandjialin c73609d155 fix: adjust border raduis 2026-04-08 18:54:06 +08:00
jialinandjialin f0e19c8934 fix: spin size 2026-03-19 12:28:18 +08:00
jialinandjialin 68519223fa fix: pagination cache for table list 2026-03-17 16:35:55 +08:00
jialinandjialin 85ea619b18 fix: title for editing apikey 2026-03-16 14:48:46 +08:00
jialin afcd3e5693 feat: add cluster detail 2026-01-09 20:51:48 +08:00
jialin fa0aeac10b fix: remove default sorting status on UI 2025-12-23 20:54:16 +08:00
jialin 0d0592eee9 fix: sorter tooltip 2025-12-22 16:41:44 +08:00
jialin e3b3f51e87 fix: ignore the sort_by when no data 2025-12-22 11:57:57 +08:00
jialin 23a761226a feat: table list sorter 2025-12-21 21:37:05 +08:00
jialin b38bc8a207 fix: table sorter 2025-12-11 13:33:41 +08:00
jialin d1c1132e6e style: button for empty 2025-11-27 15:53:23 +08:00
jialin 4c22d08da5 refactor: page layout 2025-11-05 10:02:25 +08:00
jialin e2da7c5f96 style: ui for no data in table list 2025-10-16 11:11:39 +08:00
jialin bb7c8e9c85 chore: model access statement 2025-10-13 15:21:17 +08:00
jialin 663b6c7b4e style: allowed models ux 2025-10-13 15:21:17 +08:00
jialin 1fa2124efd feat: add allowed models 2025-10-13 15:21:17 +08:00
jialin a5c1b8e15f chore: test by api 2025-10-13 14:40:26 +08:00
jialin 51450c2b02 style: flatten menu items 2025-07-10 09:47:12 +08:00
jialin cbeea23295 style: keep the logs pagination visible 2025-06-27 10:15:11 +08:00
jialin 8751400ae3 fix: distributed servers info 2025-06-25 20:29:48 +08:00
jialin 4b5f08ccc2 chore: add delete action in table fetch hook 2025-03-19 09:29:31 +08:00
jialin 25cf439f03 chore: extract fetch hooks for common table 2025-03-18 20:35:29 +08:00
jialin 0f7d04e0b9 fix: page error when edit error 2025-02-25 14:03:14 +08:00
jialin f91311144b fix(style): layout content padding 2025-02-24 14:10:50 +08:00
jialin d1369e765a style: table no data 2025-01-21 14:25:14 +08:00
jialin 39a71d51cf fix: image edit ux 2025-01-06 20:45:32 +08:00
jialin 472ef1a231 chore: audio meta data 2025-01-03 17:27:19 +08:00
jialin 02391e66dc chore: adjust the deletion modal config 2024-12-24 10:34:08 +08:00
jialin 6e5e195a30 style: model list type tag 2024-12-13 12:13:17 +08:00
jialin 90350f99ad style: table column size 2024-10-23 19:36:29 +08:00
jialin 9bd6dedd90 chore: add english comment 2024-08-28 14:51:20 +08:00
jialin 0a47c4c067 chore: deploy model state merge 2024-08-09 10:26:46 +08:00
jialin dea99ff70a chore: list state merge 2024-08-09 10:26:46 +08:00
jialin b48be3b883 fix: edit user password optional 2024-07-19 17:29:39 +08:00
jialin b8b0d39635 fix: dashboard gauge chart data 2024-07-19 13:06:02 +08:00
jialin 1439f59131 fix: intl refresh in modal confirm 2024-07-19 09:34:14 +08:00
jialin 714e2d927a fix: api key table list sort 2024-07-18 18:14:50 +08:00
jialin a27fa9d56c fix: list pagination 2024-07-16 15:27:54 +08:00
jialin 7e06a56c12 fix: build file warnings 2024-07-15 19:04:03 +08:00