fixed build error in ui
Some checks failed
checks-impure / test (pull_request) Successful in 30s
checks / test (pull_request) Failing after 3m3s

This commit is contained in:
2024-01-08 20:22:56 +01:00
parent aab8c88fe2
commit e22e954a4a
2 changed files with 3 additions and 15 deletions

View File

@@ -14,7 +14,7 @@ from ports import PortFunction
from clan_cli.webui.app import app from clan_cli.webui.app import app
@pytest.fixture(scope="session") @pytest.fixture()
def test_client() -> TestClient: def test_client() -> TestClient:
return TestClient(app) return TestClient(app)
@@ -31,7 +31,7 @@ def get_health(*, url: str, max_retries: int = 20, delay: float = 0.2) -> str |
# Pytest fixture to run the server in a separate process # Pytest fixture to run the server in a separate process
@pytest.fixture(scope="session") @pytest.fixture()
def server_url(unused_tcp_port: PortFunction) -> Generator[str, None, None]: def server_url(unused_tcp_port: PortFunction) -> Generator[str, None, None]:
port = unused_tcp_port() port = unused_tcp_port()
host = "127.0.0.1" host = "127.0.0.1"
@@ -52,7 +52,7 @@ def server_url(unused_tcp_port: PortFunction) -> Generator[str, None, None]:
proc.terminate() proc.terminate()
@pytest.fixture(scope="session") @pytest.fixture()
def api_client(server_url: str) -> Generator[ApiClient, None, None]: def api_client(server_url: str) -> Generator[ApiClient, None, None]:
configuration = Configuration(host=server_url) configuration = Configuration(host=server_url)

View File

@@ -25,8 +25,6 @@ import { Entity, Service } from "@/api/model";
import useGetEntityByNameOrDid from "@/components/hooks/useGetEntityByNameOrDid"; import useGetEntityByNameOrDid from "@/components/hooks/useGetEntityByNameOrDid";
import { useGetAllServices } from "@/api/services/services"; import { useGetAllServices } from "@/api/services/services";
import axios from "axios"; import axios from "axios";
import { NoDataOverlay } from "@/components/noDataOverlay";
import { DashboardCard } from "@/components/card";
import CloseIcon from "@mui/icons-material/Close"; import CloseIcon from "@mui/icons-material/Close";
interface SnackMessage { interface SnackMessage {
@@ -34,16 +32,6 @@ interface SnackMessage {
severity: "success" | "error"; severity: "success" | "error";
} }
export const RecentActivity = (entity: Entity) => {
return (
<DashboardCard title="Recent Activity">
<div className="flex w-full justify-center align-middle">
<NoDataOverlay label="No Activity yet" />
</div>
</DashboardCard>
);
};
type AttachButtonProps = { type AttachButtonProps = {
entity?: Entity; entity?: Entity;
setSnackbarMessage: (message: SnackMessage) => void; setSnackbarMessage: (message: SnackMessage) => void;