Skip to content

Commit fd489b2

Browse files
fix: move files and align them to rekor-search-ui (#69)
Signed-off-by: Carlos Feria <[email protected]>
1 parent 2f844a7 commit fd489b2

25 files changed

+22
-22
lines changed

client/src/app/pages/RekorSearch/RekorSearch.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { useState } from "react";
22

3-
import { RekorClientProvider } from "@app/api/context";
3+
import { RekorClientProvider } from "@app/pages/RekorSearch/api/context";
44
import { Button, Content, PageSection, Split, SplitItem } from "@patternfly/react-core";
55
import { CogIcon } from "@patternfly/react-icons";
66

File renamed without changes.

client/src/app/pages/RekorSearch/components/DSSE.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ import decodex509Mock from "../__mocks__/decodex509Mock";
55

66
vi.mock("react-router-dom", () => ({ Link: ({ children }: any) => <a>{children}</a> }));
77

8-
vi.mock("../Template/x509/decode", () => ({
8+
vi.mock("../x509/decode", () => ({
99
decodex509: decodex509Mock,
1010
}));
1111

1212
import { render, screen } from "@testing-library/react";
1313
import "@testing-library/jest-dom";
14-
import { DSSEViewer } from "./DSSEViewer";
14+
import { DSSEViewer } from "./DSSE";
1515
import type { DSSEV001Schema } from "rekor";
1616

1717
describe("DSSEViewer Component", () => {

client/src/app/pages/RekorSearch/components/DSSEViewer.tsx renamed to client/src/app/pages/RekorSearch/components/DSSE.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Prism as SyntaxHighlighter } from "react-syntax-highlighter";
44
import { atomDark } from "react-syntax-highlighter/dist/cjs/styles/prism";
55
import { type DSSEV001Schema } from "rekor";
66
import { Panel } from "@patternfly/react-core";
7-
import { decodex509 } from "../Template/x509/decode";
7+
import { decodex509 } from "../x509/decode";
88
import { Paths } from "@app/Routes";
99

1010
export function DSSEViewer({ dsse }: { dsse: DSSEV001Schema }) {

client/src/app/pages/RekorSearch/components/Entry.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ import {
2525
GridItem,
2626
Panel,
2727
} from "@patternfly/react-core";
28-
import { IntotoViewer001 } from "../Template/Intoto001";
29-
import { IntotoViewer002 } from "../Template/Intoto002";
30-
import { DSSEViewer } from "./DSSEViewer";
28+
import { IntotoViewer001 } from "./Intoto001";
29+
import { IntotoViewer002 } from "./Intoto002";
30+
import { DSSEViewer } from "./DSSE";
3131
import { HashedRekordViewer } from "./HashedRekord";
3232
import { Link } from "react-router-dom";
3333
import { Paths } from "@app/Routes";

client/src/app/pages/RekorSearch/components/Explorer.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ beforeEach(() => {
1919

2020
import { fireEvent, render, screen, waitFor } from "@testing-library/react";
2121
import type { Mock } from "vitest";
22-
import { RekorClientProvider } from "../../../api/context";
22+
import { RekorClientProvider } from "../api/context";
2323
import { Explorer } from "./Explorer";
2424

2525
describe("Explorer", () => {

client/src/app/pages/RekorSearch/components/Explorer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { useLocation, useNavigate } from "react-router-dom";
22
import { Fragment, useCallback, useEffect, useState } from "react";
33
import { ApiError, type RekorError } from "rekor";
4-
import { isAttribute, type RekorEntries, type SearchQuery, useRekorSearch } from "../../../api/rekor-api";
4+
import { isAttribute, type RekorEntries, type SearchQuery, useRekorSearch } from "../api/rekor-api";
55
import { type FormInputs, SearchForm } from "./SearchForm";
66
import { Alert, Flex, Spinner, Pagination } from "@patternfly/react-core";
77
import { Entry } from "./Entry";

0 commit comments

Comments
 (0)