diff --git a/backend/trcustoms/utils.py b/backend/trcustoms/utils.py index bb00547c..f00d35ba 100644 --- a/backend/trcustoms/utils.py +++ b/backend/trcustoms/utils.py @@ -101,7 +101,6 @@ def parse_date_range( ) -> tuple[datetime | None, datetime | None] | None: date_min: datetime | None = None date_max: datetime | None = None - print("source", source, flush=1) if source and ( match := re.match(r"^(?P\d{4})(?:-(?P\d{1,2}))?$", source) ): diff --git a/frontend/src/App.css b/frontend/src/App.css deleted file mode 100644 index 74b5e053..00000000 --- a/frontend/src/App.css +++ /dev/null @@ -1,38 +0,0 @@ -.App { - text-align: center; -} - -.App-logo { - height: 40vmin; - pointer-events: none; -} - -@media (prefers-reduced-motion: no-preference) { - .App-logo { - animation: App-logo-spin infinite 20s linear; - } -} - -.App-header { - background-color: #282c34; - min-height: 100vh; - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - font-size: calc(10px + 2vmin); - color: white; -} - -.App-link { - color: #61dafb; -} - -@keyframes App-logo-spin { - from { - transform: rotate(0deg); - } - to { - transform: rotate(360deg); - } -} diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index b7549c3e..d4d6b188 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -1,4 +1,3 @@ -import "./App.css"; import "./themes.css"; import { useEffect } from "react"; import { Routes } from "react-router-dom"; diff --git a/frontend/src/components/common/AuditLogSearch/index.tsx b/frontend/src/components/common/AuditLogSearch/index.tsx index 4ec4f972..ecf9c52a 100644 --- a/frontend/src/components/common/AuditLogSearch/index.tsx +++ b/frontend/src/components/common/AuditLogSearch/index.tsx @@ -239,14 +239,16 @@ const AuditLogSearch = ({ > {({ submitForm, resetForm }) => (
- - Search filter - handleClear(resetForm)} - > - (reset) - + + + Search filter + handleClear(resetForm)} + > + (reset) + +
diff --git a/frontend/src/components/common/AuditLogTable/index.css b/frontend/src/components/common/AuditLogTable/index.css deleted file mode 100644 index cd0c165d..00000000 --- a/frontend/src/components/common/AuditLogTable/index.css +++ /dev/null @@ -1,37 +0,0 @@ -.AuditLogTable .DataTable--row td { - border-bottom: 1px solid var(--label-bg-color); -} -.AuditLogTable--changeList { - list-style-type: none; - display: inline-block; - margin: 0; - padding: 0; -} -.AuditLogTable--changeListItem { - display: block; - margin: 0; - padding: 0; -} - -.AuditLogTable--created, -.AuditLogTable--author { - white-space: nowrap; - width: 10%; -} - -.AuditLogTable--object { - width: 40%; -} -.AuditLogTable--changes { - width: 40%; -} - -.AuditLogTable--changesWrapper { - display: flex; - align-items: flex-start; - justify-content: space-between; - gap: 0 0.5rem; -} -.AuditLogTable--requiresAction { - white-space: nowrap; -} diff --git a/frontend/src/components/common/AuditLogTable/index.module.css b/frontend/src/components/common/AuditLogTable/index.module.css new file mode 100644 index 00000000..8afdd758 --- /dev/null +++ b/frontend/src/components/common/AuditLogTable/index.module.css @@ -0,0 +1,26 @@ +.table :global td { + border-bottom: 1px solid var(--label-bg-color); +} + +.table :global .created, +.table :global .author { + white-space: nowrap; + width: 10%; +} + +.table :global .object { + width: 40%; +} +.table :global .changes { + width: 40%; +} + +.changesWrapper { + display: flex; + align-items: flex-start; + justify-content: space-between; + gap: 0 0.5rem; +} +.requiresAction { + white-space: nowrap; +} diff --git a/frontend/src/components/common/AuditLogTable/index.tsx b/frontend/src/components/common/AuditLogTable/index.tsx index de8b064b..82d7f5e7 100644 --- a/frontend/src/components/common/AuditLogTable/index.tsx +++ b/frontend/src/components/common/AuditLogTable/index.tsx @@ -1,4 +1,4 @@ -import "./index.css"; +import styles from "./index.module.css"; import { useQuery } from "react-query"; import type { DataTableColumn } from "src/components/common/DataTable"; import { DataTable } from "src/components/common/DataTable"; @@ -192,10 +192,10 @@ const AuditLogTable = ({ name: "changes", label: "Changes", itemElement: ({ item }) => ( - + {item.changes.join(" ")} {item.is_action_required && ( - + Requires action )} @@ -207,17 +207,15 @@ const AuditLogTable = ({ const itemKey = (auditLog: AuditLogListing) => `${auditLog.id}`; return ( -
- -
+ ); }; diff --git a/frontend/src/components/common/Checkbox/index.css b/frontend/src/components/common/Checkbox/index.module.css similarity index 86% rename from frontend/src/components/common/Checkbox/index.css rename to frontend/src/components/common/Checkbox/index.module.css index 24f9dc9e..706b8e9d 100644 --- a/frontend/src/components/common/Checkbox/index.css +++ b/frontend/src/components/common/Checkbox/index.module.css @@ -1,8 +1,8 @@ -.Checkbox--label { +.label { cursor: pointer; } -.Checkbox--input { +.input { position: relative; cursor: pointer; width: 20px; @@ -12,7 +12,7 @@ margin: 0 0.5rem 0 0; display: inline-flex; } -.Checkbox--input:before { +.input:before { content: ""; display: block; position: absolute; @@ -25,7 +25,7 @@ color: var(--input-fg-color); box-sizing: border-box; } -.Checkbox--input:checked:before { +.input:checked:before { content: ""; display: block; position: absolute; @@ -36,7 +36,7 @@ border-color: var(--button-bg-color); background-color: var(--button-bg-color); } -.Checkbox--input:checked:after { +.input:checked:after { content: ""; display: block; width: 30%; diff --git a/frontend/src/components/common/Checkbox/index.tsx b/frontend/src/components/common/Checkbox/index.tsx index 6c6b0cff..8099dd91 100644 --- a/frontend/src/components/common/Checkbox/index.tsx +++ b/frontend/src/components/common/Checkbox/index.tsx @@ -1,4 +1,4 @@ -import "./index.css"; +import styles from "./index.module.css"; interface CheckboxProps { label: string | React.ReactNode; @@ -9,9 +9,9 @@ interface CheckboxProps { const Checkbox = ({ label, ...props }: CheckboxProps) => { return ( -
-