1085 Commits

Author SHA1 Message Date
dependabot[bot]
77408073aa
Bump eslint-plugin-jsx-a11y from 6.8.0 to 6.9.0 in /spiffworkflow-frontend (#1834)
* Bump eslint-plugin-jsx-a11y in /spiffworkflow-frontend

Bumps [eslint-plugin-jsx-a11y](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y) from 6.8.0 to 6.9.0.
- [Release notes](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/releases)
- [Changelog](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/main/CHANGELOG.md)
- [Commits](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/compare/v6.8.0...v6.9.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-jsx-a11y
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* ignore rule that we are ignoring elsewhere in file

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kevin Burnett <18027+burnettk@users.noreply.github.com>
Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2024-07-01 13:44:20 -07:00
Kevin Burnett
ee29319b83
Fix/message editor validator (#1825)
* Add eventBus to customForm

* Fix bpmnEvent Issue

* Update spiffworkflow-frontend/src/components/messages/MessageEditor.tsx

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* fixed linting issues w/ burnettk

---------

Co-authored-by: =theaubmov <ayoubaitlachgar98@gmail.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-06-26 11:02:21 -07:00
Kevin Burnett
ce6dc339c8
avoid prompt to save if no save button (#1806)
Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2024-06-25 07:36:49 -07:00
jasquat
5e3831f4d6
message-model-perm-check (#1805)
* check if user has permissions to messages before attempting call w/ burnettk

* fixed variable typo w/ burnettk

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-06-24 12:36:07 -07:00
jasquat
2b0d550ecd
draft-data-save-fix (#1795)
* search for the correct id when sending autosave events w/ burnettk

* added cypress test for draft data autosave w/ burnettk

* added comment w/ burnettk

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-06-21 13:37:26 -04:00
Ayoub Ait Lachgar
8472e83de5
Fix add message fire event (#1775)
* Fix add message fire event

* Remove comment code & log
2024-06-20 11:43:42 -07:00
dependabot[bot]
295c191c17
Bump jwt-decode from 3.1.2 to 4.0.0 in /spiffworkflow-frontend (#1691)
* Bump jwt-decode from 3.1.2 to 4.0.0 in /spiffworkflow-frontend

Bumps [jwt-decode](https://github.com/auth0/jwt-decode) from 3.1.2 to 4.0.0.
- [Release notes](https://github.com/auth0/jwt-decode/releases)
- [Changelog](https://github.com/auth0/jwt-decode/blob/main/CHANGELOG.md)
- [Commits](https://github.com/auth0/jwt-decode/compare/v3.1.2...v4.0.0)

---
updated-dependencies:
- dependency-name: jwt-decode
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* The jwtDecode function is now no longer the default export

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kevin Burnett <18027+burnettk@users.noreply.github.com>
Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2024-06-18 13:54:33 -07:00
Ayoub Ait Lachgar
81f2f6191b
Feature/message editor improved UI (#1754)
* retrieval_expressions should be a string and not an array in this context w/ burnettk

* Improve message editor ui

* Check if CorrelationProperties arent synced

* Merge Imporoved UI for messages

* some linting fixes

* more linting

* some updates for linting and updated bpmn-js-spiffworkflow w/ burnettk

* removed unused console.log w/ burnettk

* fix language w/ burnettk

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-06-18 15:15:25 -04:00
jasquat
657836e7da
task-data-in-loop-fix (#1748)
* pass the task guid in the id so base input gets re-rendered fully w/ burnettk

* use keys instead of ids w/ burnettk

* lint issues

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-06-18 14:25:02 -04:00
jasquat
d1dffb95de
date-formatting-fix (#1746)
* use a regex to determine if a date is potentially valid

* added test back in

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-06-17 11:37:01 -07:00
jasquat
e4b2111120
allow displaying 500 or 1000 items on message list table w/ burnettk (#1705)
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-06-10 16:43:32 -04:00
jasquat
1f24842ec1
updated configs so eslint and typecheck both run and return errors (#1704)
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-06-10 11:38:32 -07:00
Kevin Burnett
eae5f7dd2d
the big message improvements branch (#1549)
* imported patch from old message_improvements branch w/ burnettk

* wip.

* merging in changes from message_improvements

* remove patch files that were accidendetally added.

* Added a modal for editing a correlation.  Added ability to delete whole correlation keys.
A little css cleanup.

* * Removing migration - will add back in at the end.
* The Message models API should not require page and per_age parameters, it will return all.
* The Message model list should return a full json description of all messages/correlations for all containing groups.
*

* wip

* Add import, fix class name

* Getting ./bin/pyl to pass

* Getting ./bin/pyl to pass

* Some fe lint fixes

* Some ruff fixes

* Commands to nuke poetry dirs

* Temp skipping of a couple tests

* Getting ./bin/pyl to pass

* This needs to be back in

* Revert back to main

* Factored out data store handling

* Working on factoring out collecting messages, has test failure

* Formatting

* Fixed up test failures

* Remove commentted out lines

* Adding fields

* Fix merge issue

* Re-enable modal

* WIP

* Untested relationships

* Remove correlation key table

* Remove retrieval expression from uniqueness

* Remove commentted out lines

* WIP

* WIP

* WIP

* WIP

* WIP

* Make mypy pass

* Getting formatters to pass

* Add migration

* WIP fixing tests

* WIP fixing tests

* WIP fixing tests

* WIP fixing tests

* WIP fixing tests

* Getting ./bin/pyl to pass

* Fix skipped test

* Fix skipped test

* Getting ./bin/pyl to pass

* Remove unused method

* Remove unused methods

* Clean up unused code

* Refactor to support creating single messages from the UI

* Untested support for processing one process_group

* WIP test

* WIP test

* Filled out test

* Getting ./bin/pyl to pass

* Message Editor Modal Work

* Change migration and add in schemas.

* Swtich to using the associated branch of the process BPMN.io mods

* Get the backend returning messages created from the frontend to the drop down list in the BPMN.io editor.

* Merge main, fix up test

* Getting ./bin/pyl to pass

* Show path in location

* Rename var

* install packages from bpmn-js-spiffworkflow as well for local development

* process group api can add and update message models now w/ burnettk

* backend tests are passing now w/ burnettk

* the launch message edit button is loading the editor w/ burnettk

* updated bpmn-js-spiffworkflow

* pyl is passing w/ burnettk

* updated bpmn-js-spiffworkflow w/ burnettk

* updated bpmn-js-spiffworkflow w/ burnettk

* fixed console errors w/ burnettk

* a couple tweaks w/ burnettk

* save the message json in the new format from the mform w/ burnettk

* display the correlation props in the form w/ burnettk

* default to empty schema so the format is obvious

* allow removing correlation props from web ui w/ burnettk

* added save notification when saving a message on a process model w/ burnettk

* fixed broken test w/ burnettk

* Updating test cases to new message format, tests are failing

* support schema from messages in frontend

* Fixing tests

* Fixing tests

* Fixing tests

* removed references to correlation keys and removed unused components w/ burnettk

* removed temp mesasge model edit button w/ burnettk

* Make mypy pass

* Fixing tests

* Fixing tests

* Getting ./bin/pyl to pass

* save deleted messages before attempting to add new ones w/ burnettk

* set state for the message id so it can be changed w/ burnettk

* do not wait for the message id to be set since it is not necessary w/ burnettk

* updated bpmn-js-spiffworkflow w/ burnettk

* build images for this branch w/ burnettk

* put location in path of message-models so we can control permissions on it w/ burnettk

* fix black

* some coderabbit suggestions

* pull in spiff fix

* Default schema to {}

* Temp fix for invalid schema

* updated bpmn-js-spiffworkflow

* some updates for issue 1626

* minor name tweaks and attempts to update message dropdown in panel when message changes - does not work yet w/ burnettk

* updated bpmn-js-spiffworkflow w/ burnettk

* attempt to call add_message.returned event when message updates w/ burnettk

* treat formData as a state in the MesasgeEditor so it can be updated when the form contents is modified w/ burnettk

* updated bpmn-js-spiffworkflow w/ burnettk

* Feature/merge correlation properties (#1693)

* Merge XML Correlation properties with Process group properties

* updates for messages w/ burnettk

---------

Co-authored-by: theaubmov <ayoubaitlachgar98@gmail.com>
Co-authored-by: jasquat <jasquat@users.noreply.github.com>

* do not wait for message id state to be set to better support new messages w/ burnettk

* updated SpiffWorkflow w/ burnettk

* some cleanup from coderabbit and linting

* added index to message tables, run typecheck in ci, and other updates while code reviewing w/ burnettk

* updated bpmn-js-spiffworkflow w/ burnettk

* remove branch to build

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
Co-authored-by: danfunk <daniel.h.funk@gmail.com>
Co-authored-by: Jon Herron <jon.herron@yahoo.com>
Co-authored-by: burnettk <burnettk@users.noreply.github.com>
Co-authored-by: jasquat <2487833+jasquat@users.noreply.github.com>
Co-authored-by: theaubmov <ayoubaitlachgar98@gmail.com>
2024-06-10 09:15:54 -07:00
Sky
03d35bcfe9
feat: Add bpmn-js-cli to model diagram with cli commands, see https://github.com/bpmn-io/bpmn-js-cli (#1696) 2024-06-10 07:34:32 -07:00
jasquat
9150bb74b0
rjsf-errors-on-array-template (#1683)
* display error messages on the ArrayFieldTemplate for item list errors

* do not change things that do not need it

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-06-05 14:31:59 -04:00
jasquat
c7c2d61e78
format fe files based on new prettier w/ burnettk (#1674)
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-06-04 15:48:04 -04:00
jasquat
a988e7691a
keep query params when navigating to process instance short link w/ burnettk 2024-06-04 15:47:11 -04:00
jasquat
fe2a8da9e9
date-range-fix (#1673)
* add debounce to date input fields in date range picker to properly format dates w/ burnettk

* use descriptive ruff ids for pre-commit w/ burnettk

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-06-04 11:26:40 -07:00
jasquat
5cc86a8792
check if min and max values are undefined explicitly when attempting to validate to avoid issues with zero w/ burnettk (#1672)
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-06-04 13:54:40 -04:00
dependabot[bot]
ffaf649cba
Bump prettier from 2.8.7 to 3.3.0 in /spiffworkflow-frontend (#1660)
* Bump prettier from 2.8.7 to 3.3.0 in /spiffworkflow-frontend

Bumps [prettier](https://github.com/prettier/prettier) from 2.8.7 to 3.3.0.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.8.7...3.3.0)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* format with prettier

* updated eslint-plugin-prettier to resolve lint issues

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-06-04 11:35:22 -04:00
jasquat
570ee32bb4
moved the input element from BaseInputTemplate to FileWidget for more contorl (#1667)
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-06-04 10:53:49 -04:00
jasquat
b301af190c
rjsf-fileupload-error-indicator (#1661)
* added formatting to filewidget when it gives an error w/ burnettk

* use the mui icon button for the file remove rjsf button w/ burnettk

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-06-03 13:25:14 -04:00
jasquat
59c1086d55
Pi fix pm gone (#1648)
* some better error logging when the background processor fails w/ burnettk

* handle process model not found issues better and do not raise in handle exception if it is missing w/ burnettk

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-05-31 10:12:43 -04:00
jasquat
3de5fb34a2
ensure the form editor is ready before attempting to update example data w/ burnettk (#1639)
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-05-29 16:27:35 -04:00
jasquat
9153de0538
ProcessInstanceShow loading icon should not be an overlay w/ burnettk 2024-05-28 11:41:48 -04:00
jasquat
b92cebc9ff
load what can be loaded on the pi show page while task-info loads w/ burnettk (#1600)
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-05-23 11:57:58 -04:00
jbirddog
5bf3ea0db2
Detect duplicate process ids when uploading/creating a new file (#1581)
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-05-22 12:18:44 -04:00
Kevin Burnett
154be22161
fixed the select widget and text fields so they are no longer so slow when typing (#1573)
* fixed the select widget and text fields so they are no longer so slow when typing

* attempt to wait a little after typing in cypress tests for the debounce w/ burnettk

* fixed onChangeOverride issue w/ burnettk

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-05-22 11:07:23 -04:00
jasquat
a402bfc4fd
fix-file-upload (#1583)
* handle file upload more like the way rjsf core is now handling it w/ burnettk

* removed unused module w/ burnettk

* use onChangeOverride if given w/ burnettk

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-05-21 12:40:01 -07:00
jasquat
41e293c37b
debounce date after 100 ms instead of 1s w/ burnettk (#1556)
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-05-15 07:22:58 -07:00
burnettk
384c28c1c3
get more code from old version of rjsf 2024-05-14 13:16:55 -04:00
Kevin Burnett
bbaabff508
upgrade rjsf and mui (#1523)
* upgrade rjsf and mui

* add jsdom

* smaller change to package-lock

* update processSelectValue with code direct from rjsf

---------

Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2024-05-10 09:00:24 -07:00
Kevin Burnett
d8da94c233
allowing switch form to MUI using ui:theme mui in the ui schema (#1482)
Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2024-05-03 13:32:57 -04:00
jasquat
b9e70d12a6
do not invalidate a numeric range field if it is unset and not required (#1478)
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-05-02 14:08:36 -04:00
jasquat
1495b7dac8
some additional fixes for the numeric range field (#1464)
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-04-29 13:04:21 -07:00
jasquat
40af8809a1
numeric-range-check-for-num (#1451)
* check to ensure the value entered in a numeric range is a number

* save the regex number matcher so it can be used in multiple places w/ burnettk

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-04-25 11:33:25 -04:00
jasquat
f773823008
Numeric range tweaks (#1445)
* tweaks to help with layout for numeric ranges

* use negative infinity for min

* remove some debug code

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-04-24 12:04:55 -04:00
jasquat
2b84fbad71
remove the collapse option from task show instructions (#1444)
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-04-24 09:37:48 -04:00
jasquat
a7a9927a5f
character-counter-fixes (#1432)
* carbon supports the counter field natively so use that w/ burnettk

* added docs for character counter fields w/ burnettk

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-04-22 14:54:15 -04:00
jasquat
a59f2777cd
added some padding above the radio button group on rjsf forms w/ burnettk (#1431)
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-04-22 11:31:18 -07:00
jasquat
5ba5727eec
do not force min and max to be set in numeric range fields w/ burnettk (#1430)
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
Co-authored-by: Kevin Burnett <18027+burnettk@users.noreply.github.com>
2024-04-22 13:31:50 -04:00
jasquat
b4fe793f51
Task show toggle instructions (#1429)
* added support to toggle full and collapsed instructions on the task show page w/ burnettk

* collapse task show instructions by default w/ burnettk

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-04-22 11:25:13 -04:00
jasquat
44687327ae
minor fixes for frontend console errors w/ burnettk 2024-04-22 11:24:41 -04:00
burnettk
0bfc4b7f20
always log body, and improve messaging 2024-04-18 16:24:39 -04:00
jasquat
1e9854f82a
show http error text in console only and not in on the page itself w/ burnettk 2024-04-18 15:00:50 -04:00
jasquat
91e988ff11
better-fe-error-handling (#1406)
* update error handling in HttpService to handle non-json responses better w/ burnettk

* fixed cypress tests

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-04-18 14:11:44 -04:00
jasquat
a99c36964d
mi-task-show-fix (#1412)
* check for mi tasks first before checking more newest in task show api w/ burnettk

* remove console

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2024-04-17 11:53:10 -07:00
jasquat
ebd5c60758
add query params back into admin redirect url w/ burnettk 2024-04-17 10:43:15 -04:00
jasquat
9147a8db8c
Use vite to build (#1390)
* some base updates for vite w/ burnettk

* i can log in w/ burnettk

* a couple more fixes w/ burnettk

* make sure selectedTabIndex has been set before using it w/ burnettk

* fixed active-users db issue, added type module to package json to fix prerender issues, and various other issues w/ burnettk

* fixed issues with building and running from compiled w/ burnettk

* pyl

* eslint fix is running and removed both inferno and navigationBar warnings

* vim likes the Dockerfile suffix by default

* use process.env.HOME

* probably do not need alias

* a little clean up and fixed font warnings w/ burnettk

* updated elements to remove warnings in the console w/ burnettk

* fixed es lint issues w/ burnettk

* update docker build in frontend w/ burnettk

* set the specific tag of nginx w/ burnettk

* build docker imgaes for this branch to test w/ burnettk

* added vitest and updated Dockerfile to be nginx w/ burnettk

* tests are passing w/ burnettk

* add prefresh and more keys

* added cypress-vite to attempt to get cypress working again

* some coderabbit suggestions

* hopefully there is no reason to use PUBLIC_URL at all when using vite

* use the correct location of the index file in the docker image

* spaces are fine in index.html file variable declaration

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2024-04-15 14:22:34 -04:00
jbirddog
afe95c5178
Remove unused component (#1377) 2024-04-10 13:07:48 -04:00