Commit graph

29 commits

Author SHA1 Message Date
Ayush Chaudhari
761751f269
feat: App-Defined Workflow Tasks and Server Scripts on Transition (#33255)
* feat: add workflow task doctypes

* chore: add Workflow Task to Script Type of Server Scripts

* chore: add description for Workflow Tasks

* feat: fetch dotted paths and corresponding names from hooks

* fix: use Select field instead of Autocomplete

* feat: execute tasks in the background on state transition

* fix: throw error when task not found

* fix: naming for transition task set by user

* fix: child table views

* feat: support for server scripts

* chore: comments and description

* fix: change the casing of docevent options

* fix: change test casing

* feat: Add Workflow Transition field to webhooks

* fix: temporarily remove filter

* feat: add webhooks as workflow actions

* test: test execution of synchronous app-defined methods and server scripts

* chore: shorten the description and change the fieldname of the field 'execute_asynchronously' to 'asynchronous'

* test: server script executipn

* fix: add field to UI

* test: change customer to domain

* test: change Customer to Domain

* fix: patch for change in webhook fields

* chore: fetch only used fields in get_all

* fix: don't run test logic in application code 🙂

* test: separate tests for workflow tasks

* Revert "fix: patch for change in webhook fields"

This reverts commit 2e9c51c43ca2b3698991fbe75cc4032368ab174c.

* chore: break into smaller functions

* test: webhooks with workflow tasks

isolate mock responses to test_sync_tasks

* Revert "fix: change test casing"

This reverts commit e2bad96ed01dea0a26d002ea44a1e0175525ed31.

* Revert "fix: change the casing of docevent options"

This reverts commit ddfc81bf775fad74225f25815b8e3e7b255dc9eb.

* fix: webhook casing

* fix: type hint for doc
2025-07-29 11:01:44 +05:30
Fisher Yu
ea61af2ceb
[fix] Add missing translate function call (#25747)
* Update Properties.vue

* Update store.js

* Update Section.vue

* Update list_settings.js

* Update grid_row.js

* Update list_settings.js

* chore: add in missing context for some strings

Co-authored-by: Corentin Flr <10946971+cogk@users.noreply.github.com>

* chore: formatting and lint fixes

Signed-off-by: Akhil Narang <me@akhilnarang.dev>

---------

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
Co-authored-by: Akhil Narang <me@akhilnarang.dev>
Co-authored-by: Corentin Flr <10946971+cogk@users.noreply.github.com>
2024-04-12 14:39:02 +05:30
Fisher Yu
41a7b42f16
fix: Translate form and workflow builder (#25482)
* Update AttachControl.vue

* Update ButtonControl.vue

* Update CheckControl.vue

* Update CodeControl.vue

* Update DataControl.vue

* Update ImageControl.vue

* Update LinkControl.vue

* Update RatingControl.vue

* Update SelectControl.vue

* Update SignatureControl.vue

* Update TableControl.vue

* Update TextControl.vue

* Update TextEditorControl.vue

* Update Section.vue

* Update Column.vue

* Update Tabs.vue

* Update Field.vue

* Update Sidebar.vue

* Update AddFieldButton.vue

* Update AddFieldButton.vue

* Update Section.vue

* Update WorkflowBuilder.vue

* Update Autocomplete.vue

* Update EditableInput.vue

* Update AttachControl.vue

* Update ButtonControl.vue

* Update CheckControl.vue

* Update CodeControl.vue

* Update DataControl.vue

* Update ImageControl.vue

* Update LinkControl.vue

* Update RatingControl.vue

* Update SelectControl.vue

* Update SignatureControl.vue

* Update TextControl.vue

* Update TextEditorControl.vue

* Update Field.vue

* Update EditableInput.vue

* Update TableControl.vue

* Update Column.vue

* fix: variable in translatable string

* fix: add context for row number label

* fix: translate labels in workflow builder

* style: formatting

---------

Co-authored-by: barredterra <14891507+barredterra@users.noreply.github.com>
Co-authored-by: Ankush Menat <ankush@frappe.io>
2024-03-18 18:41:50 +05:30
barredterra
da1e8750c8 refactor: replace in_list(array, member) with array.includes(member) 2024-03-10 16:09:09 +01:00
猛火
854cebd5b1
fix: Solve the problem that the document editor will report an error when the type name includes multiple spaces (#23940) 2023-12-26 14:34:48 +05:30
Suraj Shetty
b4bc871aab style: Auto format vue file with prettier
- Ran pre-commit run --all-files
2023-11-13 11:26:00 +05:30
Sambasiva Suda
53c795f4b8
fix: Workflow Builder not updating diagram with added states/transitions in table (#22429)
Co-authored-by: Shariq Ansari <sharique.rik@gmail.com>
2023-10-03 17:13:51 +05:30
Shariq Ansari
191044a2c3 style: changed primary arrow color 2023-09-03 14:14:54 +05:30
Shariq Ansari
628bdd18d2 fix: allow to add all states even if it is already added 2023-07-16 13:40:06 +05:30
Shariq Ansari
6dfcd529d1 fix: max width for state and text center 2023-05-10 17:57:25 +05:30
Shariq Ansari
c3e6d7c620 fix: changed state shape
default fitview
2023-05-10 15:14:52 +05:30
Shariq Ansari
80d59a8cb5 fix: do not set selected as null if state/action loose focus becoz it is getting priority when we select another state while state is selected 2023-05-03 13:31:27 +05:30
Shariq Ansari
e01e5a92ef fix: load update_fields options 2023-05-03 02:06:59 +05:30
Shariq Ansari
5fccffb676 fix: move allow_edit property after doc_status 2023-05-03 02:01:47 +05:30
Shariq Ansari
f209474ba0 fix: on data change trigger history update for undo redo 2023-05-03 01:59:02 +05:30
Shariq Ansari
10c48a568c fix: only allow to select remaining states 2023-05-03 00:11:28 +05:30
Shariq Ansari
43dcda036b fix: select entire transition on edge/acess role/action click also deselect on blur 2023-05-03 00:05:57 +05:30
Shariq Ansari
5b21db8d2a fix: show Draft/Submitted/Cancelled instead of 0/1/2 in doc_status dropdown 2023-05-02 20:59:12 +05:30
Shariq Ansari
b6aa76b7ef fix: also include selected in undo redo object 2023-05-02 20:28:33 +05:30
Shariq Ansari
1384b65f5b fix: select state when added 2023-05-02 20:21:41 +05:30
Shariq Ansari
9ab905c46c fix: show state/transition data on sidebar on click 2023-05-02 20:09:47 +05:30
Shariq Ansari
5894286d1f fix: sidebar header 2023-05-02 19:27:32 +05:30
Shariq Ansari
8e9c2aa643 fix: resizable sidebar 2023-05-02 19:15:18 +05:30
Shariq Ansari
bcfd07be73 fix: added sidebar to show workflow data 2023-05-02 19:00:34 +05:30
Shariq Ansari
a10cf8d8e8 fix: also show role access for transition 2023-05-02 17:57:05 +05:30
Shariq Ansari
f258ca09ac fix: render states & transition by fetching workflow data 2023-05-02 17:55:46 +05:30
Shariq Ansari
4859a53d9d fix: updatable edge position with validation on connect & on edge update 2023-05-02 16:06:32 +05:30
Shariq Ansari
00b80aa0f5 fix: action node between to state node on connect
also added connection line
2023-05-02 15:47:52 +05:30
Shariq Ansari
42247bc31f fix: basic vueflow using custom node & edge 2023-05-02 12:28:49 +05:30