create-bluecopa-react-app 1.0.11 → 1.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/create-bluecopa-react-app.js +1 -1
- package/package.json +1 -1
- package/templates/latest/.dockerignore +5 -1
- package/templates/latest/Agent.md +621 -0
- package/templates/latest/Dockerfile +2 -2
- package/templates/latest/app/app.tsx +3 -1
- package/templates/latest/app/components/app-sidebar.tsx +14 -16
- package/templates/latest/app/components/nav-main.tsx +6 -22
- package/templates/latest/app/data/mock-payments.json +122 -0
- package/templates/latest/app/data/mock-transactions.json +128 -0
- package/templates/latest/app/routes/comments.tsx +552 -0
- package/templates/latest/app/routes/{home.tsx → dashboard.tsx} +1 -1
- package/templates/latest/app/routes/payments.tsx +342 -0
- package/templates/latest/app/routes/websocket.tsx +450 -0
- package/templates/latest/app/routes.tsx +8 -5
- package/templates/latest/dist/assets/{__federation_expose_App-C8_sl1dD.js → __federation_expose_App-BIH7hwj_.js} +12 -2
- package/templates/latest/dist/assets/{home-DhyEFlEc.js → client-CsvW46cT.js} +18530 -983
- package/templates/latest/dist/assets/{index-DkyIpbj3.js → index-CFECuPSy.js} +1 -1
- package/templates/latest/dist/assets/remoteEntry.css +155 -23
- package/templates/latest/dist/assets/remoteEntry.js +1 -1
- package/templates/latest/dist/favicon.ico +0 -0
- package/templates/latest/dist/index.html +2 -2
- package/templates/latest/package-lock.json +203 -203
- package/templates/latest/package.json +1 -1
- package/templates/latest/public/favicon.ico +0 -0
- package/templates/latest/dist/assets/client-Hh38T4k9.js +0 -12660
- package/templates/latest/dist/avatars/shadcn.svg +0 -6
- package/templates/latest/public/avatars/shadcn.svg +0 -6
- /package/templates/latest/app/{dashboard → data}/data.json +0 -0
|
@@ -2,9 +2,12 @@ import * as React from "react"
|
|
|
2
2
|
import {
|
|
3
3
|
IconCamera,
|
|
4
4
|
IconChartBar,
|
|
5
|
+
IconCreditCard,
|
|
5
6
|
IconDashboard,
|
|
6
7
|
IconDatabase,
|
|
7
8
|
IconFileAi,
|
|
9
|
+
IconMessageCircle,
|
|
10
|
+
IconPlug,
|
|
8
11
|
IconFileDescription,
|
|
9
12
|
IconFileWord,
|
|
10
13
|
IconFolder,
|
|
@@ -35,29 +38,24 @@ const data = {
|
|
|
35
38
|
navMain: [
|
|
36
39
|
{
|
|
37
40
|
title: "Dashboard",
|
|
38
|
-
url: "
|
|
41
|
+
url: "/",
|
|
39
42
|
icon: IconDashboard,
|
|
40
43
|
},
|
|
41
44
|
{
|
|
42
|
-
title: "
|
|
43
|
-
url: "
|
|
44
|
-
icon:
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
title: "Analytics",
|
|
48
|
-
url: "#",
|
|
49
|
-
icon: IconChartBar,
|
|
45
|
+
title: "Comments",
|
|
46
|
+
url: "/comments",
|
|
47
|
+
icon: IconMessageCircle,
|
|
50
48
|
},
|
|
51
49
|
{
|
|
52
|
-
title: "
|
|
53
|
-
url: "
|
|
54
|
-
icon:
|
|
50
|
+
title: "WebSocket",
|
|
51
|
+
url: "/websocket",
|
|
52
|
+
icon: IconPlug,
|
|
55
53
|
},
|
|
56
54
|
{
|
|
57
|
-
title: "
|
|
58
|
-
url: "
|
|
59
|
-
icon:
|
|
60
|
-
}
|
|
55
|
+
title: "Payments",
|
|
56
|
+
url: "/payments",
|
|
57
|
+
icon: IconCreditCard,
|
|
58
|
+
}
|
|
61
59
|
],
|
|
62
60
|
navClouds: [
|
|
63
61
|
{
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IconCirclePlusFilled, IconMail, type Icon } from "@tabler/icons-react"
|
|
2
|
+
import { Link } from "react-router-dom"
|
|
2
3
|
|
|
3
4
|
import { Button } from "~/components/ui/button"
|
|
4
5
|
import {
|
|
@@ -21,31 +22,14 @@ export function NavMain({
|
|
|
21
22
|
return (
|
|
22
23
|
<SidebarGroup>
|
|
23
24
|
<SidebarGroupContent className="flex flex-col gap-2">
|
|
24
|
-
<SidebarMenu>
|
|
25
|
-
<SidebarMenuItem className="flex items-center gap-2">
|
|
26
|
-
<SidebarMenuButton
|
|
27
|
-
tooltip="Quick Create"
|
|
28
|
-
className="bg-primary text-primary-foreground hover:bg-primary/90 hover:text-primary-foreground active:bg-primary/90 active:text-primary-foreground min-w-8 duration-200 ease-linear"
|
|
29
|
-
>
|
|
30
|
-
<IconCirclePlusFilled />
|
|
31
|
-
<span>Quick Create</span>
|
|
32
|
-
</SidebarMenuButton>
|
|
33
|
-
<Button
|
|
34
|
-
size="icon"
|
|
35
|
-
className="size-8 group-data-[collapsible=icon]:opacity-0"
|
|
36
|
-
variant="outline"
|
|
37
|
-
>
|
|
38
|
-
<IconMail />
|
|
39
|
-
<span className="sr-only">Inbox</span>
|
|
40
|
-
</Button>
|
|
41
|
-
</SidebarMenuItem>
|
|
42
|
-
</SidebarMenu>
|
|
43
25
|
<SidebarMenu>
|
|
44
26
|
{items.map((item) => (
|
|
45
27
|
<SidebarMenuItem key={item.title}>
|
|
46
|
-
<SidebarMenuButton tooltip={item.title}>
|
|
47
|
-
{item.
|
|
48
|
-
|
|
28
|
+
<SidebarMenuButton tooltip={item.title} asChild>
|
|
29
|
+
<Link to={item.url}>
|
|
30
|
+
{item.icon && <item.icon />}
|
|
31
|
+
<span>{item.title}</span>
|
|
32
|
+
</Link>
|
|
49
33
|
</SidebarMenuButton>
|
|
50
34
|
</SidebarMenuItem>
|
|
51
35
|
))}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"payername": "Walmart Inc.",
|
|
4
|
+
"payerid": "WMT-001",
|
|
5
|
+
"paymentamount": 3450.75,
|
|
6
|
+
"paymenteffectivedate": "2023-05-01",
|
|
7
|
+
"achtracenumber": "ACH123456789001",
|
|
8
|
+
"recordtype": "Payment",
|
|
9
|
+
"referencenumber": "REF-2023-05-001",
|
|
10
|
+
"grossamount": 3500.00,
|
|
11
|
+
"netamountpaid": 3450.75,
|
|
12
|
+
"deductionamount": 49.25,
|
|
13
|
+
"deductionreasoncode": "SHORTAGE",
|
|
14
|
+
"deductionreasontext": "Product shortage - 5 units",
|
|
15
|
+
"purchaseordernumber": "PO-45678-2023",
|
|
16
|
+
"copa_uploaded_at": "2023-05-02T09:30:00Z",
|
|
17
|
+
"copa_source_name": "Walmart EDI"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"payername": "Walmart Inc.",
|
|
21
|
+
"payerid": "WMT-001",
|
|
22
|
+
"paymentamount": 5649.75,
|
|
23
|
+
"paymenteffectivedate": "2023-05-03",
|
|
24
|
+
"achtracenumber": "ACH123456789002",
|
|
25
|
+
"recordtype": "Payment",
|
|
26
|
+
"referencenumber": "REF-2023-05-002",
|
|
27
|
+
"grossamount": 5850.00,
|
|
28
|
+
"netamountpaid": 5649.75,
|
|
29
|
+
"deductionamount": 200.25,
|
|
30
|
+
"deductionreasoncode": "DAMAGE",
|
|
31
|
+
"deductionreasontext": "Damaged goods return - 15 units",
|
|
32
|
+
"purchaseordernumber": "PO-45679-2023",
|
|
33
|
+
"copa_uploaded_at": "2023-05-04T08:15:00Z",
|
|
34
|
+
"copa_source_name": "Walmart EDI"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"payername": "Walmart Inc.",
|
|
38
|
+
"payerid": "WMT-001",
|
|
39
|
+
"paymentamount": 4249.80,
|
|
40
|
+
"paymenteffectivedate": "2023-05-05",
|
|
41
|
+
"achtracenumber": "ACH123456789003",
|
|
42
|
+
"recordtype": "Payment",
|
|
43
|
+
"referencenumber": "REF-2023-05-003",
|
|
44
|
+
"grossamount": 4249.80,
|
|
45
|
+
"netamountpaid": 4249.80,
|
|
46
|
+
"deductionamount": 0.00,
|
|
47
|
+
"deductionreasoncode": "",
|
|
48
|
+
"deductionreasontext": "",
|
|
49
|
+
"purchaseordernumber": "PO-45680-2023",
|
|
50
|
+
"copa_uploaded_at": "2023-05-06T09:45:00Z",
|
|
51
|
+
"copa_source_name": "Walmart EDI"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"payername": "Walmart Inc.",
|
|
55
|
+
"payerid": "WMT-001",
|
|
56
|
+
"paymentamount": 7890.50,
|
|
57
|
+
"paymenteffectivedate": "2023-05-08",
|
|
58
|
+
"achtracenumber": "ACH123456789004",
|
|
59
|
+
"recordtype": "Payment",
|
|
60
|
+
"referencenumber": "REF-2023-05-004",
|
|
61
|
+
"grossamount": 8000.00,
|
|
62
|
+
"netamountpaid": 7890.50,
|
|
63
|
+
"deductionamount": 109.50,
|
|
64
|
+
"deductionreasoncode": "PRICING",
|
|
65
|
+
"deductionreasontext": "Price discrepancy adjustment",
|
|
66
|
+
"purchaseordernumber": "PO-45681-2023",
|
|
67
|
+
"copa_uploaded_at": "2023-05-09T10:20:00Z",
|
|
68
|
+
"copa_source_name": "Walmart EDI"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"payername": "Walmart Inc.",
|
|
72
|
+
"payerid": "WMT-001",
|
|
73
|
+
"paymentamount": 6325.90,
|
|
74
|
+
"paymenteffectivedate": "2023-05-10",
|
|
75
|
+
"achtracenumber": "ACH123456789005",
|
|
76
|
+
"recordtype": "Payment",
|
|
77
|
+
"referencenumber": "REF-2023-05-005",
|
|
78
|
+
"grossamount": 6500.00,
|
|
79
|
+
"netamountpaid": 6325.90,
|
|
80
|
+
"deductionamount": 174.10,
|
|
81
|
+
"deductionreasoncode": "FREIGHT",
|
|
82
|
+
"deductionreasontext": "Freight charge adjustment",
|
|
83
|
+
"purchaseordernumber": "PO-45682-2023",
|
|
84
|
+
"copa_uploaded_at": "2023-05-11T08:50:00Z",
|
|
85
|
+
"copa_source_name": "Walmart EDI"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"payername": "Walmart Inc.",
|
|
89
|
+
"payerid": "WMT-001",
|
|
90
|
+
"paymentamount": 12450.00,
|
|
91
|
+
"paymenteffectivedate": "2023-05-12",
|
|
92
|
+
"achtracenumber": "ACH123456789006",
|
|
93
|
+
"recordtype": "Payment",
|
|
94
|
+
"referencenumber": "REF-2023-05-006",
|
|
95
|
+
"grossamount": 12450.00,
|
|
96
|
+
"netamountpaid": 12450.00,
|
|
97
|
+
"deductionamount": 0.00,
|
|
98
|
+
"deductionreasoncode": "",
|
|
99
|
+
"deductionreasontext": "",
|
|
100
|
+
"purchaseordernumber": "PO-45683-2023",
|
|
101
|
+
"copa_uploaded_at": "2023-05-13T09:30:00Z",
|
|
102
|
+
"copa_source_name": "Walmart EDI"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"payername": "Walmart Inc.",
|
|
106
|
+
"payerid": "WMT-001",
|
|
107
|
+
"paymentamount": 9876.25,
|
|
108
|
+
"paymenteffectivedate": "2023-05-15",
|
|
109
|
+
"achtracenumber": "ACH123456789007",
|
|
110
|
+
"recordtype": "Payment",
|
|
111
|
+
"referencenumber": "REF-2023-05-007",
|
|
112
|
+
"grossamount": 10100.00,
|
|
113
|
+
"netamountpaid": 9876.25,
|
|
114
|
+
"deductionamount": 223.75,
|
|
115
|
+
"deductionreasoncode": "SHORTAGE",
|
|
116
|
+
"deductionreasontext": "Incomplete shipment - 12 units missing",
|
|
117
|
+
"purchaseordernumber": "PO-45684-2023",
|
|
118
|
+
"copa_uploaded_at": "2023-05-16T11:15:00Z",
|
|
119
|
+
"copa_source_name": "Walmart EDI"
|
|
120
|
+
}
|
|
121
|
+
]
|
|
122
|
+
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"transaction_reference": "TXN001234567890",
|
|
4
|
+
"account_identification": "US1234567890",
|
|
5
|
+
"statement_number": "ST2023050001",
|
|
6
|
+
"opening_balance_date": "2023-05-01",
|
|
7
|
+
"opening_balance_currency": "USD",
|
|
8
|
+
"opening_balance_amount": "125000.00",
|
|
9
|
+
"closing_balance_date": "2023-05-01",
|
|
10
|
+
"closing_balance_currency": "USD",
|
|
11
|
+
"closing_balance_amount": 128450.75,
|
|
12
|
+
"available_balance_date": "2023-05-01",
|
|
13
|
+
"available_balance_currency": "USD",
|
|
14
|
+
"available_balance_amount": 128450.75,
|
|
15
|
+
"value_date": "2023-05-01",
|
|
16
|
+
"entry_date": "2023-05-01",
|
|
17
|
+
"debit_credit_mark": "C",
|
|
18
|
+
"amount": 3450.75,
|
|
19
|
+
"transaction_type": "ACH Credit",
|
|
20
|
+
"customer_reference": "CUST-REF-001",
|
|
21
|
+
"bank_reference": "BANK-REF-001",
|
|
22
|
+
"description": "Payment received from Walmart",
|
|
23
|
+
"file_name": "mt940_20230501.txt",
|
|
24
|
+
"copa_uploaded_at": "2023-05-02T10:30:00Z",
|
|
25
|
+
"copa_source_name": "BankA"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"transaction_reference": "TXN001234567891",
|
|
29
|
+
"account_identification": "US1234567890",
|
|
30
|
+
"statement_number": "ST2023050002",
|
|
31
|
+
"opening_balance_date": "2023-05-02",
|
|
32
|
+
"opening_balance_currency": "USD",
|
|
33
|
+
"opening_balance_amount": "128450.75",
|
|
34
|
+
"closing_balance_date": "2023-05-02",
|
|
35
|
+
"closing_balance_currency": "USD",
|
|
36
|
+
"closing_balance_amount": 126200.50,
|
|
37
|
+
"available_balance_date": "2023-05-02",
|
|
38
|
+
"available_balance_currency": "USD",
|
|
39
|
+
"available_balance_amount": 126200.50,
|
|
40
|
+
"value_date": "2023-05-02",
|
|
41
|
+
"entry_date": "2023-05-02",
|
|
42
|
+
"debit_credit_mark": "D",
|
|
43
|
+
"amount": 2250.25,
|
|
44
|
+
"transaction_type": "Wire Transfer",
|
|
45
|
+
"customer_reference": "CUST-REF-002",
|
|
46
|
+
"bank_reference": "BANK-REF-002",
|
|
47
|
+
"description": "Payment to supplier ABC Corp",
|
|
48
|
+
"file_name": "mt940_20230502.txt",
|
|
49
|
+
"copa_uploaded_at": "2023-05-03T09:15:00Z",
|
|
50
|
+
"copa_source_name": "BankA"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"transaction_reference": "TXN001234567892",
|
|
54
|
+
"account_identification": "US1234567890",
|
|
55
|
+
"statement_number": "ST2023050003",
|
|
56
|
+
"opening_balance_date": "2023-05-03",
|
|
57
|
+
"opening_balance_currency": "USD",
|
|
58
|
+
"opening_balance_amount": "126200.50",
|
|
59
|
+
"closing_balance_date": "2023-05-03",
|
|
60
|
+
"closing_balance_currency": "USD",
|
|
61
|
+
"closing_balance_amount": 131850.25,
|
|
62
|
+
"available_balance_date": "2023-05-03",
|
|
63
|
+
"available_balance_currency": "USD",
|
|
64
|
+
"available_balance_amount": 131850.25,
|
|
65
|
+
"value_date": "2023-05-03",
|
|
66
|
+
"entry_date": "2023-05-03",
|
|
67
|
+
"debit_credit_mark": "C",
|
|
68
|
+
"amount": 5649.75,
|
|
69
|
+
"transaction_type": "ACH Credit",
|
|
70
|
+
"customer_reference": "CUST-REF-003",
|
|
71
|
+
"bank_reference": "BANK-REF-003",
|
|
72
|
+
"description": "Customer payment batch processing",
|
|
73
|
+
"file_name": "mt940_20230503.txt",
|
|
74
|
+
"copa_uploaded_at": "2023-05-04T08:45:00Z",
|
|
75
|
+
"copa_source_name": "BankA"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"transaction_reference": "TXN001234567893",
|
|
79
|
+
"account_identification": "US1234567890",
|
|
80
|
+
"statement_number": "ST2023050004",
|
|
81
|
+
"opening_balance_date": "2023-05-04",
|
|
82
|
+
"opening_balance_currency": "USD",
|
|
83
|
+
"opening_balance_amount": "131850.25",
|
|
84
|
+
"closing_balance_date": "2023-05-04",
|
|
85
|
+
"closing_balance_currency": "USD",
|
|
86
|
+
"closing_balance_amount": 130975.50,
|
|
87
|
+
"available_balance_date": "2023-05-04",
|
|
88
|
+
"available_balance_currency": "USD",
|
|
89
|
+
"available_balance_amount": 130975.50,
|
|
90
|
+
"value_date": "2023-05-04",
|
|
91
|
+
"entry_date": "2023-05-04",
|
|
92
|
+
"debit_credit_mark": "D",
|
|
93
|
+
"amount": 874.75,
|
|
94
|
+
"transaction_type": "Check Payment",
|
|
95
|
+
"customer_reference": "CUST-REF-004",
|
|
96
|
+
"bank_reference": "BANK-REF-004",
|
|
97
|
+
"description": "Office supplies payment - Check #1234",
|
|
98
|
+
"file_name": "mt940_20230504.txt",
|
|
99
|
+
"copa_uploaded_at": "2023-05-05T11:20:00Z",
|
|
100
|
+
"copa_source_name": "BankA"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"transaction_reference": "TXN001234567894",
|
|
104
|
+
"account_identification": "US1234567890",
|
|
105
|
+
"statement_number": "ST2023050005",
|
|
106
|
+
"opening_balance_date": "2023-05-05",
|
|
107
|
+
"opening_balance_currency": "USD",
|
|
108
|
+
"opening_balance_amount": "130975.50",
|
|
109
|
+
"closing_balance_date": "2023-05-05",
|
|
110
|
+
"closing_balance_currency": "USD",
|
|
111
|
+
"closing_balance_amount": 135225.30,
|
|
112
|
+
"available_balance_date": "2023-05-05",
|
|
113
|
+
"available_balance_currency": "USD",
|
|
114
|
+
"available_balance_amount": 135225.30,
|
|
115
|
+
"value_date": "2023-05-05",
|
|
116
|
+
"entry_date": "2023-05-05",
|
|
117
|
+
"debit_credit_mark": "C",
|
|
118
|
+
"amount": 4249.80,
|
|
119
|
+
"transaction_type": "ACH Credit",
|
|
120
|
+
"customer_reference": "CUST-REF-005",
|
|
121
|
+
"bank_reference": "BANK-REF-005",
|
|
122
|
+
"description": "Walmart weekly payment remittance",
|
|
123
|
+
"file_name": "mt940_20230505.txt",
|
|
124
|
+
"copa_uploaded_at": "2023-05-06T10:00:00Z",
|
|
125
|
+
"copa_source_name": "BankA"
|
|
126
|
+
}
|
|
127
|
+
]
|
|
128
|
+
|