clean
This commit is contained in:
parent
9070e954d3
commit
988b278c9e
|
|
@ -36,7 +36,6 @@ test.describe('New Todo', () => {
|
|||
await expect(page.getByTestId('todo-title')).toHaveText([
|
||||
TODO_ITEMS[0],
|
||||
TODO_ITEMS[1],
|
||||
"faux"
|
||||
]);
|
||||
|
||||
await checkNumberOfTodosInLocalStorage(page, 2);
|
||||
|
|
|
|||
|
|
@ -48,10 +48,23 @@ const PromptButton: React.FC<{
|
|||
}, [actions]);
|
||||
|
||||
const gitCommitInfo = React.useContext(GitCommitInfoContext);
|
||||
console.log({ gitCommitInfo })
|
||||
const prompt = React.useMemo(() => fixTestPrompt(error, gitCommitInfo?.['pull.diff'] ?? gitCommitInfo?.['revision.diff'], pageSnapshot), [error, gitCommitInfo, pageSnapshot]);
|
||||
const prompt = React.useMemo(
|
||||
() => fixTestPrompt(
|
||||
error,
|
||||
gitCommitInfo?.['pull.diff'] ?? gitCommitInfo?.['revision.diff'],
|
||||
pageSnapshot
|
||||
),
|
||||
[error, gitCommitInfo, pageSnapshot]
|
||||
);
|
||||
|
||||
return <CopyToClipboardTextButton value={prompt} description='Fix with AI' copiedDescription={<>Copied <span className='codicon codicon-copy' style={{ marginLeft: '5px' }}/></>} style={{ width: '90px', justifyContent: 'center' }} />;
|
||||
return (
|
||||
<CopyToClipboardTextButton
|
||||
value={prompt}
|
||||
description='Fix with AI'
|
||||
copiedDescription={<>Copied <span className='codicon codicon-copy' style={{ marginLeft: '5px' }}/></>}
|
||||
style={{ width: '90px', justifyContent: 'center' }}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
||||
export type ErrorDescription = {
|
||||
|
|
@ -109,7 +122,6 @@ export const ErrorsTab: React.FunctionComponent<{
|
|||
<PromptButton error={message} actions={actions} />
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<ErrorMessage error={message} />
|
||||
</div>;
|
||||
})}
|
||||
|
|
|
|||
|
|
@ -399,8 +399,6 @@ export const UIModeView: React.FC<{}> = ({
|
|||
});
|
||||
}, [closeInstallDialog, testServerConnection]);
|
||||
|
||||
const gitCommitInfo = React.useMemo(() => testModel?.config.metadata['git.commit.info'] as GitCommitInfo | undefined, [testModel]);
|
||||
|
||||
return <div className='vbox ui-mode'>
|
||||
{!hasBrowsers && <dialog ref={dialogRef}>
|
||||
<div className='title'><span className='codicon codicon-lightbulb'></span>Install browsers</div>
|
||||
|
|
@ -434,7 +432,7 @@ export const UIModeView: React.FC<{}> = ({
|
|||
<XtermWrapper source={xtermDataSource}></XtermWrapper>
|
||||
</div>
|
||||
<div className={clsx('vbox', isShowingOutput && 'hidden')}>
|
||||
<GitCommitInfoContext.Provider value={gitCommitInfo}>
|
||||
<GitCommitInfoContext.Provider value={testModel?.config.metadata['git.commit.info']}>
|
||||
<TraceView
|
||||
pathSeparator={queryParams.pathSeparator}
|
||||
item={selectedItem}
|
||||
|
|
|
|||
Loading…
Reference in a new issue