mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
Revert "feat: copilot frontend e2e (#7694)"
This reverts commit d71852789f.
This commit is contained in:
@@ -153,9 +153,6 @@ export class ChatActionList extends LitElement {
|
||||
});
|
||||
}
|
||||
}}
|
||||
data-testid="action-${action.title
|
||||
.toLowerCase()
|
||||
.replaceAll(' ', '-')}"
|
||||
>
|
||||
${action.title}
|
||||
</div>
|
||||
|
||||
@@ -178,17 +178,13 @@ export class ChatCopyMore extends WithDisposable(LitElement) {
|
||||
this._notifySuccess('Copied to clipboard');
|
||||
}
|
||||
}}
|
||||
data-testid="action-copy-button"
|
||||
>
|
||||
${CopyIcon}
|
||||
<affine-tooltip>Copy</affine-tooltip>
|
||||
</div>`
|
||||
: nothing}
|
||||
${isLast
|
||||
? html`<div
|
||||
@click=${() => this.retry()}
|
||||
data-testid="action-retry-button"
|
||||
>
|
||||
? html`<div @click=${() => this.retry()}>
|
||||
${RetryIcon}
|
||||
<affine-tooltip>Retry</affine-tooltip>
|
||||
</div>`
|
||||
|
||||
@@ -371,7 +371,6 @@ export class ChatPanelInput extends WithDisposable(LitElement) {
|
||||
}
|
||||
}
|
||||
}}
|
||||
data-testid="chat-panel-input"
|
||||
></textarea>
|
||||
<div class="chat-panel-input-actions">
|
||||
<div
|
||||
@@ -379,7 +378,6 @@ export class ChatPanelInput extends WithDisposable(LitElement) {
|
||||
@click=${async () => {
|
||||
await this.cleanupHistories();
|
||||
}}
|
||||
data-testid="chat-panel-clear"
|
||||
>
|
||||
${ChatClearIcon}
|
||||
</div>
|
||||
@@ -412,7 +410,6 @@ export class ChatPanelInput extends WithDisposable(LitElement) {
|
||||
@click="${this.send}"
|
||||
class="chat-panel-send"
|
||||
aria-disabled=${this.isInputEmpty}
|
||||
data-testid="chat-panel-send"
|
||||
>
|
||||
${ChatSendIcon}
|
||||
</div>`}
|
||||
|
||||
@@ -379,7 +379,7 @@ export class ChatPanelMessages extends WithDisposable(ShadowlessElement) {
|
||||
: html`<div class="avatar"></div>`}
|
||||
</div>`
|
||||
: AffineAvatarIcon}
|
||||
${isUser ? 'You' : 'AFFiNE AI'}
|
||||
${isUser ? 'You' : 'AFFINE AI'}
|
||||
</div>`;
|
||||
}
|
||||
|
||||
|
||||
@@ -244,7 +244,7 @@ export class ChatPanel extends WithDisposable(ShadowlessElement) {
|
||||
override render() {
|
||||
return html` <div class="chat-panel-container">
|
||||
<div class="chat-panel-title">
|
||||
<div>AFFiNE AI</div>
|
||||
<div>AFFINE AI</div>
|
||||
<div
|
||||
@click=${() => {
|
||||
AIProvider.toggleGeneralAIOnboarding?.(true);
|
||||
|
||||
@@ -34,7 +34,6 @@ const ToggleButton = ({
|
||||
onClick={onToggle}
|
||||
className={className}
|
||||
data-show={show}
|
||||
data-testid="right-sidebar-toggle"
|
||||
>
|
||||
<RightSidebarIcon />
|
||||
</IconButton>
|
||||
|
||||
@@ -40,7 +40,6 @@ export const SidebarContainer = ({
|
||||
styles.sidebarBodyTarget,
|
||||
!BUILD_CONFIG.isElectron && styles.borderTop
|
||||
)}
|
||||
data-testid={`sidebar-tab-content-${sidebar.id}`}
|
||||
/>
|
||||
))
|
||||
) : (
|
||||
|
||||
@@ -22,7 +22,6 @@ export const SidebarHeaderSwitcher = () => {
|
||||
tabId={tab.id}
|
||||
/>
|
||||
),
|
||||
testId: `sidebar-tab-${tab.id}`,
|
||||
style: { padding: 0, fontSize: 20, width: 24 },
|
||||
}));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user