Commit graph

643 commits

Author SHA1 Message Date
yun-zhi-ztl
b70d4336b0 fix: hide hidden skills from regular viewers 2026-03-17 14:29:07 +08:00
vsxd
e52853c49c test: cover role and user status permission edges 2026-03-17 14:27:25 +08:00
yun-zhi-ztl
b4d716d68f Merge pull request #58 from iflytek/feature/project-fixbug
fix: stabilize portal flows and restore skill detail downloads
2026-03-17 14:26:46 +08:00
yun-zhi-ztl
ce982c9992 Merge remote-tracking branch 'origin/main' into feature/project-fixbug 2026-03-17 14:20:41 +08:00
yun-zhi-ztl
984137485d fix: fallback to rebuilding skill bundles for downloads 2026-03-17 14:14:45 +08:00
wowo
c69b432798 Merge pull request #59 from iflytek/chore/unify-build-test-makefile
chore: unify build and test entrypoints
2026-03-17 14:12:43 +08:00
vsxd
033ac54c76 chore: unify build and test entrypoints 2026-03-17 14:09:22 +08:00
yun-zhi-ztl
252ba65297 fix: hide self-report action on skill detail 2026-03-17 14:05:40 +08:00
yun-zhi-ztl
83606ef930 fix: degrade gracefully for missing skill storage assets 2026-03-17 13:56:39 +08:00
yun-zhi-ztl
c8ba86e8a2 test: cover skill query helpers 2026-03-17 11:54:16 +08:00
yun-zhi-ztl
9e916305f1 test: cover formatting and api error helpers 2026-03-17 11:51:40 +08:00
yun-zhi-ztl
02c03946c9 test: restore passing unit suites 2026-03-17 11:44:57 +08:00
yun-zhi-ztl
f6aaa6f587 Merge remote-tracking branch 'origin/main' into feature/project-fixbug 2026-03-17 11:37:22 +08:00
yun-zhi-ztl
22c3ca69a0 fix: stack dashboard skills and tokens 2026-03-17 11:36:48 +08:00
yun-zhi-ztl
96c2f53283 fix: show download error on skill detail 2026-03-17 11:32:50 +08:00
yun-zhi-ztl
0904f0feda fix: sync namespace member role updates 2026-03-17 11:30:57 +08:00
yun-zhi-ztl
99ff863681 fix: handle role downgrade on protected pages 2026-03-17 11:28:00 +08:00
yun-zhi-ztl
43493fa63d fix: relax skill frontmatter parsing 2026-03-17 11:22:08 +08:00
yun-zhi-ztl
4e71c93e86 fix: hide account merge entry 2026-03-17 11:19:49 +08:00
yun-zhi-ztl
7bd7aa2ad9 fix: wrap long report review text 2026-03-17 11:18:25 +08:00
yun-zhi-ztl
96dcf08b0e fix: allow republish after review withdrawal 2026-03-17 11:16:57 +08:00
vsxd
7ced9d38f0 Add PR test workflow 2026-03-17 11:16:01 +08:00
vsxd
68de48933a Fix frontend build and stabilize test suite 2026-03-17 11:16:01 +08:00
vsxd
e484b2c72a docs: align role docs with code behavior 2026-03-17 11:16:01 +08:00
yun-zhi-ztl
b01bedf392 fix: show review failure reasons 2026-03-17 11:13:37 +08:00
yun-zhi-ztl
97db5efa8f fix: restrict namespace creation to admins 2026-03-17 11:12:13 +08:00
yun-zhi-ztl
a888561e53 fix: handle numeric skill search queries 2026-03-17 11:10:05 +08:00
yun-zhi-ztl
163320f7eb fix: paginate personal skills and stars 2026-03-17 11:06:47 +08:00
yun-zhi-ztl
c9e7e1ce28 Merge remote-tracking branch 'origin/main' into feature/project-fixbug
# Conflicts:
#	web/src/api/client.ts
#	web/src/app/router.tsx
#	web/src/pages/skill-detail.tsx
2026-03-17 10:55:11 +08:00
yun-zhi-ztl
71ed31fc46 fix: return skill detail back button to search 2026-03-17 10:53:00 +08:00
tww
965bf998c3 Merge pull request #49 from iflytek/cli-login
cli login fix
2026-03-16 21:39:51 +08:00
vsxd
66cbdd7b57 fix: official site urls removed 2026-03-16 21:25:55 +08:00
vsxd
ce16a27c8d fix: migration sql version fixed 2026-03-16 21:21:46 +08:00
vsxd
c750941133 fix(web): avoid CSP errors when downloading skills 2026-03-16 21:21:46 +08:00
vsxd
ace60c477f fix(skill): isolate unpublished slug access 2026-03-16 21:21:46 +08:00
xiose
cb717fd5f4 fix(auth): enforce owner isolation for skill publishing
- Change skill uniqueness constraint from (namespace_id, slug) to
  (namespace_id, slug, owner_id) to support per-user skill records
