From c5981214a78362509d3aba317649ef89dfb216fc Mon Sep 17 00:00:00 2001 From: David Roper Date: Tue, 31 Mar 2026 15:20:49 -0400 Subject: [PATCH 1/2] fix: use antigravity (gemini 3.1) to fix subject id overflow --- apps/web/src/routes/_app/datahub/index.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/apps/web/src/routes/_app/datahub/index.tsx b/apps/web/src/routes/_app/datahub/index.tsx index 18b8ee392..7f7290488 100644 --- a/apps/web/src/routes/_app/datahub/index.tsx +++ b/apps/web/src/routes/_app/datahub/index.tsx @@ -308,6 +308,13 @@ const MasterDataTable: React.FC<{ columns={[ { accessorFn: (subject) => removeSubjectIdScope(subject.id).slice(0, subjectIdDisplaySetting ?? 9), + cell: (ctx) => ( +
+
+ {ctx.getValue() as string} +
+
+ ), header: t('datahub.index.table.subject'), id: 'subjectId' }, From 4a2fd4fccd5de3be4b38034325d8eb654ba9b486 Mon Sep 17 00:00:00 2001 From: David Roper Date: Tue, 31 Mar 2026 16:21:14 -0400 Subject: [PATCH 2/2] feat: adjust ctx method so id is sliced within display instead of beforehand --- apps/web/src/routes/_app/datahub/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/web/src/routes/_app/datahub/index.tsx b/apps/web/src/routes/_app/datahub/index.tsx index 7f7290488..c1ff0f100 100644 --- a/apps/web/src/routes/_app/datahub/index.tsx +++ b/apps/web/src/routes/_app/datahub/index.tsx @@ -307,11 +307,11 @@ const MasterDataTable: React.FC<{ removeSubjectIdScope(subject.id).slice(0, subjectIdDisplaySetting ?? 9), + accessorFn: (subject) => removeSubjectIdScope(subject.id), cell: (ctx) => (
- {ctx.getValue() as string} + {(ctx.getValue() as string).slice(0, subjectIdDisplaySetting ?? 9)}
),