Commit Graph

1017 Commits

Author SHA1 Message Date
Madhurya Liyanage d0cd8885f6 Merge branch 'main' into deploy-app-dev 2023-07-08 10:11:23 +05:30
Dan Funk 3f926ccd22
Feature/fix_action_column (#357)
* removing action column.

* adding the action column back in, and making it work.
2023-07-07 16:02:27 -04:00
jasquat 95d14eae00
Merge remote-tracking branch 'origin/main' into deploy-app-dev 2023-07-07 11:18:52 -04:00
jasquat 92384b39b9
fixed linting issue w/ burnettk 2023-07-07 11:18:45 -04:00
jasquat d95756a65a
merged in main and resolved conflicts w/ burnettk 2023-07-07 11:04:11 -04:00
jasquat cc5390cca4
use a sha256 value as the id of the page when checking active-users w/ burnettk (#356)
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2023-07-07 20:24:57 +05:30
Kevin Burnett 218a0f1f0e
do not convert null to a string when clearing out a typeahead field w/ burnettk (#373)
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2023-07-07 20:21:22 +05:30
Dan Funk 0801cc0292
Feature/fix diagram zoom (#378)
* Revert "set undefined values to null rjsf form data w/ burnettk (#336)"

This reverts commit 1f40f64695.

* Quick test to check if calls are happening correctly to resize the diagram.

* Quick test to check if calls are happening correctly to resize the diagram.

* remove all the logic around fitviewport limitations, which doesn't seem to be requured.  For some reason (modeler as any).constructor.name return '_9' on the dev server, rather than returning 'Modeler', 'Viewer' etal ...

* drop console log

* Clean up comments.

---------

Co-authored-by: Jakub Sokołowski <jakub@status.im>
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
Co-authored-by: burnettk <burnettk@users.noreply.github.com>
Co-authored-by: Madhurya Liyanage <liyanagemadhurya@gmail.com>
2023-07-07 10:11:12 -04:00
danfunk 0a4667bf63 remove all the logic around fitviewport limitations, which doesn't seem to be requured. For some reason (modeler as any).constructor.name return '_9' on the dev server, rather than returning 'Modeler', 'Viewer' etal ... 2023-07-06 20:03:30 -04:00
danfunk 6befe5dce9 Quick test to check if calls are happening correctly to resize the diagram. 2023-07-06 18:30:44 -04:00
danfunk 2e47ca19d3 Quick test to check if calls are happening correctly to resize the diagram. 2023-07-06 17:29:16 -04:00
Dan Funk c23a036c15
Feature/never ending UI tweaks 2 (#377)
* Using a rem based measurement rather than pixels, to better handle 4k displays and their adjusted font sizes - and setting relatively large breakpoints and page width limits that should result in a better view of the tables on the home page.

* Here is the latest:

    * Improved metadata display on the process instance page, with better widths, grayed out text (which I lost at some point).
    * Reduced the End Task "instructions for end user" size, and added a fade out on the bottom.
    * Improved the "chicken buttons" for custom columns on the process instance list filters, which can now accommodate very long names for the columns.
    * Removed the "show-page" which is more consistently handled by the content wrappers for the different routers.
2023-07-06 16:38:44 -04:00
Dan Funk 09ae7ffe00
Feature/never ending UI edits (#374)
* Basically shift our ui to something similar to Google's search results page - where we have a strong left padding that offsets against our logo, and a fixed width for our content, that can be breached in some circumstances (such as when tables are very large).  This breaking can happen for both our standard tables, as well as markdown tables.   This does not include the fix for locking - which is still in progress.

* modified routes so that most routes are within a "fixed-width-container" but our BPMN editor can still take up 100% of the screen.
* fixed-width-container has breakpoints at 1056 (remove all padding) and 1400 (limit width to a max of 1280)  but in all cases allow for an overflow of visible - so tables can extend beyond this limit when needed,
* Removed "Messages" as a heading from the tab view - but left on the /messages route.

* Lint fixing
2023-07-06 09:41:18 +05:30
danfunk 9ff1136368 Lint fixing 2023-07-04 10:22:14 -04:00
Dan Funk d350ec99c0
Bug/UI fixes (#369)
* re-enable the move canvas and zoom modules, and try like hell to get the !@#$! display to zoom to fit consistently. As the from_xml does not trigger the "import.done" where the resize is happening.

* Clicking on timestamp should reload the page so we are observing the diagram at the correct point in time.

* Use a grid rather than a stack for the filter buttons, make them a consistent width, and force the close "x" button to the far right.

* Better handling the lots and lots of metadata fields in both the process instance list table, and in the metadata information on the process instance view page.

* Using DL rather than Carbon's grid, because my mind was starting to break.
* Process instance List Tables are set to optimize their max width for readability.

* assure the diagram editor is top aligned - otherwise when the proprties pannel get's super duper long (as with recent additions to multi-instance) we don't end up with weird spaces showing up above a center aligned canvas.
2023-07-04 09:29:46 +05:30
jasquat 99de1432b0
Feature/interstitial summary part 3 (#367)
* throw an error if backend gives a 500 from interstitial page w/ burnettk

* turn unexpected errors for the interstitial page into event stream responses to avoid error misdirection

* pyl

* raise the api_error from the original and make the render_data method private

* Feature/interstitial summary (#337)

* * Process instance logs and messages are now components rather than pages, and are included within tabs on the process instance page, along with the diagram.
* Removed the Zoom and Move modules when showing the readonly
  Diagram.  Assured this readonly view is resized to fit the space when possible.
* Checkbox Widget no longer displays a duplicate label.
* CSS Tweaks
  * All pages are limited to a max display width of 1440, with auto margins to center the main content on the page.
  * "Show" pages, like ProcessInstanceShow, TaskShow have the primary content limited to 1000, also with auto-margins.
  * Paragraphs, headings, blockquotes, list items are limited to a width of 640.
  * Reduced margin bottom on all breadcrumbs.
  * Slightly reduced the width and margin of tiles
  * ordered lists and unordered lists show numbers and bullets now.
* End user Instructions component can, optionally, auto-collapse, so that only a portion is displayed, along with a toggle.  This is how it is set up for the ProcessInstanceShow page.
* Greatly reduced the lag in the interstitial page when doing a re-direct.

* run_pyl

* kill console

* wait for permissionsLoaded too since we are using ability.can

* Previous change removed the top level Messages page - this re-adds it.

* I am always, ALWAYS shocked at how I can not wrap my head around when and where to use "useEffect".

This should cause the show/hide Instructions toggle to only show when useful.

* Minor cleanup on the process instance properties display.

* linting

---------

Co-authored-by: burnettk <burnettk@users.noreply.github.com>

* Fix a linting error.

* minor permissions related fixes for the new ui.

* Revert "Revert "Feature/better subworkflow management (#331)""

This reverts commit 3becffc14f.

* do not execute tasks from the process instance show page w/ burnettk

* pyl w/ burnettk

* Very minor UI tweak to resolve a number of issues mentioned in SPIFF-316 Notion Ticket:

* Markdown links now open in a new window
* Tables on the home pages are now contained within Grids to better align them with the other content that is in a grid.
* Right aligned the "process instance list link" button to it is flush right with the table underneath
* Gave a little more breathing room the content on the info/metadata in the process instance view .

* updated docker image build action to contain the appropriate version info w/ burnettk

* properly resize to the available columns depending on s/m/l

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
Co-authored-by: Dan Funk <daniel.h.funk@gmail.com>
Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2023-07-03 10:54:54 +05:30
Dan Funk 243715f3f0
bumping version of BPMN-JS-Spiffworkflow (#366) 2023-06-30 23:17:58 +05:30
Kevin Burnett 2b09e86dbd
when creating a process instance, use for-me path for perms (#354)
Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2023-06-29 16:37:19 +05:30
jasquat d6f13b8808
disable form submit buttons when appropriate, lock process instance when sending events, and ensure return events match ones associated with desired guids w/ burnettk (#359)
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2023-06-29 09:36:47 +05:30
jasquat 4be7875853
Feature/draft data in join table (#355)
* added a new model to store task draft data in a join table

* cleaned up using the join table for draft table w/ burnettk

* created new single migration for changes w/ burnettk

* added hidden form which autosaves without validations w/ burnettk

* change close button name since it does indeed save on close now

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2023-06-28 22:23:39 +05:30
jasquat 22e53ab23d
Feature/autosave and null form data (#346)
* autosave form data on change w/ burnettk

* tests are now passing and pyl

* do not do anything on autosave success w/ burnettk

* merged autosave and null form data branches together w/ burnettk

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2023-06-26 18:26:56 +05:30
jasquat c545bf0654
updated usages of task_spec.spec for new spiff (#345)
* updated usages of task_spec.spec for new spiff

* removed unused attributes referring to call activities

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2023-06-26 11:57:32 +05:30
jasquat d41e8ad06d
fixed lint issues 2023-06-23 08:50:48 -04:00
jbirddog ef57b3bf8e
Show callers for non primary files (#334)
* WIP - working with multiple process ids, need to return a file's process ids

* Send bpmn process ids back with bpmn files

* Getting ./bin/pyl to pass

* Fix up unit test

* Wire up the front end

* Pre pr cleanup
2023-06-23 11:45:23 +05:30
Kevin Burnett 033502425e
Feature/better subworkflow management part 2 (#341)
* Revert "Revert "Feature/better subworkflow management (#331)""

This reverts commit 3becffc14f.

* updated SpiffWorkflow to fix infinite loop in task trace w/ burnettk

---------

Co-authored-by: burnettk <burnettk@users.noreply.github.com>
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2023-06-20 10:37:49 -04:00
burnettk 90d3b0969f
Revert "processes to process models"
This reverts commit a4e0c74430.
2023-06-19 09:08:46 -04:00
burnettk a4e0c74430
processes to process models 2023-06-19 08:27:06 -04:00
burnettk a07999ae16
Revert "set undefined values to null rjsf form data w/ burnettk (#336)"
This reverts commit 1f40f64695.
2023-06-19 08:19:49 -04:00
burnettk 0d228e917b
Revert "Feature/interstitial summary (#337)"
This reverts commit 28086575fe.
2023-06-19 08:19:36 -04:00
burnettk 63a47b83e9
Revert "Fix a linting error."
This reverts commit cbf5473dcc.
2023-06-19 08:19:29 -04:00
burnettk c5d1e59f16
Revert "minor permissions related fixes for the new ui."
This reverts commit 7b7cf9d058.
2023-06-19 08:19:23 -04:00
danfunk 7b7cf9d058 minor permissions related fixes for the new ui. 2023-06-16 12:00:27 -04:00
danfunk cbf5473dcc Fix a linting error. 2023-06-16 10:22:50 -04:00
Dan Funk 28086575fe
Feature/interstitial summary (#337)
* * Process instance logs and messages are now components rather than pages, and are included within tabs on the process instance page, along with the diagram.
* Removed the Zoom and Move modules when showing the readonly
  Diagram.  Assured this readonly view is resized to fit the space when possible.
* Checkbox Widget no longer displays a duplicate label.
* CSS Tweaks
  * All pages are limited to a max display width of 1440, with auto margins to center the main content on the page.
  * "Show" pages, like ProcessInstanceShow, TaskShow have the primary content limited to 1000, also with auto-margins.
  * Paragraphs, headings, blockquotes, list items are limited to a width of 640.
  * Reduced margin bottom on all breadcrumbs.
  * Slightly reduced the width and margin of tiles
  * ordered lists and unordered lists show numbers and bullets now.
* End user Instructions component can, optionally, auto-collapse, so that only a portion is displayed, along with a toggle.  This is how it is set up for the ProcessInstanceShow page.
* Greatly reduced the lag in the interstitial page when doing a re-direct.

* run_pyl

* kill console

* wait for permissionsLoaded too since we are using ability.can

* Previous change removed the top level Messages page - this re-adds it.

* I am always, ALWAYS shocked at how I can not wrap my head around when and where to use "useEffect".

This should cause the show/hide Instructions toggle to only show when useful.

* Minor cleanup on the process instance properties display.

* linting

---------

Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2023-06-16 09:53:20 -04:00
jasquat 1f40f64695
set undefined values to null rjsf form data w/ burnettk (#336)
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2023-06-16 09:52:29 +05:30
burnettk 3becffc14f
Revert "Feature/better subworkflow management (#331)"
This reverts commit cdbe577836.
2023-06-15 15:10:48 -04:00
jasquat cdbe577836
Feature/better subworkflow management (#331)
* WIP: some updates to support new spiff w/ burnettk

* unit tests are passing

* all tests except message tests are passing

* fixed usage of catch message event w/ burnettk

* messages are working again w/ burnettk

* uncommented remaining message tests w/ burnettk

* fixed cypress tests w/ burnettk

* use main for spiffworkflow

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2023-06-15 10:31:42 -04:00
jasquat f94bce088b
format date picker helper text width to match the date widget itself … (#330)
* format date picker helper text width to match the date widget itself w/ burnettk

* not sure we need xdoctest

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2023-06-13 20:16:26 +05:30
Elizabeth Esswein 551896361b
restore loop collection references (#328)
* restore loop collection references

* ignore dmn files when restoring references
2023-06-12 18:32:16 -04:00
Kevin Burnett d9b303db78
make primary file use font style italics (#324)
Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2023-06-12 06:42:30 -07:00
jasquat 2631fa5f95
some fixes and updates to help with running an acceptance test model (#323)
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2023-06-09 11:19:02 -07:00
jasquat a6ce92abb1
added css to make the hr elements look like they do for bootstrap w/ burnettk (#320)
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2023-06-09 11:50:42 -04:00
jasquat 4dbc5d5b22
if the process id of the call activity cannot be found then refresh the list and try again w/ burnettk (#316)
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2023-06-08 14:27:01 -07:00
jasquat e69a1de7dc
use carbon components when adding secrets (#312)
* use carbon components when adding secrets

* docker compose pull before running up w/ burnettk

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

* removed remaining references to bootstrap from frontend w/ burnettk

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

* print out docker version for debugging

* docker pull with docker instead of compose

* added comment for docker pull in check docker start script

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2023-06-08 14:26:14 -07:00
jasquat c559ce6565
updated permission macros to give admins access to task-data and proc… (#314)
* updated permission macros to give admins access to task-data and process-data w/ burnettk

* do not check for write to process-models if diagram is readonly anyway w/ burnettk

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2023-06-08 11:39:14 -04:00
jasquat d1f3ecc603
support validationErrorMessage in rjsf enum w/ burnettk (#311)
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2023-06-07 09:55:32 -07:00
jbirddog 764373c630
npm update bpmn-js-spiffworkflow (#308) 2023-06-06 18:26:20 -07:00
jasquat d6eafcafaa
allow specifying multiple minimum date checks for a field w/ burnettk (#305)
* allow specifying multiple minimum date checks for a field w/ burnettk

* show title of field to compare minimum date with

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2023-06-06 18:25:54 -07:00
Madhurya Liyanage 0f3e6adb44 Fixed an issue in a test cases and updated numbering 2023-06-05 16:58:24 +05:30
Madhurya Liyanage 8b3e1932c7 Added validations to check the user entered data for special character related test case and edit request test cases 2023-06-05 16:14:45 +05:30
Madhurya Liyanage 7de1134bb5 Updated wait time for file upload related test cases and added numbering for test cases. 2023-06-05 16:13:12 +05:30
jasquat 7f80f2b6df
added a little error handling to the typeahead widget w/ burnettk 2023-06-02 14:07:44 -04:00
burnettk 1658de6101
add some ids to completed instances tables for testability 2023-06-02 10:59:26 -04:00
burnettk a6aac1d730
add some ids to homepage tables for testability 2023-06-02 10:52:17 -04:00
jasquat 6c5ddc65c4
Merge pull request #294 from sartography/feature/typeahead_in_custom_widgets
Feature/typeahead in custom widgets
2023-06-02 10:34:00 -04:00
danfunk 3178ce2573 Merge remote-tracking branch 'origin/main' into feature/better_interstitial_spinner_and_suspend_message 2023-06-01 15:07:25 -04:00
danfunk 9aa52bcd27 Introduced a small spinner to the interstitial view on the Process Instance Show page.
Display reasonable messages when a processes is suspended or errored. Can't do much with terminated.
Show the spinner more frequently and consistently.
When running ruff, ignore everything in .gitignore
2023-06-01 15:05:59 -04:00
jasquat bff226c31c
also support placeholder text w/ burnettk 2023-06-01 11:09:58 -04:00
jasquat 02ef9f4ce1
a little cleanup w/ burnettk 2023-06-01 10:55:46 -04:00
Kevin Burnett 1de6eee991
Merge pull request #287 from sartography/feature/new-ux-options-for-adding-files
allow markdown uploads and add some different ux options for adding files
2023-06-01 14:44:35 +00:00
jasquat 27bd66d93b
Merge remote-tracking branch 'origin/main' into feature/typeahead_in_custom_widgets 2023-06-01 10:43:37 -04:00
jasquat 1a788cdcea
added missing rjsf elements into typeahead widget 2023-06-01 10:43:34 -04:00
burnettk 23545a0324
use icons for running unit tests, w/ lantz 2023-06-01 10:43:27 -04:00
burnettk 16056e427d
update UX after feedback from team 2023-06-01 10:07:01 -04:00
Madhurya Liyanage b7cb3c32b9 Updates to match the new UI changes 2023-06-01 12:16:09 +05:30
jasquat d5d4fdac39
attempt to store typeahead item as json object string w/ burnettk 2023-05-31 15:58:35 -04:00
jasquat 781a7be04a
moved carbon theme items around w/ burnettk 2023-05-31 15:16:51 -04:00
burnettk 38c28c8054
Merge remote-tracking branch 'origin/main' into feature/new-ux-options-for-adding-files 2023-05-31 12:38:34 -04:00
jasquat 0d22e27f78
go to the for-me page when submitting a task w/ burnettk 2023-05-31 12:25:30 -04:00
jasquat 3a10ef82cd
redirect to the non-for-me page if allowed when performing an admin action w/ burnettk 2023-05-31 12:11:27 -04:00
burnettk 70933892d5
move after unit tests and use upload icon, w/ lantz 2023-05-31 10:44:25 -04:00
Dan Funk eff4165f5a
Merge pull request #291 from sartography/feature/fix_process_instance_terminate
allow not redirecting to home page at all in interstitial component a…
2023-05-31 10:31:32 -04:00
danfunk e72ccebed0 just reuse allowRedirect. 2023-05-31 10:28:16 -04:00
jasquat bb6a0bf443
stop refreshing homepage if unauthorized to metadata 2023-05-31 09:42:20 -04:00
jasquat 8791cc513c
allow not redirecting to home page at all in interstitial component and do not error out if next task does not exist 2023-05-31 08:54:33 -04:00
Madhurya Liyanage f95b567e32 Remove some unwanted only items 2023-05-31 18:22:39 +05:30
Madhurya Liyanage e7e0972766 Updates to match the new UI changes 2023-05-31 12:26:26 +05:30
burnettk ede43ab0b9
allow markdown uploads and add some different ux options for adding files 2023-05-30 17:58:53 -04:00
Kevin Burnett 4bf6760e3f
Merge pull request #283 from sartography/feature/mitigate-downside-of-unexpected-response-from-server
if we get garbage from backend for active users, do not blow up diagram editing page
2023-05-30 18:55:41 +00:00
burnettk c127b4c714
Merge remote-tracking branch 'origin/main' into feature/more-secret-secrets 2023-05-30 08:38:15 -04:00
Madhurya Liyanage d030ae4c43 Automation scripts for PP2 2023-05-30 12:07:54 +05:30
burnettk 0c3931bf4e
if we get garbage from frontend for nonessential feature, do not blow up 2023-05-29 17:24:26 -04:00
burnettk bdffdc5c25
only expose value on show, not list, move tests, fix UI 2023-05-29 15:04:38 -04:00
Madhurya Liyanage 2dbb8fcf07 Added new test cases to Rearrange items and Delete items 2023-05-29 19:56:51 +05:30
Madhurya Liyanage c59bb2959d Changed Close to Save and Close 2023-05-29 19:38:51 +05:30
jasquat 5cb899ed97
merged in main, resolved conflicts, and updated keycloak realm file for new path vars w/ burnettk 2023-05-26 11:10:57 -04:00
jasquat 7b2c7c5f52
allow disabling authentication from the backend w/ burnettk 2023-05-25 12:00:24 -04:00
Dan Funk 4d058e0fe4
remove console.log 2023-05-24 17:31:31 -04:00
danfunk 77e375a86a Merge remote-tracking branch 'origin/main' into feature/interstitial_process_instance_show 2023-05-24 15:32:43 -04:00
danfunk 8734005c1e run_pyl 2023-05-24 15:31:11 -04:00
danfunk 247578c968 ProcessInterstitial is now a component, and a page. The component is included into both the Interstitial PAge and the Process Instance Show page.
Fixed routes for interstitial to align with those of the TaskShow page (variants are now accepted and passed through)

Removed the View button completely.
2023-05-24 15:24:33 -04:00
jasquat 8a88e2e9ea
cleaned up comparing dates in forms w/ burnettk 2023-05-24 11:47:02 -04:00
jasquat 6c4a927beb
allow comparing dates in json schema forms and also allow checking nested fields w/ burnettk 2023-05-24 10:53:04 -04:00
jasquat c242c95c84
some updates to help support different domains w/ burnettk 2023-05-23 16:58:58 -04:00
danfunk 0395889c11 Merge branch 'main' into feature/interstitial_process_instance_show 2023-05-23 15:43:30 -04:00
jasquat c3710aeb2a
allow running all process model unit tests from the show page w/ burnettk 2023-05-23 15:15:30 -04:00
jasquat 520325adec
make the test case results errors work with WorkflowTaskException and use in ErrorForDisplay 2023-05-23 10:33:37 -04:00
jasquat c6d2853b51
added api to run process model unit tests w/ burnettk 2023-05-22 17:36:07 -04:00
jasquat 58b06751ae
fixed tests related to new permissions w/ burnettk 2023-05-22 14:58:51 -04:00
jasquat b575ef09de
added missing permissions to elevated perm macro and removed api calls from unit tests 2023-05-22 13:50:32 -04:00