@definite-app/data-apps 1.0.0
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/CLAUDE.md +686 -0
- package/LICENSE +201 -0
- package/README.md +643 -0
- package/build.mjs +459 -0
- package/examples/_refined_demo/app.json +15 -0
- package/examples/_refined_demo/data/sample.parquet +0 -0
- package/examples/_refined_demo/gen_preview_data.py +59 -0
- package/examples/_refined_demo/preview-data.json +13 -0
- package/examples/_refined_demo/src/App.tsx +188 -0
- package/examples/_refined_demo/src/main.tsx +12 -0
- package/examples/loan-portfolio/app.json +31 -0
- package/examples/loan-portfolio/data/loan_book.parquet +0 -0
- package/examples/loan-portfolio/gen_preview_data.py +454 -0
- package/examples/loan-portfolio/preview-data.json +84 -0
- package/examples/loan-portfolio/src/App.tsx +1103 -0
- package/examples/loan-portfolio/src/main.tsx +12 -0
- package/examples/revenue-explorer/app.json +23 -0
- package/examples/revenue-explorer/data/transactions.parquet +0 -0
- package/examples/revenue-explorer/gen_preview_data.py +129 -0
- package/examples/revenue-explorer/preview-data.json +49 -0
- package/examples/revenue-explorer/src/App.tsx +527 -0
- package/examples/revenue-explorer/src/main.tsx +12 -0
- package/package.json +55 -0
- package/preview.mjs +35 -0
- package/runtime/definite-runtime.tsx +5934 -0
- package/scripts/headless-smoke.mjs +196 -0
- package/templates/blank/app.json +15 -0
- package/templates/blank/src/App.tsx +41 -0
- package/templates/blank/src/main.tsx +12 -0
- package/templates/refined/app.json +15 -0
- package/templates/refined/src/App.tsx +198 -0
- package/templates/refined/src/main.tsx +12 -0
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
{
|
|
2
|
+
"context": {
|
|
3
|
+
"publicMode": false,
|
|
4
|
+
"driveFile": "preview://data-apps/loan-portfolio",
|
|
5
|
+
"appVersion": "v2"
|
|
6
|
+
},
|
|
7
|
+
"datasets": {
|
|
8
|
+
"loans": {
|
|
9
|
+
"file": "data/loan_book.parquet",
|
|
10
|
+
"format": "parquet"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"resources": {
|
|
14
|
+
"riskBands": [
|
|
15
|
+
{
|
|
16
|
+
"band": "A",
|
|
17
|
+
"range": "750+",
|
|
18
|
+
"apr": 5.8,
|
|
19
|
+
"defaultRate": 0.6,
|
|
20
|
+
"color": "#10B981"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"band": "B",
|
|
24
|
+
"range": "700-749",
|
|
25
|
+
"apr": 7.2,
|
|
26
|
+
"defaultRate": 1.4,
|
|
27
|
+
"color": "#84CC16"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"band": "C",
|
|
31
|
+
"range": "650-699",
|
|
32
|
+
"apr": 9.5,
|
|
33
|
+
"defaultRate": 3.1,
|
|
34
|
+
"color": "#F59E0B"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"band": "D",
|
|
38
|
+
"range": "600-649",
|
|
39
|
+
"apr": 12.8,
|
|
40
|
+
"defaultRate": 6.2,
|
|
41
|
+
"color": "#F97316"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"band": "E",
|
|
45
|
+
"range": "<600",
|
|
46
|
+
"apr": 17.4,
|
|
47
|
+
"defaultRate": 11.8,
|
|
48
|
+
"color": "#EF4444"
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
"statusCatalog": [
|
|
52
|
+
{
|
|
53
|
+
"key": "current",
|
|
54
|
+
"label": "Current",
|
|
55
|
+
"tone": "ok"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"key": "late_30",
|
|
59
|
+
"label": "30 days late",
|
|
60
|
+
"tone": "warn"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"key": "late_60",
|
|
64
|
+
"label": "60 days late",
|
|
65
|
+
"tone": "warn"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"key": "late_90",
|
|
69
|
+
"label": "90+ late",
|
|
70
|
+
"tone": "bad"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"key": "paid_off",
|
|
74
|
+
"label": "Paid off",
|
|
75
|
+
"tone": "muted"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"key": "charged_off",
|
|
79
|
+
"label": "Charged off",
|
|
80
|
+
"tone": "bad"
|
|
81
|
+
}
|
|
82
|
+
]
|
|
83
|
+
}
|
|
84
|
+
}
|