spiff-arena/src/config.tsx

84 lines
2.5 KiB
TypeScript
Raw Normal View History

Squashed 'spiffworkflow-frontend/' changes from 16dc9a7c4..d012f3a2c d012f3a2c added fix to SpiffWorkflow to deepcopy operation params before evaluating them w/ burnettk fa9b97410 basic support to find a process instance by id w/ burnettk 2071317e9 Merge branch 'main' into feature/process-nav-improvements e2c6c00dc fixed issue displaying task data for call activities called multiple times in a diagram w/ burnettk f42fca976 Merge branch 'main' into feature/process-nav-improvements c2a197d8b extract some duplicated text into vars to appease eslint 0221e4299 remove arbirary waits with no comments aa3d875e3 restore assertion cc5f511f0 Merge remote-tracking branch 'origin/main' into bug/cypress-tests b45a2d17b added ability to filter process instances by process initiator 2e1f02e18 pyl w/ burnettk 4875ff59a added process group display name to model search and cache the groups to avoid extra lookups w/ burnettk 2df091d71 merged in main and resolved conflicts 793d41f4c added new page to create process models using english text w/ burnettk 5107a8b5c allow specifying number of iterations 76ae5e51f adjust the process model file actions so they do not stack as easily w/ burnettk 1b72bf145 do not set baseUrl since it breaks auto-import and is not used otherwise w/ burnettk 056c08f86 cleaned up some debug code w/ burnettk ec9fb62f7 moved error display to own component w/ burnettk 357ea4a89 do not error when removing columns from instance column filters w/ burnettk dcb538896 added all users to waiting for column on task list tables w/ burnettk cf7ae42c6 Merge branch 'main' into feature/process-nav-improvements 831a956cf redirect to current step when resetting process instance 5287333e5 Merge branch 'feature/process_api_blueprint_refactor' of github.com:sartography/spiff-arena into feature/process_api_blueprint_refactor 19a57cb8f stats script cfdb682f7 allow tests to determine what paginated entity id to use to determine a table has loaded a49c985e5 improve button labels 36611724b allow option to complete single tasks with or without execution 4212645c4 add endpoint to reset process to earlier step 71a9368e7 Merge branch 'main' into feature/process-navigation d9f50a346 make pagination test work for instances as well 4d92fa739 fix another race conditions in instance cypress test 62c529528 delete videos on success and address race condition in cypress test 538b47b94 added better error message for failed tasks w/ burnettk 6fa96dc76 make sure we are using the same notification component on all pages w/ burnettk 7671f78a3 add baseUrl to cypress configs ddf835df1 Merge branch 'main' of github.com:sartography/spiff-arena 778f419e0 fixed some cypress tests and fixed issue where an invalid date caused the page to constantly reload w/ burnettk 74874b051 Revive report deletion (#85) e0cb7eef9 some cypress tests w/ burnettk bccfe02df added ability to view data objects from the process instance show page w/ burnettk 7b3c123b6 add an underscorize helper and use it for form fields where they need to be python identifiers e09ababa3 get the language a bit closer 0422a1005 link to correct instances page, fix fin users, ignore coverage files 9ab26e04d added method to add permissions based on macros w/ burnettk 9cba191fc Merge remote-tracking branch 'origin/main' into feature/bpmn_user_permissions 5ccbfcc1d fixing a linting error a4ed6c3fe pyl w/ burnettk d6ddc330f added permission to run privileged scripts w/ burnettk 7b5d78394 Merge pull request #79 from sartography/feature/better_unit_tests e969064cf Merge branch 'main' of github.com:sartography/spiff-arena into main 10b6b3537 A hot path that will assume the backend is running on a port that is one less than the front end port (rather than assuming 7000) Updating the docker-compose for all of SpiffArena so that it will fire up on ports 8000 -> 8004 rather than 7000 which has a common conflict with Apple AirPlay 152580859 lint and upgrade cypress 8ff2d6305 Merge remote-tracking branch 'origin/main' into bug/cypress-tests 8a595959a Merge remote-tracking branch 'origin/main' into feature/bpmn_user_permissions 0c053afef fixed get tasks and process instances by group w/ burnettk ef2eebc6d pyl w/ burnettk 934e7d75b merged in main and resolved conflicts w/ burnettk 3efd204ce added test for report filters w/ burnettk b0cc6c71b fix conflicts for like the thousandth time 4af838d39 process model show now only shows my instances 2577a7b9a fix getting task info for a process instance w/ burnettk f655377a8 created process instance list and show pages to handle all and for-me w/ burnettk fd4bb1981 fix conflicts yet again 42946bf09 merged in main and resolved conflicts w/ burnettk 3b3a2a531 fixed file upload and do not allow submitting task data to a suspended process instance w/ burnettk cd1ae938f updates to disallow modifying a process instance when it is not in the correct state w/ burnettk e86aeb750 do not allow editing task data for process instances that are not suspended and some code cleanup w/ burnettk 392537c03 Merge remote-tracking branch 'origin/main' into feature/bpmn_user_permissions 2082c9cd3 allow marking task complete without executing e20829e44 fix conflicts again 21df98582 added completed column to active task w/ burnettk b6b610f4d update url to allow permissions on send event e0579b9b0 Merge remote-tracking branch 'origin/main' into feature/process_instance_list_for_user 4b8dbf0be terminating a process instance is a POST w/ burnettk 9822719d4 some basic stuff for showing only relating items to user w/ burnettk 40a8ddd84 Bug fixes for Script Unit Test user interface -- don't bug out on invalid json. c9744ccf5 Merge remote-tracking branch 'origin/main' into feature/bpmn_user_permissions 7f7fddf7c fixed file upload of new files and get 1000 process models to list tiles page w/ burnettk 9a58bdab3 some more updates for text w/ burnettk 9397729e1 updated some text for task tables w/ burnettk 0cdc6654a merged in main and resolved conflicts w/ burnettk bdaaadaf8 merged in main and pyl passes 61848c75e Merge remote-tracking branch 'origin/main' into feature/better_unit_tests da1cd26d3 fix conflicts & update event url to match other process instance urls b3f984af4 fixed process model tests cb46389af fixed a path issue with the breadcrumb 02f9a2567 Merge branch 'feature/better_unit_tests' into feature/bpmn_user_permissions 940545fd7 Fixes a bug that was causing tests to be added to the incorrect task. Clean up UI for a better experience when viewing tests. fa7945778 Merge branch 'main' into feature/process-navigation 4a24f215a fix event UI 420274f2b Revert package-lock.json changes e8d449c63 Fix api endpoints for script unit tests c9a1ff0c5 working but barely functional UI for manually sending events 6c53a181c split out completed instances by group as well d07a2f5be updated group api so it is not under tasks 70098825b pyl 41b140ee1 split group task tables by group and created component for group tables bd8f68e94 some base work to try to get display names searchable for process models w/ burnettk git-subtree-dir: spiffworkflow-frontend git-subtree-split: d012f3a2c4a0516f040156997d6daf675197e294
2023-01-05 17:35:22 -05:00
const { port, hostname } = window.location;
let protocol = 'https';
Squashed 'spiffworkflow-frontend/' changes from 16dc9a7c4..d012f3a2c d012f3a2c added fix to SpiffWorkflow to deepcopy operation params before evaluating them w/ burnettk fa9b97410 basic support to find a process instance by id w/ burnettk 2071317e9 Merge branch 'main' into feature/process-nav-improvements e2c6c00dc fixed issue displaying task data for call activities called multiple times in a diagram w/ burnettk f42fca976 Merge branch 'main' into feature/process-nav-improvements c2a197d8b extract some duplicated text into vars to appease eslint 0221e4299 remove arbirary waits with no comments aa3d875e3 restore assertion cc5f511f0 Merge remote-tracking branch 'origin/main' into bug/cypress-tests b45a2d17b added ability to filter process instances by process initiator 2e1f02e18 pyl w/ burnettk 4875ff59a added process group display name to model search and cache the groups to avoid extra lookups w/ burnettk 2df091d71 merged in main and resolved conflicts 793d41f4c added new page to create process models using english text w/ burnettk 5107a8b5c allow specifying number of iterations 76ae5e51f adjust the process model file actions so they do not stack as easily w/ burnettk 1b72bf145 do not set baseUrl since it breaks auto-import and is not used otherwise w/ burnettk 056c08f86 cleaned up some debug code w/ burnettk ec9fb62f7 moved error display to own component w/ burnettk 357ea4a89 do not error when removing columns from instance column filters w/ burnettk dcb538896 added all users to waiting for column on task list tables w/ burnettk cf7ae42c6 Merge branch 'main' into feature/process-nav-improvements 831a956cf redirect to current step when resetting process instance 5287333e5 Merge branch 'feature/process_api_blueprint_refactor' of github.com:sartography/spiff-arena into feature/process_api_blueprint_refactor 19a57cb8f stats script cfdb682f7 allow tests to determine what paginated entity id to use to determine a table has loaded a49c985e5 improve button labels 36611724b allow option to complete single tasks with or without execution 4212645c4 add endpoint to reset process to earlier step 71a9368e7 Merge branch 'main' into feature/process-navigation d9f50a346 make pagination test work for instances as well 4d92fa739 fix another race conditions in instance cypress test 62c529528 delete videos on success and address race condition in cypress test 538b47b94 added better error message for failed tasks w/ burnettk 6fa96dc76 make sure we are using the same notification component on all pages w/ burnettk 7671f78a3 add baseUrl to cypress configs ddf835df1 Merge branch 'main' of github.com:sartography/spiff-arena 778f419e0 fixed some cypress tests and fixed issue where an invalid date caused the page to constantly reload w/ burnettk 74874b051 Revive report deletion (#85) e0cb7eef9 some cypress tests w/ burnettk bccfe02df added ability to view data objects from the process instance show page w/ burnettk 7b3c123b6 add an underscorize helper and use it for form fields where they need to be python identifiers e09ababa3 get the language a bit closer 0422a1005 link to correct instances page, fix fin users, ignore coverage files 9ab26e04d added method to add permissions based on macros w/ burnettk 9cba191fc Merge remote-tracking branch 'origin/main' into feature/bpmn_user_permissions 5ccbfcc1d fixing a linting error a4ed6c3fe pyl w/ burnettk d6ddc330f added permission to run privileged scripts w/ burnettk 7b5d78394 Merge pull request #79 from sartography/feature/better_unit_tests e969064cf Merge branch 'main' of github.com:sartography/spiff-arena into main 10b6b3537 A hot path that will assume the backend is running on a port that is one less than the front end port (rather than assuming 7000) Updating the docker-compose for all of SpiffArena so that it will fire up on ports 8000 -> 8004 rather than 7000 which has a common conflict with Apple AirPlay 152580859 lint and upgrade cypress 8ff2d6305 Merge remote-tracking branch 'origin/main' into bug/cypress-tests 8a595959a Merge remote-tracking branch 'origin/main' into feature/bpmn_user_permissions 0c053afef fixed get tasks and process instances by group w/ burnettk ef2eebc6d pyl w/ burnettk 934e7d75b merged in main and resolved conflicts w/ burnettk 3efd204ce added test for report filters w/ burnettk b0cc6c71b fix conflicts for like the thousandth time 4af838d39 process model show now only shows my instances 2577a7b9a fix getting task info for a process instance w/ burnettk f655377a8 created process instance list and show pages to handle all and for-me w/ burnettk fd4bb1981 fix conflicts yet again 42946bf09 merged in main and resolved conflicts w/ burnettk 3b3a2a531 fixed file upload and do not allow submitting task data to a suspended process instance w/ burnettk cd1ae938f updates to disallow modifying a process instance when it is not in the correct state w/ burnettk e86aeb750 do not allow editing task data for process instances that are not suspended and some code cleanup w/ burnettk 392537c03 Merge remote-tracking branch 'origin/main' into feature/bpmn_user_permissions 2082c9cd3 allow marking task complete without executing e20829e44 fix conflicts again 21df98582 added completed column to active task w/ burnettk b6b610f4d update url to allow permissions on send event e0579b9b0 Merge remote-tracking branch 'origin/main' into feature/process_instance_list_for_user 4b8dbf0be terminating a process instance is a POST w/ burnettk 9822719d4 some basic stuff for showing only relating items to user w/ burnettk 40a8ddd84 Bug fixes for Script Unit Test user interface -- don't bug out on invalid json. c9744ccf5 Merge remote-tracking branch 'origin/main' into feature/bpmn_user_permissions 7f7fddf7c fixed file upload of new files and get 1000 process models to list tiles page w/ burnettk 9a58bdab3 some more updates for text w/ burnettk 9397729e1 updated some text for task tables w/ burnettk 0cdc6654a merged in main and resolved conflicts w/ burnettk bdaaadaf8 merged in main and pyl passes 61848c75e Merge remote-tracking branch 'origin/main' into feature/better_unit_tests da1cd26d3 fix conflicts & update event url to match other process instance urls b3f984af4 fixed process model tests cb46389af fixed a path issue with the breadcrumb 02f9a2567 Merge branch 'feature/better_unit_tests' into feature/bpmn_user_permissions 940545fd7 Fixes a bug that was causing tests to be added to the incorrect task. Clean up UI for a better experience when viewing tests. fa7945778 Merge branch 'main' into feature/process-navigation 4a24f215a fix event UI 420274f2b Revert package-lock.json changes e8d449c63 Fix api endpoints for script unit tests c9a1ff0c5 working but barely functional UI for manually sending events 6c53a181c split out completed instances by group as well d07a2f5be updated group api so it is not under tasks 70098825b pyl 41b140ee1 split group task tables by group and created component for group tables bd8f68e94 some base work to try to get display names searchable for process models w/ burnettk git-subtree-dir: spiffworkflow-frontend git-subtree-split: d012f3a2c4a0516f040156997d6daf675197e294
2023-01-05 17:35:22 -05:00
Squashed 'spiffworkflow-frontend/' changes from f099c181..c22d22ba c22d22ba logs list page should respect the for-me variant dcc3e3b1 show help text for textareas as well w/ burnettk 35b8bf35 default to the for-me path on process instance show page links da646e54 added support to validate custom errors in nested properties in json schema forms 17412e9d make it so the message at the top of form is never strictly wrong 7dea59b7 adding some padding to form text inputs w/ burnettk 3f92f492 added ability to display the environment in the frontend header bar w/ burnettk 85246120 put the env vars in the env section of the github action configs w/ burnettk 58ff9075 added test for quickstart guide w/ burnettk 03e725b0 corrected cypress env var db755731 added some support for using the backend openid server for cypress tests w/ burnettk e76b6429 anything in the Tasks waiting for me table can now be completed by the current user 56403b4c users can always complete tasks on process instance show page and on task group table on home page w/ burnettk e2ab6eff avoid endless redirects on error on authentication list page w/ burnettk 66608837 bug fix 4781d5fc link to the spiff step from a task on the frontend and use the correct db in ci 69eb426c pyl w/ burnettk 3cf036b0 call activities are also working w/ burnettk 40b101a7 add assertions so this fails fast if anything changes in the future 74d2d3fa Update README.md 24c3c431 fix formatting ed977079 document runtime config e62427b9 do not fail if SPIFFWORKFLOW_FRONTEND_RUNTIME_CONFIG is missing 551bdf17 allow setting configs for the frontend through env vars w/ burnettk bc91c62c Merge remote-tracking branch 'origin/main' into frontend/use-api-subpath eeab0d0f 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. 28d6f75c When searching for human tasks to determine if the current user can complete it, filter on the "completed" flag. 34b36fe2 put setDisabled back in the awkward place since i was seeing the subsequent form stay disabled 4794a8cd Merge branch 'main' of github.com:sartography/spiff-arena into main 78b9ef73 Fix that dreadful unknown "KeyError" exception that was cropping up. Adding a bit of detail to the spiffworkflow exceptions when a duplicate process model is found. Disable the submit button on tasks after you click submit (avoid the double click and give users a better experience) d854a122 Merge pull request #125 from sartography/feature/dynamically-hide-fields-w-task-data eda73854 make form schema and form ui schema both dicts, add support for hiding fields based on task data bda549f3 Prevent double click on submit of forms. 3f02fa80 try to improve exception handling by avoiding raising ApiError from services 06835267 remove duplicate label on radio buttons 5d1e3517 less annoying file name for autocomplete c569acde frontend: use /api subpath instead of subdomain d3dda548 add deps for serve e6173efe Revert "revert Dockerfile until we get it working" 74103b97 revert Dockerfile until we get it working 8e9badd3 get bin as well for script df7a97e6 Merge pull request #116 from sartography/frontend/improve-dockerfile 7a17bc6f remove unneeded divs 2cf58c24 IBM says you can't have more columns than your parents, even if you try to start another grid, with kburnett abc85ee3 make task show wide, and make repeating form icons match site styles. w/ dfunk 6400827e even textareas need to have blank labels since labels are in FieldTemplate 462852d6 replace fieldTemplate with unthemed core version and remove labels since that is handled in there a50dd004 wrap field template so we can style with margin bottom e6a1ca97 new mechanism to handle help more in line with how carbon works cb6ce6b4 frontend: avoid redundant steps in Dockerfile b6b7ceeb we were expecting an object when doing this check, so codify it cfcfe292 use the 403 response to tell if a user has access to task data on the task show page w/ burnettk 355406e2 do not reset error state from the adminroutes component since this causes the error to be removed right away and then cannot be displayed w/ burnettk 3e7962cf if we get a result back it will be a task with a model identifier 0f043f72 use the ProcessInstanceTask interface where we can and move some stuff around better for useEffect 4ee4e5e0 run_pyl had various recommendations that I find a bit of a pain in the butt, but that I did anyway. 84e7d3fa Merge remote-tracking branch 'origin/main' into feature/jinja_errors acbc0a07 Added useMemo to error context No longer clear errors in the task bar, as that will constantly remove them as soon as they are shown. 19c3ab0e 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. c37224ec added the process model identifier for the diagram if it is not the top level w/ burnettk befefb6d Merge pull request #107 from sartography/feature/metadata_on_instance_show 65e42110 use a modal for metadata instead w/ burnettk 4a2f2a00 put process instance show page to match main w/ burnettk 0f1ab490 do not allow deleting primary bpmn file and do not allow instantiating models without a primary bpmn file w/ burnettk 3718f1a3 show metadata on instance show page but for some reason it reorders elements w/ burnettk 400a1469 add process model file name validation for new files w/ burnettk 132c5814 added locking system for process instances so hopefully background jobs will not take instances currently being run by the user w/ burnettk 3fa86949 make sure that all new form field elements are not dropdowns f69d3416 expanded functionality of the form builder 2453938f use the correct place for keycloak w/ burnettk 3d85a5f6 Merges 50d0a8e3 Lots of adjustments from running pyl Main change is in the ErrorDisplay.tsx to assure all error information is provided. and index.css to make it "pretty" git-subtree-dir: spiffworkflow-frontend git-subtree-split: c22d22ba5d8a96dca66a405d9c230284c81b4740
2023-02-23 10:49:57 -05:00
declare global {
interface SpiffworkflowFrontendJsenvObject {
[key: string]: string;
}
interface Window {
spiffworkflowFrontendJsenv: SpiffworkflowFrontendJsenvObject;
}
}
let spiffEnvironment = '';
let appRoutingStrategy = 'subdomain_based';
if ('spiffworkflowFrontendJsenv' in window) {
if ('APP_ROUTING_STRATEGY' in window.spiffworkflowFrontendJsenv) {
appRoutingStrategy = window.spiffworkflowFrontendJsenv.APP_ROUTING_STRATEGY;
}
if ('ENVIRONMENT_IDENTIFIER' in window.spiffworkflowFrontendJsenv) {
spiffEnvironment = window.spiffworkflowFrontendJsenv.ENVIRONMENT_IDENTIFIER;
}
}
let hostAndPortAndPathPrefix;
if (appRoutingStrategy === 'subdomain_based') {
hostAndPortAndPathPrefix = `api.${hostname}`;
} else if (appRoutingStrategy === 'path_based') {
hostAndPortAndPathPrefix = `${hostname}/api`;
} else {
throw new Error(`Invalid app routing strategy: ${appRoutingStrategy}`);
}
Squashed 'spiffworkflow-frontend/' changes from 16dc9a7c4..d012f3a2c d012f3a2c added fix to SpiffWorkflow to deepcopy operation params before evaluating them w/ burnettk fa9b97410 basic support to find a process instance by id w/ burnettk 2071317e9 Merge branch 'main' into feature/process-nav-improvements e2c6c00dc fixed issue displaying task data for call activities called multiple times in a diagram w/ burnettk f42fca976 Merge branch 'main' into feature/process-nav-improvements c2a197d8b extract some duplicated text into vars to appease eslint 0221e4299 remove arbirary waits with no comments aa3d875e3 restore assertion cc5f511f0 Merge remote-tracking branch 'origin/main' into bug/cypress-tests b45a2d17b added ability to filter process instances by process initiator 2e1f02e18 pyl w/ burnettk 4875ff59a added process group display name to model search and cache the groups to avoid extra lookups w/ burnettk 2df091d71 merged in main and resolved conflicts 793d41f4c added new page to create process models using english text w/ burnettk 5107a8b5c allow specifying number of iterations 76ae5e51f adjust the process model file actions so they do not stack as easily w/ burnettk 1b72bf145 do not set baseUrl since it breaks auto-import and is not used otherwise w/ burnettk 056c08f86 cleaned up some debug code w/ burnettk ec9fb62f7 moved error display to own component w/ burnettk 357ea4a89 do not error when removing columns from instance column filters w/ burnettk dcb538896 added all users to waiting for column on task list tables w/ burnettk cf7ae42c6 Merge branch 'main' into feature/process-nav-improvements 831a956cf redirect to current step when resetting process instance 5287333e5 Merge branch 'feature/process_api_blueprint_refactor' of github.com:sartography/spiff-arena into feature/process_api_blueprint_refactor 19a57cb8f stats script cfdb682f7 allow tests to determine what paginated entity id to use to determine a table has loaded a49c985e5 improve button labels 36611724b allow option to complete single tasks with or without execution 4212645c4 add endpoint to reset process to earlier step 71a9368e7 Merge branch 'main' into feature/process-navigation d9f50a346 make pagination test work for instances as well 4d92fa739 fix another race conditions in instance cypress test 62c529528 delete videos on success and address race condition in cypress test 538b47b94 added better error message for failed tasks w/ burnettk 6fa96dc76 make sure we are using the same notification component on all pages w/ burnettk 7671f78a3 add baseUrl to cypress configs ddf835df1 Merge branch 'main' of github.com:sartography/spiff-arena 778f419e0 fixed some cypress tests and fixed issue where an invalid date caused the page to constantly reload w/ burnettk 74874b051 Revive report deletion (#85) e0cb7eef9 some cypress tests w/ burnettk bccfe02df added ability to view data objects from the process instance show page w/ burnettk 7b3c123b6 add an underscorize helper and use it for form fields where they need to be python identifiers e09ababa3 get the language a bit closer 0422a1005 link to correct instances page, fix fin users, ignore coverage files 9ab26e04d added method to add permissions based on macros w/ burnettk 9cba191fc Merge remote-tracking branch 'origin/main' into feature/bpmn_user_permissions 5ccbfcc1d fixing a linting error a4ed6c3fe pyl w/ burnettk d6ddc330f added permission to run privileged scripts w/ burnettk 7b5d78394 Merge pull request #79 from sartography/feature/better_unit_tests e969064cf Merge branch 'main' of github.com:sartography/spiff-arena into main 10b6b3537 A hot path that will assume the backend is running on a port that is one less than the front end port (rather than assuming 7000) Updating the docker-compose for all of SpiffArena so that it will fire up on ports 8000 -> 8004 rather than 7000 which has a common conflict with Apple AirPlay 152580859 lint and upgrade cypress 8ff2d6305 Merge remote-tracking branch 'origin/main' into bug/cypress-tests 8a595959a Merge remote-tracking branch 'origin/main' into feature/bpmn_user_permissions 0c053afef fixed get tasks and process instances by group w/ burnettk ef2eebc6d pyl w/ burnettk 934e7d75b merged in main and resolved conflicts w/ burnettk 3efd204ce added test for report filters w/ burnettk b0cc6c71b fix conflicts for like the thousandth time 4af838d39 process model show now only shows my instances 2577a7b9a fix getting task info for a process instance w/ burnettk f655377a8 created process instance list and show pages to handle all and for-me w/ burnettk fd4bb1981 fix conflicts yet again 42946bf09 merged in main and resolved conflicts w/ burnettk 3b3a2a531 fixed file upload and do not allow submitting task data to a suspended process instance w/ burnettk cd1ae938f updates to disallow modifying a process instance when it is not in the correct state w/ burnettk e86aeb750 do not allow editing task data for process instances that are not suspended and some code cleanup w/ burnettk 392537c03 Merge remote-tracking branch 'origin/main' into feature/bpmn_user_permissions 2082c9cd3 allow marking task complete without executing e20829e44 fix conflicts again 21df98582 added completed column to active task w/ burnettk b6b610f4d update url to allow permissions on send event e0579b9b0 Merge remote-tracking branch 'origin/main' into feature/process_instance_list_for_user 4b8dbf0be terminating a process instance is a POST w/ burnettk 9822719d4 some basic stuff for showing only relating items to user w/ burnettk 40a8ddd84 Bug fixes for Script Unit Test user interface -- don't bug out on invalid json. c9744ccf5 Merge remote-tracking branch 'origin/main' into feature/bpmn_user_permissions 7f7fddf7c fixed file upload of new files and get 1000 process models to list tiles page w/ burnettk 9a58bdab3 some more updates for text w/ burnettk 9397729e1 updated some text for task tables w/ burnettk 0cdc6654a merged in main and resolved conflicts w/ burnettk bdaaadaf8 merged in main and pyl passes 61848c75e Merge remote-tracking branch 'origin/main' into feature/better_unit_tests da1cd26d3 fix conflicts & update event url to match other process instance urls b3f984af4 fixed process model tests cb46389af fixed a path issue with the breadcrumb 02f9a2567 Merge branch 'feature/better_unit_tests' into feature/bpmn_user_permissions 940545fd7 Fixes a bug that was causing tests to be added to the incorrect task. Clean up UI for a better experience when viewing tests. fa7945778 Merge branch 'main' into feature/process-navigation 4a24f215a fix event UI 420274f2b Revert package-lock.json changes e8d449c63 Fix api endpoints for script unit tests c9a1ff0c5 working but barely functional UI for manually sending events 6c53a181c split out completed instances by group as well d07a2f5be updated group api so it is not under tasks 70098825b pyl 41b140ee1 split group task tables by group and created component for group tables bd8f68e94 some base work to try to get display names searchable for process models w/ burnettk git-subtree-dir: spiffworkflow-frontend git-subtree-split: d012f3a2c4a0516f040156997d6daf675197e294
2023-01-05 17:35:22 -05:00
if (/^\d+\./.test(hostname) || hostname === 'localhost') {
let serverPort = 7000;
if (!Number.isNaN(Number(port))) {
serverPort = Number(port) - 1;
}
Squashed 'spiffworkflow-frontend/' changes from f099c181..c22d22ba c22d22ba logs list page should respect the for-me variant dcc3e3b1 show help text for textareas as well w/ burnettk 35b8bf35 default to the for-me path on process instance show page links da646e54 added support to validate custom errors in nested properties in json schema forms 17412e9d make it so the message at the top of form is never strictly wrong 7dea59b7 adding some padding to form text inputs w/ burnettk 3f92f492 added ability to display the environment in the frontend header bar w/ burnettk 85246120 put the env vars in the env section of the github action configs w/ burnettk 58ff9075 added test for quickstart guide w/ burnettk 03e725b0 corrected cypress env var db755731 added some support for using the backend openid server for cypress tests w/ burnettk e76b6429 anything in the Tasks waiting for me table can now be completed by the current user 56403b4c users can always complete tasks on process instance show page and on task group table on home page w/ burnettk e2ab6eff avoid endless redirects on error on authentication list page w/ burnettk 66608837 bug fix 4781d5fc link to the spiff step from a task on the frontend and use the correct db in ci 69eb426c pyl w/ burnettk 3cf036b0 call activities are also working w/ burnettk 40b101a7 add assertions so this fails fast if anything changes in the future 74d2d3fa Update README.md 24c3c431 fix formatting ed977079 document runtime config e62427b9 do not fail if SPIFFWORKFLOW_FRONTEND_RUNTIME_CONFIG is missing 551bdf17 allow setting configs for the frontend through env vars w/ burnettk bc91c62c Merge remote-tracking branch 'origin/main' into frontend/use-api-subpath eeab0d0f 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. 28d6f75c When searching for human tasks to determine if the current user can complete it, filter on the "completed" flag. 34b36fe2 put setDisabled back in the awkward place since i was seeing the subsequent form stay disabled 4794a8cd Merge branch 'main' of github.com:sartography/spiff-arena into main 78b9ef73 Fix that dreadful unknown "KeyError" exception that was cropping up. Adding a bit of detail to the spiffworkflow exceptions when a duplicate process model is found. Disable the submit button on tasks after you click submit (avoid the double click and give users a better experience) d854a122 Merge pull request #125 from sartography/feature/dynamically-hide-fields-w-task-data eda73854 make form schema and form ui schema both dicts, add support for hiding fields based on task data bda549f3 Prevent double click on submit of forms. 3f02fa80 try to improve exception handling by avoiding raising ApiError from services 06835267 remove duplicate label on radio buttons 5d1e3517 less annoying file name for autocomplete c569acde frontend: use /api subpath instead of subdomain d3dda548 add deps for serve e6173efe Revert "revert Dockerfile until we get it working" 74103b97 revert Dockerfile until we get it working 8e9badd3 get bin as well for script df7a97e6 Merge pull request #116 from sartography/frontend/improve-dockerfile 7a17bc6f remove unneeded divs 2cf58c24 IBM says you can't have more columns than your parents, even if you try to start another grid, with kburnett abc85ee3 make task show wide, and make repeating form icons match site styles. w/ dfunk 6400827e even textareas need to have blank labels since labels are in FieldTemplate 462852d6 replace fieldTemplate with unthemed core version and remove labels since that is handled in there a50dd004 wrap field template so we can style with margin bottom e6a1ca97 new mechanism to handle help more in line with how carbon works cb6ce6b4 frontend: avoid redundant steps in Dockerfile b6b7ceeb we were expecting an object when doing this check, so codify it cfcfe292 use the 403 response to tell if a user has access to task data on the task show page w/ burnettk 355406e2 do not reset error state from the adminroutes component since this causes the error to be removed right away and then cannot be displayed w/ burnettk 3e7962cf if we get a result back it will be a task with a model identifier 0f043f72 use the ProcessInstanceTask interface where we can and move some stuff around better for useEffect 4ee4e5e0 run_pyl had various recommendations that I find a bit of a pain in the butt, but that I did anyway. 84e7d3fa Merge remote-tracking branch 'origin/main' into feature/jinja_errors acbc0a07 Added useMemo to error context No longer clear errors in the task bar, as that will constantly remove them as soon as they are shown. 19c3ab0e 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. c37224ec added the process model identifier for the diagram if it is not the top level w/ burnettk befefb6d Merge pull request #107 from sartography/feature/metadata_on_instance_show 65e42110 use a modal for metadata instead w/ burnettk 4a2f2a00 put process instance show page to match main w/ burnettk 0f1ab490 do not allow deleting primary bpmn file and do not allow instantiating models without a primary bpmn file w/ burnettk 3718f1a3 show metadata on instance show page but for some reason it reorders elements w/ burnettk 400a1469 add process model file name validation for new files w/ burnettk 132c5814 added locking system for process instances so hopefully background jobs will not take instances currently being run by the user w/ burnettk 3fa86949 make sure that all new form field elements are not dropdowns f69d3416 expanded functionality of the form builder 2453938f use the correct place for keycloak w/ burnettk 3d85a5f6 Merges 50d0a8e3 Lots of adjustments from running pyl Main change is in the ErrorDisplay.tsx to assure all error information is provided. and index.css to make it "pretty" git-subtree-dir: spiffworkflow-frontend git-subtree-split: c22d22ba5d8a96dca66a405d9c230284c81b4740
2023-02-23 10:49:57 -05:00
hostAndPortAndPathPrefix = `${hostname}:${serverPort}`;
protocol = 'http';
Squashed 'spiffworkflow-frontend/' changes from f099c181..c22d22ba c22d22ba logs list page should respect the for-me variant dcc3e3b1 show help text for textareas as well w/ burnettk 35b8bf35 default to the for-me path on process instance show page links da646e54 added support to validate custom errors in nested properties in json schema forms 17412e9d make it so the message at the top of form is never strictly wrong 7dea59b7 adding some padding to form text inputs w/ burnettk 3f92f492 added ability to display the environment in the frontend header bar w/ burnettk 85246120 put the env vars in the env section of the github action configs w/ burnettk 58ff9075 added test for quickstart guide w/ burnettk 03e725b0 corrected cypress env var db755731 added some support for using the backend openid server for cypress tests w/ burnettk e76b6429 anything in the Tasks waiting for me table can now be completed by the current user 56403b4c users can always complete tasks on process instance show page and on task group table on home page w/ burnettk e2ab6eff avoid endless redirects on error on authentication list page w/ burnettk 66608837 bug fix 4781d5fc link to the spiff step from a task on the frontend and use the correct db in ci 69eb426c pyl w/ burnettk 3cf036b0 call activities are also working w/ burnettk 40b101a7 add assertions so this fails fast if anything changes in the future 74d2d3fa Update README.md 24c3c431 fix formatting ed977079 document runtime config e62427b9 do not fail if SPIFFWORKFLOW_FRONTEND_RUNTIME_CONFIG is missing 551bdf17 allow setting configs for the frontend through env vars w/ burnettk bc91c62c Merge remote-tracking branch 'origin/main' into frontend/use-api-subpath eeab0d0f 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. 28d6f75c When searching for human tasks to determine if the current user can complete it, filter on the "completed" flag. 34b36fe2 put setDisabled back in the awkward place since i was seeing the subsequent form stay disabled 4794a8cd Merge branch 'main' of github.com:sartography/spiff-arena into main 78b9ef73 Fix that dreadful unknown "KeyError" exception that was cropping up. Adding a bit of detail to the spiffworkflow exceptions when a duplicate process model is found. Disable the submit button on tasks after you click submit (avoid the double click and give users a better experience) d854a122 Merge pull request #125 from sartography/feature/dynamically-hide-fields-w-task-data eda73854 make form schema and form ui schema both dicts, add support for hiding fields based on task data bda549f3 Prevent double click on submit of forms. 3f02fa80 try to improve exception handling by avoiding raising ApiError from services 06835267 remove duplicate label on radio buttons 5d1e3517 less annoying file name for autocomplete c569acde frontend: use /api subpath instead of subdomain d3dda548 add deps for serve e6173efe Revert "revert Dockerfile until we get it working" 74103b97 revert Dockerfile until we get it working 8e9badd3 get bin as well for script df7a97e6 Merge pull request #116 from sartography/frontend/improve-dockerfile 7a17bc6f remove unneeded divs 2cf58c24 IBM says you can't have more columns than your parents, even if you try to start another grid, with kburnett abc85ee3 make task show wide, and make repeating form icons match site styles. w/ dfunk 6400827e even textareas need to have blank labels since labels are in FieldTemplate 462852d6 replace fieldTemplate with unthemed core version and remove labels since that is handled in there a50dd004 wrap field template so we can style with margin bottom e6a1ca97 new mechanism to handle help more in line with how carbon works cb6ce6b4 frontend: avoid redundant steps in Dockerfile b6b7ceeb we were expecting an object when doing this check, so codify it cfcfe292 use the 403 response to tell if a user has access to task data on the task show page w/ burnettk 355406e2 do not reset error state from the adminroutes component since this causes the error to be removed right away and then cannot be displayed w/ burnettk 3e7962cf if we get a result back it will be a task with a model identifier 0f043f72 use the ProcessInstanceTask interface where we can and move some stuff around better for useEffect 4ee4e5e0 run_pyl had various recommendations that I find a bit of a pain in the butt, but that I did anyway. 84e7d3fa Merge remote-tracking branch 'origin/main' into feature/jinja_errors acbc0a07 Added useMemo to error context No longer clear errors in the task bar, as that will constantly remove them as soon as they are shown. 19c3ab0e 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. c37224ec added the process model identifier for the diagram if it is not the top level w/ burnettk befefb6d Merge pull request #107 from sartography/feature/metadata_on_instance_show 65e42110 use a modal for metadata instead w/ burnettk 4a2f2a00 put process instance show page to match main w/ burnettk 0f1ab490 do not allow deleting primary bpmn file and do not allow instantiating models without a primary bpmn file w/ burnettk 3718f1a3 show metadata on instance show page but for some reason it reorders elements w/ burnettk 400a1469 add process model file name validation for new files w/ burnettk 132c5814 added locking system for process instances so hopefully background jobs will not take instances currently being run by the user w/ burnettk 3fa86949 make sure that all new form field elements are not dropdowns f69d3416 expanded functionality of the form builder 2453938f use the correct place for keycloak w/ burnettk 3d85a5f6 Merges 50d0a8e3 Lots of adjustments from running pyl Main change is in the ErrorDisplay.tsx to assure all error information is provided. and index.css to make it "pretty" git-subtree-dir: spiffworkflow-frontend git-subtree-split: c22d22ba5d8a96dca66a405d9c230284c81b4740
2023-02-23 10:49:57 -05:00
if (spiffEnvironment === '') {
// using destructuring on an array where we only want the first element
// seems super confusing for non-javascript devs to read so let's NOT do that.
// eslint-disable-next-line prefer-destructuring
spiffEnvironment = hostname.split('.')[0];
}
}
Squashed 'spiffworkflow-frontend/' changes from 16dc9a7c4..d012f3a2c d012f3a2c added fix to SpiffWorkflow to deepcopy operation params before evaluating them w/ burnettk fa9b97410 basic support to find a process instance by id w/ burnettk 2071317e9 Merge branch 'main' into feature/process-nav-improvements e2c6c00dc fixed issue displaying task data for call activities called multiple times in a diagram w/ burnettk f42fca976 Merge branch 'main' into feature/process-nav-improvements c2a197d8b extract some duplicated text into vars to appease eslint 0221e4299 remove arbirary waits with no comments aa3d875e3 restore assertion cc5f511f0 Merge remote-tracking branch 'origin/main' into bug/cypress-tests b45a2d17b added ability to filter process instances by process initiator 2e1f02e18 pyl w/ burnettk 4875ff59a added process group display name to model search and cache the groups to avoid extra lookups w/ burnettk 2df091d71 merged in main and resolved conflicts 793d41f4c added new page to create process models using english text w/ burnettk 5107a8b5c allow specifying number of iterations 76ae5e51f adjust the process model file actions so they do not stack as easily w/ burnettk 1b72bf145 do not set baseUrl since it breaks auto-import and is not used otherwise w/ burnettk 056c08f86 cleaned up some debug code w/ burnettk ec9fb62f7 moved error display to own component w/ burnettk 357ea4a89 do not error when removing columns from instance column filters w/ burnettk dcb538896 added all users to waiting for column on task list tables w/ burnettk cf7ae42c6 Merge branch 'main' into feature/process-nav-improvements 831a956cf redirect to current step when resetting process instance 5287333e5 Merge branch 'feature/process_api_blueprint_refactor' of github.com:sartography/spiff-arena into feature/process_api_blueprint_refactor 19a57cb8f stats script cfdb682f7 allow tests to determine what paginated entity id to use to determine a table has loaded a49c985e5 improve button labels 36611724b allow option to complete single tasks with or without execution 4212645c4 add endpoint to reset process to earlier step 71a9368e7 Merge branch 'main' into feature/process-navigation d9f50a346 make pagination test work for instances as well 4d92fa739 fix another race conditions in instance cypress test 62c529528 delete videos on success and address race condition in cypress test 538b47b94 added better error message for failed tasks w/ burnettk 6fa96dc76 make sure we are using the same notification component on all pages w/ burnettk 7671f78a3 add baseUrl to cypress configs ddf835df1 Merge branch 'main' of github.com:sartography/spiff-arena 778f419e0 fixed some cypress tests and fixed issue where an invalid date caused the page to constantly reload w/ burnettk 74874b051 Revive report deletion (#85) e0cb7eef9 some cypress tests w/ burnettk bccfe02df added ability to view data objects from the process instance show page w/ burnettk 7b3c123b6 add an underscorize helper and use it for form fields where they need to be python identifiers e09ababa3 get the language a bit closer 0422a1005 link to correct instances page, fix fin users, ignore coverage files 9ab26e04d added method to add permissions based on macros w/ burnettk 9cba191fc Merge remote-tracking branch 'origin/main' into feature/bpmn_user_permissions 5ccbfcc1d fixing a linting error a4ed6c3fe pyl w/ burnettk d6ddc330f added permission to run privileged scripts w/ burnettk 7b5d78394 Merge pull request #79 from sartography/feature/better_unit_tests e969064cf Merge branch 'main' of github.com:sartography/spiff-arena into main 10b6b3537 A hot path that will assume the backend is running on a port that is one less than the front end port (rather than assuming 7000) Updating the docker-compose for all of SpiffArena so that it will fire up on ports 8000 -> 8004 rather than 7000 which has a common conflict with Apple AirPlay 152580859 lint and upgrade cypress 8ff2d6305 Merge remote-tracking branch 'origin/main' into bug/cypress-tests 8a595959a Merge remote-tracking branch 'origin/main' into feature/bpmn_user_permissions 0c053afef fixed get tasks and process instances by group w/ burnettk ef2eebc6d pyl w/ burnettk 934e7d75b merged in main and resolved conflicts w/ burnettk 3efd204ce added test for report filters w/ burnettk b0cc6c71b fix conflicts for like the thousandth time 4af838d39 process model show now only shows my instances 2577a7b9a fix getting task info for a process instance w/ burnettk f655377a8 created process instance list and show pages to handle all and for-me w/ burnettk fd4bb1981 fix conflicts yet again 42946bf09 merged in main and resolved conflicts w/ burnettk 3b3a2a531 fixed file upload and do not allow submitting task data to a suspended process instance w/ burnettk cd1ae938f updates to disallow modifying a process instance when it is not in the correct state w/ burnettk e86aeb750 do not allow editing task data for process instances that are not suspended and some code cleanup w/ burnettk 392537c03 Merge remote-tracking branch 'origin/main' into feature/bpmn_user_permissions 2082c9cd3 allow marking task complete without executing e20829e44 fix conflicts again 21df98582 added completed column to active task w/ burnettk b6b610f4d update url to allow permissions on send event e0579b9b0 Merge remote-tracking branch 'origin/main' into feature/process_instance_list_for_user 4b8dbf0be terminating a process instance is a POST w/ burnettk 9822719d4 some basic stuff for showing only relating items to user w/ burnettk 40a8ddd84 Bug fixes for Script Unit Test user interface -- don't bug out on invalid json. c9744ccf5 Merge remote-tracking branch 'origin/main' into feature/bpmn_user_permissions 7f7fddf7c fixed file upload of new files and get 1000 process models to list tiles page w/ burnettk 9a58bdab3 some more updates for text w/ burnettk 9397729e1 updated some text for task tables w/ burnettk 0cdc6654a merged in main and resolved conflicts w/ burnettk bdaaadaf8 merged in main and pyl passes 61848c75e Merge remote-tracking branch 'origin/main' into feature/better_unit_tests da1cd26d3 fix conflicts & update event url to match other process instance urls b3f984af4 fixed process model tests cb46389af fixed a path issue with the breadcrumb 02f9a2567 Merge branch 'feature/better_unit_tests' into feature/bpmn_user_permissions 940545fd7 Fixes a bug that was causing tests to be added to the incorrect task. Clean up UI for a better experience when viewing tests. fa7945778 Merge branch 'main' into feature/process-navigation 4a24f215a fix event UI 420274f2b Revert package-lock.json changes e8d449c63 Fix api endpoints for script unit tests c9a1ff0c5 working but barely functional UI for manually sending events 6c53a181c split out completed instances by group as well d07a2f5be updated group api so it is not under tasks 70098825b pyl 41b140ee1 split group task tables by group and created component for group tables bd8f68e94 some base work to try to get display names searchable for process models w/ burnettk git-subtree-dir: spiffworkflow-frontend git-subtree-split: d012f3a2c4a0516f040156997d6daf675197e294
2023-01-05 17:35:22 -05:00
Squashed 'spiffworkflow-frontend/' changes from f099c181..c22d22ba c22d22ba logs list page should respect the for-me variant dcc3e3b1 show help text for textareas as well w/ burnettk 35b8bf35 default to the for-me path on process instance show page links da646e54 added support to validate custom errors in nested properties in json schema forms 17412e9d make it so the message at the top of form is never strictly wrong 7dea59b7 adding some padding to form text inputs w/ burnettk 3f92f492 added ability to display the environment in the frontend header bar w/ burnettk 85246120 put the env vars in the env section of the github action configs w/ burnettk 58ff9075 added test for quickstart guide w/ burnettk 03e725b0 corrected cypress env var db755731 added some support for using the backend openid server for cypress tests w/ burnettk e76b6429 anything in the Tasks waiting for me table can now be completed by the current user 56403b4c users can always complete tasks on process instance show page and on task group table on home page w/ burnettk e2ab6eff avoid endless redirects on error on authentication list page w/ burnettk 66608837 bug fix 4781d5fc link to the spiff step from a task on the frontend and use the correct db in ci 69eb426c pyl w/ burnettk 3cf036b0 call activities are also working w/ burnettk 40b101a7 add assertions so this fails fast if anything changes in the future 74d2d3fa Update README.md 24c3c431 fix formatting ed977079 document runtime config e62427b9 do not fail if SPIFFWORKFLOW_FRONTEND_RUNTIME_CONFIG is missing 551bdf17 allow setting configs for the frontend through env vars w/ burnettk bc91c62c Merge remote-tracking branch 'origin/main' into frontend/use-api-subpath eeab0d0f 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. 28d6f75c When searching for human tasks to determine if the current user can complete it, filter on the "completed" flag. 34b36fe2 put setDisabled back in the awkward place since i was seeing the subsequent form stay disabled 4794a8cd Merge branch 'main' of github.com:sartography/spiff-arena into main 78b9ef73 Fix that dreadful unknown "KeyError" exception that was cropping up. Adding a bit of detail to the spiffworkflow exceptions when a duplicate process model is found. Disable the submit button on tasks after you click submit (avoid the double click and give users a better experience) d854a122 Merge pull request #125 from sartography/feature/dynamically-hide-fields-w-task-data eda73854 make form schema and form ui schema both dicts, add support for hiding fields based on task data bda549f3 Prevent double click on submit of forms. 3f02fa80 try to improve exception handling by avoiding raising ApiError from services 06835267 remove duplicate label on radio buttons 5d1e3517 less annoying file name for autocomplete c569acde frontend: use /api subpath instead of subdomain d3dda548 add deps for serve e6173efe Revert "revert Dockerfile until we get it working" 74103b97 revert Dockerfile until we get it working 8e9badd3 get bin as well for script df7a97e6 Merge pull request #116 from sartography/frontend/improve-dockerfile 7a17bc6f remove unneeded divs 2cf58c24 IBM says you can't have more columns than your parents, even if you try to start another grid, with kburnett abc85ee3 make task show wide, and make repeating form icons match site styles. w/ dfunk 6400827e even textareas need to have blank labels since labels are in FieldTemplate 462852d6 replace fieldTemplate with unthemed core version and remove labels since that is handled in there a50dd004 wrap field template so we can style with margin bottom e6a1ca97 new mechanism to handle help more in line with how carbon works cb6ce6b4 frontend: avoid redundant steps in Dockerfile b6b7ceeb we were expecting an object when doing this check, so codify it cfcfe292 use the 403 response to tell if a user has access to task data on the task show page w/ burnettk 355406e2 do not reset error state from the adminroutes component since this causes the error to be removed right away and then cannot be displayed w/ burnettk 3e7962cf if we get a result back it will be a task with a model identifier 0f043f72 use the ProcessInstanceTask interface where we can and move some stuff around better for useEffect 4ee4e5e0 run_pyl had various recommendations that I find a bit of a pain in the butt, but that I did anyway. 84e7d3fa Merge remote-tracking branch 'origin/main' into feature/jinja_errors acbc0a07 Added useMemo to error context No longer clear errors in the task bar, as that will constantly remove them as soon as they are shown. 19c3ab0e 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. c37224ec added the process model identifier for the diagram if it is not the top level w/ burnettk befefb6d Merge pull request #107 from sartography/feature/metadata_on_instance_show 65e42110 use a modal for metadata instead w/ burnettk 4a2f2a00 put process instance show page to match main w/ burnettk 0f1ab490 do not allow deleting primary bpmn file and do not allow instantiating models without a primary bpmn file w/ burnettk 3718f1a3 show metadata on instance show page but for some reason it reorders elements w/ burnettk 400a1469 add process model file name validation for new files w/ burnettk 132c5814 added locking system for process instances so hopefully background jobs will not take instances currently being run by the user w/ burnettk 3fa86949 make sure that all new form field elements are not dropdowns f69d3416 expanded functionality of the form builder 2453938f use the correct place for keycloak w/ burnettk 3d85a5f6 Merges 50d0a8e3 Lots of adjustments from running pyl Main change is in the ErrorDisplay.tsx to assure all error information is provided. and index.css to make it "pretty" git-subtree-dir: spiffworkflow-frontend git-subtree-split: c22d22ba5d8a96dca66a405d9c230284c81b4740
2023-02-23 10:49:57 -05:00
if (
'spiffworkflowFrontendJsenv' in window &&
'APP_ROUTING_STRATEGY' in window.spiffworkflowFrontendJsenv
) {
appRoutingStrategy = window.spiffworkflowFrontendJsenv.APP_ROUTING_STRATEGY;
}
let url = `${protocol}://${hostAndPortAndPathPrefix}/v1.0`;
// this can only ever work locally since this is a static site.
// use spiffworkflowFrontendJsenv if you want to inject env vars
// that can be read by the static site.
Squashed 'spiffworkflow-frontend/' changes from 16dc9a7c4..d012f3a2c d012f3a2c added fix to SpiffWorkflow to deepcopy operation params before evaluating them w/ burnettk fa9b97410 basic support to find a process instance by id w/ burnettk 2071317e9 Merge branch 'main' into feature/process-nav-improvements e2c6c00dc fixed issue displaying task data for call activities called multiple times in a diagram w/ burnettk f42fca976 Merge branch 'main' into feature/process-nav-improvements c2a197d8b extract some duplicated text into vars to appease eslint 0221e4299 remove arbirary waits with no comments aa3d875e3 restore assertion cc5f511f0 Merge remote-tracking branch 'origin/main' into bug/cypress-tests b45a2d17b added ability to filter process instances by process initiator 2e1f02e18 pyl w/ burnettk 4875ff59a added process group display name to model search and cache the groups to avoid extra lookups w/ burnettk 2df091d71 merged in main and resolved conflicts 793d41f4c added new page to create process models using english text w/ burnettk 5107a8b5c allow specifying number of iterations 76ae5e51f adjust the process model file actions so they do not stack as easily w/ burnettk 1b72bf145 do not set baseUrl since it breaks auto-import and is not used otherwise w/ burnettk 056c08f86 cleaned up some debug code w/ burnettk ec9fb62f7 moved error display to own component w/ burnettk 357ea4a89 do not error when removing columns from instance column filters w/ burnettk dcb538896 added all users to waiting for column on task list tables w/ burnettk cf7ae42c6 Merge branch 'main' into feature/process-nav-improvements 831a956cf redirect to current step when resetting process instance 5287333e5 Merge branch 'feature/process_api_blueprint_refactor' of github.com:sartography/spiff-arena into feature/process_api_blueprint_refactor 19a57cb8f stats script cfdb682f7 allow tests to determine what paginated entity id to use to determine a table has loaded a49c985e5 improve button labels 36611724b allow option to complete single tasks with or without execution 4212645c4 add endpoint to reset process to earlier step 71a9368e7 Merge branch 'main' into feature/process-navigation d9f50a346 make pagination test work for instances as well 4d92fa739 fix another race conditions in instance cypress test 62c529528 delete videos on success and address race condition in cypress test 538b47b94 added better error message for failed tasks w/ burnettk 6fa96dc76 make sure we are using the same notification component on all pages w/ burnettk 7671f78a3 add baseUrl to cypress configs ddf835df1 Merge branch 'main' of github.com:sartography/spiff-arena 778f419e0 fixed some cypress tests and fixed issue where an invalid date caused the page to constantly reload w/ burnettk 74874b051 Revive report deletion (#85) e0cb7eef9 some cypress tests w/ burnettk bccfe02df added ability to view data objects from the process instance show page w/ burnettk 7b3c123b6 add an underscorize helper and use it for form fields where they need to be python identifiers e09ababa3 get the language a bit closer 0422a1005 link to correct instances page, fix fin users, ignore coverage files 9ab26e04d added method to add permissions based on macros w/ burnettk 9cba191fc Merge remote-tracking branch 'origin/main' into feature/bpmn_user_permissions 5ccbfcc1d fixing a linting error a4ed6c3fe pyl w/ burnettk d6ddc330f added permission to run privileged scripts w/ burnettk 7b5d78394 Merge pull request #79 from sartography/feature/better_unit_tests e969064cf Merge branch 'main' of github.com:sartography/spiff-arena into main 10b6b3537 A hot path that will assume the backend is running on a port that is one less than the front end port (rather than assuming 7000) Updating the docker-compose for all of SpiffArena so that it will fire up on ports 8000 -> 8004 rather than 7000 which has a common conflict with Apple AirPlay 152580859 lint and upgrade cypress 8ff2d6305 Merge remote-tracking branch 'origin/main' into bug/cypress-tests 8a595959a Merge remote-tracking branch 'origin/main' into feature/bpmn_user_permissions 0c053afef fixed get tasks and process instances by group w/ burnettk ef2eebc6d pyl w/ burnettk 934e7d75b merged in main and resolved conflicts w/ burnettk 3efd204ce added test for report filters w/ burnettk b0cc6c71b fix conflicts for like the thousandth time 4af838d39 process model show now only shows my instances 2577a7b9a fix getting task info for a process instance w/ burnettk f655377a8 created process instance list and show pages to handle all and for-me w/ burnettk fd4bb1981 fix conflicts yet again 42946bf09 merged in main and resolved conflicts w/ burnettk 3b3a2a531 fixed file upload and do not allow submitting task data to a suspended process instance w/ burnettk cd1ae938f updates to disallow modifying a process instance when it is not in the correct state w/ burnettk e86aeb750 do not allow editing task data for process instances that are not suspended and some code cleanup w/ burnettk 392537c03 Merge remote-tracking branch 'origin/main' into feature/bpmn_user_permissions 2082c9cd3 allow marking task complete without executing e20829e44 fix conflicts again 21df98582 added completed column to active task w/ burnettk b6b610f4d update url to allow permissions on send event e0579b9b0 Merge remote-tracking branch 'origin/main' into feature/process_instance_list_for_user 4b8dbf0be terminating a process instance is a POST w/ burnettk 9822719d4 some basic stuff for showing only relating items to user w/ burnettk 40a8ddd84 Bug fixes for Script Unit Test user interface -- don't bug out on invalid json. c9744ccf5 Merge remote-tracking branch 'origin/main' into feature/bpmn_user_permissions 7f7fddf7c fixed file upload of new files and get 1000 process models to list tiles page w/ burnettk 9a58bdab3 some more updates for text w/ burnettk 9397729e1 updated some text for task tables w/ burnettk 0cdc6654a merged in main and resolved conflicts w/ burnettk bdaaadaf8 merged in main and pyl passes 61848c75e Merge remote-tracking branch 'origin/main' into feature/better_unit_tests da1cd26d3 fix conflicts & update event url to match other process instance urls b3f984af4 fixed process model tests cb46389af fixed a path issue with the breadcrumb 02f9a2567 Merge branch 'feature/better_unit_tests' into feature/bpmn_user_permissions 940545fd7 Fixes a bug that was causing tests to be added to the incorrect task. Clean up UI for a better experience when viewing tests. fa7945778 Merge branch 'main' into feature/process-navigation 4a24f215a fix event UI 420274f2b Revert package-lock.json changes e8d449c63 Fix api endpoints for script unit tests c9a1ff0c5 working but barely functional UI for manually sending events 6c53a181c split out completed instances by group as well d07a2f5be updated group api so it is not under tasks 70098825b pyl 41b140ee1 split group task tables by group and created component for group tables bd8f68e94 some base work to try to get display names searchable for process models w/ burnettk git-subtree-dir: spiffworkflow-frontend git-subtree-split: d012f3a2c4a0516f040156997d6daf675197e294
2023-01-05 17:35:22 -05:00
if (process.env.REACT_APP_BACKEND_BASE_URL) {
url = process.env.REACT_APP_BACKEND_BASE_URL;
}
export const BACKEND_BASE_URL = url;
export const PROCESS_STATUSES = [
'not_started',
'user_input_required',
'waiting',
'complete',
'error',
'suspended',
Squashed 'spiffworkflow-frontend/' changes from 326040b3c..55607af93 55607af93 fixed broken test w/ burnettk 4ea766eb4 mypy w/ burnettk cullerton fd2239b0e added git creds for pushing on publish w/ burnettk cullerton 0281bec01 added new notification component that allows links based on carbons w/ burnettk cullerton 49190128c display URL to open PR *** Need to figure out how to turn this into a link *** 72b15c52c Return message to use on successful publish 4997375c8 Merge branch 'main' into feature/git-integration 39deda4d4 Merge branch 'main' into feature/git-integration 027dae1c6 First pass at git integration db0c8dc29 break process instance log list page into two tabs, simple and detailed d9df1104c get the columsn for the instance list table anytime filter options are displayed if empty 3792dafdb make the frontend uris match the api calls better w/ burnettk 7095e4723 more api cleanup w/ burnettk c514ac656 cleaned up more api routes for permissions w/ burnettk c758216ed updated tasks endpoint to task-data for easier permission setting w/ burnettk 7504e1857 pyl w/ burnettk b7edc501a Merge remote-tracking branch 'origin/main' into new_report 112eed7f3 some updates to fix up saving perspectives w/ burnettk 6da6ebe2d Use the identifier, not the id when locating a process model or dmn table. 51515ea21 using an array for metadata extraction paths now instead of dictionaries w/ burnettk f0b8e7185 added some support to add process model metadata. need to fix frontend w/ burnettk 0777bda31 filtering by metadata works w/ burnettk d82a00018 favor report id over identifier but support both and ui updates to allow setting a condition value on a metadata field, changing the display name, and fixes for saving and updating a report de218ba8e updated column form var w/ burnettk de38dc436 added ability to update the display name for perspective columns w/ burnettk 555360eb6 some updates for process instance reports and metadata w/ burnettk f0f4dcd89 better display for failure causes on message list w/ burnettk c4faf5d55 added correlations to message list table w/ burnettk 65feaeecf Merge remote-tracking branch 'origin/main' into new_report fe9dddc03 Choose new report f20d6ee75 Save dates b55a24a1c Save first status c47c62a6d added script to save process instance metadata and fixed permissions issue w/ burnettk cullerton a0098ebd9 Save selected process model 55ecbe565 Use current columns 6de52904e WIP bacf11bdc Save as report component 472578b99 adding the username to the report tables bef4add43 allow disabling the permission check for the Create New Instance page to improve performance. ab929fcaa Merge branch 'main' of github.com:sartography/spiff-arena into main 603db83cb "Continue" rather than "Submit" when displaying manual tasks. 5db42f0e0 Processes you can start is now: Processes I can start c5c6c0fac lint 6f0c58da8 Auto Reload the Process Lists on the home pages' in-progress, and complete tabs 54e8a4717 update bpmn-js-spiffworkflow with better data-object handling a72daa441 Clean up css for the filter icon c755889ae update wording per harmeet: Tasks for my open processes is now My open instances bda4a6ee3 heading for instances on model show page, move instances below files, add margins 21a3eea47 display name instead of id, margin under table sections, Download xml to Download 1d83e3ac1 do not mislead user about being able to edit and clean up time in words 07380eec7 auto refresh tasks waiting for my groups on homepage 710d2340a time ago in words for in progress tab per harmeet feedback 88c4be1bd put id before process like completed tab and add title text to explain what is happening fb4136892 use process model display name rather than id for completed instances tab 8031fda3a left align files section with Start button per harmeet feedback c339d7dec add fin1, lead1, and Tasks actioned by me to Tasks completed by me 951c21f39 improve wording ed38b57e8 consistency is key e09373027 remove View label next to process instance id 38d20ceab ui feedback 3c0284633 some ui changes w/ burnettk e3711f4fd updated copmleted table text w/ burnettk 0688f5ec1 updated instances table descriptions w/ burnettk e9e9b8e2e added descriptions to task tables w/ burnettk 9b1d61866 updated breadcrumb to use display name w/ burnettk a9895f472 Hide perspectives link in nav bar (#59) 77390519b rename process_groups_list to process_group_list and fix lint 31bb0facd some updates to ui homepage to align more with notion doc 12e719146 fixed cypress tests 476c19f72 fix typo b266273e4 some more perm updates for core user w/ burnettk 05161fbcb Start of system report filters (#57) f0e0732ab fixed editing a process model w/ burnettk b02b5a2e4 filter process models based on user permissions on the backend if specified w/ burnettk 29093932f use tiles for process models w/ burnettk cullerton ab24c28d9 updated recently viewed table to be recently run and added run button w/ burnettk cullerton 9f894a8a9 added link to process model tile w/ burnettk cullerton b7a0743a5 moved delete and edit model and group buttons to icons on show pages w/ burnettk cullerton 21f7fc917 created new users for keycloak and fixed some permissions for core user w/ burnettk cullerton bd5a55c04 renamed modifyProcessModelPath to modifyProcessIdentifierForPathParam w/ burnettk 55a59b5ed modify process group id before submitting w/ burnettk 58bf7e38d Allow switching between user defined reports (#56) ec29be773 added recursive option to process model list to recurse or not and fix some ui components 56ae0afe3 fixed task frontend test 5f8a8dd64 the misc group is now 99-Misc 467e9643c allow longer username 83f6185f1 fix tests and add frontend tests f3b5cb7ca upgrade apscheduler and fix mispelling cfe7172de added a script to add a user to a group w/ burnettk 976ca7320 task cypress tests are passing w/ burnettk cullerton aa1a62505 process model cypress tests are passing w/ burnettk cullerton e36012401 make sure to pass the correct form of process group id when creating a process model w/ burnettk cullerton 97a840d04 process instance cypress tests pass now w/ burnettk cullerton 86fdb302a allow getting all process models, process instances should not save when they are initialized, and fixed some cypress tests w/ burnettk 2b15e66d2 iterating on cypress 1aa72f420 fix cypress tests git-subtree-dir: spiffworkflow-frontend git-subtree-split: 55607af9318775fb3524cc5bb4f6a3c6188efe38
2022-12-10 23:39:02 -05:00
'terminated',
];
Squashed 'spiffworkflow-frontend/' changes from 1df0c1a9b2..942256a4ab 942256a4ab theme header 7d02fab545 it would be nice to know which command is failing cecdb467fa do not chew all memory d3d94fb307 Merge remote-tracking branch 'origin/main' into feature/carbon_ui c6d6108fb7 remove garbage css rule 7ec4f725a6 Stack direction to orientation 77731cd7ac fix last modal 0f0962fd1a lint 700f3c4965 fix label and comment artificial slowdown 033d051992 unhardcode f283cc6302 fix a few tests 43848ea1c0 instances tests are mostly passing, issues with table resizing on the list w/ burnettk f9b8a161eb process model cypress tests are passing w/ burnettk e52157fe58 process group cypress tests are passing w/ burnettk 8ce7886326 pyl is passing w/ burnettk 999134fc8f some more updates for group forms w/ burnettk bba9ed27f1 added search bar on process groups page w/ burnettk d80e9971cc added login_logout buttons w/ burnettk 6126faaebc finished process instance list filter w/ burnettk 3d2b1ad1d4 add date ranges for process instances search w/ burnettk 2831206f29 a simple date picker w/ burnettk 02d165c52a filter is working for status and process model w/ burnettk 5b118a69e6 process instance list page is mostly set up now w/ burnettk efd0663ef4 merged in main and resolved conflicts w/ burnettk 6191cfedf3 some more changes... navigation bar is broken due to header container w/ burnettk 877d543b02 many things have been switched to carbon and the home page loads w/ burnettk c6a5bb081f added carbon react package w/ burnettk git-subtree-dir: spiffworkflow-frontend git-subtree-split: 942256a4ab74949d0cba48cd93cc5a70001e0a72
2022-11-06 13:24:57 -05:00
// with time: yyyy-MM-dd HH:mm:ss
export const DATE_TIME_FORMAT = 'yyyy-MM-dd HH:mm:ss';
Squashed 'spiffworkflow-frontend/' changes from c096ca3f9..326040b3c 326040b3c Frontend label changes (#54) b4785077a added some more widget types to the form builder. w/ burnettk 27333e941 added basic form builder. w/ burnettk f2e9ad2d6 pass the the correct model to id on create 92f6366a0 removed tabs from taskshow page w/ burnettk cullerton bb146410f fixed some of the form widgets w/ burnettk cullerton 00db85342 Merge branch 'main' of github.com:sartography/spiff-arena 084069c72 added create new instance page and moved model run to a component w/ burnettk cullerton 4ba973b55 Merge branch 'main' into update-workflow-json 83b795a4e fixed eslint issues w/ burnettk 44920037c ran some pyl w/ burnettk cullerton 3c8ba0e89 load diagram page even if processes are not set w/ burnettk cullerton 4cdea6bc8 moved model delete button to show page as an icon w/ burnettk aa2b5b9ff moved group list tiles to component and use on group show page w/ burnettk 61366c3d6 display groups as tiles on list page w/ burnettk 0282dde54 add simple refresh capability 482e6f425 upgrades ec3019706 hide messages and configuration if not authorized w/ burnettk ef3a5ff21 default time to midnight if it is null when filtering w/ burnettk 697c069c1 Merge pull request #48 from sartography/feature/add_times_to_instance_filter c4daaeb1c added back the useEffect for report filtering w/ burnettk a01f9db11 times on instance list table are working now w/ burnettk 38f1b58fc attempting to use date objects as the date states w/ burnettk f430fa274 oops, just for one column 6ee14c93c just use the word id in the header and add tooltip 5dbcda2d3 a little cleanup to forms w/ burnettk 50429bc3d remove br since it felt like too much margin f18435dd0 revert to working mui radio 6c3e59d65 notes about validation issue abf6caafd add inline errors 7bf2b0673 Merge pull request #45 from sartography/feature/form_carbon_theme 6b9e77711 fixed error messaging a little bit for forms w/ burnettk cullerton e3ba944f0 Merge pull request #43 from sartography/send_filters eda32f7a8 Searching for call activities seems to be working now. I had the clear_caches in the wrong place previously - fixing. cc52a5577 Pre-pr cleanup e0af333d3 lint c7e4feab1 Clear/remove filter works 2346a5d34 some updates for the carbon form theme w/ burnettk cullerton 8e4bedef3 added eslintignore file to ignore carbon theme for now w/ burnettk cullerton 1a63f312a added radio buttons w/ burnettk cullerton 5cf910d55 Minor tweak, in the hopes of getting a text box to update correctly. 035ab5600 Add flag to indicate if user filtered 9449bfce7 specify onRequestClose on modals w/ burnettk cullerton 951c53efd updated a couple form components to work with carbon w/ burnettk cullerton 341731487 support ts and js for lint and format commands w/ burnettk cullerton ab089da90 copied mui theme to use as base for carbon theme w/ burnettk cullerton c338e35f1 theme working with mui from the internet w/ burnettk cullerton 925790131 Merge branch 'main' of github.com:sartography/spiff-arena into send_filters f390f82be Set process model from filter d76bb34df attempting to add a theme w/ burnettk cullerton 18ccdbbcf added lint fix for frontend to pyl w/ burnettk cullerton 20b3c0c7b added development permission for test user w/ burnettk cullerton 8714a0ae2 Set status from filters a684a71fc added some permissions for tasks f6c526ca7 Set date filters from response 0d198c73a docs 35cdb2f33 add cypress grep c57ae7772 added some permissions to the process model show page w/ burnettk b5d2109b8 use id_for_file_path when using the process model id as a path for windows and added some more permission stuff to the frontend w/ burnettk 2ce445fa3 added permission service to frontend to allow checking for permissions w/ burnettk 225755493 fixed linting issues w/ burnettk 4d6fc0a82 added configuration nav item to help reduce nav items w/ burnettk f0a5b4142 Navigate to my task (#35) fc2a3d451 Merge pull request #36 from sartography/feature/call_activity_selection ed9ec1547 Merge remote-tracking branch 'origin/main' into feature/call_activity_selection 56adc8118 some minor updates to model show page w/ burnettk 31d3b947d more refactoring for process instance list w/ burnettk a4108a25e turned the table list route into a table component w/ burnettk 75a198995 refactored pagination table to allow prefixing page options w/ burnettk 14414079a Mostly a name change from BpmnProcessIdLookup to SpecReferenceCache. I landed on this unfortunate name because: 902c3b7e3 added remaining task tables w/ burnettk c4e2cf460 added message correlations to message instance list api call w/ burnettk 8866d6d00 i think this is not always truthy, eslint fc5d8bc8e open accordion by default per feedback 19942b878 dedup c822ecea6 fix a couple tests 3d2578b7a Merge remote-tracking branch 'origin/main' into feature/home_page_redesign af8f245ce lint 43dabb65f add the username to the task list w/ burnettk 6d598978b added more task tables w/ burnettk f4edf3754 added tasks for my open processes page w/ burnettk 1e063bf06 some more task tab play d0e2e3b64 Merge remote-tracking branch 'origin/main' into feature/home_page_redesign 968acbc99 added home page routes and some tab stuff w/ burnettk git-subtree-dir: spiffworkflow-frontend git-subtree-split: 326040b3cb9cd16faeea545a25a91ed41f4340cf
2022-11-20 19:57:17 -05:00
export const TIME_FORMAT_HOURS_MINUTES = 'HH:mm';
Squashed 'spiffworkflow-frontend/' changes from 1df0c1a9b2..942256a4ab 942256a4ab theme header 7d02fab545 it would be nice to know which command is failing cecdb467fa do not chew all memory d3d94fb307 Merge remote-tracking branch 'origin/main' into feature/carbon_ui c6d6108fb7 remove garbage css rule 7ec4f725a6 Stack direction to orientation 77731cd7ac fix last modal 0f0962fd1a lint 700f3c4965 fix label and comment artificial slowdown 033d051992 unhardcode f283cc6302 fix a few tests 43848ea1c0 instances tests are mostly passing, issues with table resizing on the list w/ burnettk f9b8a161eb process model cypress tests are passing w/ burnettk e52157fe58 process group cypress tests are passing w/ burnettk 8ce7886326 pyl is passing w/ burnettk 999134fc8f some more updates for group forms w/ burnettk bba9ed27f1 added search bar on process groups page w/ burnettk d80e9971cc added login_logout buttons w/ burnettk 6126faaebc finished process instance list filter w/ burnettk 3d2b1ad1d4 add date ranges for process instances search w/ burnettk 2831206f29 a simple date picker w/ burnettk 02d165c52a filter is working for status and process model w/ burnettk 5b118a69e6 process instance list page is mostly set up now w/ burnettk efd0663ef4 merged in main and resolved conflicts w/ burnettk 6191cfedf3 some more changes... navigation bar is broken due to header container w/ burnettk 877d543b02 many things have been switched to carbon and the home page loads w/ burnettk c6a5bb081f added carbon react package w/ burnettk git-subtree-dir: spiffworkflow-frontend git-subtree-split: 942256a4ab74949d0cba48cd93cc5a70001e0a72
2022-11-06 13:24:57 -05:00
export const DATE_FORMAT = 'yyyy-MM-dd';
export const DATE_FORMAT_CARBON = 'Y-m-d';
Squashed 'spiffworkflow-frontend/' changes from f099c181..c22d22ba c22d22ba logs list page should respect the for-me variant dcc3e3b1 show help text for textareas as well w/ burnettk 35b8bf35 default to the for-me path on process instance show page links da646e54 added support to validate custom errors in nested properties in json schema forms 17412e9d make it so the message at the top of form is never strictly wrong 7dea59b7 adding some padding to form text inputs w/ burnettk 3f92f492 added ability to display the environment in the frontend header bar w/ burnettk 85246120 put the env vars in the env section of the github action configs w/ burnettk 58ff9075 added test for quickstart guide w/ burnettk 03e725b0 corrected cypress env var db755731 added some support for using the backend openid server for cypress tests w/ burnettk e76b6429 anything in the Tasks waiting for me table can now be completed by the current user 56403b4c users can always complete tasks on process instance show page and on task group table on home page w/ burnettk e2ab6eff avoid endless redirects on error on authentication list page w/ burnettk 66608837 bug fix 4781d5fc link to the spiff step from a task on the frontend and use the correct db in ci 69eb426c pyl w/ burnettk 3cf036b0 call activities are also working w/ burnettk 40b101a7 add assertions so this fails fast if anything changes in the future 74d2d3fa Update README.md 24c3c431 fix formatting ed977079 document runtime config e62427b9 do not fail if SPIFFWORKFLOW_FRONTEND_RUNTIME_CONFIG is missing 551bdf17 allow setting configs for the frontend through env vars w/ burnettk bc91c62c Merge remote-tracking branch 'origin/main' into frontend/use-api-subpath eeab0d0f 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. 28d6f75c When searching for human tasks to determine if the current user can complete it, filter on the "completed" flag. 34b36fe2 put setDisabled back in the awkward place since i was seeing the subsequent form stay disabled 4794a8cd Merge branch 'main' of github.com:sartography/spiff-arena into main 78b9ef73 Fix that dreadful unknown "KeyError" exception that was cropping up. Adding a bit of detail to the spiffworkflow exceptions when a duplicate process model is found. Disable the submit button on tasks after you click submit (avoid the double click and give users a better experience) d854a122 Merge pull request #125 from sartography/feature/dynamically-hide-fields-w-task-data eda73854 make form schema and form ui schema both dicts, add support for hiding fields based on task data bda549f3 Prevent double click on submit of forms. 3f02fa80 try to improve exception handling by avoiding raising ApiError from services 06835267 remove duplicate label on radio buttons 5d1e3517 less annoying file name for autocomplete c569acde frontend: use /api subpath instead of subdomain d3dda548 add deps for serve e6173efe Revert "revert Dockerfile until we get it working" 74103b97 revert Dockerfile until we get it working 8e9badd3 get bin as well for script df7a97e6 Merge pull request #116 from sartography/frontend/improve-dockerfile 7a17bc6f remove unneeded divs 2cf58c24 IBM says you can't have more columns than your parents, even if you try to start another grid, with kburnett abc85ee3 make task show wide, and make repeating form icons match site styles. w/ dfunk 6400827e even textareas need to have blank labels since labels are in FieldTemplate 462852d6 replace fieldTemplate with unthemed core version and remove labels since that is handled in there a50dd004 wrap field template so we can style with margin bottom e6a1ca97 new mechanism to handle help more in line with how carbon works cb6ce6b4 frontend: avoid redundant steps in Dockerfile b6b7ceeb we were expecting an object when doing this check, so codify it cfcfe292 use the 403 response to tell if a user has access to task data on the task show page w/ burnettk 355406e2 do not reset error state from the adminroutes component since this causes the error to be removed right away and then cannot be displayed w/ burnettk 3e7962cf if we get a result back it will be a task with a model identifier 0f043f72 use the ProcessInstanceTask interface where we can and move some stuff around better for useEffect 4ee4e5e0 run_pyl had various recommendations that I find a bit of a pain in the butt, but that I did anyway. 84e7d3fa Merge remote-tracking branch 'origin/main' into feature/jinja_errors acbc0a07 Added useMemo to error context No longer clear errors in the task bar, as that will constantly remove them as soon as they are shown. 19c3ab0e 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. c37224ec added the process model identifier for the diagram if it is not the top level w/ burnettk befefb6d Merge pull request #107 from sartography/feature/metadata_on_instance_show 65e42110 use a modal for metadata instead w/ burnettk 4a2f2a00 put process instance show page to match main w/ burnettk 0f1ab490 do not allow deleting primary bpmn file and do not allow instantiating models without a primary bpmn file w/ burnettk 3718f1a3 show metadata on instance show page but for some reason it reorders elements w/ burnettk 400a1469 add process model file name validation for new files w/ burnettk 132c5814 added locking system for process instances so hopefully background jobs will not take instances currently being run by the user w/ burnettk 3fa86949 make sure that all new form field elements are not dropdowns f69d3416 expanded functionality of the form builder 2453938f use the correct place for keycloak w/ burnettk 3d85a5f6 Merges 50d0a8e3 Lots of adjustments from running pyl Main change is in the ErrorDisplay.tsx to assure all error information is provided. and index.css to make it "pretty" git-subtree-dir: spiffworkflow-frontend git-subtree-split: c22d22ba5d8a96dca66a405d9c230284c81b4740
2023-02-23 10:49:57 -05:00
export const SPIFF_ENVIRONMENT = spiffEnvironment;