2023-01-05 17:35:22 -05:00
|
|
|
const { port, hostname } = window.location;
|
2022-10-17 17:18:24 -04:00
|
|
|
let protocol = 'https';
|
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}`);
|
|
|
|
}
|
|
|
|
|
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}`;
|
2022-10-17 17:18:24 -04:00
|
|
|
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];
|
|
|
|
}
|
2022-10-17 17:18:24 -04:00
|
|
|
}
|
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.
|
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;
|
2022-10-12 10:21:49 -04:00
|
|
|
|
|
|
|
export const PROCESS_STATUSES = [
|
|
|
|
'not_started',
|
|
|
|
'user_input_required',
|
|
|
|
'waiting',
|
|
|
|
'complete',
|
2022-11-11 11:41:01 -05:00
|
|
|
'error',
|
2022-10-12 10:21:49 -04:00
|
|
|
'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',
|
2022-10-12 10:21:49 -04:00
|
|
|
];
|
|
|
|
|
2022-11-06 13:24:57 -05:00
|
|
|
// with time: yyyy-MM-dd HH:mm:ss
|
2022-11-11 11:41:01 -05:00
|
|
|
export const DATE_TIME_FORMAT = 'yyyy-MM-dd HH:mm:ss';
|
2022-11-20 19:57:17 -05:00
|
|
|
export const TIME_FORMAT_HOURS_MINUTES = 'HH:mm';
|
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;
|