Skip to content

Commit cfbc443

Browse files
committed
Adjust actions log messages
1 parent 91ab97e commit cfbc443

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ ErrorExample.args = {
7272
<>
7373
Request to
7474
https://api.github.com/repos/octodemo/Hello-World/code-scanning/codeql/queries
75-
failed. <VSCodeLink>Check logs</VSCodeLink> and try running this query
76-
again.
75+
failed. <VSCodeLink>View actions logs</VSCodeLink> and try running this
76+
query again.
7777
</>
7878
),
7979
};
@@ -86,7 +86,7 @@ ErrorWithButtons.args = {
8686
"Request to https://api.github.com/repos/octodemo/Hello-World/code-scanning/codeql/queries failed. Try running this query again.",
8787
actions: (
8888
<>
89-
<VSCodeButton appearance="secondary">View logs</VSCodeButton>
89+
<VSCodeButton appearance="secondary">View actions logs</VSCodeButton>
9090
<VSCodeButton>Retry</VSCodeButton>
9191
</>
9292
),

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ const getMessage = (failureReason: VariantAnalysisFailureReason): ReactNode => {
3434
return (
3535
<>
3636
The GitHub Actions workflow run has failed.{" "}
37-
<VSCodeLink onClick={openLogs}>Check logs</VSCodeLink> and try running
38-
this query again.
37+
<VSCodeLink onClick={openLogs}>View actions logs</VSCodeLink> and try
38+
running this query again.
3939
</>
4040
);
4141
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
@@ -37,7 +37,7 @@ export const VariantAnalysisStatusStats = ({
3737
<span>{completedAt !== undefined ? formatDate(completedAt) : "-"}</span>
3838
)}
3939
{onViewLogsClick && (
40-
<VSCodeLink onClick={onViewLogsClick}>View logs</VSCodeLink>
40+
<VSCodeLink onClick={onViewLogsClick}>View actions logs</VSCodeLink>
4141
)}
4242
</Container>
4343
);

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
@@ -147,7 +147,7 @@ describe(VariantAnalysisStats.name, () => {
147147
completedAt: new Date(),
148148
});
149149

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

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
@@ -54,7 +54,7 @@ describe(VariantAnalysisStatusStats.name, () => {
5454
onViewLogsClick: () => undefined,
5555
});
5656

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

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

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

0 commit comments

Comments
 (0)