42 Commits

Author SHA1 Message Date
Dan Funk
8eb93802aa
Bug/various bugs (#499)
* The ErrorBoundary is super powerful and useful.  There is a default implementation that seems to be recommended now, so dropping our homegrown one for the standard one.

We can now render custom components when an error happens within an error boundary, and we can use error boundaries within sub-components as we now do in the reactFormBuilder which will capture form rendering errors, and allow you to fix the error and retry.

The more global ErrorBoundary set in the "ContainerForExtensions" now users a the ErrorBoundaryFallack to render the error - which looks a little cleaner, and tries to offer a little more information about what went wrong.
2023-09-19 09:08:57 -04:00
Dan Funk
8c7061b040
Feature/better form nav (#474)
* Detect focus loss/return in the Diagram Editor - so that we can reload the process model and assure that we know about any changed files.

Allow for looking specifically for json SCHEMA files (those files that are named -schema.json or .schema.json (as is the convention).  Only show these in the dropdown for the form.

* * Run descriptions through the markdown processor so you can use bold/italic etc... in your description fields within a form.
* Move ExampleTable into it's own view component to keep the size of the form builder sane.
* Assure markdown within jrsf forms have reasonable styling that follows the containers style, rather than setting to some other default.
* Add a couple of example forms so people can get a sense of what is possible.
* Connect up the new Json Schema Editor Component to the process model edit diagram.
* Just select the schema file - not the ui file when selecting the form for a component - we may revert this to just a text box.
*

* Cleanup the formatting of arrays, so that they are sligtly intended, do not contain an awkward unneeded heading, and have some tighter css.

* Connect the form editing in the modal back to the BPMN-JS editor

Auto-Save edits in the Form Builder

Lots and lots of tweaks to the react form builder ui

* various fixes.

* test for prepare_schema

* minor fix for run_pyl

* css cleanup
less issues with reloading and jumping about when in the editor
Don't sort keys when returning the json.
More intelligent "ready"

* bump package to point to branch of bpmn-js-spiffworkflow so others can check it out.

* Assure that json keys are not sorted during serialization by default.
Allow adding example fields to an existing schema

Create a set of examples.

* db complaints in migration change.

* removed items from interface file that had been moved elsewhere w/ burnettk

* rename prepare_form to prepare-form

* rename prepare_form to prepare-form

* Remove commented out code.

* typo

* add a comment about the empty column

* move back to the main branch

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2023-09-08 11:07:43 -04:00
danfunk
3f5c0b3df8 bumping version of BPMN-JS to 13.2.2 2023-09-01 14:14:40 -04:00
jasquat
48c16de0b7
upgraded cypress and moved code in helpers to ensure we do not need app code for cypress w/ burnettk (#431)
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2023-08-03 15:08:45 -04:00
jasquat
10453e395d
added a date range widget to frontend w/ burnettk (#392)
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2023-07-14 15:46:34 +05:30
jasquat
e69a1de7dc
use carbon components when adding secrets (#312)
* use carbon components when adding secrets

* docker compose pull before running up w/ burnettk

* use all carbon on script task unit test modal w/ burnettk

* removed remaining references to bootstrap from frontend w/ burnettk

* updated usage of hidden to use the class instead of the bootstrap attribute w/ burnettk

* print out docker version for debugging

* docker pull with docker instead of compose

* added comment for docker pull in check docker start script

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2023-06-08 14:26:14 -07:00
burnettk
e452b062bf
mostly frontend stuff: add version and doc links, autofix unused imports 2023-05-12 17:07:53 -04:00
Dan
739442d571 * Adding signal_buttons to tasks, which will prompt the frontend to display a button that when pressed will cause the signal to fire.
* This alters how the send_event endpoint responds - it originally responded with a process instance, it now responds with the next task, in keeping with how other task completion endpoints behave.
* I was forced to upgrade some of the bpmn-js libraries which fixes some of the linting errors on the front end.
* The "Return to home" button isn't always displayed.  It will not display when it is redirecting, or when the current task is running.
.
2023-05-02 13:40:41 -04:00
Dan
df6bf07186 a whole bunch of front end and backend changes that got mangled. 2023-04-26 16:22:50 -04:00
Dan
bab5646ac0 Merge remote-tracking branch 'origin/main' into feature/interstitial 2023-04-19 15:18:10 -04:00
jasquat
47d6ff322d
downgrade rjsf to last v5 beta version since the actual release breaks our usage of oneOf w/ burnettk 2023-04-18 15:19:16 -04:00
jasquat
7b4905451c
log filtering is working and downgraded react-router-dom since it broke editing bpmn diagrams w/ burnettk 2023-04-18 12:36:45 -04:00
jasquat
e06ad98021
merged in main and resolved conflicts w/ burnettk 2023-04-18 11:04:44 -04:00
jasquat
48ed3da06c
updated carbon react to 1.27 for react 18 support and updated all other libraries for it w/ burnettk 2023-04-17 16:25:10 -04:00
jasquat
daf57f14bc
some more log stuff using debounce w/ burnettk 2023-04-17 11:08:00 -04:00
Dan
b77789ff30 drop completed_tasks from the task_api object
Show the "next" task if no task is provided on the task_show api endpoint
Adding interstitial endpoint
Rename run to run_and_save
Remove repeated code from execution strategy
Adding interstital frontend page
2023-04-14 15:44:59 -04:00
Madhurya Liyanage
09b305543b Added cypress-file-upload 2023-04-06 20:01:54 +05:30
Dan
df49b15292 Use the same markdown library for displaying as for editing - could enable a security plugin, but doing so would prevent BPMN developers from using the Sub and Sup markdown supported by GitHub. 2023-02-06 12:14:15 -05:00
Dan
2b6b053671 TaskShow had a useEffect that depended on params, that dependency caused an infinite request cycle when an error occured.
The same issue was happening on the ProcessInstanceListTable, and there it was being managed by a "SafelySetErrorMessage" function in one case,
but would not be addressed in all possible cases.

Reworked error handling into a context provider (APIErrorProvider) and hook (UseApiError) and removed the "(useContext as any)(ErrorContext)[1];" that felt a little off but that never was an actual problem.
2023-01-25 10:46:56 -05:00
burnettk
8280318bc2 upgrade certifi to fix security vulnerability 2023-01-19 07:38:57 -05:00
jasquat
7b78ff42da do not navigate away from diagram editor page if there are changes w/ burnettk 2023-01-18 16:43:11 -05:00
jasquat
2630dbfb45 use the cookie from the frontend w/ burnettk 2023-01-11 17:27:12 -05:00
jasquat
c7300f39f5 updated rjsf to beta.16 and updated validations from v6 to v8 w/ burnettk 2023-01-10 15:15:21 -05:00
jasquat
7cfc08d620 some fixes for ci w/ burnettk 2022-12-14 17:09:43 -05:00
burnettk
b28d921ffc add inline errors 2022-11-16 18:16:55 -05:00
jasquat
b9c98a9760 support ts and js for lint and format commands w/ burnettk cullerton 2022-11-16 14:02:46 -05:00
jasquat
bb7324616b copied mui theme to use as base for carbon theme w/ burnettk cullerton 2022-11-16 13:59:09 -05:00
jasquat
c3c941126b theme working with mui from the internet w/ burnettk cullerton 2022-11-16 13:52:44 -05:00
jasquat
2c3e9760a6 attempting to add a theme w/ burnettk cullerton 2022-11-16 13:35:55 -05:00
burnettk
fbab4e0ea9 add cypress grep 2022-11-15 22:34:28 -05:00
jasquat
b62955deaa added permission service to frontend to allow checking for permissions w/ burnettk 2022-11-15 14:40:35 -05:00
Dan
175eb7af0c fixing up routes for launching editor.
Also some fixes in the bpmn-js-spiffworkflow to avoid locking up the browser if no files are available.
2022-11-09 12:03:55 -05:00
Dan
0d86657fa5 Merge commit '44e49e6ae6a1f644162489a27618c39194f4628d' into main 2022-11-07 14:35:49 -05:00
jasquat
5fc23bdb07 finished process instance list filter w/ burnettk 2022-11-02 14:54:02 -04:00
jasquat
41ddef1071 process instance list page is mostly set up now w/ burnettk 2022-11-01 16:26:24 -04:00
jasquat
6d69f4aaa1 merged in main and resolved conflicts w/ burnettk 2022-11-01 10:50:50 -04:00
jasquat
64bd610cfd updated bpmn-js-spiffworkflow w/ burnettk danfunk 2022-10-31 17:18:47 -04:00
jasquat
1ac7191588 added carbon react package w/ burnettk 2022-10-31 14:50:19 -04:00
Jon Herron
43151b9d3b Merge commit 'a087961fab0d73cc54f9cae658e9eb50ab060f96' 2022-10-13 20:45:09 -04:00
Jon Herron
858fd597b1 Merge main, resolve conflicts 2022-10-12 15:35:34 -04:00
Dan
eef943bf6e Updaging the jinja processing so it doesn't leave a bunch of blank lines in the markdown that has strong feelings about white space. Updating the front end to render markdown formatted instructions. And adding a little css love to tables that are generated in Markdown. 2022-10-12 13:28:57 -04:00
Jon Herron
28379f43d6 Merge commit '2382c3f0ab9502dddb9a3f6a8b32981f92bedc18' as 'spiffworkflow-frontend' 2022-10-12 10:21:49 -04:00