create-bluecopa-react-app 1.0.40 → 1.0.42
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/README.md +16 -14
- package/package.json +1 -1
- package/templates/latest/.claude/settings.local.json +56 -0
- package/templates/latest/.env.example +8 -0
- package/templates/latest/Agent.md +598 -775
- package/templates/latest/CLAUDE.md +759 -0
- package/templates/latest/README.md +17 -8
- package/templates/latest/app/app.css +292 -85
- package/templates/latest/app/app.tsx +48 -39
- package/templates/latest/app/components/bluecopa-logo.tsx +20 -0
- package/templates/latest/app/components/charts/bar-chart.tsx +132 -0
- package/templates/latest/app/components/charts/base-chart.tsx +149 -0
- package/templates/latest/app/components/charts/chart-provider.tsx +71 -0
- package/templates/latest/app/components/charts/chart-theme.ts +262 -0
- package/templates/latest/app/components/charts/chart-utils.ts +142 -0
- package/templates/latest/app/components/charts/donut-chart.tsx +110 -0
- package/templates/latest/app/components/charts/index.ts +5 -0
- package/templates/latest/app/components/layouts/app-layout.tsx +22 -0
- package/templates/latest/app/components/layouts/app-sidebar.tsx +88 -0
- package/templates/latest/app/components/layouts/nav-main.tsx +50 -0
- package/templates/latest/app/components/layouts/nav-user.tsx +38 -0
- package/templates/latest/app/components/layouts/site-header.tsx +93 -0
- package/templates/latest/app/components/loading-screen.tsx +41 -0
- package/templates/latest/app/components/ui/ag-grid-table.tsx +79 -0
- package/templates/latest/app/components/ui/button.tsx +23 -23
- package/templates/latest/app/components/ui/card.tsx +20 -20
- package/templates/latest/app/components/ui/dropdown-menu.tsx +54 -49
- package/templates/latest/app/components/ui/input.tsx +8 -8
- package/templates/latest/app/components/ui/label.tsx +8 -8
- package/templates/latest/app/components/ui/separator.tsx +7 -7
- package/templates/latest/app/components/ui/sheet.tsx +43 -32
- package/templates/latest/app/components/ui/sidebar.tsx +240 -235
- package/templates/latest/app/components/ui/skeleton.tsx +4 -4
- package/templates/latest/app/components/ui/sonner.tsx +6 -9
- package/templates/latest/app/components/ui/tabs.tsx +15 -15
- package/templates/latest/app/components/ui/tooltip.tsx +18 -12
- package/templates/latest/app/constants/index.ts +31 -0
- package/templates/latest/app/contexts/app-context.tsx +201 -0
- package/templates/latest/app/hooks/use-mobile.ts +13 -12
- package/templates/latest/app/main.tsx +1 -1
- package/templates/latest/app/pages/dashboard.tsx +246 -0
- package/templates/latest/app/pages/payments.tsx +182 -0
- package/templates/latest/app/pages/settings.tsx +128 -0
- package/templates/latest/app/routes/index.tsx +19 -0
- package/templates/latest/app/single-spa.tsx +68 -86
- package/templates/latest/app/types/index.ts +37 -0
- package/templates/latest/app/utils/ag-grid-datasource.ts +63 -0
- package/templates/latest/app/utils/ag-grid-license.ts +12 -0
- package/templates/latest/app/utils/ag-grid-theme.ts +9 -0
- package/templates/latest/app/utils/component-style.ts +7 -0
- package/templates/latest/app/utils/style-drivers.ts +24 -0
- package/templates/latest/app/utils/utils.ts +10 -0
- package/templates/latest/components.json +3 -3
- package/templates/latest/index.html +30 -2
- package/templates/latest/package-lock.json +30 -416
- package/templates/latest/package.json +8 -18
- package/templates/latest/preview/index.html +125 -285
- package/templates/latest/public/favicon.svg +1 -0
- package/templates/latest/vite.config.ts +2 -8
- package/templates/latest/app/components/app-sidebar.tsx +0 -182
- package/templates/latest/app/components/chart-area-interactive.tsx +0 -290
- package/templates/latest/app/components/data-table.tsx +0 -807
- package/templates/latest/app/components/nav-documents.tsx +0 -92
- package/templates/latest/app/components/nav-main.tsx +0 -40
- package/templates/latest/app/components/nav-secondary.tsx +0 -42
- package/templates/latest/app/components/nav-user.tsx +0 -111
- package/templates/latest/app/components/section-cards.tsx +0 -102
- package/templates/latest/app/components/site-header.tsx +0 -28
- package/templates/latest/app/components/ui/avatar.tsx +0 -53
- package/templates/latest/app/components/ui/badge.tsx +0 -46
- package/templates/latest/app/components/ui/breadcrumb.tsx +0 -109
- package/templates/latest/app/components/ui/chart.tsx +0 -352
- package/templates/latest/app/components/ui/checkbox.tsx +0 -30
- package/templates/latest/app/components/ui/drawer.tsx +0 -139
- package/templates/latest/app/components/ui/select.tsx +0 -183
- package/templates/latest/app/components/ui/table.tsx +0 -117
- package/templates/latest/app/components/ui/toggle-group.tsx +0 -73
- package/templates/latest/app/components/ui/toggle.tsx +0 -47
- package/templates/latest/app/data/data.json +0 -614
- package/templates/latest/app/data/mock-payments.json +0 -122
- package/templates/latest/app/data/mock-transactions.json +0 -128
- package/templates/latest/app/hooks/use-bluecopa-user.ts +0 -37
- package/templates/latest/app/lib/utils.ts +0 -6
- package/templates/latest/app/routes/apitest.tsx +0 -2118
- package/templates/latest/app/routes/comments.tsx +0 -588
- package/templates/latest/app/routes/dashboard.tsx +0 -36
- package/templates/latest/app/routes/payments.tsx +0 -342
- package/templates/latest/app/routes/statements.tsx +0 -493
- package/templates/latest/app/routes/websocket.tsx +0 -450
- package/templates/latest/app/routes.tsx +0 -22
- package/templates/latest/dist/assets/__federation_expose_App-OFfdinOR.js +0 -97
- package/templates/latest/dist/assets/__federation_fn_import-CzfA7kmP.js +0 -438
- package/templates/latest/dist/assets/__federation_shared_react-Bp6HVBS4.js +0 -16
- package/templates/latest/dist/assets/__federation_shared_react-dom-BCcRGiYp.js +0 -17
- package/templates/latest/dist/assets/client-CkHcT_xc.js +0 -76035
- package/templates/latest/dist/assets/index-B3cD3sP_.js +0 -60
- package/templates/latest/dist/assets/index-BzNimew1.js +0 -69
- package/templates/latest/dist/assets/index-DMFtQdNS.js +0 -412
- package/templates/latest/dist/assets/remoteEntry.css +0 -3996
- package/templates/latest/dist/assets/remoteEntry.js +0 -88
- package/templates/latest/dist/favicon.ico +0 -0
- package/templates/latest/dist/index.html +0 -19
|
@@ -1,122 +0,0 @@
|
|
|
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
|
-
|
|
@@ -1,128 +0,0 @@
|
|
|
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
|
-
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { useUser } from "@bluecopa/react";
|
|
2
|
-
|
|
3
|
-
export function useBluecopaUser() {
|
|
4
|
-
const { data: user, error, isLoading } = useUser();
|
|
5
|
-
|
|
6
|
-
// Fallback user data when API errors out
|
|
7
|
-
const fallbackUser = {
|
|
8
|
-
firstName: "Set Environment",
|
|
9
|
-
lastName: "Set Environment",
|
|
10
|
-
email: "setenv@email.com"
|
|
11
|
-
};
|
|
12
|
-
// Return fallback user if there's an error
|
|
13
|
-
if (error) {
|
|
14
|
-
console.error('Error fetching user data:', error);
|
|
15
|
-
return {
|
|
16
|
-
user: { user: fallbackUser },
|
|
17
|
-
isLoading: false,
|
|
18
|
-
error,
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
// Return loading state
|
|
23
|
-
if (isLoading) {
|
|
24
|
-
return {
|
|
25
|
-
user: null,
|
|
26
|
-
isLoading: true,
|
|
27
|
-
error: null,
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
// Return actual user data or fallback if no user data
|
|
32
|
-
return {
|
|
33
|
-
user: user || fallbackUser,
|
|
34
|
-
isLoading: false,
|
|
35
|
-
error: null,
|
|
36
|
-
};
|
|
37
|
-
}
|