Skip to content

Commit

Permalink
Interactive tables using react (#4386)
Browse files Browse the repository at this point in the history
* feat: experimenting tables with react

* feat: adding new interactive tables

* feat: adding more table features

* small changes

* update

* Update backend.py

* Update backend.py

* fix: dark mode?

* feat: lot of table improvements

* fix: my b

* fix: load only when prod

* feat: naive detect links and dates

* handle index and column names

* increased min width

* codespell

* mypy, pylint

* fix: added new chart, export, etc

* testing

* updates

* fix : add PLOT_OPEN_EXPORT,  USE_INTERACTIVE_DF to user dataclass

* bump pywry version, readd removed `plots_backend().start()`

* req files

* Update unit-test.yml

* Update unit-test.yml

* Update unit-test.yml

* updates

* fixing some date things

* update table

* fix formatting with timezones

* fixing some long prints and tables

* Mickey Mouse

Co-authored-by: teh_coderer <[email protected]>
Co-authored-by: jose-donato <[email protected]>

* fix: ?!?!?

* adding limit arg to all print_rich_table

* tests

* lint

* simple by Default on interactive charts

* playing with some css (thks jose)

* Fix #4426

* Edit some structure

* fix sdk generation

* Update backend.py

* fa menu tested and working

* fix #4460

* fix #4460 drop indices

* update tests

* update tests

* Update helper_funcs.py

* tests

* Update unit-test.yml

* Update etf.ipynb

---------

Co-authored-by: teh_coderer <[email protected]>
Co-authored-by: andrewkenreich <[email protected]>
Co-authored-by: teh_coderer <[email protected]>
Co-authored-by: jose-donato <[email protected]>
Co-authored-by: James Maslek <[email protected]>
  • Loading branch information
6 people authored Mar 13, 2023
1 parent 723a395 commit 40cfe81
Show file tree
Hide file tree
Showing 286 changed files with 46,060 additions and 16,200 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ env:
OPENBB_FILE_OVERWRITE: true
OPENBB_ENABLE_CHECK_API: false
OPENBB_PREVIOUS_USE: true
OPENBB_USE_INTERACTIVE_DF: false
PIP_DEFAULT_TIMEOUT: 100

on:
Expand Down Expand Up @@ -79,16 +80,14 @@ jobs:
virtualenvs-create: true
virtualenvs-in-project: true

- name: Install nightly rust
run: curl --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly

- name: Setup sudo apt installs for ubuntu-latest
run: |
sudo apt-get update
sudo apt-get install -y \
build-essential \
libgtk-3-dev \
libsoup-3.0-dev \
libsoup2.4-dev \
libssl-dev \
curl \
wget \
Expand All @@ -99,6 +98,8 @@ jobs:
file \
librsvg2-dev \
libwebkit2gtk-4.1-dev \
javascriptcoregtk-4.0 \
libwebkit2gtk-4.0-dev \
libayatana-appindicator3-dev
- name: Load cached venv
Expand Down Expand Up @@ -163,6 +164,7 @@ jobs:
build-essential \
libgtk-3-dev \
libsoup-3.0-dev \
libsoup2.4-dev \
libssl-dev \
curl \
wget \
Expand All @@ -173,6 +175,8 @@ jobs:
file \
librsvg2-dev \
libwebkit2gtk-4.1-dev \
javascriptcoregtk-4.0 \
libwebkit2gtk-4.0-dev \
libayatana-appindicator3-dev
- name: Load cached venv
Expand Down Expand Up @@ -242,6 +246,7 @@ jobs:
build-essential \
libgtk-3-dev \
libsoup-3.0-dev \
libsoup2.4-dev \
libssl-dev \
curl \
wget \
Expand All @@ -252,6 +257,8 @@ jobs:
file \
librsvg2-dev \
libwebkit2gtk-4.1-dev \
javascriptcoregtk-4.0 \
libwebkit2gtk-4.0-dev \
libayatana-appindicator3-dev
- name: Load cached venv
Expand Down Expand Up @@ -319,6 +326,7 @@ jobs:
build-essential \
libgtk-3-dev \
libsoup-3.0-dev \
libsoup2.4-dev \
libssl-dev \
curl \
wget \
Expand All @@ -329,6 +337,8 @@ jobs:
file \
librsvg2-dev \
libwebkit2gtk-4.1-dev \
javascriptcoregtk-4.0 \
libwebkit2gtk-4.0-dev \
libayatana-appindicator3-dev
- name: Checkout
Expand Down
24 changes: 24 additions & 0 deletions frontend-components/tables/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
13 changes: 13 additions & 0 deletions frontend-components/tables/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>OpenBB Interactive Tables</title>
<meta name="color-scheme" content="dark" />
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
Loading

0 comments on commit 40cfe81

Please sign in to comment.