Skip to content

Commit 1c994e2

Browse files
github-actions[bot]Marfuencarhartlewis
authored
[comp] Production Deploy (#2024)
* [dev] [Marfuen] feat/implement-new-design-system (#2000) * feat(app): integrate @trycompai/design-system and update ESLint configuration * fix(app): update @trycompai/design-system to version 1.0.3 and remove unused files * feat(app): enhance AppShellWrapper and AppSidebar with dropdown menus * feat(app): update @trycompai/design-system to version 1.0.4 and enhance layout components * refactor(risk): remove unused layout and loading components, update page structure * feat(policies): implement new PolicyTabs and PoliciesTableDS components * feat(policies): simplify layout structure and enhance policy overview page * feat(app): update @trycompai/design-system to version 1.0.8 and enhance components * feat(app): update @trycompai/design-system to version 1.0.11 and enhance policy components * feat(policies): refactor PolicyDetails layout for improved structure * feat(policies): enhance policy overview and details layout with new filters * feat(app): update @trycompai/design-system to version 1.0.19 and refactor policy components * feat(app): update @trycompai/design-system to version 1.0.20 and enhance policy overview components * feat(app): update @trycompai/design-system to version 1.0.21 and improve PolicyFilters layout * feat(comments): replace Dialog with AlertDialog for delete confirmation * chore: rest of pages layouts fixed * style(app): format code for better readability and consistency * feat(chat): add status and submit handler to EmptyState component * feat(app): update @trycompai/design-system to version 1.0.28 and enhance chat components * style(ui): ensure newline at end of package.json file * feat(ui): enhance loading and table components with new layout and empty states * feat(trust): add allowed domains and additional trust portal fields * style(attachments, policies, tasks, trust-portal, vector-store, app): format code for better readability * refactor(trust-portal): update orderBy to sort by lastPublishedAt and updatedAt * refactor(policies): simplify query parameter updates in PolicyHeaderActions --------- Co-authored-by: Mariano Fuentes <marfuen98@gmail.com> Co-authored-by: Lewis Carhart <lewis@trycomp.ai> * Mariano/UI changes (#2025) * feat(app): integrate @trycompai/design-system and update ESLint configuration * fix(app): update @trycompai/design-system to version 1.0.3 and remove unused files * feat(app): enhance AppShellWrapper and AppSidebar with dropdown menus * feat(app): update @trycompai/design-system to version 1.0.4 and enhance layout components * refactor(risk): remove unused layout and loading components, update page structure * feat(policies): implement new PolicyTabs and PoliciesTableDS components * feat(policies): simplify layout structure and enhance policy overview page * feat(app): update @trycompai/design-system to version 1.0.8 and enhance components * feat(app): update @trycompai/design-system to version 1.0.11 and enhance policy components * feat(policies): refactor PolicyDetails layout for improved structure * feat(policies): enhance policy overview and details layout with new filters * feat(app): update @trycompai/design-system to version 1.0.19 and refactor policy components * feat(app): update @trycompai/design-system to version 1.0.20 and enhance policy overview components * feat(app): update @trycompai/design-system to version 1.0.21 and improve PolicyFilters layout * feat(comments): replace Dialog with AlertDialog for delete confirmation * chore: rest of pages layouts fixed * style(app): format code for better readability and consistency * feat(chat): add status and submit handler to EmptyState component * feat(app): update @trycompai/design-system to version 1.0.28 and enhance chat components * style(ui): ensure newline at end of package.json file * feat(ui): enhance loading and table components with new layout and empty states * feat(trust): add allowed domains and additional trust portal fields * style(attachments, policies, tasks, trust-portal, vector-store, app): format code for better readability * refactor(trust-portal): update orderBy to sort by lastPublishedAt and updatedAt * refactor(policies): simplify query parameter updates in PolicyHeaderActions * chore: fix ai chat padding * chore: fix ui stuff --------- Co-authored-by: Lewis Carhart <lewis@trycomp.ai> * [dev] [Marfuen] mariano/ui-fixes-2 (#2026) * chore(dependencies): update @trycompai/design-system to versions 1.0.32 and 1.0.36 * chore(dependencies): update @trycompai/design-system to version 1.0.37 * refactor(policies): update PdfViewer and PolicyOverviewSheet components with new design system * refactor(ui): update toast messages and badge styles for consistency * refactor(ui): update theme handling and improve component styles * refactor(ui): enhance AvatarFallback styles for improved visibility * refactor(ui): update metrics calculation and improve badge styles * refactor(ui): update task list components with new design system styles * refactor(ui): update GrantsTab and RequestsTab components with new design system styles * refactor(ui): simplify pagination implementation in RisksTable and VendorsTable components * refactor(ui): stop event propagation on delete click in RisksTable and VendorsTable * refactor(ui): update vendor risk and task components with new design system styles * refactor(ui): integrate new design system components in vendor actions and details * refactor(ui): replace input components with new design system styles in QuestionnaireResultsHeader and QuestionnaireHistory * refactor(ui): update search input in QuestionnaireHistory with new design system styles * refactor(ui): integrate new design system components in TestsLayout * refactor(ui): enhance pagination logic and reset page on search change in VendorsTable * refactor(ui): replace button elements with new design system Button component in forms --------- Co-authored-by: Mariano Fuentes <marfuen98@gmail.com> * Mariano/UI fixes 3 (#2027) * chore(dependencies): update @trycompai/design-system to versions 1.0.32 and 1.0.36 * chore(dependencies): update @trycompai/design-system to version 1.0.37 * refactor(policies): update PdfViewer and PolicyOverviewSheet components with new design system * refactor(ui): update toast messages and badge styles for consistency * refactor(ui): update theme handling and improve component styles * refactor(ui): enhance AvatarFallback styles for improved visibility * refactor(ui): update metrics calculation and improve badge styles * refactor(ui): update task list components with new design system styles * refactor(ui): update GrantsTab and RequestsTab components with new design system styles * refactor(ui): simplify pagination implementation in RisksTable and VendorsTable components * refactor(ui): stop event propagation on delete click in RisksTable and VendorsTable * refactor(ui): update vendor risk and task components with new design system styles * refactor(ui): integrate new design system components in vendor actions and details * refactor(ui): replace input components with new design system styles in QuestionnaireResultsHeader and QuestionnaireHistory * refactor(ui): update search input in QuestionnaireHistory with new design system styles * refactor(ui): integrate new design system components in TestsLayout * refactor(ui): enhance pagination logic and reset page on search change in VendorsTable * refactor(ui): replace button elements with new design system Button component in forms * refactor: fix evidence button * chore: update @trycompai/design-system to version 1.0.38 * [dev] [Marfuen] mariano/ui-fixes-4 (#2028) * chore(dependencies): update @trycompai/design-system to versions 1.0.32 and 1.0.36 * chore(dependencies): update @trycompai/design-system to version 1.0.37 * refactor(policies): update PdfViewer and PolicyOverviewSheet components with new design system * refactor(ui): update toast messages and badge styles for consistency * refactor(ui): update theme handling and improve component styles * refactor(ui): enhance AvatarFallback styles for improved visibility * refactor(ui): update metrics calculation and improve badge styles * refactor(ui): update task list components with new design system styles * refactor(ui): update GrantsTab and RequestsTab components with new design system styles * refactor(ui): simplify pagination implementation in RisksTable and VendorsTable components * refactor(ui): stop event propagation on delete click in RisksTable and VendorsTable * refactor(ui): update vendor risk and task components with new design system styles * refactor(ui): integrate new design system components in vendor actions and details * refactor(ui): replace input components with new design system styles in QuestionnaireResultsHeader and QuestionnaireHistory * refactor(ui): update search input in QuestionnaireHistory with new design system styles * refactor(ui): integrate new design system components in TestsLayout * refactor(ui): enhance pagination logic and reset page on search change in VendorsTable * refactor(ui): replace button elements with new design system Button component in forms * refactor: fix evidence button * chore: update @trycompai/design-system to version 1.0.38 * style(ui): ensure newline at end of package.json file * style(ui): update published status color in policy assignee chart --------- Co-authored-by: Mariano Fuentes <marfuen98@gmail.com> --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Mariano Fuentes <marfuen98@gmail.com> Co-authored-by: Lewis Carhart <lewis@trycomp.ai>
1 parent a28a900 commit 1c994e2

241 files changed

Lines changed: 10292 additions & 7897 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.cursor/mcp.json‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
"mcpServers": {
33
"trigger": {
44
"command": "npx",
5-
"args": [
6-
"trigger.dev@latest",
7-
"mcp",
8-
"--dev-only"
9-
]
5+
"args": ["trigger.dev@latest", "mcp", "--dev-only"]
6+
},
7+
"trycompai": {
8+
"command": "npx",
9+
"args": ["-y", "@trycompai/design-system-mcp@latest"]
1010
}
1111
}
12-
}
12+
}

