修复创作页精选作者和瀑布流宽度

公开精选接口返回作者展示名和陶泥号

前端精选作者只使用公开展示字段,不再兜底内部用户 ID

约束精选瀑布流多列容器宽度,避免 release 桌面端横向撑宽

补充前后端回归测试和项目记忆文档
This commit is contained in:
2026-06-27 20:01:17 +08:00
parent bb51c7e0d2
commit f20f4e0f8e
10 changed files with 188 additions and 25 deletions
@@ -221,6 +221,8 @@ describe('editorProjectClient', () => {
resourceId: 'resource-public-1',
projectId: 'editor-project-1',
ownerUserId: 'user-public-author',
authorDisplayName: '公开作者',
authorPublicUserCode: 'SY-00000042',
label: '公开角色素材',
imageSrc: '/generated-editor-assets/public.png',
width: 512,
@@ -236,6 +238,8 @@ describe('editorProjectClient', () => {
expect(resources).toHaveLength(1);
expect(resources[0]?.resourceId).toBe('resource-public-1');
expect(resources[0]?.ownerUserId).toBe('user-public-author');
expect(resources[0]?.authorDisplayName).toBe('公开作者');
expect(resources[0]?.authorPublicUserCode).toBe('SY-00000042');
expect(requestJsonMock).toHaveBeenCalledWith(
'/api/editor/showcase/resources',
{ method: 'GET' },
@@ -60,6 +60,8 @@ export type EditorProjectResourceSnapshot = {
resourceId: string;
projectId: string;
ownerUserId?: string | null;
authorDisplayName?: string | null;
authorPublicUserCode?: string | null;
imageSrc: string;
objectKey?: string | null;
assetObjectId?: string | null;