feat: dashboard source coverage를 안전하게 활성화

엔진의 부대·예약턴·집계 변화와 mailbox writer를 저널에 연결하고 dashboard.global 및 인증 아이콘 source를 dependency vector에 포함한다. post-deploy coverage v1 활성화는 shared head seed와 CAS를 한 transaction으로 수행한다.
This commit is contained in:
2026-08-16 18:51:17 +00:00
parent 346f796cfc
commit 1a77bb3df1
16 changed files with 404 additions and 22 deletions
+4 -3
View File
@@ -82,8 +82,9 @@ const createDashboardSliceDelta = async <T>(options: {
export const dashboardRouter = router({
getContextBundleDelta: accessLimitAuthedProcedure.input(zContextBundleInput).query(async ({ ctx, input }) => {
const viewerId = ctx.auth?.user.id;
if (!viewerId) {
const authUser = ctx.auth?.user;
const viewerId = authUser?.id;
if (!authUser || !viewerId) {
throw new TRPCError({ code: 'UNAUTHORIZED' });
}
@@ -102,7 +103,7 @@ export const dashboardRouter = router({
null;
}
const sourceState = generalId
? await readDashboardSourceRevisionState(ctx.db, generalId)
? await readDashboardSourceRevisionState(ctx.db, generalId, authUser)
: null;
const [contextDelta, commandTableDelta, boardAccessDelta] = await Promise.all([