Commit Graph

773 Commits

Author SHA1 Message Date
8971cebfcd adds todos 2024-03-05 13:24:54 +01:00
f2cf0d9c1a fixes update of cache when the type has changed
When an attribute changes from, say, a quantity to an enumeration, the enum key in the serialization was not added to the
cache, and thus the frontend was not able to render the enum.
2024-03-05 13:23:26 +01:00
36c863e845 Merge pull request #107 from tiqi-group/fix/update_frontend_before_setting_state
Fix/update frontend before setting state
2024-03-05 13:20:54 +01:00
836c1e14df npm run build 2024-03-05 13:19:10 +01:00
dba036c6b3 do not try to update state if it is not yet set
This happens when the backend pushes updates before the frontend has received and set the state when loading the page, first.
2024-03-05 13:19:02 +01:00
8b1f1ef1b1 updates to version v0.7.2 v0.7.2 2024-03-04 17:46:44 +01:00
698db4881b Merge pull request #106 from tiqi-group/fix/enum_sio_callback
fixes sio callback when attribute changes to an enum which was not present before
2024-03-04 17:38:33 +01:00
d709d43d75 ignores complexity of sio_server setup (will be changed anyway soon 2024-03-04 17:36:09 +01:00
691bf809cb fixes sio callback when attribute changes to an enum which was not present before 2024-03-04 17:32:45 +01:00
86ccdd77f1 updates to version v0.7.1 v0.7.1 2024-03-04 11:52:06 +01:00
f29fb87054 Merge pull request #105 from tiqi-group/fix/enum_rendering
Fix/enum rendering
2024-03-04 11:51:31 +01:00
cf5bc1e4e6 npm run build 2024-03-04 11:48:22 +01:00
af36ed6c43 changes rendering of enums 2024-03-04 11:48:01 +01:00
853472be94 updates enumValue when backend value changes 2024-03-04 11:47:51 +01:00
f97a138e65 updates version to v0.7.0 v0.7.0 2024-02-28 11:37:07 +01:00
e5d7f4709f Merge pull request #103 from tiqi-group/90-display-the-functions-its-names-differently-in-the-ui
feat: updates functions and how they are rendered
2024-02-28 11:28:04 +01:00
416ae6f0b4 updates Adding_Components.md to account for new component structure 2024-02-28 11:15:37 +01:00
8f0a9ad21a npm run build 2024-02-28 11:01:23 +01:00
6ed6fe5be1 cleanup: changing some frontend components 2024-02-28 10:59:28 +01:00
9c6323d38f updates Readme 2024-02-28 09:12:34 +01:00
5c11202e08 removes print statement 2024-02-27 18:04:09 +01:00
e551af68f9 adds image to Readme 2024-02-27 17:44:08 +01:00
e213931cb7 npm run build 2024-02-27 17:41:55 +01:00
fe29530eb6 updates Readme 2024-02-27 17:38:39 +01:00
151467b36f fixes tests 2024-02-27 17:38:09 +01:00
990add216c moves frontend decorator into decorators module 2024-02-27 17:35:35 +01:00
a05b703bb8 adds tests for methods exposed by DataService 2024-02-27 16:38:08 +01:00
9616c57c38 changes exception raised by @frontend decorator 2024-02-27 16:37:43 +01:00
a7ce321506 updates / fixes method serialization tests 2024-02-27 16:32:47 +01:00
a72a551f54 fixes tests for DataServiceCache and TaskManager 2024-02-27 16:19:11 +01:00
26689d8578 updates AsyncMethodComponent to work with backend 2024-02-27 16:07:54 +01:00
74fc5d9aab updates task serialization 2024-02-27 16:07:29 +01:00
da8d07a8b2 frontend decorator uses helper function (function_has_arguments) now 2024-02-27 15:59:35 +01:00
ca2182c19b tasks are not allowed to have arguments anymore 2024-02-27 15:59:35 +01:00
b2f828ff6f adds function_has_arguments helper function 2024-02-27 15:30:47 +01:00
affc63219f removes name from function signature parameter serialization 2024-02-27 14:35:09 +01:00
a01cf273fe fixes render_in_frontend function 2024-02-27 12:58:43 +01:00
acd0c80316 updated use of method components 2024-02-27 12:58:28 +01:00
2337aa9d6d only methods without arguments can be rendered 2024-02-27 12:58:08 +01:00
b6f6b3058e updates render_in_frontend method (takes async functions into account) 2024-02-27 11:32:18 +01:00
d33e9f9dbf method serialization contains signature instead of parameter key-value pair 2024-02-27 11:30:00 +01:00
53676131a6 replaces no_frontend decorator with "frontend" decorator 2024-02-27 11:28:42 +01:00
7f407ae6e7 extracts method to get default value of function keyword argument 2024-02-27 09:20:22 +01:00
3c2f425dee adds "no_frontend" decorator for emitting frontend rendering of method
The method serialization now contains a "frontend_render" key with boolean value.
2024-02-27 08:25:11 +01:00
ccc53c395e adds "name" key-value pair to DataService serialization 2024-02-27 08:13:09 +01:00
c672989768 Merge pull request #104 from tiqi-group/update/dependencies
Updates fastapi and uvicorn dependenciees
2024-02-26 09:41:37 +01:00
5ff279d5bd Updates fastapi and uvicorn dependenciees 2024-02-26 09:37:24 +01:00
883ec6d6ae updates MethodComponent
Keyword arguments have a default value now which is displayed in the frontend. The following types can be rendered now:
- numbers (ints, floats, quantities)
- enums (including coloured enums)

I still have to fix the `convert_argument_to_hinted_types` method to make Quantity and Enums work.
2024-02-21 16:30:47 +01:00
22fd2d099d stores enum value within component - now usable within method form 2024-02-21 16:20:58 +01:00
f8926ea823 prevents Enter key within StringComponent to submit form in MethodComponent 2024-02-21 16:09:28 +01:00