Skip to content
This repository was archived by the owner on Jul 8, 2025. It is now read-only.

Commit 7d55f72

Browse files
committed
Merge branch 'main' into alerts-table-refactor
2 parents c07eeac + e849194 commit 7d55f72

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1411
-309
lines changed

CHANGELOG.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,35 @@
11
# Changelog
22

3+
## [0.9.0](https://github.com/stacklok/codegate-ui/compare/v0.8.0...v0.9.0) (2025-01-24)
4+
5+
6+
### Features
7+
8+
* add not_found route ([#194](https://github.com/stacklok/codegate-ui/issues/194)) ([d865730](https://github.com/stacklok/codegate-ui/commit/d865730201eaff07e0e1852750803d0a262e5df6))
9+
10+
11+
### Bug Fixes
12+
13+
* workspace hard delete nits ([#202](https://github.com/stacklok/codegate-ui/issues/202)) ([9129a5b](https://github.com/stacklok/codegate-ui/commit/9129a5b983a1b54f7d3b5cffc19cce85a955045a))
14+
15+
## [0.8.0](https://github.com/stacklok/codegate-ui/compare/v0.7.2...v0.8.0) (2025-01-24)
16+
17+
18+
### Features
19+
20+
* implement hard delete for workspaces & refactor workspaces table to allow multiple actions ([#185](https://github.com/stacklok/codegate-ui/issues/185)) ([a98492a](https://github.com/stacklok/codegate-ui/commit/a98492a8c24067ccd037e6fa753caf9994558967))
21+
* implement use toast mutation for workspaces ([#184](https://github.com/stacklok/codegate-ui/issues/184)) ([a67b265](https://github.com/stacklok/codegate-ui/commit/a67b26518cd5ef1c3f6106b604d45456ffc03cf4))
22+
* redirect to conversation from alerts table ([#191](https://github.com/stacklok/codegate-ui/issues/191)) ([646ed5a](https://github.com/stacklok/codegate-ui/commit/646ed5a6b14661b3956dd2685d9065c4c0d110aa))
23+
* useKbdShortcuts hook & example implementation ([#180](https://github.com/stacklok/codegate-ui/issues/180)) ([0d935a3](https://github.com/stacklok/codegate-ui/commit/0d935a3b263d5c18c86d5ba669554cf3f2e1f3a7))
24+
* useToastMutation hook ([#183](https://github.com/stacklok/codegate-ui/issues/183)) ([9fe55a5](https://github.com/stacklok/codegate-ui/commit/9fe55a524fa776348fcb6719d625f57aac36d60a))
25+
26+
27+
### Bug Fixes
28+
29+
* fix small visual glithc in help menu ([#175](https://github.com/stacklok/codegate-ui/issues/175)) ([7031047](https://github.com/stacklok/codegate-ui/commit/70310476e59085c18755dc3eed6d9a2f09523f0f))
30+
* parsing promptList text and breadcrumb ([#177](https://github.com/stacklok/codegate-ui/issues/177)) ([6da034d](https://github.com/stacklok/codegate-ui/commit/6da034d9ddb028202c14851319e380f61b139473))
31+
* sort filtered alerts before pagination ([#190](https://github.com/stacklok/codegate-ui/issues/190)) ([d844610](https://github.com/stacklok/codegate-ui/commit/d84461041076f9647ceae93220deb071d1897a17))
32+
333
## [0.7.2](https://github.com/stacklok/codegate-ui/compare/v0.7.1...v0.7.2) (2025-01-22)
434

535

eslint.config.js

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import globals from "globals";
33
import reactHooks from "eslint-plugin-react-hooks";
44
import reactRefresh from "eslint-plugin-react-refresh";
55
import tseslint from "typescript-eslint";
6-
import tailwindPlugin from 'eslint-plugin-tailwindcss'
6+
import tailwindPlugin from "eslint-plugin-tailwindcss";
77

88
export default tseslint.config(
99
{ ignores: ["dist"] },
@@ -56,6 +56,18 @@ export default tseslint.config(
5656
],
5757
},
5858
],
59+
"no-restricted-imports": [
60+
"error",
61+
{
62+
paths: [
63+
{
64+
importNames: ["useMutation"],
65+
message: "Use the custom `useToastMutation` instead",
66+
name: "@tanstack/react-query",
67+
},
68+
],
69+
},
70+
],
5971
},
60-
}
72+
},
6173
);

icons/FlipBackward.svg

Lines changed: 0 additions & 3 deletions
This file was deleted.

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vite-project",
33
"private": true,
4-
"version": "0.7.2",
4+
"version": "0.9.0",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",
@@ -19,7 +19,7 @@
1919
"generate-icons": "npx @svgr/cli --typescript --no-dimensions --replace-attr-values '#2E323A=currentColor' --jsx-runtime automatic --out-dir ./src/components/icons/ -- icons"
2020
},
2121
"dependencies": {
22-
"@hey-api/client-fetch": "^0.6.0",
22+
"@hey-api/client-fetch": "^0.7.1",
2323
"@monaco-editor/react": "^4.6.0",
2424
"@radix-ui/react-dialog": "^1.1.4",
2525
"@radix-ui/react-separator": "^1.1.0",

src/Page.test.tsx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { render } from "./lib/test-utils";
2+
import Page from "./Page";
3+
4+
test("render NotFound route", () => {
5+
const { getByText, getByRole } = render(<Page />, {
6+
routeConfig: {
7+
initialEntries: ["/fake-route"],
8+
},
9+
});
10+
11+
expect(getByText(/Oops! There's nothing here/i)).toBeVisible();
12+
expect(getByRole("button", { name: "Home" })).toBeVisible();
13+
});

src/Page.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { RouteChat } from "./routes/route-chat";
88
import { RouteDashboard } from "./routes/route-dashboard";
99
import { RouteCertificateSecurity } from "./routes/route-certificate-security";
1010
import { RouteWorkspaceCreation } from "./routes/route-workspace-creation";
11+
import { RouteNotFound } from "./routes/route-not-found";
1112

1213
export default function Page() {
1314
return (
@@ -23,6 +24,7 @@ export default function Page() {
2324
path="/certificates/security"
2425
element={<RouteCertificateSecurity />}
2526
/>
27+
<Route path="*" element={<RouteNotFound />} />
2628
</Routes>
2729
);
2830
}

src/components/EmptyState.tsx

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
interface EmptyStateProps {
2+
children?: React.ReactNode;
3+
title?: string | React.ReactNode;
4+
description?: string | React.ReactNode;
5+
illustration?: React.ReactNode;
6+
}
7+
8+
export function EmptyState({
9+
illustration,
10+
title,
11+
children,
12+
description,
13+
}: EmptyStateProps) {
14+
return (
15+
<>
16+
<div className="my-4">
17+
{illustration != null && (
18+
<div className="m-auto flex w-full justify-center pb-2">
19+
{illustration}
20+
</div>
21+
)}
22+
<div className="mb-1 text-center text-xl font-medium text-gray-900">
23+
{title}
24+
</div>
25+
<div className="m-auto mb-6 text-center font-normal text-secondary">
26+
{description}
27+
</div>
28+
{children != null && (
29+
<div className="flex justify-center">{children}</div>
30+
)}
31+
</div>
32+
</>
33+
);
34+
}

src/components/icons/FlipBackward.tsx

Lines changed: 0 additions & 17 deletions
This file was deleted.

src/components/icons/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
export { default as Continue } from "./Continue";
22
export { default as Copilot } from "./Copilot";
33
export { default as Discord } from "./Discord";
4-
export { default as FlipBackward } from "./FlipBackward";
54
export { default as Github } from "./Github";
65
export { default as Youtube } from "./Youtube";

0 commit comments

Comments
 (0)