- Reject publish when another owner has a published skill with same slug
- Reject review approval when same-slug conflict exists
- Auto-withdraw pending review versions when submitting a new version
- Resolve visible skill by preferring published skill, then current
  user's own skill, to fix wrong skill returned for same-slug queries
- Invalidate all skill query cache on publish to prevent stale data
2026-03-16 21:21:46 +08:00
xiose
94a1e95bc7 fix(auth): invalidate session when user account is disabled 2026-03-16 21:21:46 +08:00
xiose
1805391d2d fix(auth): refresh user roles on /me request, fix login page UI issues
- Backend: /api/v1/auth/me now fetches fresh roles from DB and updates
  session when roles have changed, so users see role changes on page
  refresh without re-login
- Frontend: invalidate ['auth', 'me'] cache after admin user mutations
  (role change, status change, approve, disable, enable) and account merge
- Login: fix reversed eye icon (Eye=visible, EyeOff=hidden)
- Login: hide browser-native password reveal button to avoid duplicate
2026-03-16 21:21:46 +08:00
xiose
bd86d51f4e fix(web): reset token dialog state on reopen, fix pagination and download button
- Reset form fields and mutation state when create-token dialog reopens
- Fix delete pagination: check items.length === 0 (post-delete) instead of 1
- Restrict skill download to PUBLISHED versions only
2026-03-16 21:21:46 +08:00
xiose
bd8ef13cbb fix(web): prevent text overflow in token dialogs
Add responsive text wrapping and overflow handling to token-related
components to prevent layout breaking with long token names or descriptions.

Changes:
- Add min-w-0 to dialog headers to allow flex shrinking
- Add break-all/break-words to prevent text overflow
- Add overflow-hidden to token display container
- Apply max-w-48 constraint to token name column
2026-03-16 21:21:46 +08:00
vsxd
785c15cd0f Fix SKILL.md frontmatter rendering 2026-03-16 21:21:46 +08:00
vsxd
654f640abb fix: migration sql version fixed 2026-03-16 21:15:12 +08:00
wowo
bf1c97ded0 Merge pull request #50 from iflytek/bugfix
Bugfix
2026-03-16 21:07:52 +08:00
vsxd
330f64cedd fix(web): avoid CSP errors when downloading skills 2026-03-16 21:03:37 +08:00
vsxd
316a86628c fix(skill): isolate unpublished slug access 2026-03-16 21:01:44 +08:00
xiose
060a611a54 fix(auth): enforce owner isolation for skill publishing
- Change skill uniqueness constraint from (namespace_id, slug) to
  (namespace_id, slug, owner_id) to support per-user skill records
- Reject publish when another owner has a published skill with same slug
- Reject review approval when same-slug conflict exists
- Auto-withdraw pending review versions when submitting a new version
- Resolve visible skill by preferring published skill, then current
  user's own skill, to fix wrong skill returned for same-slug queries
- Invalidate all skill query cache on publish to prevent stale data
2026-03-16 20:56:28 +08:00
xiose
dfa5837456 fix(auth): invalidate session when user account is disabled 2026-03-16 20:39:33 +08:00
xiose
b83e8b8c27 fix(auth): refresh user roles on /me request, fix login page UI issues
- Backend: /api/v1/auth/me now fetches fresh roles from DB and updates
  session when roles have changed, so users see role changes on page
  refresh without re-login
- Frontend: invalidate ['auth', 'me'] cache after admin user mutations
  (role change, status change, approve, disable, enable) and account merge
- Login: fix reversed eye icon (Eye=visible, EyeOff=hidden)
- Login: hide browser-native password reveal button to avoid duplicate
2026-03-16 20:39:33 +08:00
xiose
40b9c8e39d fix(web): reset token dialog state on reopen, fix pagination and download button
- Reset form fields and mutation state when create-token dialog reopens
- Fix delete pagination: check items.length === 0 (post-delete) instead of 1
- Restrict skill download to PUBLISHED versions only
2026-03-16 20:39:33 +08:00
xiose
c23960ea0b fix(web): prevent text overflow in token dialogs
Add responsive text wrapping and overflow handling to token-related
components to prevent layout breaking with long token names or descriptions.

Changes:
- Add min-w-0 to dialog headers to allow flex shrinking
- Add break-all/break-words to prevent text overflow
- Add overflow-hidden to token display container
- Apply max-w-48 constraint to token name column
2026-03-16 20:39:33 +08:00