Skip to content

Commit ae42046

Browse files
authored
feat: make "setup" menu section less confusing (#81)
commit 55b0745 Author: Daniel Kantor <[email protected]> Date: Wed Jan 15 15:01:35 2025 +0100 chore: add prettier commit b610317 Author: Daniel Kantor <[email protected]> Date: Wed Jan 15 14:50:49 2025 +0100 refactor: extract <DropdownMenuItem /> commit d3513aa Author: Daniel Kantor <[email protected]> Date: Wed Jan 15 14:48:06 2025 +0100 refactor: extract <DropdownMenu /> commit 9eb2021 Author: Daniel Kantor <[email protected]> Date: Wed Jan 15 14:44:34 2025 +0100 refactor: extract <HeaderMenuItem />
1 parent 9d2f2ce commit ae42046

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/App.test.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ describe("App", () => {
1919
render(<App />);
2020
expect(screen.getByText(/toggle sidebar/i)).toBeVisible();
2121
expect(screen.getByText("Certificates")).toBeVisible();
22-
expect(screen.getByText("Help")).toBeVisible();
22+
expect(screen.getByText("Setup")).toBeVisible();
2323
expect(screen.getByRole("banner")).toBeVisible();
2424
expect(
2525
screen.getByRole("heading", { name: /codeGate dashboard/i }),
@@ -31,13 +31,13 @@ describe("App", () => {
3131
).toBeVisible();
3232
expect(
3333
screen.getByRole("link", {
34-
name: /continue setup/i,
34+
name: /set up in continue/i,
3535
}),
3636
).toBeVisible();
3737

3838
expect(
3939
screen.getByRole("link", {
40-
name: /copilot setup/i,
40+
name: /set up in copilot/i,
4141
}),
4242
).toBeVisible();
4343
expect(

src/components/Header.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,13 @@ export function Header({ hasError }: { hasError?: boolean }) {
6363
</div>
6464

6565
<div className="flex items-center relative group">
66-
<HeaderMenuItem>Help</HeaderMenuItem>
66+
<HeaderMenuItem>Setup</HeaderMenuItem>
6767
<DropdownMenu>
6868
<DropdownMenuItem to="/help/continue-setup">
69-
Continue Setup
69+
Set up in <span className="font-bold">Continue</span>
7070
</DropdownMenuItem>
7171
<DropdownMenuItem to="/help/copilot-setup">
72-
Copilot Setup
72+
Set up in <span className="font-bold">Copilot</span>
7373
</DropdownMenuItem>
7474
</DropdownMenu>
7575
</div>

0 commit comments

Comments
 (0)