Skip to content

Commit

Permalink
update toast copy
Browse files Browse the repository at this point in the history
update notification link
  • Loading branch information
timothycarambat committed Jan 18, 2024
1 parent 102e2c0 commit 91eb6ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions frontend/src/pages/Tools/RAGTesting/RecentTests/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -211,14 +211,14 @@ export function RunNowButton({ test }: { test: IRagTest }) {
const { job, error } = await Tools.runRagTest(test);
if (job) {
showToast(
`Context Drift text is now running in background jobs`,
`Context Drift test is now running in background jobs`,
'success'
);
setLoading(false);
return;
}

showToast(error || 'Context Drift text could not be run.', 'error');
showToast(error || 'Context Drift test could not be run.', 'error');
setLoading(false);
};

Expand Down
2 changes: 1 addition & 1 deletion workers/functions/runRAGTest/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ const runRAGTest = InngestClient.createFunction(
await Notification.create(test.organization_id, {
textContent: 'Your Context Drift test did not pass.',
symbol: Notification.symbols.error,
link: `dashboard/${organization.slug}/tools/rag-testing/${test.id}`,
link: `/dashboard/${organization.slug}/tools/rag-testing/${test.id}`,
target: '_blank',
});
}
Expand Down

0 comments on commit 91eb6ee

Please sign in to comment.