Skip to content

Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️

Style updates

Dave Earley84f9521eb878
diff --git a/frontend/src/components/common/AttendeeTable/AttendeeTable.module.scss b/frontend/src/components/common/AttendeeTable/AttendeeTable.module.scss
index 9e5880f54..42c877266 100644
--- a/frontend/src/components/common/AttendeeTable/AttendeeTable.module.scss
+++ b/frontend/src/components/common/AttendeeTable/AttendeeTable.module.scss
@@ -115,6 +115,32 @@
}
}
+.statusBadge {
+ display: inline-flex;
+ align-items: center;
+ gap: 4px;
+ padding: 6px 12px;
+ border-radius: 6px;
+ font-size: 12px;
+ font-weight: 600;
+ white-space: nowrap;
+
+ &[data-status="ACTIVE"] {
+ background: var(--mantine-color-green-1);
+ color: var(--mantine-color-green-9);
+ }
+
+ &[data-status="AWAITING_PAYMENT"] {
+ background: var(--mantine-color-yellow-1);
+ color: var(--mantine-color-yellow-9);
+ }
+
+ &[data-status="CANCELLED"] {
+ background: var(--mantine-color-red-1);
+ color: var(--mantine-color-red-9);
+ }
+}
+
.actionsMenu {
display: flex;
align-items: center;
diff --git a/frontend/src/components/common/AttendeeTable/index.tsx b/frontend/src/components/common/AttendeeTable/index.tsx
index b4ace849b..9a62fdca0 100644
--- a/frontend/src/components/common/AttendeeTable/index.tsx
+++ b/frontend/src/components/common/AttendeeTable/index.tsx
@@ -2,6 +2,7 @@ import {ActionIcon, Anchor, Avatar, Button, Group, Popover, Tooltip} from '@mant
import {Attendee, IdParam, MessageType} from "../../../types.ts";
import {
IconCheck,
+ IconClock,
IconClipboardList,
IconCopy,
IconMailForward,
@@ -9,7 +10,8 @@ import {
IconPlus,
IconSend,
IconTrash,
- IconUserCog
+ IconUserCog,
+ IconX
} from "@tabler/icons-react";
import {getInitials, getProductFromEvent} from "../../../utilites/helpers.ts";
import {useClipboard, useDisclosure} from "@mantine/hooks";
@@ -29,7 +31,6 @@ import {useResendAttendeeTicket} from "../../../mutations/useResendAttendeeTicke
import {ManageAttendeeModal} from "../../modals/ManageAttendeeModal";
import {ManageOrderModal} from "../../modals/ManageOrderModal";
import {ActionMenu} from '../ActionMenu';
-import {AttendeeStatusBadge} from "../AttendeeStatusBadge";
import {CheckInStatusModal} from "../CheckInStatusModal";
import {prettyDate} from "../../../utilites/dates.ts";
import {TanStackTable, TanStackTableColumn} from "../TanStackTable";
@@ -292,7 +293,31 @@ export const AttendeeTable = ({attendees, openCreateModal}: AttendeeTableProps)
id: 'status',
header: t`Status`,
enableHiding: true,
- cell: (info: CellContext<Attendee, unknown>) => <AttendeeStatusBadge attendee={info.row.original}/>,
+ cell: (info: CellContext<Attendee, unknown>) => {
+ const attendee = info.row.original;
+ return (
+ <div className={classes.statusBadge} data-status={attendee.status}>
+ {attendee.status === 'ACTIVE' && (
+ <>
+ <IconCheck size={14}/>
+ {t`Active`}
+ </>
+ )}
+ {attendee.status === 'AWAITING_PAYMENT' && (
+ <>
+ <IconClock size={14}/>
+ {t`Awaiting Payment`}
+ </>
+ )}
+ {attendee.status === 'CANCELLED' && (
+ <>
+ <IconX size={14}/>
+ {t`Cancelled`}
+ </>
+ )}
+ </div>
+ );
+ },
meta: {
headerStyle: {minWidth: 120},
},
diff --git a/frontend/src/components/common/TanStackTable/TanStackTable.module.scss b/frontend/src/components/common/TanStackTable/TanStackTable.module.scss
index e8ce8ffda..139ce3f85 100644
--- a/frontend/src/components/common/TanStackTable/TanStackTable.module.scss
+++ b/frontend/src/components/common/TanStackTable/TanStackTable.module.scss
@@ -66,28 +66,18 @@
bottom: 0;
width: 1px;
background: linear-gradient(
- to right,
- rgba(0, 0, 0, 0.1),
- rgba(0, 0, 0, 0)
+ to right,
+ rgba(255, 255, 255, 0.1),
+ rgba(255, 255, 255, 0)
);
pointer-events: none;
}
-
- @media (prefers-color-scheme: dark) {
- &::after {
- background: linear-gradient(
- to right,
- rgba(255, 255, 255, 0.1),
- rgba(255, 255, 255, 0)
- );
- }
- }
}
.stickyRight {
position: sticky;
right: 0;
- z-index: 9;
+ z-index: 2;
background: var(--mantine-color-body);
&::before {
@@ -98,29 +88,15 @@
bottom: 0;
width: 1px;
background: linear-gradient(
- to left,
- rgba(0, 0, 0, 0.1),
- rgba(0, 0, 0, 0)
+ to left,
+ rgba(255, 255, 255, 0.1),
+ rgba(255, 255, 255, 0)
);
pointer-events: none;
}
-
- @media (prefers-color-scheme: dark) {
- &::before {
- background: linear-gradient(
- to left,
- rgba(255, 255, 255, 0.1),
- rgba(255, 255, 255, 0)
- );
- }
- }
}
.tableHead .stickyLeft,
.tableHead .stickyRight {
- background-color: #462e7812;
-
- @media (prefers-color-scheme: dark) {
- background-color: #f2f0f5;
- }
+ background-color: #f2f0f5;
}