‎ENTERPRISE_API_AUTOMATION_VERSIONING.md‎

Lines changed: 0 additions & 184 deletions
This file was deleted.

‎apps/api/src/attachments/attachments.service.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ export class AttachmentsService {
2929
this.bucketName = process.env.APP_AWS_BUCKET_NAME!;
3030

3131
if (!s3Client) {
32-
console.error('S3 Client is not initialized. Check AWS S3 configuration.');
32+
console.error(
33+
'S3 Client is not initialized. Check AWS S3 configuration.',
34+
);
3335
throw new Error(
3436
'S3 Client is not initialized. Check AWS S3 configuration.',
3537
);

‎apps/api/src/policies/policies.service.ts‎

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,16 @@ export class PoliciesService {
4040
assigneeId: true,
4141
approverId: true,
4242
policyTemplateId: true,
43+
assignee: {
44+
select: {
45+
id: true,
46+
user: {
47+
select: {
48+
name: true,
49+
},
50+
},
51+
},
52+
},
4353
},
4454
orderBy: { createdAt: 'desc' },
4555
});
@@ -419,7 +429,8 @@ export class PoliciesService {
419429
const { width, height } = originalFirstPage.getSize();
420430

421431
const headerHeight = isFirst ? 120 : 60;
422-
const embeddedFirstPage = await mergedPdf.embedPage(originalFirstPage);
432+
const embeddedFirstPage =
433+
await mergedPdf.embedPage(originalFirstPage);
423434
const rebuiltFirstPage = mergedPdf.addPage([
424435
width,
425436
height + headerHeight,

‎apps/api/src/tasks/attachments.service.ts‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,11 @@ export class AttachmentsService {
2828
// AWS configuration is validated at startup via ConfigModule
2929
// Safe to access environment variables directly since they're validated
3030
this.bucketName = process.env.APP_AWS_BUCKET_NAME!;
31-
31+
3232
if (!s3Client) {
33-
console.error('S3 Client is not initialized. Check AWS S3 configuration.');
33+
console.error(
34+
'S3 Client is not initialized. Check AWS S3 configuration.',
35+
);
3436
throw new Error(
3537
'S3 Client is not initialized. Check AWS S3 configuration.',
3638
);

‎apps/api/src/trust-portal/trust-access.service.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2059,7 +2059,8 @@ export class TrustAccessService {
20592059
const { width, height } = originalFirstPage.getSize();
20602060

20612061
const headerHeight = isFirst ? 120 : 60;
2062-
const embeddedFirstPage = await mergedPdf.embedPage(originalFirstPage);
2062+
const embeddedFirstPage =
2063+
await mergedPdf.embedPage(originalFirstPage);
20632064
const rebuiltFirstPage = mergedPdf.addPage([
20642065
width,
20652066
height + headerHeight,

‎apps/api/src/vector-store/lib/sync/sync-organization.ts‎

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -218,35 +218,43 @@ async function verifyEmbeddingIsReady(
218218
// Now query using the embedding's own vector to verify it's INDEXED
219219
// If the embedding is indexed, querying with its own vector should return itself
220220
const queryResults = await vectorIndex.query({
221-
vector: fetchedEmbedding.vector as number[],
221+
vector: fetchedEmbedding.vector,
222222
topK: 1,
223223
filter: `organizationId = "${organizationId}"`,
224224
includeMetadata: true,
225225
});
226226

227227
// Check if our embedding appears in the query results
228-
const isIndexed = queryResults.some((result) => result.id === embeddingId);
228+
const isIndexed = queryResults.some(
229+
(result) => result.id === embeddingId,
230+
);
229231

230232
if (isIndexed) {
231-
logger.info('Embedding verification succeeded - indexed and queryable', {
232-
organizationId,
233-
embeddingId,
234-
attempt,
235-
totalWaitMs,
236-
});
233+
logger.info(
234+
'Embedding verification succeeded - indexed and queryable',
235+
{
236+
organizationId,
237+
embeddingId,
238+
attempt,
239+
totalWaitMs,
240+
},
241+
);
237242
return { success: true, attempts: attempt, totalWaitMs };
238243
}
239244

240245
// Embedding is stored but not yet indexed for search
241246
if (attempt < maxRetries) {
242247
const delay = initialDelay * Math.pow(2, attempt - 1); // 300ms, 600ms, 1200ms, 2400ms...
243-
logger.info('Embedding stored but not yet indexed, waiting before retry', {
244-
organizationId,
245-
embeddingId,
246-
attempt,
247-
nextDelayMs: delay,
248-
queryResultCount: queryResults.length,
249-
});
248+
logger.info(
249+
'Embedding stored but not yet indexed, waiting before retry',
250+
{
251+
organizationId,
252+
embeddingId,
253+
attempt,
254+
nextDelayMs: delay,
255+
queryResultCount: queryResults.length,
256+
},
257+
);
250258
await new Promise((resolve) => setTimeout(resolve, delay));
251259
totalWaitMs += delay;
252260
}

0 commit comments

Comments
 (0)