@allbluecn/web-app 0.27.10 → 0.27.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/__tests__/bench/baselines/format-timestamp.json +44 -0
- package/src/__typeprobe__.d.ts +4 -0
- package/src/components/shared-kit/peek/__tests__/dock-resize.test.tsx +153 -0
- package/src/components/shared-kit/peek/dock-resize.ts +214 -0
- package/src/components/story/detail/story-detail-toolbar/children.tsx +5 -3
- package/src/components/story/peek-panel.tsx +57 -4
- package/src/components/story/relations/story-ref-row.tsx +14 -10
- package/src/components/story/views/story-list/index.tsx +4 -1
- package/src/components/story/views/story-list/row.tsx +24 -18
- package/src/lib/changelog/sdk-versions.ts +2 -2
- package/src/paraglide/README.md +1 -1
- package/src/paraglide/messages/_index.js +89922 -5751
- package/src/paraglide/messages/en.js +28780 -0
- package/src/paraglide/messages/story_peek_resizepanel1.js +30 -0
- package/src/paraglide/messages/zh.js +28778 -0
- package/src/server/serverFns/story/story-crud.ts +15 -3
|
@@ -120,8 +120,10 @@ export const createStoryFn = createServerFn({ method: "POST" })
|
|
|
120
120
|
// 发号 + 建单事务段已提取为共享导出(convertBugToStoryFn 复用,任务 6 DRY)
|
|
121
121
|
return withSequenceNumberRetry(
|
|
122
122
|
() =>
|
|
123
|
-
prisma.$transaction(
|
|
124
|
-
|
|
123
|
+
prisma.$transaction(
|
|
124
|
+
(tx) =>
|
|
125
|
+
createStoryInternal(tx, { ...data, projectId: resolvedProjectId }, userId),
|
|
126
|
+
STORY_TX_OPTIONS,
|
|
125
127
|
),
|
|
126
128
|
{ exhaustedMessage: "创建需求失败:编号冲突,请重试" },
|
|
127
129
|
);
|
|
@@ -196,6 +198,16 @@ function storyDescriptionToContent(description: string): { html: string; markdow
|
|
|
196
198
|
return { html: description, markdown: description };
|
|
197
199
|
}
|
|
198
200
|
|
|
201
|
+
/**
|
|
202
|
+
* 交互式事务超时选项。Prisma 缺省 5s:桌面端(PGlite)单连接,事务语句与
|
|
203
|
+
* 并发查询(PeekPanel 十余个并行 serverFn / 列表分页 / presence / 同步引擎)
|
|
204
|
+
* 在 PGlite 内部队列串行排队,排队等待计入事务计时——列表页繁忙时轻松击穿
|
|
205
|
+
* 5s 报 P2028「A query cannot be executed on an expired transaction」(实测
|
|
206
|
+
* 5005ms)。放宽到 30s(maxWait 同步放宽兜事务启动排队);云端连接池下
|
|
207
|
+
* 事务本体 <100ms,放宽无副作用——只影响真正拥塞时的等待上限。
|
|
208
|
+
*/
|
|
209
|
+
const STORY_TX_OPTIONS = { maxWait: 10_000, timeout: 30_000 } as const;
|
|
210
|
+
|
|
199
211
|
export const updateStoryFn = createServerFn({ method: "POST" })
|
|
200
212
|
.middleware([authContextMiddleware])
|
|
201
213
|
.validator(updateSchema)
|
|
@@ -504,7 +516,7 @@ export const updateStoryFn = createServerFn({ method: "POST" })
|
|
|
504
516
|
? { ...castStoryUsers(updated), description: data.description }
|
|
505
517
|
: castStoryUsers(updated);
|
|
506
518
|
return { story: echo, activities: [] as ActivityItem[] };
|
|
507
|
-
});
|
|
519
|
+
}, STORY_TX_OPTIONS);
|
|
508
520
|
});
|
|
509
521
|
|
|
510
522
|
const deleteSchema = z.object({ storyId: z.string() });
|