Commit graph

635 commits

Author SHA1 Message Date
XiaoSeS
f2cf22b3e1 feat: add user profile update feature with moderation support
* feat: add user profile update feature with moderation support

Add ability for users to update their display name with optional machine/human review.

Backend:
- Add profile_change_request table (V15 migration)
- Add UserProfileService with moderation workflow
- Add PATCH /api/v1/user/profile and GET /api/v1/user/profile endpoints
- Add ProfileModerationService interface with NoOp implementation
- Add ProfileModerationProperties for machine/human review toggles
- Update AuthController /me to refresh session when displayName changes
- Add i18n messages for profile validation and responses

Frontend:
- Add /settings/profile page with edit-on-click pattern
- Add profileApi.updateProfile() to client
- Update user menu: add "Profile Settings", make "Security Settings" local-only
- Add i18n translations (en/zh) for profile settings

Testing:
- Add UserProfileControllerTest with 8 test cases
- Add UserProfileServiceTest with 6 test cases
- Add AuthControllerTest case for session refresh on displayName change

* version sql

* merge main

* feat: add profile review admin workflow

* feat(web): add pagination to skill review list

- useReviewList now passes page/size to backend and returns paginated response
- reviews.tsx maintains per-tab page state with prev/next controls
- namespace-reviews.tsx adapted to new response shape
- Added i18n keys for pagination (en/zh)
2026-03-19 17:23:05 +08:00
vsxd
2047b72cc4 docs: rename CLAWHUB_REGISTRY env var in docs 2026-03-19 17:17:39 +08:00
xiose
f6c72030b6 feat(web): add pagination to skill review list
- useReviewList now passes page/size to backend and returns paginated response
- reviews.tsx maintains per-tab page state with prev/next controls
- namespace-reviews.tsx adapted to new response shape
- Added i18n keys for pagination (en/zh)
2026-03-19 17:15:27 +08:00
xiose
f50e5c9156 Merge remote-tracking branch 'origin/main' into feat-0315 2026-03-19 17:14:24 +08:00
yun-zhi-ztl
4d827204bb fix: refine my skills empty states 2026-03-19 17:10:09 +08:00
yun-zhi-ztl
296c713652 fix: add my skills status filters 2026-03-19 17:06:26 +08:00
Xudong Sun
b9c4b05a0f fix: environment variable name for the registry
Signed-off-by: Xudong Sun <sun.xd@hotmail.com>
2026-03-19 17:01:16 +08:00
yun-zhi-ztl
234d5d83b9 Merge remote-tracking branch 'origin/main' into feature/project-fixbug319 2026-03-19 16:58:44 +08:00
vsxd
b168749ceb fix: optimize skill search listing performance 2026-03-19 16:56:37 +08:00
yun-zhi-ztl
3ba6d22c18 fix: paginate governance queries 2026-03-19 16:51:09 +08:00
yun-zhi-ztl
8665413650 fix: clamp governance inbox subtitles 2026-03-19 16:37:05 +08:00
yun-zhi-ztl
ae91e7ead2 Merge remote-tracking branch 'origin/main' into feature/project-fixbug319 2026-03-19 16:35:32 +08:00
yun-zhi-ztl
ab40cb406a docs(notification): fix service names, module deps, and minor review items 2026-03-19 16:20:29 +08:00
xiose
0b1fe6c77c Merge branch 'main' into feat-0315
# Conflicts:
#	server/skillhub-app/src/main/java/com/iflytek/skillhub/config/ProfileModerationProperties.java
#	server/skillhub-app/src/main/java/com/iflytek/skillhub/controller/UserProfileController.java
#	server/skillhub-app/src/main/java/com/iflytek/skillhub/dto/PendingChangesResponse.java
#	server/skillhub-app/src/main/java/com/iflytek/skillhub/dto/UpdateProfileRequest.java
#	server/skillhub-app/src/main/java/com/iflytek/skillhub/dto/UserProfileResponse.java
#	server/skillhub-app/src/main/resources/application.yml
#	server/skillhub-app/src/main/resources/messages.properties
#	server/skillhub-app/src/main/resources/messages_zh.properties
#	server/skillhub-app/src/test/java/com/iflytek/skillhub/controller/UserProfileControllerTest.java
#	server/skillhub-domain/src/main/java/com/iflytek/skillhub/domain/user/ProfileChangeRequestRepository.java
#	server/skillhub-infra/src/main/java/com/iflytek/skillhub/infra/jpa/ProfileChangeRequestJpaRepository.java
#	web/src/api/client.ts
#	web/src/i18n/locales/en.json
#	web/src/i18n/locales/zh.json
#	web/src/pages/dashboard/reviews.tsx
#	web/src/pages/settings/profile.tsx
#	web/src/shared/components/user-menu.tsx
2026-03-19 16:20:07 +08:00
yun-zhi-ztl
120f01189d docs(notification): address spec review feedback 2026-03-19 16:16:49 +08:00
xiose
27c5e5bd07 feat: add profile review admin workflow 2026-03-19 16:11:24 +08:00
yun-zhi-ztl
9f9c87fdec docs(notification): add notification system design spec 2026-03-19 16:11:14 +08:00
dongmucat
e00eb84234 chore(web): remove doc injection and add crawler metadata (#102)
变更摘要:

- 移除 inject-docs 构建注入链路,build 脚本不再执行文档注入

- 删除注入脚本并移除 marked 依赖,同步更新 pnpm lockfile

- 新增 robots.txt 与 sitemap.xml,显式暴露 registry/skill.md 抓取入口

关键文件:

- web/package.json

- web/pnpm-lock.yaml

- web/scripts/inject-docs.mjs

- web/public/robots.txt

- web/public/sitemap.xml
2026-03-19 15:33:06 +08:00
vsxd
25de227f1b refactor: consolidate backend workflow and security policies 2026-03-19 15:20:08 +08:00
vsxd
024e66d747 feat: add search index rebuild workflow 2026-03-19 15:20:08 +08:00
yun-zhi-ztl
049f5acb64 refactor(server): slim down request logging to core parameters only 2026-03-19 14:54:04 +08:00
yun-zhi-ztl
cd570ed208 fix(web): swap password visibility toggle eye icons 2026-03-19 14:54:04 +08:00
yun-zhi-ztl
4365a9363c fix(web): remove default focus outline on user menu trigger button 2026-03-19 14:54:04 +08:00
yun-zhi-ztl
db92d17b25 fix(web): remove misleading visibility statement from publish review description 2026-03-19 14:54:04 +08:00
yun-zhi-ztl
245d92a4c1 test(server): add unit test for visibility update on republish 2026-03-19 14:54:04 +08:00
yun-zhi-ztl
ea75670224 fix(server): update skill visibility on each version publish 2026-03-19 14:54:04 +08:00
yun-zhi-ztl
7d8915fc7a fix(web): prevent version badges from overlapping action buttons in version list 2026-03-19 14:54:04 +08:00
yun-zhi-ztl
7222ff0f37 fix(web): add rejected badge for skill versions that failed review 2026-03-19 14:54:04 +08:00
yun-zhi-ztl
a4cb9f0cf9 fix(web): disable report button after successful submission 2026-03-19 14:54:04 +08:00
yun-zhi-ztl
1a5b8de196 fix: handle archived skill version deletion 2026-03-19 14:54:04 +08:00
yun-zhi-ztl
ac94930c94 fix: hide governance entry for unauthorized users 2026-03-19 14:54:04 +08:00
vsxd
f26a06d42f docs: simplify skillhub registry guide 2026-03-19 14:18:46 +08:00
vsxd
729b1c0498 docs: enrich frontend code documentation 2026-03-19 13:37:21 +08:00
vsxd
8ef53d0fdd docs: enrich backend code documentation 2026-03-19 13:37:21 +08:00
Xudong Sun
6a62fec9e8 feat: allow spaces in profile display names (#97) 2026-03-19 11:13:52 +08:00
Xudong Sun
d126af15d8 fix:change 'Start Building' to 'Publish Skill' (#96) 2026-03-19 10:54:44 +08:00
Xudong Sun
c90199183a feat: refine skill detail author badge and landing publish CTA (#95)
* Replace skill author monogram with icon

* Update landing publish CTA copy
2026-03-19 10:49:54 +08:00
Xudong Sun
2daddab217 fix: user profile test isolation and app module docs (#94) 2026-03-19 10:44:13 +08:00
XiaoSeS
626e00219e feat: add user profile update feature with moderation support (#90)
* feat: add user profile update feature with moderation support

Add ability for users to update their display name with optional machine/human review.

Backend:
- Add profile_change_request table (V15 migration)
- Add UserProfileService with moderation workflow
- Add PATCH /api/v1/user/profile and GET /api/v1/user/profile endpoints
- Add ProfileModerationService interface with NoOp implementation
- Add ProfileModerationProperties for machine/human review toggles
- Update AuthController /me to refresh session when displayName changes
- Add i18n messages for profile validation and responses

Frontend:
- Add /settings/profile page with edit-on-click pattern
- Add profileApi.updateProfile() to client
- Update user menu: add "Profile Settings", make "Security Settings" local-only
- Add i18n translations (en/zh) for profile settings

Testing:
- Add UserProfileControllerTest with 8 test cases
- Add UserProfileServiceTest with 6 test cases
- Add AuthControllerTest case for session refresh on displayName change

* version sql

* merge main
2026-03-19 10:16:40 +08:00
xiose
405aa53996 merge main 2026-03-19 10:08:58 +08:00
xiose
e7b452f428 Merge branch 'main' into feat-0315 2026-03-19 10:08:06 +08:00
vsxd
ed07472dad fix: resolve duplicate flyway migration versions 2026-03-19 10:06:25 +08:00
yun-zhi-ztl
e42f3950bf fix(web): remove starred badge from skill card
The starred badge in the top-right corner of skill cards looked
cluttered. Removed it while keeping the subtle star highlight
in the bottom stats area.
2026-03-19 09:41:53 +08:00
vsxd
93b264309f feat(skill-detail): show author display name 2026-03-19 09:32:13 +08:00
vsxd
5f8a411852 fix(web): avoid stretching markdown badge images 2026-03-19 09:32:13 +08:00
xiose
386874d676 version sql 2026-03-19 09:26:43 +08:00
xiose
297feb59fc feat: add user profile update feature with moderation support
Add ability for users to update their display name with optional machine/human review.

Backend:
- Add profile_change_request table (V15 migration)
- Add UserProfileService with moderation workflow
- Add PATCH /api/v1/user/profile and GET /api/v1/user/profile endpoints
- Add ProfileModerationService interface with NoOp implementation
- Add ProfileModerationProperties for machine/human review toggles
- Update AuthController /me to refresh session when displayName changes
- Add i18n messages for profile validation and responses

Frontend:
- Add /settings/profile page with edit-on-click pattern
- Add profileApi.updateProfile() to client
- Update user menu: add "Profile Settings", make "Security Settings" local-only
- Add i18n translations (en/zh) for profile settings

Testing:
- Add UserProfileControllerTest with 8 test cases
- Add UserProfileServiceTest with 6 test cases
- Add AuthControllerTest case for session refresh on displayName change
2026-03-18 18:09:33 +08:00
vsxd
012ed35a10 Serve registry skill docs from nginx 2026-03-18 17:56:53 +08:00
何时
d5abcfcf29 Update README.md (#85)
Signed-off-by: 何时 <93520596+likes1234-bro@users.noreply.github.com>
2026-03-18 17:24:54 +08:00
dongmucat
18b064a8d0 Merge pull request #86 from iflytek/fix/publish-toast-pending-review
fix(web): show pending review toast for non-admin skill publish
2026-03-18 17:22:34 +08:00