Update text-to-cad success toast to tell what file got made (#6882)
Closes #5820 and provides a bit of other polish to make this toast look a bit better.
This commit is contained in:
@ -905,7 +905,7 @@ test.describe('Mocked Text-to-CAD API tests', { tag: ['@skipWin'] }, () => {
|
|||||||
await page.keyboard.press('Enter')
|
await page.keyboard.press('Enter')
|
||||||
|
|
||||||
// Go into the project that was created from Text to CAD
|
// Go into the project that was created from Text to CAD
|
||||||
await page.getByText(projectName).click()
|
await homePage.openProject(projectName)
|
||||||
|
|
||||||
await expect(page.getByTestId('app-header-project-name')).toBeVisible()
|
await expect(page.getByTestId('app-header-project-name')).toBeVisible()
|
||||||
await expect(page.getByTestId('app-header-project-name')).toContainText(
|
await expect(page.getByTestId('app-header-project-name')).toContainText(
|
||||||
@ -951,7 +951,7 @@ test.describe('Mocked Text-to-CAD API tests', { tag: ['@skipWin'] }, () => {
|
|||||||
await page.keyboard.press('Enter')
|
await page.keyboard.press('Enter')
|
||||||
|
|
||||||
// Go into the project that was created from Text to CAD
|
// Go into the project that was created from Text to CAD
|
||||||
await page.getByText(projectName).click()
|
await homePage.openProject(projectName)
|
||||||
|
|
||||||
await page.getByRole('button', { name: 'Accept' }).click()
|
await page.getByRole('button', { name: 'Accept' }).click()
|
||||||
|
|
||||||
|
@ -332,14 +332,16 @@ export function ToastTextToCadSuccess({
|
|||||||
</div>
|
</div>
|
||||||
<div className="flex flex-col justify-between gap-6">
|
<div className="flex flex-col justify-between gap-6">
|
||||||
<section>
|
<section>
|
||||||
<h2>Text-to-CAD successful</h2>
|
<h2 className="font-sans font-bold">Text-to-CAD successful</h2>
|
||||||
<p className="text-sm text-chalkboard-70 dark:text-chalkboard-30">
|
<p className="text-sm my-3">
|
||||||
Prompt: "
|
File "{fileName}" was successfully added to project "{projectName}"
|
||||||
|
from prompt:
|
||||||
|
</p>
|
||||||
|
<blockquote className="my-3 border-solid border-l-2 pl-4 text-sm text-chalkboard-70 dark:text-chalkboard-30">
|
||||||
{data.prompt.length > PROMPT_TRUNCATE_LENGTH
|
{data.prompt.length > PROMPT_TRUNCATE_LENGTH
|
||||||
? data.prompt.slice(0, PROMPT_TRUNCATE_LENGTH) + '...'
|
? data.prompt.slice(0, PROMPT_TRUNCATE_LENGTH) + '...'
|
||||||
: data.prompt}
|
: data.prompt}
|
||||||
"
|
</blockquote>
|
||||||
</p>
|
|
||||||
<TextToCadImprovementMessage
|
<TextToCadImprovementMessage
|
||||||
className="text-sm mt-2"
|
className="text-sm mt-2"
|
||||||
label="Not what you expected?"
|
label="Not what you expected?"
|
||||||
|
Reference in New Issue
Block a user