Skip to content

Commit f766973

Browse files
authored
chore(compass-assistant): remove 'for me' from entrypoints COMPASS-10155 (#7656)
1 parent a7c648f commit f766973

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

packages/compass-connections/src/components/connection-status-notifications.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ const debugActionStyles = css({
8181
display: 'flex',
8282
alignItems: 'center',
8383
gap: spacing[100],
84-
justifyContent: 'right',
84+
justifyContent: 'left',
8585
textWrap: 'nowrap',
8686
});
8787

@@ -122,7 +122,7 @@ function ConnectionErrorToastBody({
122122
onClick={onDebug}
123123
data-testid="connection-error-debug"
124124
>
125-
Debug for me
125+
Debug
126126
</Link>
127127
</span>
128128
)}

packages/compass-connections/src/stores/connections-store-redux.spec.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ describe('CompassConnections store', function () {
172172
});
173173

174174
await waitFor(() => {
175-
expect(screen.getByText('Debug for me')).to.exist;
175+
expect(screen.getByText('Debug')).to.exist;
176176
});
177177
});
178178

@@ -198,7 +198,7 @@ describe('CompassConnections store', function () {
198198
});
199199

200200
// The debug button should not be present when assistant is disabled
201-
expect(screen.queryByText('Debug for me')).to.not.exist;
201+
expect(screen.queryByText('Debug')).to.not.exist;
202202
expect(screen.queryByTestId('connection-error-debug')).to.not.exist;
203203
});
204204

packages/compass-e2e-tests/tests/assistant.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ describe('MongoDB Assistant', function () {
460460
}
461461
});
462462

463-
it('opens assistant with explain plan prompt when clicking "Interpret for me"', async function () {
463+
it('opens assistant with explain plan prompt when clicking "Interpret"', async function () {
464464
await useExplainPlanEntryPoint(browser);
465465

466466
await browser.clickVisible('button*=Confirm');
@@ -513,7 +513,7 @@ describe('MongoDB Assistant', function () {
513513
});
514514
});
515515

516-
it('opens assistant with error message view prompt when clicking "Debug for me"', async function () {
516+
it('opens assistant with error message view prompt when clicking "Debug"', async function () {
517517
await browser.connectWithConnectionString(
518518
'mongodb-invalid://localhost:27017',
519519
{ connectionStatus: 'failure' }

packages/compass-explain-plan/src/components/explain-plan-modal.spec.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ describe('ExplainPlanModal', function () {
6666
expect(screen.getByText('Query Performance Summary')).to.exist;
6767
});
6868

69-
it('should show "Interpret for me" button when AI assistant is enabled', function () {
69+
it('should show "Interpret" button when AI assistant is enabled', function () {
7070
render(
7171
{
7272
status: 'ready',
@@ -93,7 +93,7 @@ describe('ExplainPlanModal', function () {
9393
);
9494
});
9595

96-
it('should disable the "Interpret for me" button when the status is not ready', function () {
96+
it('should disable the "Interpret" button when the status is not ready', function () {
9797
render(
9898
{
9999
status: 'loading',

packages/compass-explain-plan/src/components/explain-plan-modal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ export const ExplainPlanModal: React.FunctionComponent<
158158
}}
159159
disabled={status !== 'ready'}
160160
>
161-
Interpret for me
161+
Interpret
162162
</Button>
163163
<Tooltip
164164
triggerEvent="hover"

0 commit comments

Comments
 (0)