Commit Graph

34 Commits

Author SHA1 Message Date
teh_coderer
47c9086e80 fix: #5263 #5264 (#5290) 2023-08-07 17:25:57 +00:00
teh_coderer
ae91a3f9b9 Hotfix economy/overview rates displaying as dates (#5269)
* fix: `economy/overview` rates displaying as dates

* Fix Test

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-08-01 16:05:29 +00:00
tehcoderer
cd74832ded fix tables 2023-07-21 16:32:01 -04:00
teh_coderer
41ef3d416f Hotfix/ improve tables/charts (#5228)
* improve charts, tables

* update

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-07-19 23:58:32 +00:00
teh_coderer
281799f047 hotfix / improve autoscaling/dynamic loading, fix forex candle charts, equity reports (#5183)
* improve autoscaling/dynamic loading, fix forex candle charts

* updates

* Update plotly_helper.py

* fix?

* fix table date sorting, localize forex load

* tests

* tests?

* ugh tests

* Update test_display_debt.txt

* Update test_get_debt.csv

* Update forex_helper.py

* close #5182

* fix `crypto/dd/info` tables not loading due to `dict` object in dataframe values

* Update parent_classes.py

* tables: show full value on hover, fix year only filtering. on reset use queue if logged in

* lint + first batch of test fix

* tests pt2

* Tests v3

* Pylint

* typo

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-07-14 14:46:01 +00:00
teh_coderer
8a70c6205d Feature/ Pywry login (#5115)
* Update .gitignore

* init

* Update backend.py

* Update main.tsx

* Update no_import.py

* Update session_controller.py

* indents

* adjust window size

* update keys

* re-add save session for pywry login

* pop response keys on rename

* walrus remember

* use session username for profile

* implement logout clearing of cookies

* don't display welcome when logging in from `account` menu

* Update session_model.py

* Update session_model.py

* customdata handler for charts

* fix remember key

* only slice data if chandlestick trace in data

* Update profile_model.py

* Update streamlit_run.py

* Update plotly.html

* test

* Update loggers.py

* updates

* Update session_controller.py

* Update session_controller.py

* no longer need to call_hub for logout

* tests

* Update test_session_controller.py

* Update profile_model.py

* bump pywry, fix numbers passed as strings tables

* update plotly frontend packages

* formatting

* Update backend.py

* Update backend.py

* change to prod

* return on image export

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-06-20 17:47:38 +00:00
teh_coderer
e464b4ebbb fix theme fails if trace.marker.color isn't an array (#5144) 2023-06-15 13:12:06 +00:00
teh_coderer
4babd35ee6 fix chart overlay x column not set by default (#5142) 2023-06-14 21:44:29 +00:00
teh_coderer
73e59804fc hotfix/ Include plotly.js in reports html + Improve Charts in Reports (#5126)
* include plotly.js in reports html, implement new plotly multi-legends feature

* use `ensure_backend` to `check_backend`, improve charts in reports

* requirements files

* fix files with `CRLF` line endings

* Update widget_helpers.py

* Update widget_helpers.py

* handle unsupported plotly multiple legends version error
2023-06-12 14:10:13 +00:00
teh_coderer
a9da2a8216 hotfix/ tables pd.to_numeric (#5124)
* fix tables `pd.to_numeric`

* Update helper_funcs.py
2023-06-10 14:22:56 +00:00
teh_coderer
e040e9e6c4 fix wrong default for yaxisFixedRange (#5106) 2023-06-05 17:03:08 +00:00
teh_coderer
f4a5064f32 Hotfix/ Tables + Charts Issues (#5100)
* fix: year to string

* don't slice data if line chart, display message if sliced

* Update plotly.html

* improve autoscaling when data sliced

* fixes #5078
2023-06-05 13:20:34 +00:00
teh_coderer
a6a2268ddc Hotfix/ Candle --log (#5039)
* init... might break stuff

* fix

* clean up

* check if array for color keys
2023-05-18 16:24:29 +00:00
teh_coderer
b54c47e2e9 hotfix/ Charts Theme change not persisting (#5036)
* revert and fix bug introduced in #4546

* improve theme change in chart, add `theme.apply_style()` to settings_controller/hub config change
2023-05-17 14:38:13 +00:00
teh_coderer
fd0ad21873 fix modebar hide/show on hotkeys (#5026)
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-05-16 17:25:04 +00:00
teh_coderer
3e0309816c Hotfix/ Candle Lines, Tables/Charts Save (MacOS) (#5019)
* init

* fix tables save

* Update .gitignore

* Update utils.ts

* add volume to csv, fix `-` filename

* fixes #5020

* tests

* License year

* tests v1

* tests?

* Revert "tests?"

This reverts commit f837a6e0df.

* fix posthog

* Update test_get_debt.yaml

* tests

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-05-15 15:57:20 +00:00
teh_coderer
979930b9e8 feature / Refactor Interactive Charts to React (#4941)
* init

* fix tables

* add shortcuts

* handle svgs

* test

* test2

* test3

* Update loggers.py

* Update sdk_helpers.py

* Update loggers.py

* Update loggers.py

* updates

* updates

* update

* handle add text high/low for candlestick traces when updating

* adding save overlay to tables

* maybe fix

* prints

* asdf

* working

* working

* removing prints

* update

* fix no figure title text

* add trace labels space

* download finished popup for MacOS

* bump pywry

* update

* update table

* Update plotly_helper.py

* only format numbers over 10_000 on tables

* Delete generate_index.py

* turn off logs in generations

* update tables

* bump pywry, fix tables, added ichimoku ta indicator

* Update backend.py

* mypy

* update tables

* updates

* juan more

* tables

* test

* bump pywry

* bump pywry

* Update loggers.py

* test

* fixing some formatting

* add update button to indicators dashboard

* fix oecd dates to be full dates

* prepare charts/tables for pywry update

* Update poetry.lock

* Update finviz_view.py

* tests

* tests

* tests

* tests

* testss?

* tests

* Create test_call_func[call_sec-nasdaq_view.sec_filings-other_args37-called_with37].yaml

* testtss please

* Update loggers.py

* testss

* `with open(newline="\n")`

* tests

* tests -__-

* why

* Revert "`with open(newline="\n")`"

This reverts commit 554e0f53f4.

* Revert "why"

This reverts commit 89f1d9b823.

* Revert "tests -__-"

This reverts commit a9c694ae96.

* Revert "tests"

This reverts commit 5463249498.

* whelp

* .

* rename `streamlit.py` -> `streamlit_run.py`,  bump pywry/finviz/streamlit

* Update backend.py

* update

* Revert "update file"

---------

Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-05-11 17:38:12 +00:00
Disorder AA
d197abd16c feat(tables): AA-729 clear filters (#4996)
Co-authored-by: jose-donato <43375532+jose-donato@users.noreply.github.com>
2023-05-10 17:53:55 +00:00
teh_coderer
5f04749eb1 init (#4924) 2023-04-28 12:44:23 +00:00
teh_coderer
9026a41ff2 Feature / Logging (#4923)
* init

* updates

* Update loggers.py

* Update loggers.py

* sdk handling

* feature flag

* fix MOCKING_USER_PATH for windows

* Update loggers.py

* Update plotly.html

* updates

* Update parent_classes.py

* Update plotly.html

* add posthog to deps

* Update loggers.py
2023-04-28 12:43:57 +00:00
jose-donato
76134c7b0a Table issues (#4889)
* fix: table toast

* Update index.css

* fix: oo

---------

Co-authored-by: teh_coderer <me@tehcoderer.com>
2023-04-25 16:31:47 +00:00
teh_coderer
7f28d012cf Hotfix/ CSV plot candle - bump PyWry (#4895)
* Create .gitignore

* add fillcolor to Plot CSV candlestick trace, bump pywry

* Update backend.py

* Update backend.py
2023-04-25 15:13:18 +00:00
teh_coderer
7a4d4b4339 fix json (#4884) 2023-04-24 20:06:30 +00:00
teh_coderer
ea393dcfa8 Feature/ pywry posthog (#4860)
* posthog

* Update index.html

* remove console logs

* fix feature flag getting sent

* adding to frontend-components

* updates

* Update main.js

* alias

* Update backend.py

* Update backend.py

* tables handle null

* Update helper_funcs.py

* Update volatility_view.py

---------

Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com>
2023-04-24 19:36:46 +00:00
teh_coderer
98ec2959f0 Hotfix/ table fixes (#4848)
* Update helper_funcs.py

* init

* Update test_display_cashflow_comparison.txt

* Update test_display_cashflow_comparison.txt

* fix copy paste fail

* Update helper_funcs.py

* Update backend.py
2023-04-21 18:10:53 +00:00
jose-donato
93f9c72a4f About cmd + table fixes (#4825)
* fix: about cmd

* fix: colors, dragging, some more
2023-04-19 11:54:55 +00:00
jose-donato
1ed5a30fb5 Chart/Table fixes (#4765)
* fix: attempting dark mode toggle

* fix: added dark mode toggle to chart and source to table

* fix: reorganizing content

* fix: dark mode and locking first column

* was this so hard jose smh

* Wrong name

---------

Co-authored-by: teh_coderer <me@tehcoderer.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-04-18 13:36:35 +00:00
teh_coderer
0e9abc3a84 Feature/ Voila to Streamlit Dashboards (#4755)
* idk

* g

* idk

* init

* revert old push

* pylint

* ruff

* update

* mypy

* tests

* LF

* tests

* Update Futures.py

* tests?

* fix intraday candle breaks

* tests????

* remove matplotlib from settings controller, autocomplete for flair cmd

* Update test_settings_controller.py

* remove streamlit activate warnings as it's not needed anymore

* bump pywry

* fix daily date gaps

* Update pytrends

* Update terminal.spec

* Update terminal.spec

* Update terminal.spec

* Update macos-build.yml

* Update macos-build.yml

* Update windows10_build.yml

* Update terminal.spec

* streamlit

* streamlit configs

* test

* lint

* cmd source in charts

* Update dashboards_controller.py

* Update dashboards_controller.py

* Update backend.py

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-04-12 20:38:56 +00:00
jose-donato
52cf2f4d5f table fixes (#4666)
* fix: table fixes

* fix: tablaroni

* fix: pagination protection

* fix: dm much more

* fix: colors

* fix: colors

* fix: colors

* fix Timestamp on stocks `get_quote`

* fix `call_tob`  having `quote` as prog/docstring

---------

Co-authored-by: teh_coderer <me@tehcoderer.com>
2023-04-04 13:29:33 +00:00
jose-donato
165abe2480 Adds foundation for dark mode from user (#4623)
* fix: adds foundation for dark mode from user

* start theme sync with hub

* send chart_tables to backend

* last fix

* fix: pushed table html

* fix: footer size wasnt correct

---------

Co-authored-by: Diogo Sousa <montezdesousa@gmail.com>
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com>
2023-04-03 10:58:40 +00:00
teh_coderer
4861b4f261 init (#4636) 2023-03-30 14:51:08 +00:00
jose-donato
135dd7fcc6 Table improvements (#4578)
* fix: table pagination, darkmode, attribution

* fix: replaces generated html

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-03-27 18:27:23 +00:00
jose-donato
dbd466d381 New table design (#4485)
* fix: new table design

* fix: added trillions

* fixing some raw data

* fix: trying to fix global+resize

* feat: improving design

* fix: new styling and lot of reorganizing

* title fix

* feat: new html

* fix: bottom bar

* fix: table dates

* fix: table html

* fix: new filtering

* fix: new filtering

* fix: long

* Lint

* Lint again

* fix: beautiful james suggestions

* fix: some more fixes

* fix: typo

* fix economy bug

* feat: added toast to notify user and some more cleanup

* fix: more issues

* tests

* fix: james updates

* fix: added banner to charts as well

* fixing title

* better fix

* feat: added column resizing and any number of columns

* auto column width - poc

* feat: added colors toggle, support to display source, fixed some more issues

* fix: table deploy

* fix: table issue

* fix header

* fix: some fixes

* fix: remember pagination and default pagination to 30

* mypy

* Colins tests

* Fix economy test

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: teh_coderer <me@tehcoderer.com>
Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com>
2023-03-23 16:45:46 +00:00
jose-donato
40cfe8148d Interactive tables using react (#4386)
* 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 <tehcoderer@users.noreply.github.com>
Co-authored-by: jose-donato <jose-donato@users.noreply.github.com>

* 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 <me@tehcoderer.com>
Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com>
Co-authored-by: teh_coderer <tehcoderer@users.noreply.github.com>
Co-authored-by: jose-donato <jose-donato@users.noreply.github.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-03-13 17:50:48 +00:00