Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/sim/app/llms-full.txt/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
8 changes: 4 additions & 4 deletions apps/sim/lib/sim-links/application/use-cases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down
5 changes: 4 additions & 1 deletion apps/sim/scripts/test-organization-search-e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -726,6 +728,7 @@ try {
} finally {
admission.resolve()
heldAdmission = undefined
await page.clock.setSystemTime(new Date())
await page.clock.resume()
}
}
Expand Down
Loading