Skip to content

Commit 44c5a11

Browse files
committed
fix(app): restore home resource links
1 parent 952ef36 commit 44c5a11

2 files changed

Lines changed: 35 additions & 1 deletion

File tree

app/e2e/smoke.e2e.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,14 @@ test("saved links redirect to canonical workspace URLs", async ({ page }) => {
8989

9090
test("home presents project status and a next action", async ({ page }) => {
9191
await page.goto("/");
92+
await expect(page.getByRole("link", { name: "Docs" })).toHaveAttribute(
93+
"href",
94+
"https://apocdev.github.io/pyops/",
95+
);
96+
await expect(page.getByRole("link", { name: "GitHub" })).toHaveAttribute(
97+
"href",
98+
"https://github.com/ApocDev/pyops",
99+
);
92100
await expect(page.getByText("Next action", { exact: true })).toBeVisible();
93101
await expect(page.getByText("Factory balance", { exact: true })).toBeVisible();
94102
await expect(page.getByText("Project status", { exact: true })).toBeVisible();

app/src/routes/index.tsx

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@ import { useQuery } from "@tanstack/react-query";
33
import {
44
AlertTriangle,
55
ArrowRight,
6+
BookOpen,
67
Blocks,
78
Check,
89
CircleDot,
910
Factory,
1011
Gamepad2,
12+
Github,
1113
Hammer,
1214
ListChecks,
1315
Search,
@@ -105,7 +107,31 @@ function Home() {
105107
</span>
106108
}
107109
description="Plan the next factory change, then keep the running build on target."
108-
actions={<LaunchFactorioButton size="sm" />}
110+
actions={
111+
<>
112+
<Button asChild variant="ghost" size="sm" className="text-muted-foreground">
113+
<a
114+
href="https://apocdev.github.io/pyops/"
115+
target="_blank"
116+
rel="noreferrer"
117+
title="Read the PyOps documentation"
118+
>
119+
<BookOpen /> Docs
120+
</a>
121+
</Button>
122+
<Button asChild variant="ghost" size="sm" className="text-muted-foreground">
123+
<a
124+
href="https://github.com/ApocDev/pyops"
125+
target="_blank"
126+
rel="noreferrer"
127+
title="View PyOps on GitHub"
128+
>
129+
<Github /> GitHub
130+
</a>
131+
</Button>
132+
<LaunchFactorioButton size="sm" />
133+
</>
134+
}
109135
/>
110136

111137
{failed && (

0 commit comments

Comments
 (0)