389 Commits

Author SHA1 Message Date
Mose Müller
06bf5fb539 fix: serializing enum properties 2023-10-10 12:18:13 +02:00
Mose Müller
bdbb79e131 feat: removing "install_signal_handlers" method from protocol (would have been overwritten anyway) 2023-10-03 16:15:08 +02:00
Mose Müller
78b94d4fc8 feat: updating method docstring 2023-10-03 16:12:07 +02:00
Mose Müller
ee124ead89 removes buttons from number components 2023-09-14 10:17:25 +02:00
Mose Müller
bbee77e231 feat: adds simple functionality to buttons in number component 2023-09-14 10:12:51 +02:00
Mose Müller
27520864c4 frontend: 'instant update' defaults to false 2023-09-14 08:35:10 +02:00
Mose Müller
050a718e44 feat: highlighted digits are overwritten in number components 2023-09-14 08:28:38 +02:00
Mose Müller
d5cb1a1478 fix: ignoring flake8 error 2023-09-13 18:02:50 +02:00
Mose Müller
c12bb87b2b feat: removing superfluous property accesses 2023-09-13 17:56:23 +02:00
Mose Müller
76fb674fcd adds task_done_callback to each task
The task_done_callback function handles exceptions and emitting
a notification when the task has finished.
2023-08-18 16:25:13 +02:00
Mose Müller
e86fd1ffbe fix: intercepting rpyc-handled errors 2023-08-18 16:20:12 +02:00
Mose Müller
60984b6e13 fix: pyright error in helpers.py 2023-08-17 17:08:05 +02:00
Mose Müller
f132d71f60 feat: adds logging setup
- logging can now be configured using the setup_logging function and
  using the ENVIRONMENT env variable.
- using InterceptHandler to intercept standard logging towards the
  loguru sink
- forcing uvicorn to use the same handler
2023-08-17 17:05:44 +02:00
Mose Müller
fb6fac5f9a allways mount frontend files at port 8001
- files were previously only mounted when in production mode
2023-08-17 16:41:40 +02:00
Mose Müller
a2ce2e1116 update version.py to use metadata 2023-08-17 15:47:42 +02:00
Mose Müller
b275446960 adapts slider frontend component (highlights pressed settigns button) 2023-08-17 11:15:39 +02:00
Mose Müller
55620bc6e7 make Image collapsible in frontend 2023-08-16 11:14:52 +02:00
Mose Müller
6749603fee updating backend Image component
- using matplotlib typing instead of Figure class
- added some checks and logs
2023-08-16 11:02:59 +02:00
carmelom
245db9aa8f Add load_ options for Image component 2023-08-15 18:12:21 +02:00
Mose Müller
3a560e3364 update how to read from json serialization file 2023-08-14 16:29:05 +02:00
Mose Müller
d94b85f305 feat: updating serialization of functions 2023-08-10 15:48:45 +02:00
Mose Müller
f7579c3a89 feat: components implement their notifications now
- removing nestedObjectUtils and useNotification hook
- passing addNotification method to all components
- components can use the addNotification method to create their
  notifications
2023-08-10 15:07:49 +02:00
Mose Müller
04e0e9e8b2 feat: updating useNotification hook
- automatically generates id and timestamp
- components just have to provide a message
2023-08-10 11:05:07 +02:00
Mose Müller
6e4909ece5 feat: adding support for union type hint serialization 2023-08-10 10:48:20 +02:00
Mose Müller
48dd4d58b7 feat (frontend): adding useNotification hook 2023-08-10 10:47:22 +02:00
Mose Müller
a333de9957 feat: updating ImageComponent
- adding format
- adding method to read image from file
- adding method to load image from base64 byte string
2023-08-10 10:43:38 +02:00
Mose Müller
8d55f3b853 feat: adding first version of Image component 2023-08-09 17:48:27 +02:00
Mose Müller
4d66b6b27c feat: updating doc of attributes
Docs will only be serialized when its different from the
documentation of its type.
2023-08-09 16:49:14 +02:00
Mose Müller
d8aa944e6d using helper function to get component class names
The type of the DataService instance (and instances of derived classes)
should always be "DataService" unless it is a component.
Also changing some logic.
2023-08-09 16:26:33 +02:00
Mose Müller
304f2a7d91 fix: adding readonly keys to json serialization
- enums and methods didn't have that key so far
2023-08-09 15:48:49 +02:00
Mose Müller
c138dc405f fix: NumberSlider init function 2023-08-09 11:06:31 +02:00
Mose Müller
db3f0977c2 number slider: make step_size follow the passed type
step_size will be an integer if value is an integer
2023-08-09 10:57:39 +02:00
Mose Müller
a3be2e35eb NumberSlider: converting public attribute to float
- exception is value whose type can be controlled via "type"
2023-08-09 10:53:47 +02:00
Mose Müller
56e566d2b9 chore: using absolute import path 2023-08-09 10:45:22 +02:00
Mose Müller
779a23b320 fix. read-only attributes are not upated with values from json 2023-08-09 09:06:28 +02:00
Mose Müller
3bf2bd23ca frontend: npm run build 2023-08-08 16:43:21 +02:00
Mose Müller
b1dcceebf7 fix: version number is not read from pyproject.toml anymore 2023-08-08 14:12:46 +02:00
Mose Müller
3972b52f32 frontend: updating notification message 2023-08-07 16:19:52 +02:00
Mose Müller
6e8fa23a44 feat: moving notifications into separate component 2023-08-07 16:15:42 +02:00
Mose Müller
14c51a89a9 feat: formatting of notification message
- added function to get the value of a specified key in the serialized
DataService object by the full access path
- formatting notification message in "onNotify" function
2023-08-07 15:51:01 +02:00
Mose Müller
817b22ec85 feat: differentiating between exceptions and other notifications 2023-08-07 14:56:58 +02:00
Mose Müller
218d9f93c3 fixing linting issue 2023-08-07 14:43:06 +02:00
Mose Müller
9e0422fb50 updating __ini__.py files
- using full import paths
- removing some exports
2023-08-07 14:08:26 +02:00
Mose Müller
eed309590e feat: adding support for units
With `pint` as the unit package, the user can now define Quantities as
attributes of their DataService class. This will be rendered as a float
in the frontend application with the unit as an additional field
appended to the form.
2023-08-07 14:05:48 +02:00
Mose Müller
472f37c6d6 updating filename 2023-08-03 15:39:27 +02:00
Mose Müller
91ea07905d feat: adding time string to notifications 2023-08-03 15:30:34 +02:00
Mose Müller
b30295d840 feat: added frontend exception notifications 2023-08-03 15:18:32 +02:00
Mose Müller
85a171c33e cleaning up type hinting (using TYPE_CHECKING) 2023-08-03 14:44:14 +02:00
Mose Müller
cea831f72c fix: crashed if stopping a task that didn't run 2023-08-03 14:20:40 +02:00
Mose Müller
cf46dbbdde feat: adding frontend notifications for attribute updates 2023-08-03 12:00:25 +02:00