Skip to content

Commit

Permalink
feat: removed mock data
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelHorwitz committed Oct 20, 2024
1 parent 4e7ba7e commit 9354e0b
Showing 1 changed file with 3 additions and 61 deletions.
64 changes: 3 additions & 61 deletions frontend/src/app/archive/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,69 +42,11 @@ function ArchivedDispute(props: ArchivedDisputeSummary) {
);
}

const mockArchivedDisputeSummaries: ArchivedDisputeSummary[] = [
{
id: "1",
title: "Refund Request Dispute",
summary: "Customer requested a refund for a damaged product.",
description: "A customer filed a dispute requesting a refund after receiving a damaged item in their order. The case involved review of the product condition and purchase history.",
category: ["Refund", "Product Issue"],
date_filed: "2023-04-12",
date_resolved: "2023-05-01",
resolution: "Full refund was issued to the customer.",
},
{
id: "2",
title: "Service Agreement Dispute",
summary: "Dispute over terms of a servicadsfjhkojfdsajhkfdsjhkldfsajhklfdahsjkljkhldfsajkhlasdfjkhldsafkjlhasdfhljkfdasjkhlkjhasdfljkhdsfajklhasfdkljhsadflkjhadsflkjhe agreement.",
description: "A client disputed the terms ofjahksdfjhasdflhkjfdsajkhdfsajkhlfadsjhkfadsjhklfdsajhlkfadslhjkfadshjkldfaskljhdfslhkjdfsjlkhfdslhkjfdsajkhfdskjhfdaskljhfdsajkhlafdsljkhsfdakjhladsfljkhfsdlhjkfdshljkdfsaljkhadfskjlhsdfalkjhfadslhkjfdsalkjhasfdlkhjasdflkjhafsd a service agreement, claiming that certain services were not provided as outlined in the contract. This led to a review of the contract and communications.",
category: ["Contract", "Service"],
date_filed: "2023-02-15",
date_resolved: "2023-03-03",
resolution: "Mutual agreement reached; contract revised.",
},
{
id: "3",
title: "Unauthorized Charge Dispute",
summary: "Customer disputed an unauthorized charge on their account.",
description: "The customer reported an unauthorized charge on their account for a service they didn't request. Investigation into transaction logs and communications followed.",
category: ["Billing", "Unauthorized Transaction"],
date_filed: "2023-06-20",
date_resolved: "2023-06-30",
resolution: "Unauthorized charge was reversed, and additional fraud prevention measures were implemented.",
},
{
id: "4",
title: "Product Warranty Dispute",
summary: "Dispute regarding the terms of a product warranty.",
description: "A customer filed a dispute claiming that their product warranty should cover certain repairs that the company initially refused. The terms of the warranty and the product's condition were reviewed.",
category: ["Warranty", "Product Issue"],
date_filed: "2023-01-08",
date_resolved: "2023-01-25",
resolution: "Repairs were covered under the warranty after review.",
},
{
id: "5",
title: "Subscription Cancellation Dispute",
summary: "Customer filed a dispute about issues with canceling their subscription.",
description: "The customer experienced issues canceling their subscription through the company's platform, resulting in ongoing charges. The case involved a review of the cancellation process.",
category: ["Subscription", "Billing"],
date_filed: "2023-05-15",
date_resolved: "2023-06-01",
resolution: "Subscription was successfully canceled, and charges were refunded.",
}
];

export default async function Archive() {
// const { data, error } = await fetchArchiveHighlights(3);
// if (error) {
// return <h1>{error}</h1>;
// }
const mockData: ArchiveSearchResponse = {
archives: mockArchivedDisputeSummaries,
total: 5
const { data, error } = await fetchArchiveHighlights(3);
if (error) {
return <h1>{error}</h1>;
}
const data = mockData
return (
<div className="flex flex-col items-center justify-center h-full gap-5 w-2/3 mx-auto">
<header className="mx-auto w-fit text-center">
Expand Down

0 comments on commit 9354e0b

Please sign in to comment.