63d9c1e348
[Automatic] Updated components cache
2024-09-24 10:04:41 +00:00
9244eedc49
tts.openai.say doesn't need a language parameter - and its presence breaks playback
2024-09-24 12:03:24 +02:00
bc01cddee0
Bump version: 1.2.3 → 1.3.0
2024-09-23 21:38:00 +02:00
f81c0dad4c
[Automatic] Updated UI files
2024-09-23 01:52:22 +00:00
f42ed34f75
Merge pull request '[UI] Expose procedures as entities' ( #428 ) from 341/procedure-entities-ui into master
...
Reviewed-on: platypush/platypush#428
2024-09-23 03:50:14 +02:00
54a4c21882
Merge branch 'master' into 341/procedure-entities-ui
2024-09-23 03:48:51 +02:00
c48efe07bd
[Automatic] Updated components cache
2024-09-23 01:46:43 +00:00
e1547da794
Merge branch 'master' into 341/procedure-entities-ui
2024-09-23 03:46:15 +02:00
62737b5a95
Merge pull request '[Backend] Expose procedures as entities' ( #426 ) from 341/procedure-entities into master
...
Reviewed-on: platypush/platypush#426
2024-09-23 03:45:30 +02:00
8d8e1878bb
Updated CHANGELOG
2024-09-23 03:44:05 +02:00
393493550c
Merge branch '341/procedure-entities' into 341/procedure-entities-ui
2024-09-23 03:21:34 +02:00
38c1ebb90c
[alarm] Don't fail if no audio file is provided.
2024-09-23 03:20:55 +02:00
419c227ff8
[UI] Don't propagate click events in FileBrowser
.
...
That could otherwise close the parent component when `FileBrowser` is
running in a `Modal`.
2024-09-23 03:19:23 +02:00
d1da4803cf
[ #341 ] Adapted alarm
UI to the changes to the ProcedureEditor
component.
2024-09-23 03:17:20 +02:00
b6c0029208
[UI] Better color schemes for highlighed text.
2024-09-22 03:44:36 +02:00
8b621cbf30
[UI] Propagate dragend
events from Tile
components.
2024-09-22 03:43:46 +02:00
e5a2127ecb
[UI] s/stackoverflow-dark/monokai-sublime/ in extensions config page.
...
The dark blue YAML style used by `stackoverflow-dark` isn't very
readable on black background.
2024-09-22 02:49:14 +02:00
91c66cdd48
[UI] Fixed deprecated usage of the hljs.highlight API.
2024-09-22 02:36:43 +02:00
f6b3d34eff
[UI] Better handling of nested modals on the entities page.
...
If a modal was spawned from within an entity in a group, then the whole
group needs to get its zIndex bumped.
Otherwise, the modal component will be "caged" within the scope of the
parent and other entity groups will be rendered above it.
2024-09-22 01:43:25 +02:00
839948e4e6
[UI] Emit one and only one open/close modal event.
2024-09-22 01:41:52 +02:00
0d0665ca7c
[UI] Keep track of the number of stack modals.
2024-09-22 01:40:52 +02:00
6dd1d481d5
[ #341 ] Added support for dynamic context in procedure editor components.
2024-09-21 20:45:50 +02:00
dependabot[bot]
6d11f8d2ef
Bump body-parser and express in /platypush/backend/http/webapp
...
Bumps [body-parser](https://github.com/expressjs/body-parser ) and [express](https://github.com/expressjs/express ). These dependencies needed to be updated together.
Updates `body-parser` from 1.20.2 to 1.20.3
- [Release notes](https://github.com/expressjs/body-parser/releases )
- [Changelog](https://github.com/expressjs/body-parser/blob/master/HISTORY.md )
- [Commits](https://github.com/expressjs/body-parser/compare/1.20.2...1.20.3 )
Updates `express` from 4.19.2 to 4.21.0
- [Release notes](https://github.com/expressjs/express/releases )
- [Changelog](https://github.com/expressjs/express/blob/4.21.0/History.md )
- [Commits](https://github.com/expressjs/express/compare/4.19.2...4.21.0 )
---
updated-dependencies:
- dependency-name: body-parser
dependency-type: indirect
- dependency-name: express
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-09-21 10:38:59 +00:00
dependabot[bot]
5a3b6c3c07
Bump send and express in /platypush/backend/http/webapp
...
Bumps [send](https://github.com/pillarjs/send ) and [express](https://github.com/expressjs/express ). These dependencies needed to be updated together.
Updates `send` from 0.18.0 to 0.19.0
- [Release notes](https://github.com/pillarjs/send/releases )
- [Changelog](https://github.com/pillarjs/send/blob/master/HISTORY.md )
- [Commits](https://github.com/pillarjs/send/compare/0.18.0...0.19.0 )
Updates `express` from 4.19.2 to 4.21.0
- [Release notes](https://github.com/expressjs/express/releases )
- [Changelog](https://github.com/expressjs/express/blob/4.21.0/History.md )
- [Commits](https://github.com/expressjs/express/compare/4.19.2...4.21.0 )
---
updated-dependencies:
- dependency-name: send
dependency-type: indirect
- dependency-name: express
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-09-20 21:41:25 +00:00
dependabot[bot]
0758dcae92
Bump serve-static and express in /platypush/backend/http/webapp
...
Bumps [serve-static](https://github.com/expressjs/serve-static ) and [express](https://github.com/expressjs/express ). These dependencies needed to be updated together.
Updates `serve-static` from 1.15.0 to 1.16.2
- [Release notes](https://github.com/expressjs/serve-static/releases )
- [Changelog](https://github.com/expressjs/serve-static/blob/v1.16.2/HISTORY.md )
- [Commits](https://github.com/expressjs/serve-static/compare/v1.15.0...v1.16.2 )
Updates `express` from 4.19.2 to 4.21.0
- [Release notes](https://github.com/expressjs/express/releases )
- [Changelog](https://github.com/expressjs/express/blob/4.21.0/History.md )
- [Commits](https://github.com/expressjs/express/compare/4.19.2...4.21.0 )
---
updated-dependencies:
- dependency-name: serve-static
dependency-type: indirect
- dependency-name: express
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-09-20 21:17:35 +00:00
0e40d77bc7
Merge branch '341/procedure-entities' into 341/procedure-entities-ui
2024-09-16 03:20:03 +02:00
be8140ddb5
[procedure] Several improvements to the procedure engine.
...
- Add `set` statement, which can be used to set context variables within
YAML procedures. Example:
```yaml
procedure.test:
- set:
foo: bar
- action: logger.info
args:
msg: ${bar}
```
- More reliable flow control for nested break/continue/return.
- Propagate changes to context variables also to upstream procedures.
2024-09-16 03:16:53 +02:00
e7e76087c0
[ #341 ] Added support for setting variables in procedure editor.
2024-09-16 03:08:46 +02:00
dfbbea93fd
[ #341 ] Added UI for while
loops in procedure editor.
2024-09-15 02:06:23 +02:00
ab07fc0fa3
Merge branch '341/procedure-entities' into 341/procedure-entities-ui
2024-09-13 18:22:18 +02:00
771e32e368
[ #341 ] procedure._serialize_action
should also support strings.
2024-09-13 18:21:27 +02:00
156a6379d0
[ #341 ] Added for for/break/continue statements in procedure editor.
2024-09-13 18:19:02 +02:00
c4610254f8
Merge branch '341/procedure-entities' into 341/procedure-entities-ui
2024-09-12 02:16:32 +02:00
853fce2521
[procedures] Fixed if
queue flushing logic.
...
Any pending `if`s in the parsing queue of a procedure should also be
cleared if the current statement in the procedure is a
break/continue/return.
In such case we should terminate the current branch, and that involves
ensuring that any `if`s branches that are still being parsed are
inserted before the branch-terminating statement.
2024-09-12 02:14:40 +02:00
b337bf7a53
[ #341 ] Added return
block to ProcedureEditor
.
2024-09-12 02:02:27 +02:00
152c2020de
Merge branch '341/procedure-entities' into 341/procedure-entities-ui
2024-09-10 22:55:53 +02:00
daa030ff4c
[UI] Improved Draggable
component events.
...
`Draggable` components should emit `dragend`, not `drop` events.
`drop` should only be emitted by `Droppable` components, or the receiver
of a component that uses both won't be able to tell if a `drop` event
came from a component being dragged, or from an element where a dragged
element was dropped.
2024-09-10 22:54:12 +02:00
471ec1370c
[Procedure Editor] Added support for conditions and nested blocks.
2024-09-10 22:53:14 +02:00
202cff093f
[UI] Modals should react on escape only if the container element is present.
2024-09-10 22:42:50 +02:00
6eb8b7954d
[UI] Added styles for tiles.
2024-09-10 22:41:53 +02:00
0bc714d0e3
[UI] Added fold animation.
2024-09-10 22:41:35 +02:00
1e9f7fb2c6
[procedure] Added support for custom values on the return statement.
...
This enables constructs like this in procedures:
```yaml
- return
- return 1
- return: ${output}
```
2024-09-10 19:55:26 +02:00
946c7b1783
[procedure] Ignore id
field in Procedure.build
.
...
The reason is that an `id` specified on procedure level will be applied
to all the child requests.
This means that the first response from the first completed request will
be sent to Redis and mistakenly interpreted by HTTP listeners as the
return value of the whole procedure.
`Procedure.build` should instead calculate its own ID for the procedure,
and apply different IDs to the child requests.
2024-09-10 19:53:14 +02:00
5a7068501a
[request] The action name can be specified either on action
or name
.
...
This is for UI compatibility purposes.
2024-09-10 19:52:23 +02:00
efe2bb6196
Merge branch '341/procedure-entities' into 341/procedure-entities-ui
2024-09-06 12:04:32 +02:00
05b1fcd43a
[procedures] Don't validate the presence of the actions
field in procedures.save
.
...
When saving procedures with if/else/for blocks, some blocks aren't
supposed to have the `actions` field.
2024-09-06 11:55:03 +02:00
f18d0d8b74
[procedures] Recursive serialization in procedures.to_yaml
.
2024-09-06 11:53:35 +02:00
15cf611c95
[ #341 ] [UI] Implemented support for procedure entities.
...
- Added UI panel.
- Added support for entity types.
- Enhanced ability to edit procedures.
- Added ability to create, rename, edit, duplicate and delete stored
procedures.
- Added support for YAML dumps of non-Python procedures.
- Added support for visualizing Python procedures directly in their
source files.
2024-09-05 02:02:44 +02:00
bbfc5b32e6
[UI] Added integration icons to the ActionEditor autocomplete.
2024-09-05 02:00:52 +02:00
1133c6019a
[UI] Added general-purpose entity icon editor component.
2024-09-05 01:58:28 +02:00