Skip to content

Commit

Permalink
feat(Support): minor ui improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
jakeaturner committed Aug 21, 2024
1 parent 676b82a commit d5923b7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
9 changes: 4 additions & 5 deletions client/src/components/support/StaffDashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { capitalizeFirstLetter } from "../util/HelperFunctions";
import { getPrettySupportTicketCategory } from "../../utils/supportHelpers";
import { useNotifications } from "../../context/NotificationContext";
import CopyButton from "../util/CopyButton";
import { Link } from "react-router-dom";
const AssignTicketModal = lazy(() => import("./AssignTicketModal"));
const SupportCenterSettingsModal = lazy(
() => import("./SupportCenterSettingsModal")
Expand Down Expand Up @@ -190,10 +191,6 @@ const StaffDashboard = () => {
}
}

function openTicket(uuid: string) {
window.open(`/support/ticket/${uuid}`, "_blank");
}

function openAssignModal(ticketId: string) {
setSelectedTicketId(ticketId);
setShowAssignModal(true);
Expand Down Expand Up @@ -435,7 +432,9 @@ const StaffDashboard = () => {
<Button
color="blue"
size="tiny"
onClick={() => openTicket(ticket.uuid)}
to={`/support/ticket/${ticket.uuid}`}
target="_blank"
as={Link}
>
<Icon name="eye" />
View
Expand Down
17 changes: 14 additions & 3 deletions client/src/components/support/TicketDetails.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Button } from "semantic-ui-react";
import { Button, Label } from "semantic-ui-react";
import { SupportTicket } from "../../types";
import { format, parseISO } from "date-fns";
import { getPrettySupportTicketCategory } from "../../utils/supportHelpers";
Expand Down Expand Up @@ -46,8 +46,19 @@ const TicketDetails: React.FC<TicketDetailsProps> = ({ ticket }) => {
</Button>
</>
)}
{ticket.guest &&
`${ticket.guest.firstName} ${ticket.guest.lastName} (${ticket.guest.email})`}
{ticket.guest && (
<div className="flex flex-row justify-center ml-1 text-xl">
{ticket.guest.firstName} {ticket.guest.lastName} ({ticket.guest.email})

<Label
className="!ml-2 !p-2 !cursor-default"
basic
color="yellow"
size="mini"
>
Guest
</Label>
</div>)}
</div>
<p className="2xl:text-xl">
<span className="font-semibold">Category:</span>{" "}
Expand Down

0 comments on commit d5923b7

Please sign in to comment.