Skip to content

Commit 8daf337

Browse files
authored
Merge pull request #3181 from github/nora/adjust-log-messages
Remove ambiguity from 'View logs' messages
2 parents b27d8a1 + cfbc443 commit 8daf337

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

extensions/ql-vscode/src/common/logging/vscode/output-channel-logger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export class OutputChannelLogger
6363
message: string,
6464
show: (message: string, ...items: string[]) => Thenable<string | undefined>,
6565
): Promise<void> {
66-
const label = "Show Log";
66+
const label = "View extension logs";
6767
const result = await show(message, label);
6868

6969
if (result === label) {

extensions/ql-vscode/src/stories/common/Alert.stories.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ ErrorExample.args = {
7070
<>
7171
Request to
7272
https://api.github.com/repos/octodemo/Hello-World/code-scanning/codeql/queries
73-
failed. <VSCodeLink>Check logs</VSCodeLink> and try running this query
74-
again.
73+
failed. <VSCodeLink>View actions logs</VSCodeLink> and try running this
74+
query again.
7575
</>
7676
),
7777
};
@@ -84,7 +84,7 @@ ErrorWithButtons.args = {
8484
"Request to https://api.github.com/repos/octodemo/Hello-World/code-scanning/codeql/queries failed. Try running this query again.",
8585
actions: (
8686
<>
87-
<VSCodeButton appearance="secondary">View logs</VSCodeButton>
87+
<VSCodeButton appearance="secondary">View actions logs</VSCodeButton>
8888
<VSCodeButton>Retry</VSCodeButton>
8989
</>
9090
),

extensions/ql-vscode/src/view/variant-analysis/FailureReasonAlert.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ const getMessage = (failureReason: VariantAnalysisFailureReason): ReactNode => {
3333
return (
3434
<>
3535
The GitHub Actions workflow run has failed.{" "}
36-
<VSCodeLink onClick={openLogs}>Check logs</VSCodeLink> and try running
37-
this query again.
36+
<VSCodeLink onClick={openLogs}>View actions logs</VSCodeLink> and try
37+
running this query again.
3838
</>
3939
);
4040
case VariantAnalysisFailureReason.InternalError:

extensions/ql-vscode/src/view/variant-analysis/VariantAnalysisStatusStats.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export const VariantAnalysisStatusStats = ({
3636
<span>{completedAt !== undefined ? formatDate(completedAt) : "-"}</span>
3737
)}
3838
{onViewLogsClick && (
39-
<VSCodeLink onClick={onViewLogsClick}>View logs</VSCodeLink>
39+
<VSCodeLink onClick={onViewLogsClick}>View actions logs</VSCodeLink>
4040
)}
4141
</Container>
4242
);

extensions/ql-vscode/src/view/variant-analysis/__tests__/VariantAnalysisStats.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ describe(VariantAnalysisStats.name, () => {
146146
completedAt: new Date(),
147147
});
148148

149-
await userEvent.click(screen.getByText("View logs"));
149+
await userEvent.click(screen.getByText("View actions logs"));
150150
expect(onViewLogsClick).toHaveBeenCalledTimes(1);
151151
});
152152

extensions/ql-vscode/src/view/variant-analysis/__tests__/VariantAnalysisStatusStats.spec.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ describe(VariantAnalysisStatusStats.name, () => {
5353
onViewLogsClick: () => undefined,
5454
});
5555

56-
expect(screen.getByText("View logs")).toBeInTheDocument();
56+
expect(screen.getByText("View actions logs")).toBeInTheDocument();
5757
});
5858

5959
it("renders when there isn't a viewLogs links", () => {
@@ -62,6 +62,6 @@ describe(VariantAnalysisStatusStats.name, () => {
6262
onViewLogsClick: undefined,
6363
});
6464

65-
expect(screen.queryByText("View logs")).not.toBeInTheDocument();
65+
expect(screen.queryByText("View actions logs")).not.toBeInTheDocument();
6666
});
6767
});

0 commit comments

Comments
 (0)