diff --git a/apps/sim/app/llms-full.txt/route.ts b/apps/sim/app/llms-full.txt/route.ts index f955ffdf4c7..11f8fa9e554 100644 --- a/apps/sim/app/llms-full.txt/route.ts +++ b/apps/sim/app/llms-full.txt/route.ts @@ -80,11 +80,11 @@ function isoDate(date: Date): string { return date.toISOString().slice(0, 10) } -/** The key facts of one `/comparisons/{id}` page as markdown, from the same profile data. */ function questionMarkdown({ question, answer }: ComparisonQuestion): string { return `**${question}**\n\n${proseToMarkdown(answer)}` } +/** The key facts of one `/comparisons/{id}` page as markdown, from the same profile data. */ function comparisonMarkdown(competitor: CompetitorProfile): string { const verdict = buildBottomLine(competitor) const questions = getQuestionSectionGroups(competitor) diff --git a/apps/sim/lib/sim-links/application/use-cases.ts b/apps/sim/lib/sim-links/application/use-cases.ts index 35635d72e2b..f2a722a2f73 100644 --- a/apps/sim/lib/sim-links/application/use-cases.ts +++ b/apps/sim/lib/sim-links/application/use-cases.ts @@ -194,10 +194,6 @@ export const listSimLinks = defineAuthorizedOrganizationUseCase({ }, }) -/** - * One link by id or by name as typed. Hidden exactly as browsing hides it: an unlisted link reads - * as missing to anyone who cannot manage it. - */ async function findLinkIdByName(organizationId: string, typedName: string) { const link = await repository.findSimLinkDestination( organizationId, @@ -206,6 +202,10 @@ async function findLinkIdByName(organizationId: string, typedName: string) { return link?.id } +/** + * One link by id or by name as typed. Hidden exactly as browsing hides it: an unlisted link reads + * as missing to anyone who cannot manage it. + */ export const getSimLinkView = defineAuthorizedOrganizationUseCase({ operation: simLinkOperations.get, ...rollout, diff --git a/apps/sim/scripts/test-organization-search-e2e.ts b/apps/sim/scripts/test-organization-search-e2e.ts index a4a6b7bbe53..03a5657fb1e 100644 --- a/apps/sim/scripts/test-organization-search-e2e.ts +++ b/apps/sim/scripts/test-organization-search-e2e.ts @@ -708,7 +708,9 @@ try { await navigation.getByRole('button', { name: 'Search', exact: true }).click() await expect(page).toHaveURL((url) => url.searchParams.get('mode') === 'search') } - await page.clock.pauseAt(new Date(Date.now() + 100)) + const pausedAt = new Date() + await page.clock.setFixedTime(pausedAt) + await page.clock.pauseAt(pausedAt) const selected = navigation.getByRole('button', { name: selectedMode === 'assistant' ? 'Assistant' : 'Search', exact: true, @@ -726,6 +728,7 @@ try { } finally { admission.resolve() heldAdmission = undefined + await page.clock.setSystemTime(new Date()) await page.clock.resume() } }