Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: causal analysis #153

Merged
merged 221 commits into from
Nov 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
221 commits
Select commit Hold shift + click to select a range
45ccabf
fix: useless observable
jojocys Nov 2, 2022
524c912
fix: memory usage optimize
jojocys Nov 2, 2022
88eb246
Revert "fix: memory usage optimize"
jojocys Nov 2, 2022
20d484f
feat: poc of causual
jojocys Nov 3, 2022
23626f5
feat(causal): dag view
AntoineYANG Nov 4, 2022
7142c93
feat: test server algo
jojocys Nov 4, 2022
e3bf6a1
fix(causal): layout crashes when too many links are built
AntoineYANG Nov 4, 2022
b6dffbc
feat(dashboard): add force chart
AntoineYANG Nov 5, 2022
e1d4cf7
Merge branch 'feat-causal-exp_dag-yzd-1104' into exp
AntoineYANG Nov 5, 2022
b052e26
feat: encodings for causal experiment
WooJson Nov 5, 2022
7f8e21e
fix: loa version & url
ObservedObserver Nov 5, 2022
7e0cd0c
Merge branch 'exp' of https://github.com/Kanaries/Rath into exp
ObservedObserver Nov 5, 2022
12934e4
feat(causal): diagram interaction
AntoineYANG Nov 5, 2022
91c81f3
Merge branch 'feat-causal-exp_dag-yzd-1104' into exp
AntoineYANG Nov 5, 2022
2583e44
feat(casual): change default threshold
AntoineYANG Nov 5, 2022
ef4f9df
fix: dynamic algorithm params renderer
ObservedObserver Nov 5, 2022
3be6424
fix: semi-automation ui & bug
ObservedObserver Nov 5, 2022
1120520
fix: download data label
ObservedObserver Nov 5, 2022
9f877c8
fix: make ig compuation to worker
ObservedObserver Nov 5, 2022
5310c8f
feat(casaul): select effect subtree on dag
AntoineYANG Nov 6, 2022
4e6545f
Merge branch 'feat-causal-exp_dag-yzd-1104' into exp
AntoineYANG Nov 6, 2022
83a7f2e
fix(causal): flow analyzer crash
AntoineYANG Nov 6, 2022
7a60306
feat[causal]: dynamically fetch causal server schema;
WooJson Nov 6, 2022
2ebab5f
modified: packages/rath-client/src/store/causalStore.ts
WooJson Nov 6, 2022
d48876a
Merge branch 'master' into exp
ObservedObserver Nov 7, 2022
8bc9659
refactor: remove deprecated api
ObservedObserver Nov 7, 2022
bb420a9
feat: return CausalField
WooJson Nov 7, 2022
533f652
feat(rath): performance window
AntoineYANG Nov 7, 2022
2063dce
Merge branch 'feat-causal-exp_dag-yzd-1104' into exp
AntoineYANG Nov 7, 2022
b2269a2
Merge branch 'master' into exp
ObservedObserver Nov 7, 2022
41c4170
Update yarn.lock
ObservedObserver Nov 7, 2022
d815311
feat: painter 支持视图编辑
ObservedObserver Nov 7, 2022
2006f98
feat(causal): change api
AntoineYANG Nov 7, 2022
936867c
Merge branch 'exp' into feat-causal-exp_dag-yzd-1104
AntoineYANG Nov 7, 2022
d835595
feat(causal): extend api form
AntoineYANG Nov 7, 2022
983504a
fix: 支持快速字段选择
ObservedObserver Nov 7, 2022
f8b2c4f
feat(causal): opt ui
AntoineYANG Nov 7, 2022
7a28c93
feat(causal): use g6 graph to replace d3 dag
AntoineYANG Nov 7, 2022
130652f
feat(causal): support cross filter in flow analyzer
AntoineYANG Nov 7, 2022
7ba59a7
feat(causal): opt interaction in flow analyzer
AntoineYANG Nov 7, 2022
6a551f5
feat: meta配置信息持久化
ObservedObserver Nov 7, 2022
d9f7df3
fix(causal): types of links is not mapped
AntoineYANG Nov 7, 2022
edf23e4
fix(causal): failed to display graph when some fields are not selected
AntoineYANG Nov 8, 2022
bd3f914
feat: 打通semi-automation
ObservedObserver Nov 8, 2022
c098897
fix(causal): matrix breaks when fields of respond contains extra fiel…
AntoineYANG Nov 8, 2022
7386bbf
fix: remove size change
ObservedObserver Nov 8, 2022
2fe59e3
chore(causal): sync with exp
AntoineYANG Nov 8, 2022
78847db
fix(causal): links in flow analyzer do not sync with graph above
AntoineYANG Nov 8, 2022
bb8c64f
feat(causal): optmz flow analyzer layout
AntoineYANG Nov 8, 2022
0effd91
fix(causal): style bugs
AntoineYANG Nov 8, 2022
4dad578
upgrade: graphic-walker for feat cross filter
ObservedObserver Nov 8, 2022
f5c4ce5
feat(rath): update GraphicWalker to v0.2.8, use GW in causal page
AntoineYANG Nov 8, 2022
acd319e
feat(causal): do sample
AntoineYANG Nov 8, 2022
fd06004
chore(): sync from feat-causal-exp_dag-yzd-1104
AntoineYANG Nov 8, 2022
d1632ff
fix: doc
ObservedObserver Nov 8, 2022
9027f1e
Merge branch 'exp' of https://github.com/Kanaries/Rath into exp
ObservedObserver Nov 8, 2022
d265e31
Update yarn.lock
ObservedObserver Nov 8, 2022
018532c
feat(causal): support filters to define a subset
AntoineYANG Nov 8, 2022
780a268
feat(causal): support filters to define a subset
AntoineYANG Nov 8, 2022
3fd2a11
Merge branch 'exp' into feat-causal-exp_dag-yzd-1104
AntoineYANG Nov 8, 2022
7a52706
feat(causal): limit data size in viz sub-charts
AntoineYANG Nov 8, 2022
926055b
fix(causal): gw costs too much memory
AntoineYANG Nov 8, 2022
f2a4b3a
fix(causal): gw costs too much memory
AntoineYANG Nov 8, 2022
93ec227
Merge branch 'exp' into feat-causal-exp_dag-yzd-1104
AntoineYANG Nov 8, 2022
a5c424e
fix: 半自动展示bug
ObservedObserver Nov 8, 2022
e33d69b
refactor(causal): last result in causal store
AntoineYANG Nov 8, 2022
46fcbc1
Merge branch 'exp' of https://github.com/Kanaries/Rath into exp
ObservedObserver Nov 8, 2022
deb06bd
全局配置
QiMeng7m Nov 8, 2022
aa62d11
tmp: wait for state refactor
ObservedObserver Nov 8, 2022
dac9788
fix(causal): store state management
AntoineYANG Nov 8, 2022
048db0c
Merge branch 'exp' of https://github.com/Kanaries/Rath into exp
ObservedObserver Nov 8, 2022
51269f1
fix(causal): dynamic form did not sync with schema
AntoineYANG Nov 8, 2022
077526d
feat(causal): suggest initial bg knowledge
AntoineYANG Nov 8, 2022
666758f
fix(causal): missing deps
AntoineYANG Nov 8, 2022
24209d7
Merge branch 'exp' of https://github.com/Kanaries/Rath into exp
ObservedObserver Nov 9, 2022
a507241
feat(causal): delete link on graph view
AntoineYANG Nov 9, 2022
4338ce0
feat: ui prettier
ObservedObserver Nov 9, 2022
fbab384
Merge branch 'exp' of https://github.com/Kanaries/Rath into exp
ObservedObserver Nov 9, 2022
4bfe501
feat(causal): optmz ui & Chinese localization
AntoineYANG Nov 9, 2022
6ecb328
refactor: use some hooks
ObservedObserver Nov 9, 2022
6e126c2
Merge branch 'exp' of https://github.com/Kanaries/Rath into exp
ObservedObserver Nov 9, 2022
4ab1b18
fix: conflict
ObservedObserver Nov 9, 2022
41f119b
fix(causal): missing Chinese text
AntoineYANG Nov 9, 2022
1cc7bbb
fix(causal): causal discovery view displayed wrong matrix
AntoineYANG Nov 9, 2022
efdeb1f
fix: remove useless computing
ObservedObserver Nov 9, 2022
6429569
fix(causal): force re-calculate layout
AntoineYANG Nov 9, 2022
46f82f1
fix: causal semi 更灵活打通
ObservedObserver Nov 9, 2022
6ed2093
fix(causal): heat map of causal result missed -1 values
AntoineYANG Nov 9, 2022
12be109
feat(latiao): $partition, $match, $replace
AntoineYANG Nov 9, 2022
39cc843
fix(causal): table duplicated source cell
AntoineYANG Nov 10, 2022
1a5e78d
fix: semi display bug
ObservedObserver Nov 10, 2022
e933a71
feat(causal): auto fill shouldInitPreconditions
AntoineYANG Nov 10, 2022
84f9906
feat(causal): hide axis title in flow analysis
AntoineYANG Nov 10, 2022
22f756d
feat(causal): adjust col dist size
AntoineYANG Nov 10, 2022
eed5488
fix(causal): dist chart title overlap
AntoineYANG Nov 10, 2022
e2e9122
fix: cross filter bug
ObservedObserver Nov 10, 2022
11c9866
Merge branch 'exp' of https://github.com/Kanaries/Rath into exp
ObservedObserver Nov 10, 2022
029bf23
Merge branch 'exp' of https://github.com/Kanaries/Rath into exp
ObservedObserver Nov 10, 2022
7ddbce4
feat(latiao): $map
AntoineYANG Nov 10, 2022
1f49354
feat(latiao): 补上算子的中文描述
AntoineYANG Nov 10, 2022
680dbc3
fix: semi-auto observer bug
ObservedObserver Nov 10, 2022
51a2dd8
style: change
ObservedObserver Nov 10, 2022
74dfdcd
Merge branch 'exp' of https://github.com/Kanaries/Rath into exp
ObservedObserver Nov 10, 2022
b2b2c34
Merge branch 'deps-upgrade' into exp
ObservedObserver Nov 10, 2022
7735f42
feat: megaAuto search insights
ObservedObserver Nov 10, 2022
ef42062
feat:range筛选项支持时间选择器
QiMeng7m Nov 11, 2022
2546a81
feat(latiao): migrate latiao program into web worker
AntoineYANG Nov 14, 2022
a45e5d7
feat(latiao): update LaTiaoProgramContext
AntoineYANG Nov 14, 2022
3a07bd0
feat:rath增加登录入口
QiMeng7m Nov 14, 2022
b39a3f1
feat(latiao): breaking change - new latiao type system
AntoineYANG Nov 14, 2022
2d61875
refactor(rath): split ui components of LaTiaoConsole
AntoineYANG Nov 14, 2022
f27de84
refactor(causal): refact causal page ui
AntoineYANG Nov 14, 2022
39c53b0
fix(causal): missing deps
AntoineYANG Nov 14, 2022
a64fa9f
fix(causal): duplicated local state
AntoineYANG Nov 15, 2022
29ad588
feat(causal): 临时增加导出图格式按钮 & remove d3-force
AntoineYANG Nov 15, 2022
6ee6c09
feat(causal): new sample method
AntoineYANG Nov 15, 2022
9f750a9
feat(rath): focusedSampling
AntoineYANG Nov 16, 2022
4f9d269
feat(causal): better causal matrix
AntoineYANG Nov 16, 2022
9fb76cb
feat(causal): click on node to add field to analyze group
AntoineYANG Nov 16, 2022
5c7dd2a
feat(causal): hide flow analyzer
AntoineYANG Nov 16, 2022
6544950
feat(causal): highlight straightly connected nodes and links on click
AntoineYANG Nov 16, 2022
6a1f8c1
feat(causal): units rule of causal strength among algorithms in server
AntoineYANG Nov 16, 2022
d302e00
feat[causal/algoName]: API changed
WooJson Nov 16, 2022
0f7007c
feat(causal): forbid defining 'prefer-link'
AntoineYANG Nov 16, 2022
390440f
feat:rath增加登录入口
QiMeng7m Nov 17, 2022
0eb01ae
feat(causal): append link interaction triggered by dragging instead o…
AntoineYANG Nov 17, 2022
dc83754
fix(causal): graph triggered re-layout without any stored state too o…
AntoineYANG Nov 17, 2022
4b1784e
feat(causal): manually trigger graph re-layout
AntoineYANG Nov 17, 2022
d6a2cca
fix(causal): missing validation for creating edges
AntoineYANG Nov 17, 2022
8e504f6
fix(causal): causal link type text missed
AntoineYANG Nov 17, 2022
c5810d2
feat(causal): manually control graph layout animation
AntoineYANG Nov 17, 2022
9e1958a
fix(causal): manually relayout did not work if auto layout is toggled…
AntoineYANG Nov 17, 2022
a81e7cb
feat(cross-filter): support point select
AntoineYANG Nov 17, 2022
8071f3c
fix(causal): causal graph highlighted wrong edges
AntoineYANG Nov 17, 2022
d3c18d7
feat:添加登录头像
QiMeng7m Nov 18, 2022
0afa881
feat(causal): display only cpdag OR matrix at the same time
AntoineYANG Nov 18, 2022
e04120f
feat(causal): prepare to extend more edit view as tabs for preconditi…
AntoineYANG Nov 18, 2022
a0a01aa
feat(causal): node style can be encoded
AntoineYANG Nov 18, 2022
48cfbd7
feat(causal): toggle flow analyzer by clicking with shift key pressed
AntoineYANG Nov 18, 2022
aa67a6e
chore(causal): merge branch feat-causal-better_interaction-ks-1116
AntoineYANG Nov 18, 2022
8290aa1
fix:use data.matrix as the standard PAG format of causal graph
WooJson Nov 18, 2022
e08ab8a
feat(causal): synchronize bg knowledge using causal result
AntoineYANG Nov 18, 2022
d739bce
feat: neighbor association supported
ObservedObserver Nov 19, 2022
c7eb5a9
Merge branch 'exp' of https://github.com/Kanaries/Rath into exp
ObservedObserver Nov 19, 2022
54ea9d8
feat: embed semi support neighbors
ObservedObserver Nov 19, 2022
9b15815
fix: facet viz painter bug
ObservedObserver Nov 19, 2022
b69fb94
fix: draw only in mousedown status
ObservedObserver Nov 20, 2022
e6cfad6
feat: raw data to indexed db
ObservedObserver Nov 13, 2022
91ba481
feat: filtered data to indexeddb
ObservedObserver Nov 15, 2022
90c8f4b
fix: raw data
ObservedObserver Nov 15, 2022
53f853a
fix: conflict and raw data from storage
ObservedObserver Nov 20, 2022
cb364ff
feat: more extended(transform)
ObservedObserver Nov 20, 2022
e5dd4e5
fix: one-hot noise group
ObservedObserver Nov 20, 2022
09b2c27
Merge branch 'exp' into feat-causal-better_interaction-ks-1116
AntoineYANG Nov 20, 2022
7707027
feat(causal): edit precondition with diagram view
AntoineYANG Nov 20, 2022
8962466
feat(causal): optimize graph interaction
AntoineYANG Nov 21, 2022
6a12a7a
fix(causal): graph editor in precondition panel displays the global u…
AntoineYANG Nov 21, 2022
1c8c1c5
fix:使用组件添加头像,自定义暂未开放
QiMeng7m Nov 21, 2022
df057b7
feat(causal): update bg knowledge using extInfo
AntoineYANG Nov 21, 2022
8fc46cf
feat(causal): request data to update bg knowledge (mock api)
AntoineYANG Nov 21, 2022
4c2d29a
fix: replace score bug
ObservedObserver Nov 21, 2022
4f1605a
Merge branch 'exp' of https://github.com/Kanaries/Rath into exp
ObservedObserver Nov 21, 2022
bb36d8b
feat(causal): report causal result not matching in non-production env
AntoineYANG Nov 21, 2022
e431b42
fix(causal): type error
AntoineYANG Nov 21, 2022
bc216e4
feat(causal): report causal result not matching in non-production env
AntoineYANG Nov 21, 2022
cb7de5a
fix(causal): type error
AntoineYANG Nov 21, 2022
2999dd0
Merge branch 'exp' into feat-causal-better_interaction-ks-1116
AntoineYANG Nov 21, 2022
2973251
feat(causal): support 2-2 edge in pag
AntoineYANG Nov 21, 2022
f902d99
fix(causal): cached result is not cleaned after dialog is closed
AntoineYANG Nov 21, 2022
b6d6036
feat(causal): support other links in diagram edit mode
AntoineYANG Nov 21, 2022
4aa13e5
feat(causal): batch editing using united editor
AntoineYANG Nov 21, 2022
6d9ebb4
fix:修复eslint检查
QiMeng7m Nov 21, 2022
dd451a5
feat:时间类型增加时间筛选器
QiMeng7m Nov 22, 2022
5644f22
Merge branch 'range-date-time' of https://github.com/Kanaries/Rath in…
QiMeng7m Nov 22, 2022
e7d850d
Merge branch 'exp' into login-support
QiMeng7m Nov 22, 2022
e35dc70
Merge branch 'exp' into range-date-time
QiMeng7m Nov 22, 2022
ed2ed79
Update App.tsx
QiMeng7m Nov 22, 2022
3078c61
Merge pull request #161 from Kanaries/range-date-time
QiMeng7m Nov 22, 2022
0f4e8d3
Revert "RangeDateTime"
QiMeng7m Nov 22, 2022
624c032
Merge pull request #162 from Kanaries/revert-161-range-date-time
QiMeng7m Nov 22, 2022
f9e2721
fix:解决冲突
QiMeng7m Nov 22, 2022
7391d3d
Update index.ts
QiMeng7m Nov 22, 2022
fc52fba
Merge branch 'exp' into feat-range-date-time
QiMeng7m Nov 22, 2022
13e35e9
fix:解决冲突
QiMeng7m Nov 22, 2022
b1ce6b6
fix:删除tailwind
QiMeng7m Nov 22, 2022
e58486e
fix:手机正则默认不为空
QiMeng7m Nov 22, 2022
900971b
feat(causal): explainer api
AntoineYANG Nov 22, 2022
6d4471c
Merge branch 'feat-causal-better_interaction-ks-1116' into exp
AntoineYANG Nov 22, 2022
0a37ba5
fix(causal): explainer filter range
AntoineYANG Nov 22, 2022
09a75fb
feat(causal): explainer debug
AntoineYANG Nov 22, 2022
a0854d3
fix(causal): diff chart
AntoineYANG Nov 22, 2022
9a55f35
fix(causal): diff chart on quantitative x channel
AntoineYANG Nov 22, 2022
89483fe
fix(causal): cannot use point select on discrete fields
AntoineYANG Nov 22, 2022
caf760f
fix(causal): pag as param of Explainer missed edges with any side is …
AntoineYANG Nov 23, 2022
500dd9d
fix:手机号正则变更
QiMeng7m Nov 23, 2022
66f1a53
Merge pull request #163 from Kanaries/feat-range-date-time
QiMeng7m Nov 23, 2022
ab68deb
feat(causal): select two groups in explainer
AntoineYANG Nov 23, 2022
f2ac835
feat(causal): select two groups in explainer
AntoineYANG Nov 23, 2022
267a8e8
Merge branch 'exp' into feat-causal-better_interaction-ks-1116
AntoineYANG Nov 23, 2022
5fb42d3
feat(causal): explainer support single-field chart
AntoineYANG Nov 23, 2022
e36ec26
Merge pull request #164 from Kanaries/login-support
QiMeng7m Nov 23, 2022
7e546d8
feat(causal): re-disign WHY QUERY as a list
AntoineYANG Nov 23, 2022
d2a63b3
feat(causal): explainer support single-field chart
AntoineYANG Nov 23, 2022
8420e14
feat(causal): re-disign WHY QUERY as a list
AntoineYANG Nov 23, 2022
61f4d63
Merge branch 'exp' into feat-causal-better_interaction-ks-1116
AntoineYANG Nov 23, 2022
cc27191
fix:修复export导出表达式报错问题
QiMeng7m Nov 23, 2022
b05c74f
feat(causal): natural language explanation
AntoineYANG Nov 23, 2022
43dd0ec
Merge branch 'feat-causal-better_interaction-ks-1116' into exp
AntoineYANG Nov 23, 2022
b23028c
feat(causal): manually toggle zoom-canvas
AntoineYANG Nov 23, 2022
4ebff00
fix(causal): unvisualized dimsensions failed to resolve discrete factors
AntoineYANG Nov 23, 2022
52d51d0
fix(causal): worker loader packed unexpected module
AntoineYANG Nov 23, 2022
42fb00b
fix(user): unexpected avatar panel
AntoineYANG Nov 23, 2022
3cbfb2d
Merge branch 'master' into exp
jojocys Nov 23, 2022
20fb838
refactor: seprate apps & services
jojocys Nov 23, 2022
2917d6c
feat: causal-service
jojocys Nov 23, 2022
38b7be3
feat: narrative service
jojocys Nov 23, 2022
0341327
fix: stat err
jojocys Nov 23, 2022
88976e3
fix: nav info
jojocys Nov 23, 2022
fea65d6
feat(causal): explainer worker supports unaggregated field
AntoineYANG Nov 23, 2022
c42c13a
fix:services CI/CD
WooJson Nov 23, 2022
a1cd978
chore(client): remove out-dated dependencies
AntoineYANG Nov 23, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ Welcome to the [Kanaries RATH](https://kanaries.net/). We are so excited to have

- 🎨 [Data painter](https://kanaries.net/docs/data-painter): An interactive, instinctive yet powerful tool for exploratory data analysis by directly coloring your data, with further analytical features.

- :bar_chart: Dashboard: build beautiful interactive data dashboard.

- :construction: Causal Analysis: Provide causal discovery and explainations for complex relation analysis.

- 🎓 Wanna learn more about RATH? Visit our [Free online Courses](https://kanaries.net/docs/rath-academy): Access learning materials, detailed instructions and skill tests for **FREE**!

## Share with the community
Expand Down
3 changes: 2 additions & 1 deletion citations.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ Rath is insipired by several excellent works below:
+ [3] Wongsuphasawat, Kanit, et al. "Voyager 2: Augmenting visual analysis with partial view specifications." Proceedings of the 2017 CHI Conference on Human Factors in Computing Systems. ACM, 2017.
+ [4] B. Tang et al, "Extracting top-K insights from multi-dimensional data," in 2017, . DOI: 10.1145/3035918.3035922.
+ [5] Vega-Lite: A Grammar of Interactive Graphics. Arvind Satyanarayan, Dominik Moritz, Kanit Wongsuphasawat, Jeffrey Heer. IEEE Trans. Visualization & Comp. Graphics (Proc. InfoVis), 2017
+ [6] Kim, Younghoon, et al. "Graphscape: A model for automated reasoning about visualization similarity and sequencing." Proceedings of the 2017 CHI conference on human factors in computing systems. 2017.
+ [6] Kim, Younghoon, et al. "Graphscape: A model for automated reasoning about visualization similarity and sequencing." Proceedings of the 2017 CHI conference on human factors in computing systems. 2017.
+ [7] Amit Sharma, Emre Kiciman. DoWhy: An End-to-End Library for Causal Inference. 2020. https://arxiv.org/abs/2011.04216
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "Rath",
"name": "rath",
"private": true,
"version": "1.0.0",
"description": "![](https://img.shields.io/github/license/Kanaries/Rath)",
Expand Down
9 changes: 9 additions & 0 deletions packages/rath-client/config-overrides.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@ module.exports = function override(config, env) {
filename: '[contenthash].worker.js'
},
},
}, {
test: /\.worker\.ts$/,
use: [{
loader: 'worker-loader',
options: {
inline: 'fallback',
filename: '[contenthash].worker.js'
},
}, 'ts-loader'],
})
config.output.globalObject = 'self'
// config.module = config.module || {};
Expand Down
8 changes: 8 additions & 0 deletions packages/rath-client/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/** @type {import('ts-jest').JestConfigWithTsJest} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
transform: {
'^.+\\.tsx?$': 'ts-jest',
},
};
16 changes: 13 additions & 3 deletions packages/rath-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,24 @@
"singleQuote": true
},
"dependencies": {
"@antv/g6": "^4.7.10",
"@babel/parser": "^7.19.6",
"@codemirror/lang-sql": "^6.3.0",
"@emotion/react": "^11.10.4",
"@emotion/styled": "^11.10.4",
"@fluentui/font-icons-mdl2": "^8.4.13",
"@fluentui/react": "^8.94.4",
"@fluentui/react-hooks": "^8.6.11",
"@kanaries/graphic-walker": "0.2.7",
"@kanaries/graphic-walker": "0.2.8",
"@kanaries/loa": "^0.0.16",
"@kanaries/web-data-loader": "0.1.7",
"@material-ui/core": "^5.0.0-beta.5",
"airtable": "^0.11.4",
"ali-react-table": "^2.6.1",
"codemirror": "^6.0.1",
"dayjs": "^1.10.7",
"d3-dag": "^0.11.5",
"d3-shape": "^3.1.0",
"dayjs": "^1.11.6",
"immer": "^9.0.6",
"localforage": "^1.10.0",
"mobx": "^6.6.2",
Expand Down Expand Up @@ -52,22 +55,29 @@
"@testing-library/jest-dom": "^5.11.8",
"@testing-library/react": "^11.2.3",
"@testing-library/user-event": "^12.6.0",
"@types/crypto-js": "^4.1.0",
"@types/d3-shape": "^3.1.0",
"@types/jest": "^26.0.20",
"@types/node": "^12.19.12",
"@types/react": "^17.0.2",
"@types/react-dom": "^17.0.1",
"@types/react-grid-layout": "^1.3.2",
"@types/styled-components": "^5.1.7",
"crypto-js": "^4.1.1",
"customize-cra": "^1.0.0",
"jest": "^29.3.1",
"prettier": "2.7.1",
"source-map-explorer": "^2.5.2",
"ts-jest": "^29.0.3",
"ts-loader": "^9.4.1",
"ts-node": "^10.9.1",
"typescript": "^4.7.4"
},
"scripts": {
"start": "react-app-rewired start",
"build": "GENERATE_SOURCEMAP=false react-app-rewired build",
"build2": "react-app-rewired --max_old_space_size=4096 build",
"test": "react-app-rewired test",
"test": "jest -c ./jest.config.js --passWithNoTests --no-cache",
"eject": "react-app-rewired eject",
"analyze": "source-map-explorer 'build/static/js/*.js'",
"count": "cloc --exclude-dir=$(tr '\n' ',' < ../../.clocignore) ."
Expand Down
109 changes: 99 additions & 10 deletions packages/rath-client/public/locales/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@
"dashBoardDesigner": "Dashboard Designer",
"painter": "Data Painter",
"collection": "Collection",
"dashboard": "Dashboard"
"dashboard": "Dashboard",
"causal": "Causal"
},
"preference": {
"title": "preference",
Expand Down Expand Up @@ -244,7 +245,7 @@
"title": "Fast Selection"
},
"downloadData": {
"title": "Download Data"
"title": "export dataset"
},
"extend": {
"title": "Extend Information",
Expand All @@ -259,7 +260,11 @@
"cancel": "Cancel",
"auto": "Extend Suggestions",
"suggestion": {
"dateTimeExpand": "Group date time by units of time.|Time series may be more regular or correlated as the time attribution is grouped into different scales such as years and months."
"dateTimeExpand": "Group date time by units of time.|Time series may be more regular or correlated as the time attribution is grouped into different scales such as years and months.",
"oneHot": "One-hot encoding for categorical fields.|One-hot encoding is a way to represent categorical variables as binary vectors. It allows the representation of categorical data to be more expressive.",
"wordTFIDF": "Extract words from text fields(score: tf-idf).|TF-IDF is a numerical statistic that is intended to reflect how important a word is to a document in a collection or corpus.",
"wordTF": "Extract words from text fields(score: tf).| Use the term with top frequency in docs.",
"reGroupByFreq": "Re-Group By frequency.|Re-group the field by frequency, keep the top frequency value."
}
},
"filter": {
Expand All @@ -272,6 +277,10 @@
"set": "value set",
"submit": "Submit",
"cancel": "Cancel"
},
"operations": {
"title": "Operations",
"selectAll": "Enable All Fields"
}
},
"meta": {
Expand All @@ -288,6 +297,7 @@
"hintMain": "Here are some interesting patterns and insights found by RATH. If you are interested in some of them, try to use 'edit charts' to know more details about current view and use 'associate' to explore related insights",
"summary": "Summary",
"associate": "Associate",
"analysis": "Analysis",
"asso": {
"T1": "Associated Measures",
"T2": "Associated Dimensions",
Expand Down Expand Up @@ -329,10 +339,11 @@
"semiAuto": {
"main": {
"mainView": "Main View",
"relatePatterns": "associate patterns",
"relateFeatures": "associate features",
"relatePatterns": "related patterns",
"relateFeatures": "related features",
"explainDiff": "explain diff",
"pointInterests": "split",
"pointInterests": "related subsets",
"neighbors": "neighbor views",
"pin": "pin",
"compare": "compare",
"vizsys": {
Expand All @@ -344,7 +355,14 @@
"associate": {
"patterns": "Associated Patterns",
"features": "Associated Features",
"filters": "Associated Subsets"
"filters": "Associated Subsets",
"neighbors": "Associated Neighbors"
},
"associateShorthand": {
"patterns": "Patterns",
"features": "Features",
"filters": "Subsets",
"neighbors": "Neighbors"
}
}
},
Expand Down Expand Up @@ -390,8 +408,9 @@
},
"op": {
"$set": "Transforms a field to ordinals as a new column.",
"$group": "Transforms a field to calculative numbers as a new column.",
"$nominal": "Transforms a field to strings as a new column.",
"$vec": "Transforms a field to calculative numbers as a new column.",
"$text": "Transforms a field to strings as a new column.",
"$bool": "Transforms a field to 0 or 1 as a new column.",
"$id": "Generates an automatically incrementing id field, starting from 1.",
"$order": "Returns rank index of the data sorted on the target numeric field, starting from 1.",
"$dict": "Returns rank index of the data sorted on the target string field, starting from 1.",
Expand All @@ -401,9 +420,47 @@
"$isValidDate": "Transforms Date objects to string \"1\" if the Date object is valid, otherwise string \"0\" as a new column.",
"$normalize": "Normalizes a field as a new column.",
"$inset": "Scales a field to range -1 ~ +1 as a new column.",
"$bound": "Scales a field to range 0 ~ 1 as a new column."
"$bound": "Scales a field to range 0 ~ 1 as a new column.",
"$log": "Projects a field by x -> log(x) (the base is default to E) as a new column.",
"$log2": "Projects a field by x -> log[2](x) as a new column.",
"$log1p": "Projects a field by x -> log(x + 1) as a new column.",
"$log10": "Projects a field by x -> log[10](x) as a new column.",
"$map": "Maps each value to a new value of the same type as a new column.",
"$test": "Maps each value to a 0 (false) or 1 (true) as a new column.",
"$ReLU": "Projects a field by x -> max(0, x) as a new column.",
"$match": "Finds the matched parts of each text content using Regular Expression as a new column.",
"$replace": "Replaces the matched parts of each text content with a given string using Regular Expression as a new column.",
"$concat": "Concats text contents of all the fields as a new column.",
"$sigmoid": "Projects a field by x -> (1 + e^-x)^-1 as a new column.",
"$boxClip": "Maps overflowing values (due to boxplot) to the domain as a new column.",
"$meanClip": "Maps overflowing values (due to the given domain) to the mean of all the other values as a new column.",
"$nearestClip": "Maps overflowing values (due to the given domain) to the domain as a new column.",
"$zeroFill": "Maps Infinite or NaN to 0 as a new column.",
"$meanFill": "Maps Infinite or NaN to the mean of all the other values as a new column.",
"$partition": "Separates each value by boolean expression into two new column."
}
},
"causal_direction": {
"_": "Type of Link",
"none": "irrelevant to",
"directed": "direct to",
"reversed": "directed from",
"weakDirected": "direct to (weak)",
"weakReversed": "directed from (weak)",
"undirected": "relative without direction with",
"weakUndirected": "relative without direction with (weak)",
"bidirected": "bidirected with"
},
"causal_direction_desc": {
"none": "A is irrelevant to B.",
"directed": "A influences B.",
"reversed": "A is influenced by B.",
"weakDirected": "In some cases, A influences B.",
"weakReversed": "In some cases, A is influenced by B.",
"undirected": "A is relevant to B, but the direction is not decided.",
"weakUndirected": "In different cases, A or B is relevant to the other one.",
"bidirected": "Both A and B influences each other."
},
"time_format": {
"dateTime": "%x, %X",
"date": "%-m/%-d/%Y",
Expand All @@ -413,5 +470,37 @@
"shortDays": ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
"months": ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
"shortMonths": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
},
"login": {
"clickLogin": "Click Login",
"haveSent": "Alredy Send",
"signIn": "Sign In",
"signOut": "Sign Out",
"preferences": "Preferences",
"phoneCert": "Phone",
"emailCert": "Email",
"passwordLog": "Password",
"account": "Account",
"header": "Head Portrait",
"info": "Info",
"setting": "Setting",
"login": "Login",
"loginAndRegister": "login/Register",
"getCertCode": "Send Cert Code",
"upload": "Upload custom avatar",
"AvatarImage": "Avatar Image",
"phone": {
"phoneNo": "Phone NO.",
"certCode": "Cert Code"
},
"email": {
"title": "Email",
"certCode": "Cert Code",
"errEmail": "not support email type"
},
"password": {
"userName": "UsernNme",
"password": "Password"
}
}
}
Loading