+ {incidentsListColumns.map(column => {
+ const isSorted = orderBy === column.field;
+ const sortState = getSortState(column.field as IncidentTableField);
+ const sortLabel =
+ sortState === 'none'
+ ? `${column.title}, not sorted`
+ : `${column.title}, sorted ${sortState}`;
+
+ return (
+
- {column.title}
-
-
- ))}
-
-
+
+
+ );
+ })}
+
+
);
};
diff --git a/workspaces/servicenow/plugins/servicenow/src/components/Servicenow/IncidentsTableRow.module.css b/workspaces/servicenow/plugins/servicenow/src/components/Servicenow/IncidentsTableRow.module.css
new file mode 100644
index 00000000000..7d0478654b1
--- /dev/null
+++ b/workspaces/servicenow/plugins/servicenow/src/components/Servicenow/IncidentsTableRow.module.css
@@ -0,0 +1,26 @@
+@layer components {
+ .tableRow {
+ font-size: 0.875rem;
+ }
+
+ .tableRow:nth-child(even) {
+ background-color: var(--bui-bg-neutral-1);
+ }
+
+ .tableRow:last-child {
+ border-bottom: 0;
+ }
+
+ .tableCellStyle {
+ line-height: 1.5rem;
+ font-size: 0.875rem;
+ padding: 24px 16px 24px 20px;
+ }
+
+ .descriptionCell {
+ max-width: 208px;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ }
+}
diff --git a/workspaces/servicenow/plugins/servicenow/src/components/Servicenow/IncidentsTableRow.test.tsx b/workspaces/servicenow/plugins/servicenow/src/components/Servicenow/IncidentsTableRow.test.tsx
index 35f025570b1..002c911b212 100644
--- a/workspaces/servicenow/plugins/servicenow/src/components/Servicenow/IncidentsTableRow.test.tsx
+++ b/workspaces/servicenow/plugins/servicenow/src/components/Servicenow/IncidentsTableRow.test.tsx
@@ -16,14 +16,22 @@
import { render, screen, fireEvent, waitFor } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
-import PendingOutlinedIcon from '@mui/icons-material/PendingOutlined';
-import KeyboardDoubleArrowUpIcon from '@mui/icons-material/KeyboardDoubleArrowUp';
+import {
+ RiArrowUpLine,
+ RiArrowDownLine,
+ RiAlertLine,
+ RiListOrdered2,
+ RiTimeLine,
+ RiPauseLine,
+ RiCheckLine,
+} from '@remixicon/react';
import { IncidentsTableRow } from './IncidentsTableRow';
import type { IncidentsData } from '../../types';
-jest.mock('@mui/styles', () => ({
- makeStyles: () => () => ({}),
+jest.mock('react-aria-components', () => ({
+ TooltipTrigger: ({ children }: any) => <>{children}>,
+ Tooltip: ({ children }: any) =>