spiff-arena/spiffworkflow-frontend/package.json

148 lines
4.5 KiB
JSON
Raw Normal View History

{
"name": "spiffworkflow-frontend",
"version": "0.1.0",
"private": true,
"type": "module",
"dependencies": {
"@babel/core": "^7.24.6",
"@babel/plugin-transform-react-jsx": "^7.18.6",
"@babel/preset-react": "^7.24.7",
"@carbon/colors": "^11.23.1",
"@carbon/icons-react": "^11.36.0",
"@carbon/react": "^1.33.0",
"@carbon/styles": "^1.51.0",
"@casl/ability": "^6.7.1",
"@casl/react": "^4.0.0",
"@microsoft/fetch-event-source": "^2.0.1",
"@monaco-editor/react": "^4.4.5",
Spiffui/newui (#1891) * Scaffold new UI homepage, hide current nav bar * Layout set up Divider was fiddly, but got the same setup as Figma now. * Config to allow svg loading and imports etc. in Vite Also moved preact from dev deps to deps (recommended). * Configure app to use Poppins Was a little tricky, had to isolate this from the rest of the app. * Move icons from figma to app, set up menus SVGs have to be exported from Figma, moved into assets in app, etc. * Layout and SideMenu Components and layout all set. * Some basic global themeing knocked off from Web3 * Datagrid Layout complete Nothing works and the data is contrived, but it's all matchy-matchy with the Figma view and so on. * Menu items hover and rollover states * Add card row * useProcessInstances hook Knocked off from the call logic in ProcessInstanceListTable * Responsiveness * Responsive tweaks * Live data in grid etc. * Phone responsive * Responsivness working across all breakpoints * Side menu height simplification * more chips for milestone and status * Basic client grid search * Newui README and component notes. * Add docs, cleanups, etc. * Component docs * Theme more robust Also added framework for dark mode. * Dark mode and theme enhancements * Install signals integration for vite, cleanup, and working darkmode toggle. * Update SpiffUIV2.tsx * Toggle feature for menu items Includes ability to swap icon and text on a toggle. Useful for dark mode toggle and possibly other things. * User menu pinned to bottom of VH Doesn't get lost if datagrid is long. * Color fixes for dark mode, added in tokens where possible. * Responsive Side Menu * adjusted filter cards to dark mode * Customize global themes for light and dark success/light/info/warning/error Pushing use of tokens everywhere, took some wrangling but it's in place now. Also fixed cards and a few other things to size more cleanly in responsive modes. * Fix tab light/dark mode swap Requires a bit more customiization of the theme. * Slide transition for menu * Solved very annoying MUI problem If there is a scrollbar on the screen, opening a Select removes it. This is intentional (use can not scroll the screen while select is open) but it has the unfortunate consequence of removing the browser scrollbar is that it increases the viewport size, causing all responsive layout to shift. This tells it "leave it be". Also add ability to feed in info to process instance hook. * Refactor some items to make layouts more declarative. We want the info window to be in the center-right of the view all the time, with some appropriate padding on the top-bottom, so regardless of the scroll position or window size they never lose it. Also, responsiveness (will resize until MD breakpoint then hide). * Refactor Dashboard to switch grids more cleanly * Info panel wired up * Task Collection, view hook etc. * My Tasks search working * Tab nav set up * "Old" forms loading into "new" flyout window. Had to move a few things around and dig into the routes, but got it up and running for demo. * InfoPanel displays selections from different grid views Built mini-factory to feed InfoPanel ReactNodes to render using selected grid item data. * Info panel toolbar, formatting and light/dark settings. * InfoPanel display with tasks APIs need to be sorted out, there doesn't appear to be an easy way to get all Tasks for a given ProcessId at this point. * Format dates in grids * Wire everything up for working workflow (demo-worthy) * Toggle for Row click panel open/close * Completed and waiting tasks in info panel. * Scrollable grids in the Dashboard view (no more page scrolling) * Remove mystery zero Stray truthy test was rendering the result (false, 0) * Tweak to prevent child scrollbars from overlaying infopanel windows. * had to install jsdom for Vue testing. * Update package-lock.json * Possibly ran npm i in the wrong directory hmm... * add optional platform dep * update lock file with optional dep info * Add ESBuild (this package was not found) There might be a global install but Vite/npm ain't seein' it. * Trying to make esbuild optional (it might already be global) * Accordions for tasks, and create a hook to enable some flexible customization. * Updates and refactoring to make more (possibly) extension-ready components for the data displays. * PI times summary report Also cleaned up some MUI Dom errors/warnings. * build images for newui * revert some changes in package-lock that did not help * Rebuilding repo (had "bad objects" error) * Charts (mostly for demo) * Responsive! * Collapsible side menu Added a button component suitable for the positioning/display, adjusted responsiveness (when the menu is collapsed, we need the grid to take up more room, and when the menu is naturally collapsed by screen size, we don't want the toggle button, etc.) * Adjust menu to display abbreviated spiff logo when collapsed. * Update DashboardCharts.tsx * Inserted Paper wrapper for sidemenu Makes the background responsive to dark mode (so it's not just more black surface). * Update SideMenu.tsx Fix positioning to accommodate new wrapper padding. * First wave of theme changes, global font alterations, restructure nav to top * Moving the design revamp along Walking the line between the new ideas but using the current functionality and components (we don't have designs for where things lik the dark mode and logout buttons go, the toolbar was removed but now we need a place for the start process button, we still need the tabs, etc.). * Moving new style along Had to add custom background palette for dark/light mode. * Carousel display and task cards for new display * Grids, carousels, accordions, etc. All in design requirement Desktop 27 (Figma file) * All finished Revamped, workflow implemented, rotating charts, dark mode checked, new scrollbars for more ipad-like feel, search working, etc. etc. * Tweaks and good to go. * Update MyProcesses.tsx Remove console.log. * Collapse process detail by default, and fix tasks label. * Full screen containers We don't want th default max width enforced by MUI. * TopNav responsiveness and speedial * Responsive grid areas * Add task counts * create a top level route for the new spiff ui from App.tsx w/ burnettk (#1586) Co-authored-by: jasquat <jasquat@users.noreply.github.com> * Unused imports * Clean up wonky pie chart. * Remove hardcoded url * Clean up info panel * Fix menu button responsive text wrap wonk * Put grid back With data changes since there is more stuff in the first column (based on the design). I took a best guess. * Remove cell focus outline with CSS overrides MUI * Flyout Panel for demo (new look etc.) * Task switching in panel. * Cleanup tweaks pre-demo. There is a bug in the "first select" of a row with tasks, I'm aware of it. * Rework flow of data, make it simpler Fixes a bug; when you clicked a PI row the first time, its tasks wouldn't load. If you did it again, everything worked. The way the code moved data to the InfoPanel was unclear, cleaning that up made the bug obvious. * put back psycopg2 and mysqlclient * Create useProcessModels.tsx * Create useProcessGroups.tsx * Update ProcessInstanceCard.tsx Fixes task count display * Refactor for top level routing Keeping all views as children of SpiffUIV2 (will make swapping app easier). * Update SpiffUIV2.tsx Routing and view scaffolding set. * Menu and button nice nice in dark mode etc. * View transitions * Process group/model data under control and feeding into view. * Using RXJS for broadcasting to menu items. * Update SpiffUIV2.tsx * Config seemed broken (I couldn't start the app, Vite not found etc.) I fixed by moving @preact/preset-vite to dependencies (this seems required, probably because it adds types and primitives that are used in runtime code or something) and making sure Node was up to date. * Fix for Preact breaking rendering lifecycle One of their PRs put a ridiculously low check on rerenders, and in dev/debug mode throws an app-crashing error, which affected the MUI-X Datagrid. * Button components aware of stream Also had to add a way for buttons to know what the view they nav to was loaded from the URL (e.g. a bookmark) to meet the design req. * Have to make sure buttons that have no paths don't respond to href load logic. * Layout for components, menu, treeview, theme tweaks Needed to alter text.secondary at theme level to accommodate designs. * Recurse through Process Group data to PM tree build tree for display All set. * Treeview complete Also moved some things around to track with evolving app structure. * Fully working tree with counters. * Favorites/Recently used layout, components, icons, etc. * Favorites and process groups displays A bit naive, but for now gets the job done. * Select of a group CArdor a group in the Tree updates view Display PMs and PGs for any group, and some ideas to tie selecting a Card into the Tree. This kind of has to work, if you don't do it the tree seems useless. * Create TreeItem wrapper TreeItems don't carry any data that could be used for crumbs. Need to wrap TreeItem and add a property that lets you expand any node anywhere in the hierarchy. * Update __init__.py * Update StartProcess.tsx Scrolling content area * Tree expansion from cards working as expected Have to do the collapse side of it, but so far so good. Also tweaks to scrolling area. * Wrap search bar and padding tweaks More explicit layout around child components. * Tree/card tracking working. Highlighting based on clicks, etc, very fancy. * Tree -> Cards -> Tree fully working, starting breadcrumbs. Breadcrumbs will be how this works on mobile, nobody will use the tree on a phone. * Collapse button will be used all over * More wiring details tree -> card -> tree -> search When search returns results, the tree or card nav is no longer the control. Use imperative ref to wipe expanded nodes. Also, make sure that if models and groups are returned that the accordions expand. Remove console logs. * Cross group model highlighting Tricky one: If you have several folders expanded in the tree, and are clicking through the models, if you click a model in a "non active" group, we have to clear the current group assets and load that group's. Since the cards come after the switch, they don't hear the clickstream that initiated them, so the model that was selected in the tree won't update the associated card's style. Fix that by passing in the lastSelected object to the cards and inspecting on init. * Localstorage, favorites, default favorite view (vs. groups), etc. * Guard no groups. * Update StartProcess.tsx Padding change opened up window, needed to adjust. * Update StartProcess.tsx * Update LocalStorageService.ts Update empty string to empty array. * Tree panel collapse/expand With everything else going on, this was tricky to get responsive, but working as expected now. Also tweak to fix annoying thing in MenuItems. Also made sure dark mode tracks. * Hover effects for cards and text cleanups Hover is useless on touch screens, but otherwise this is a bit more in keeping with the design. * Breadcrumbs, root element and favorites in collapse tree view, etc. This pretty much nails it. * Add Favorite Count Add count to favorites indicators. Helps user make sense of "I'm clicking it why are no items loading (because there are zero favorites). * Docs, cleanup Also fix that NavBar logo issue in the "old" app. * fix breadcrumb re-render issue when saving json file for first time w/ burnettk * fix / ignore eslint issues * add types for react-slick * ignore ts error * revert nav bar to undo logout logo change w/ burnettk * Update spiffworkflow-frontend/src/a-spiffui-v2/views/Dashboards/infopanels/ProcessInfo.tsx Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Update spiffworkflow-frontend/src/a-spiffui-v2/views/StartProcess/StartProcess.tsx Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --------- Co-authored-by: Tim Consolazio <tcoz@tcoz.com> Co-authored-by: burnettk <burnettk@users.noreply.github.com> Co-authored-by: jasquat <jasquat@users.noreply.github.com> Co-authored-by: Kevin Burnett <18027+burnettk@users.noreply.github.com> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2024-07-09 17:39:29 +00:00
"@mui/icons-material": "^5.16.0",
"@mui/material": "^5.16.0",
"@mui/x-charts": "^7.6.1",
"@mui/x-data-grid": "^7.12.0",
Spiffui/newui (#1891) * Scaffold new UI homepage, hide current nav bar * Layout set up Divider was fiddly, but got the same setup as Figma now. * Config to allow svg loading and imports etc. in Vite Also moved preact from dev deps to deps (recommended). * Configure app to use Poppins Was a little tricky, had to isolate this from the rest of the app. * Move icons from figma to app, set up menus SVGs have to be exported from Figma, moved into assets in app, etc. * Layout and SideMenu Components and layout all set. * Some basic global themeing knocked off from Web3 * Datagrid Layout complete Nothing works and the data is contrived, but it's all matchy-matchy with the Figma view and so on. * Menu items hover and rollover states * Add card row * useProcessInstances hook Knocked off from the call logic in ProcessInstanceListTable * Responsiveness * Responsive tweaks * Live data in grid etc. * Phone responsive * Responsivness working across all breakpoints * Side menu height simplification * more chips for milestone and status * Basic client grid search * Newui README and component notes. * Add docs, cleanups, etc. * Component docs * Theme more robust Also added framework for dark mode. * Dark mode and theme enhancements * Install signals integration for vite, cleanup, and working darkmode toggle. * Update SpiffUIV2.tsx * Toggle feature for menu items Includes ability to swap icon and text on a toggle. Useful for dark mode toggle and possibly other things. * User menu pinned to bottom of VH Doesn't get lost if datagrid is long. * Color fixes for dark mode, added in tokens where possible. * Responsive Side Menu * adjusted filter cards to dark mode * Customize global themes for light and dark success/light/info/warning/error Pushing use of tokens everywhere, took some wrangling but it's in place now. Also fixed cards and a few other things to size more cleanly in responsive modes. * Fix tab light/dark mode swap Requires a bit more customiization of the theme. * Slide transition for menu * Solved very annoying MUI problem If there is a scrollbar on the screen, opening a Select removes it. This is intentional (use can not scroll the screen while select is open) but it has the unfortunate consequence of removing the browser scrollbar is that it increases the viewport size, causing all responsive layout to shift. This tells it "leave it be". Also add ability to feed in info to process instance hook. * Refactor some items to make layouts more declarative. We want the info window to be in the center-right of the view all the time, with some appropriate padding on the top-bottom, so regardless of the scroll position or window size they never lose it. Also, responsiveness (will resize until MD breakpoint then hide). * Refactor Dashboard to switch grids more cleanly * Info panel wired up * Task Collection, view hook etc. * My Tasks search working * Tab nav set up * "Old" forms loading into "new" flyout window. Had to move a few things around and dig into the routes, but got it up and running for demo. * InfoPanel displays selections from different grid views Built mini-factory to feed InfoPanel ReactNodes to render using selected grid item data. * Info panel toolbar, formatting and light/dark settings. * InfoPanel display with tasks APIs need to be sorted out, there doesn't appear to be an easy way to get all Tasks for a given ProcessId at this point. * Format dates in grids * Wire everything up for working workflow (demo-worthy) * Toggle for Row click panel open/close * Completed and waiting tasks in info panel. * Scrollable grids in the Dashboard view (no more page scrolling) * Remove mystery zero Stray truthy test was rendering the result (false, 0) * Tweak to prevent child scrollbars from overlaying infopanel windows. * had to install jsdom for Vue testing. * Update package-lock.json * Possibly ran npm i in the wrong directory hmm... * add optional platform dep * update lock file with optional dep info * Add ESBuild (this package was not found) There might be a global install but Vite/npm ain't seein' it. * Trying to make esbuild optional (it might already be global) * Accordions for tasks, and create a hook to enable some flexible customization. * Updates and refactoring to make more (possibly) extension-ready components for the data displays. * PI times summary report Also cleaned up some MUI Dom errors/warnings. * build images for newui * revert some changes in package-lock that did not help * Rebuilding repo (had "bad objects" error) * Charts (mostly for demo) * Responsive! * Collapsible side menu Added a button component suitable for the positioning/display, adjusted responsiveness (when the menu is collapsed, we need the grid to take up more room, and when the menu is naturally collapsed by screen size, we don't want the toggle button, etc.) * Adjust menu to display abbreviated spiff logo when collapsed. * Update DashboardCharts.tsx * Inserted Paper wrapper for sidemenu Makes the background responsive to dark mode (so it's not just more black surface). * Update SideMenu.tsx Fix positioning to accommodate new wrapper padding. * First wave of theme changes, global font alterations, restructure nav to top * Moving the design revamp along Walking the line between the new ideas but using the current functionality and components (we don't have designs for where things lik the dark mode and logout buttons go, the toolbar was removed but now we need a place for the start process button, we still need the tabs, etc.). * Moving new style along Had to add custom background palette for dark/light mode. * Carousel display and task cards for new display * Grids, carousels, accordions, etc. All in design requirement Desktop 27 (Figma file) * All finished Revamped, workflow implemented, rotating charts, dark mode checked, new scrollbars for more ipad-like feel, search working, etc. etc. * Tweaks and good to go. * Update MyProcesses.tsx Remove console.log. * Collapse process detail by default, and fix tasks label. * Full screen containers We don't want th default max width enforced by MUI. * TopNav responsiveness and speedial * Responsive grid areas * Add task counts * create a top level route for the new spiff ui from App.tsx w/ burnettk (#1586) Co-authored-by: jasquat <jasquat@users.noreply.github.com> * Unused imports * Clean up wonky pie chart. * Remove hardcoded url * Clean up info panel * Fix menu button responsive text wrap wonk * Put grid back With data changes since there is more stuff in the first column (based on the design). I took a best guess. * Remove cell focus outline with CSS overrides MUI * Flyout Panel for demo (new look etc.) * Task switching in panel. * Cleanup tweaks pre-demo. There is a bug in the "first select" of a row with tasks, I'm aware of it. * Rework flow of data, make it simpler Fixes a bug; when you clicked a PI row the first time, its tasks wouldn't load. If you did it again, everything worked. The way the code moved data to the InfoPanel was unclear, cleaning that up made the bug obvious. * put back psycopg2 and mysqlclient * Create useProcessModels.tsx * Create useProcessGroups.tsx * Update ProcessInstanceCard.tsx Fixes task count display * Refactor for top level routing Keeping all views as children of SpiffUIV2 (will make swapping app easier). * Update SpiffUIV2.tsx Routing and view scaffolding set. * Menu and button nice nice in dark mode etc. * View transitions * Process group/model data under control and feeding into view. * Using RXJS for broadcasting to menu items. * Update SpiffUIV2.tsx * Config seemed broken (I couldn't start the app, Vite not found etc.) I fixed by moving @preact/preset-vite to dependencies (this seems required, probably because it adds types and primitives that are used in runtime code or something) and making sure Node was up to date. * Fix for Preact breaking rendering lifecycle One of their PRs put a ridiculously low check on rerenders, and in dev/debug mode throws an app-crashing error, which affected the MUI-X Datagrid. * Button components aware of stream Also had to add a way for buttons to know what the view they nav to was loaded from the URL (e.g. a bookmark) to meet the design req. * Have to make sure buttons that have no paths don't respond to href load logic. * Layout for components, menu, treeview, theme tweaks Needed to alter text.secondary at theme level to accommodate designs. * Recurse through Process Group data to PM tree build tree for display All set. * Treeview complete Also moved some things around to track with evolving app structure. * Fully working tree with counters. * Favorites/Recently used layout, components, icons, etc. * Favorites and process groups displays A bit naive, but for now gets the job done. * Select of a group CArdor a group in the Tree updates view Display PMs and PGs for any group, and some ideas to tie selecting a Card into the Tree. This kind of has to work, if you don't do it the tree seems useless. * Create TreeItem wrapper TreeItems don't carry any data that could be used for crumbs. Need to wrap TreeItem and add a property that lets you expand any node anywhere in the hierarchy. * Update __init__.py * Update StartProcess.tsx Scrolling content area * Tree expansion from cards working as expected Have to do the collapse side of it, but so far so good. Also tweaks to scrolling area. * Wrap search bar and padding tweaks More explicit layout around child components. * Tree/card tracking working. Highlighting based on clicks, etc, very fancy. * Tree -> Cards -> Tree fully working, starting breadcrumbs. Breadcrumbs will be how this works on mobile, nobody will use the tree on a phone. * Collapse button will be used all over * More wiring details tree -> card -> tree -> search When search returns results, the tree or card nav is no longer the control. Use imperative ref to wipe expanded nodes. Also, make sure that if models and groups are returned that the accordions expand. Remove console logs. * Cross group model highlighting Tricky one: If you have several folders expanded in the tree, and are clicking through the models, if you click a model in a "non active" group, we have to clear the current group assets and load that group's. Since the cards come after the switch, they don't hear the clickstream that initiated them, so the model that was selected in the tree won't update the associated card's style. Fix that by passing in the lastSelected object to the cards and inspecting on init. * Localstorage, favorites, default favorite view (vs. groups), etc. * Guard no groups. * Update StartProcess.tsx Padding change opened up window, needed to adjust. * Update StartProcess.tsx * Update LocalStorageService.ts Update empty string to empty array. * Tree panel collapse/expand With everything else going on, this was tricky to get responsive, but working as expected now. Also tweak to fix annoying thing in MenuItems. Also made sure dark mode tracks. * Hover effects for cards and text cleanups Hover is useless on touch screens, but otherwise this is a bit more in keeping with the design. * Breadcrumbs, root element and favorites in collapse tree view, etc. This pretty much nails it. * Add Favorite Count Add count to favorites indicators. Helps user make sense of "I'm clicking it why are no items loading (because there are zero favorites). * Docs, cleanup Also fix that NavBar logo issue in the "old" app. * fix breadcrumb re-render issue when saving json file for first time w/ burnettk * fix / ignore eslint issues * add types for react-slick * ignore ts error * revert nav bar to undo logout logo change w/ burnettk * Update spiffworkflow-frontend/src/a-spiffui-v2/views/Dashboards/infopanels/ProcessInfo.tsx Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Update spiffworkflow-frontend/src/a-spiffui-v2/views/StartProcess/StartProcess.tsx Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --------- Co-authored-by: Tim Consolazio <tcoz@tcoz.com> Co-authored-by: burnettk <burnettk@users.noreply.github.com> Co-authored-by: jasquat <jasquat@users.noreply.github.com> Co-authored-by: Kevin Burnett <18027+burnettk@users.noreply.github.com> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2024-07-09 17:39:29 +00:00
"@mui/x-tree-view": "^7.6.1",
"@preact/preset-vite": "^2.9.0",
"@prefresh/vite": "^2.4.6",
"@react-icons/all-files": "^4.1.0",
"@rjsf/core": "^5.19.4",
"@rjsf/mui": "^5.19.4",
"@rjsf/utils": "^5.19.4",
"@rjsf/validator-ajv8": "^5.19.4",
"@tanstack/react-query": "^5.40.0",
"@tanstack/react-query-devtools": "^5.40.0",
"@testing-library/jest-dom": "^6.4.2",
"@testing-library/react": "^14.2.1",
"@testing-library/user-event": "^14.5.2",
"@types/jest": "^29.5.12",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@uiw/react-md-editor": "^3.20.2",
"@vitejs/plugin-react": "^4.3.1",
"autoprefixer": "^10.4.19",
"axios": "^1.7.2",
"bpmn-js": "^17.9.1",
"bpmn-js-cli": "^2.4.0",
"bpmn-js-properties-panel": "^5.19.0",
"bpmn-js-spiffworkflow": "github:sartography/bpmn-js-spiffworkflow#main",
"cookie": "^0.6.0",
"date-fns": "^3.6.0",
"diagram-js": "^14.8.0",
"dmn-js": "^16.5.0",
"dmn-js-properties-panel": "^3.0.0",
"dmn-js-shared": "^16.4.0",
"jwt-decode": "^4.0.0",
"keycloak-js": "^24.0.4",
Feature/better form nav (#474) * Detect focus loss/return in the Diagram Editor - so that we can reload the process model and assure that we know about any changed files. Allow for looking specifically for json SCHEMA files (those files that are named -schema.json or .schema.json (as is the convention). Only show these in the dropdown for the form. * * Run descriptions through the markdown processor so you can use bold/italic etc... in your description fields within a form. * Move ExampleTable into it's own view component to keep the size of the form builder sane. * Assure markdown within jrsf forms have reasonable styling that follows the containers style, rather than setting to some other default. * Add a couple of example forms so people can get a sense of what is possible. * Connect up the new Json Schema Editor Component to the process model edit diagram. * Just select the schema file - not the ui file when selecting the form for a component - we may revert this to just a text box. * * Cleanup the formatting of arrays, so that they are sligtly intended, do not contain an awkward unneeded heading, and have some tighter css. * Connect the form editing in the modal back to the BPMN-JS editor Auto-Save edits in the Form Builder Lots and lots of tweaks to the react form builder ui * various fixes. * test for prepare_schema * minor fix for run_pyl * css cleanup less issues with reloading and jumping about when in the editor Don't sort keys when returning the json. More intelligent "ready" * bump package to point to branch of bpmn-js-spiffworkflow so others can check it out. * Assure that json keys are not sorted during serialization by default. Allow adding example fields to an existing schema Create a set of examples. * db complaints in migration change. * removed items from interface file that had been moved elsewhere w/ burnettk * rename prepare_form to prepare-form * rename prepare_form to prepare-form * Remove commented out code. * typo * add a comment about the empty column * move back to the main branch --------- Co-authored-by: jasquat <jasquat@users.noreply.github.com> Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2023-09-08 15:07:43 +00:00
"lodash.merge": "^4.6.2",
"prop-types": "^15.8.1",
"react": "^18.3.1",
"react-datepicker": "^4.8.0",
"react-devtools": "^5.0.2",
"react-dom": "^18.3.1",
"react-error-boundary": "^4.0.13",
"react-icons": "^5.2.1",
"react-router": "^6.24.1",
"react-router-dom": "^6.25.1",
Spiffui/newui (#1891) * Scaffold new UI homepage, hide current nav bar * Layout set up Divider was fiddly, but got the same setup as Figma now. * Config to allow svg loading and imports etc. in Vite Also moved preact from dev deps to deps (recommended). * Configure app to use Poppins Was a little tricky, had to isolate this from the rest of the app. * Move icons from figma to app, set up menus SVGs have to be exported from Figma, moved into assets in app, etc. * Layout and SideMenu Components and layout all set. * Some basic global themeing knocked off from Web3 * Datagrid Layout complete Nothing works and the data is contrived, but it's all matchy-matchy with the Figma view and so on. * Menu items hover and rollover states * Add card row * useProcessInstances hook Knocked off from the call logic in ProcessInstanceListTable * Responsiveness * Responsive tweaks * Live data in grid etc. * Phone responsive * Responsivness working across all breakpoints * Side menu height simplification * more chips for milestone and status * Basic client grid search * Newui README and component notes. * Add docs, cleanups, etc. * Component docs * Theme more robust Also added framework for dark mode. * Dark mode and theme enhancements * Install signals integration for vite, cleanup, and working darkmode toggle. * Update SpiffUIV2.tsx * Toggle feature for menu items Includes ability to swap icon and text on a toggle. Useful for dark mode toggle and possibly other things. * User menu pinned to bottom of VH Doesn't get lost if datagrid is long. * Color fixes for dark mode, added in tokens where possible. * Responsive Side Menu * adjusted filter cards to dark mode * Customize global themes for light and dark success/light/info/warning/error Pushing use of tokens everywhere, took some wrangling but it's in place now. Also fixed cards and a few other things to size more cleanly in responsive modes. * Fix tab light/dark mode swap Requires a bit more customiization of the theme. * Slide transition for menu * Solved very annoying MUI problem If there is a scrollbar on the screen, opening a Select removes it. This is intentional (use can not scroll the screen while select is open) but it has the unfortunate consequence of removing the browser scrollbar is that it increases the viewport size, causing all responsive layout to shift. This tells it "leave it be". Also add ability to feed in info to process instance hook. * Refactor some items to make layouts more declarative. We want the info window to be in the center-right of the view all the time, with some appropriate padding on the top-bottom, so regardless of the scroll position or window size they never lose it. Also, responsiveness (will resize until MD breakpoint then hide). * Refactor Dashboard to switch grids more cleanly * Info panel wired up * Task Collection, view hook etc. * My Tasks search working * Tab nav set up * "Old" forms loading into "new" flyout window. Had to move a few things around and dig into the routes, but got it up and running for demo. * InfoPanel displays selections from different grid views Built mini-factory to feed InfoPanel ReactNodes to render using selected grid item data. * Info panel toolbar, formatting and light/dark settings. * InfoPanel display with tasks APIs need to be sorted out, there doesn't appear to be an easy way to get all Tasks for a given ProcessId at this point. * Format dates in grids * Wire everything up for working workflow (demo-worthy) * Toggle for Row click panel open/close * Completed and waiting tasks in info panel. * Scrollable grids in the Dashboard view (no more page scrolling) * Remove mystery zero Stray truthy test was rendering the result (false, 0) * Tweak to prevent child scrollbars from overlaying infopanel windows. * had to install jsdom for Vue testing. * Update package-lock.json * Possibly ran npm i in the wrong directory hmm... * add optional platform dep * update lock file with optional dep info * Add ESBuild (this package was not found) There might be a global install but Vite/npm ain't seein' it. * Trying to make esbuild optional (it might already be global) * Accordions for tasks, and create a hook to enable some flexible customization. * Updates and refactoring to make more (possibly) extension-ready components for the data displays. * PI times summary report Also cleaned up some MUI Dom errors/warnings. * build images for newui * revert some changes in package-lock that did not help * Rebuilding repo (had "bad objects" error) * Charts (mostly for demo) * Responsive! * Collapsible side menu Added a button component suitable for the positioning/display, adjusted responsiveness (when the menu is collapsed, we need the grid to take up more room, and when the menu is naturally collapsed by screen size, we don't want the toggle button, etc.) * Adjust menu to display abbreviated spiff logo when collapsed. * Update DashboardCharts.tsx * Inserted Paper wrapper for sidemenu Makes the background responsive to dark mode (so it's not just more black surface). * Update SideMenu.tsx Fix positioning to accommodate new wrapper padding. * First wave of theme changes, global font alterations, restructure nav to top * Moving the design revamp along Walking the line between the new ideas but using the current functionality and components (we don't have designs for where things lik the dark mode and logout buttons go, the toolbar was removed but now we need a place for the start process button, we still need the tabs, etc.). * Moving new style along Had to add custom background palette for dark/light mode. * Carousel display and task cards for new display * Grids, carousels, accordions, etc. All in design requirement Desktop 27 (Figma file) * All finished Revamped, workflow implemented, rotating charts, dark mode checked, new scrollbars for more ipad-like feel, search working, etc. etc. * Tweaks and good to go. * Update MyProcesses.tsx Remove console.log. * Collapse process detail by default, and fix tasks label. * Full screen containers We don't want th default max width enforced by MUI. * TopNav responsiveness and speedial * Responsive grid areas * Add task counts * create a top level route for the new spiff ui from App.tsx w/ burnettk (#1586) Co-authored-by: jasquat <jasquat@users.noreply.github.com> * Unused imports * Clean up wonky pie chart. * Remove hardcoded url * Clean up info panel * Fix menu button responsive text wrap wonk * Put grid back With data changes since there is more stuff in the first column (based on the design). I took a best guess. * Remove cell focus outline with CSS overrides MUI * Flyout Panel for demo (new look etc.) * Task switching in panel. * Cleanup tweaks pre-demo. There is a bug in the "first select" of a row with tasks, I'm aware of it. * Rework flow of data, make it simpler Fixes a bug; when you clicked a PI row the first time, its tasks wouldn't load. If you did it again, everything worked. The way the code moved data to the InfoPanel was unclear, cleaning that up made the bug obvious. * put back psycopg2 and mysqlclient * Create useProcessModels.tsx * Create useProcessGroups.tsx * Update ProcessInstanceCard.tsx Fixes task count display * Refactor for top level routing Keeping all views as children of SpiffUIV2 (will make swapping app easier). * Update SpiffUIV2.tsx Routing and view scaffolding set. * Menu and button nice nice in dark mode etc. * View transitions * Process group/model data under control and feeding into view. * Using RXJS for broadcasting to menu items. * Update SpiffUIV2.tsx * Config seemed broken (I couldn't start the app, Vite not found etc.) I fixed by moving @preact/preset-vite to dependencies (this seems required, probably because it adds types and primitives that are used in runtime code or something) and making sure Node was up to date. * Fix for Preact breaking rendering lifecycle One of their PRs put a ridiculously low check on rerenders, and in dev/debug mode throws an app-crashing error, which affected the MUI-X Datagrid. * Button components aware of stream Also had to add a way for buttons to know what the view they nav to was loaded from the URL (e.g. a bookmark) to meet the design req. * Have to make sure buttons that have no paths don't respond to href load logic. * Layout for components, menu, treeview, theme tweaks Needed to alter text.secondary at theme level to accommodate designs. * Recurse through Process Group data to PM tree build tree for display All set. * Treeview complete Also moved some things around to track with evolving app structure. * Fully working tree with counters. * Favorites/Recently used layout, components, icons, etc. * Favorites and process groups displays A bit naive, but for now gets the job done. * Select of a group CArdor a group in the Tree updates view Display PMs and PGs for any group, and some ideas to tie selecting a Card into the Tree. This kind of has to work, if you don't do it the tree seems useless. * Create TreeItem wrapper TreeItems don't carry any data that could be used for crumbs. Need to wrap TreeItem and add a property that lets you expand any node anywhere in the hierarchy. * Update __init__.py * Update StartProcess.tsx Scrolling content area * Tree expansion from cards working as expected Have to do the collapse side of it, but so far so good. Also tweaks to scrolling area. * Wrap search bar and padding tweaks More explicit layout around child components. * Tree/card tracking working. Highlighting based on clicks, etc, very fancy. * Tree -> Cards -> Tree fully working, starting breadcrumbs. Breadcrumbs will be how this works on mobile, nobody will use the tree on a phone. * Collapse button will be used all over * More wiring details tree -> card -> tree -> search When search returns results, the tree or card nav is no longer the control. Use imperative ref to wipe expanded nodes. Also, make sure that if models and groups are returned that the accordions expand. Remove console logs. * Cross group model highlighting Tricky one: If you have several folders expanded in the tree, and are clicking through the models, if you click a model in a "non active" group, we have to clear the current group assets and load that group's. Since the cards come after the switch, they don't hear the clickstream that initiated them, so the model that was selected in the tree won't update the associated card's style. Fix that by passing in the lastSelected object to the cards and inspecting on init. * Localstorage, favorites, default favorite view (vs. groups), etc. * Guard no groups. * Update StartProcess.tsx Padding change opened up window, needed to adjust. * Update StartProcess.tsx * Update LocalStorageService.ts Update empty string to empty array. * Tree panel collapse/expand With everything else going on, this was tricky to get responsive, but working as expected now. Also tweak to fix annoying thing in MenuItems. Also made sure dark mode tracks. * Hover effects for cards and text cleanups Hover is useless on touch screens, but otherwise this is a bit more in keeping with the design. * Breadcrumbs, root element and favorites in collapse tree view, etc. This pretty much nails it. * Add Favorite Count Add count to favorites indicators. Helps user make sense of "I'm clicking it why are no items loading (because there are zero favorites). * Docs, cleanup Also fix that NavBar logo issue in the "old" app. * fix breadcrumb re-render issue when saving json file for first time w/ burnettk * fix / ignore eslint issues * add types for react-slick * ignore ts error * revert nav bar to undo logout logo change w/ burnettk * Update spiffworkflow-frontend/src/a-spiffui-v2/views/Dashboards/infopanels/ProcessInfo.tsx Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Update spiffworkflow-frontend/src/a-spiffui-v2/views/StartProcess/StartProcess.tsx Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --------- Co-authored-by: Tim Consolazio <tcoz@tcoz.com> Co-authored-by: burnettk <burnettk@users.noreply.github.com> Co-authored-by: jasquat <jasquat@users.noreply.github.com> Co-authored-by: Kevin Burnett <18027+burnettk@users.noreply.github.com> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2024-07-09 17:39:29 +00:00
"react-slick": "^0.30.2",
"rxjs": "^7.8.1",
"serve": "^14.2.3",
Spiffui/newui (#1891) * Scaffold new UI homepage, hide current nav bar * Layout set up Divider was fiddly, but got the same setup as Figma now. * Config to allow svg loading and imports etc. in Vite Also moved preact from dev deps to deps (recommended). * Configure app to use Poppins Was a little tricky, had to isolate this from the rest of the app. * Move icons from figma to app, set up menus SVGs have to be exported from Figma, moved into assets in app, etc. * Layout and SideMenu Components and layout all set. * Some basic global themeing knocked off from Web3 * Datagrid Layout complete Nothing works and the data is contrived, but it's all matchy-matchy with the Figma view and so on. * Menu items hover and rollover states * Add card row * useProcessInstances hook Knocked off from the call logic in ProcessInstanceListTable * Responsiveness * Responsive tweaks * Live data in grid etc. * Phone responsive * Responsivness working across all breakpoints * Side menu height simplification * more chips for milestone and status * Basic client grid search * Newui README and component notes. * Add docs, cleanups, etc. * Component docs * Theme more robust Also added framework for dark mode. * Dark mode and theme enhancements * Install signals integration for vite, cleanup, and working darkmode toggle. * Update SpiffUIV2.tsx * Toggle feature for menu items Includes ability to swap icon and text on a toggle. Useful for dark mode toggle and possibly other things. * User menu pinned to bottom of VH Doesn't get lost if datagrid is long. * Color fixes for dark mode, added in tokens where possible. * Responsive Side Menu * adjusted filter cards to dark mode * Customize global themes for light and dark success/light/info/warning/error Pushing use of tokens everywhere, took some wrangling but it's in place now. Also fixed cards and a few other things to size more cleanly in responsive modes. * Fix tab light/dark mode swap Requires a bit more customiization of the theme. * Slide transition for menu * Solved very annoying MUI problem If there is a scrollbar on the screen, opening a Select removes it. This is intentional (use can not scroll the screen while select is open) but it has the unfortunate consequence of removing the browser scrollbar is that it increases the viewport size, causing all responsive layout to shift. This tells it "leave it be". Also add ability to feed in info to process instance hook. * Refactor some items to make layouts more declarative. We want the info window to be in the center-right of the view all the time, with some appropriate padding on the top-bottom, so regardless of the scroll position or window size they never lose it. Also, responsiveness (will resize until MD breakpoint then hide). * Refactor Dashboard to switch grids more cleanly * Info panel wired up * Task Collection, view hook etc. * My Tasks search working * Tab nav set up * "Old" forms loading into "new" flyout window. Had to move a few things around and dig into the routes, but got it up and running for demo. * InfoPanel displays selections from different grid views Built mini-factory to feed InfoPanel ReactNodes to render using selected grid item data. * Info panel toolbar, formatting and light/dark settings. * InfoPanel display with tasks APIs need to be sorted out, there doesn't appear to be an easy way to get all Tasks for a given ProcessId at this point. * Format dates in grids * Wire everything up for working workflow (demo-worthy) * Toggle for Row click panel open/close * Completed and waiting tasks in info panel. * Scrollable grids in the Dashboard view (no more page scrolling) * Remove mystery zero Stray truthy test was rendering the result (false, 0) * Tweak to prevent child scrollbars from overlaying infopanel windows. * had to install jsdom for Vue testing. * Update package-lock.json * Possibly ran npm i in the wrong directory hmm... * add optional platform dep * update lock file with optional dep info * Add ESBuild (this package was not found) There might be a global install but Vite/npm ain't seein' it. * Trying to make esbuild optional (it might already be global) * Accordions for tasks, and create a hook to enable some flexible customization. * Updates and refactoring to make more (possibly) extension-ready components for the data displays. * PI times summary report Also cleaned up some MUI Dom errors/warnings. * build images for newui * revert some changes in package-lock that did not help * Rebuilding repo (had "bad objects" error) * Charts (mostly for demo) * Responsive! * Collapsible side menu Added a button component suitable for the positioning/display, adjusted responsiveness (when the menu is collapsed, we need the grid to take up more room, and when the menu is naturally collapsed by screen size, we don't want the toggle button, etc.) * Adjust menu to display abbreviated spiff logo when collapsed. * Update DashboardCharts.tsx * Inserted Paper wrapper for sidemenu Makes the background responsive to dark mode (so it's not just more black surface). * Update SideMenu.tsx Fix positioning to accommodate new wrapper padding. * First wave of theme changes, global font alterations, restructure nav to top * Moving the design revamp along Walking the line between the new ideas but using the current functionality and components (we don't have designs for where things lik the dark mode and logout buttons go, the toolbar was removed but now we need a place for the start process button, we still need the tabs, etc.). * Moving new style along Had to add custom background palette for dark/light mode. * Carousel display and task cards for new display * Grids, carousels, accordions, etc. All in design requirement Desktop 27 (Figma file) * All finished Revamped, workflow implemented, rotating charts, dark mode checked, new scrollbars for more ipad-like feel, search working, etc. etc. * Tweaks and good to go. * Update MyProcesses.tsx Remove console.log. * Collapse process detail by default, and fix tasks label. * Full screen containers We don't want th default max width enforced by MUI. * TopNav responsiveness and speedial * Responsive grid areas * Add task counts * create a top level route for the new spiff ui from App.tsx w/ burnettk (#1586) Co-authored-by: jasquat <jasquat@users.noreply.github.com> * Unused imports * Clean up wonky pie chart. * Remove hardcoded url * Clean up info panel * Fix menu button responsive text wrap wonk * Put grid back With data changes since there is more stuff in the first column (based on the design). I took a best guess. * Remove cell focus outline with CSS overrides MUI * Flyout Panel for demo (new look etc.) * Task switching in panel. * Cleanup tweaks pre-demo. There is a bug in the "first select" of a row with tasks, I'm aware of it. * Rework flow of data, make it simpler Fixes a bug; when you clicked a PI row the first time, its tasks wouldn't load. If you did it again, everything worked. The way the code moved data to the InfoPanel was unclear, cleaning that up made the bug obvious. * put back psycopg2 and mysqlclient * Create useProcessModels.tsx * Create useProcessGroups.tsx * Update ProcessInstanceCard.tsx Fixes task count display * Refactor for top level routing Keeping all views as children of SpiffUIV2 (will make swapping app easier). * Update SpiffUIV2.tsx Routing and view scaffolding set. * Menu and button nice nice in dark mode etc. * View transitions * Process group/model data under control and feeding into view. * Using RXJS for broadcasting to menu items. * Update SpiffUIV2.tsx * Config seemed broken (I couldn't start the app, Vite not found etc.) I fixed by moving @preact/preset-vite to dependencies (this seems required, probably because it adds types and primitives that are used in runtime code or something) and making sure Node was up to date. * Fix for Preact breaking rendering lifecycle One of their PRs put a ridiculously low check on rerenders, and in dev/debug mode throws an app-crashing error, which affected the MUI-X Datagrid. * Button components aware of stream Also had to add a way for buttons to know what the view they nav to was loaded from the URL (e.g. a bookmark) to meet the design req. * Have to make sure buttons that have no paths don't respond to href load logic. * Layout for components, menu, treeview, theme tweaks Needed to alter text.secondary at theme level to accommodate designs. * Recurse through Process Group data to PM tree build tree for display All set. * Treeview complete Also moved some things around to track with evolving app structure. * Fully working tree with counters. * Favorites/Recently used layout, components, icons, etc. * Favorites and process groups displays A bit naive, but for now gets the job done. * Select of a group CArdor a group in the Tree updates view Display PMs and PGs for any group, and some ideas to tie selecting a Card into the Tree. This kind of has to work, if you don't do it the tree seems useless. * Create TreeItem wrapper TreeItems don't carry any data that could be used for crumbs. Need to wrap TreeItem and add a property that lets you expand any node anywhere in the hierarchy. * Update __init__.py * Update StartProcess.tsx Scrolling content area * Tree expansion from cards working as expected Have to do the collapse side of it, but so far so good. Also tweaks to scrolling area. * Wrap search bar and padding tweaks More explicit layout around child components. * Tree/card tracking working. Highlighting based on clicks, etc, very fancy. * Tree -> Cards -> Tree fully working, starting breadcrumbs. Breadcrumbs will be how this works on mobile, nobody will use the tree on a phone. * Collapse button will be used all over * More wiring details tree -> card -> tree -> search When search returns results, the tree or card nav is no longer the control. Use imperative ref to wipe expanded nodes. Also, make sure that if models and groups are returned that the accordions expand. Remove console logs. * Cross group model highlighting Tricky one: If you have several folders expanded in the tree, and are clicking through the models, if you click a model in a "non active" group, we have to clear the current group assets and load that group's. Since the cards come after the switch, they don't hear the clickstream that initiated them, so the model that was selected in the tree won't update the associated card's style. Fix that by passing in the lastSelected object to the cards and inspecting on init. * Localstorage, favorites, default favorite view (vs. groups), etc. * Guard no groups. * Update StartProcess.tsx Padding change opened up window, needed to adjust. * Update StartProcess.tsx * Update LocalStorageService.ts Update empty string to empty array. * Tree panel collapse/expand With everything else going on, this was tricky to get responsive, but working as expected now. Also tweak to fix annoying thing in MenuItems. Also made sure dark mode tracks. * Hover effects for cards and text cleanups Hover is useless on touch screens, but otherwise this is a bit more in keeping with the design. * Breadcrumbs, root element and favorites in collapse tree view, etc. This pretty much nails it. * Add Favorite Count Add count to favorites indicators. Helps user make sense of "I'm clicking it why are no items loading (because there are zero favorites). * Docs, cleanup Also fix that NavBar logo issue in the "old" app. * fix breadcrumb re-render issue when saving json file for first time w/ burnettk * fix / ignore eslint issues * add types for react-slick * ignore ts error * revert nav bar to undo logout logo change w/ burnettk * Update spiffworkflow-frontend/src/a-spiffui-v2/views/Dashboards/infopanels/ProcessInfo.tsx Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Update spiffworkflow-frontend/src/a-spiffui-v2/views/StartProcess/StartProcess.tsx Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --------- Co-authored-by: Tim Consolazio <tcoz@tcoz.com> Co-authored-by: burnettk <burnettk@users.noreply.github.com> Co-authored-by: jasquat <jasquat@users.noreply.github.com> Co-authored-by: Kevin Burnett <18027+burnettk@users.noreply.github.com> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2024-07-09 17:39:29 +00:00
"slick-carousel": "^1.8.1",
"timepicker": "^1.13.18",
"typescript": "^4.7.4",
"use-debounce": "^10.0.1",
"vite": "^5.3.5",
Spiffui/newui (#1891) * Scaffold new UI homepage, hide current nav bar * Layout set up Divider was fiddly, but got the same setup as Figma now. * Config to allow svg loading and imports etc. in Vite Also moved preact from dev deps to deps (recommended). * Configure app to use Poppins Was a little tricky, had to isolate this from the rest of the app. * Move icons from figma to app, set up menus SVGs have to be exported from Figma, moved into assets in app, etc. * Layout and SideMenu Components and layout all set. * Some basic global themeing knocked off from Web3 * Datagrid Layout complete Nothing works and the data is contrived, but it's all matchy-matchy with the Figma view and so on. * Menu items hover and rollover states * Add card row * useProcessInstances hook Knocked off from the call logic in ProcessInstanceListTable * Responsiveness * Responsive tweaks * Live data in grid etc. * Phone responsive * Responsivness working across all breakpoints * Side menu height simplification * more chips for milestone and status * Basic client grid search * Newui README and component notes. * Add docs, cleanups, etc. * Component docs * Theme more robust Also added framework for dark mode. * Dark mode and theme enhancements * Install signals integration for vite, cleanup, and working darkmode toggle. * Update SpiffUIV2.tsx * Toggle feature for menu items Includes ability to swap icon and text on a toggle. Useful for dark mode toggle and possibly other things. * User menu pinned to bottom of VH Doesn't get lost if datagrid is long. * Color fixes for dark mode, added in tokens where possible. * Responsive Side Menu * adjusted filter cards to dark mode * Customize global themes for light and dark success/light/info/warning/error Pushing use of tokens everywhere, took some wrangling but it's in place now. Also fixed cards and a few other things to size more cleanly in responsive modes. * Fix tab light/dark mode swap Requires a bit more customiization of the theme. * Slide transition for menu * Solved very annoying MUI problem If there is a scrollbar on the screen, opening a Select removes it. This is intentional (use can not scroll the screen while select is open) but it has the unfortunate consequence of removing the browser scrollbar is that it increases the viewport size, causing all responsive layout to shift. This tells it "leave it be". Also add ability to feed in info to process instance hook. * Refactor some items to make layouts more declarative. We want the info window to be in the center-right of the view all the time, with some appropriate padding on the top-bottom, so regardless of the scroll position or window size they never lose it. Also, responsiveness (will resize until MD breakpoint then hide). * Refactor Dashboard to switch grids more cleanly * Info panel wired up * Task Collection, view hook etc. * My Tasks search working * Tab nav set up * "Old" forms loading into "new" flyout window. Had to move a few things around and dig into the routes, but got it up and running for demo. * InfoPanel displays selections from different grid views Built mini-factory to feed InfoPanel ReactNodes to render using selected grid item data. * Info panel toolbar, formatting and light/dark settings. * InfoPanel display with tasks APIs need to be sorted out, there doesn't appear to be an easy way to get all Tasks for a given ProcessId at this point. * Format dates in grids * Wire everything up for working workflow (demo-worthy) * Toggle for Row click panel open/close * Completed and waiting tasks in info panel. * Scrollable grids in the Dashboard view (no more page scrolling) * Remove mystery zero Stray truthy test was rendering the result (false, 0) * Tweak to prevent child scrollbars from overlaying infopanel windows. * had to install jsdom for Vue testing. * Update package-lock.json * Possibly ran npm i in the wrong directory hmm... * add optional platform dep * update lock file with optional dep info * Add ESBuild (this package was not found) There might be a global install but Vite/npm ain't seein' it. * Trying to make esbuild optional (it might already be global) * Accordions for tasks, and create a hook to enable some flexible customization. * Updates and refactoring to make more (possibly) extension-ready components for the data displays. * PI times summary report Also cleaned up some MUI Dom errors/warnings. * build images for newui * revert some changes in package-lock that did not help * Rebuilding repo (had "bad objects" error) * Charts (mostly for demo) * Responsive! * Collapsible side menu Added a button component suitable for the positioning/display, adjusted responsiveness (when the menu is collapsed, we need the grid to take up more room, and when the menu is naturally collapsed by screen size, we don't want the toggle button, etc.) * Adjust menu to display abbreviated spiff logo when collapsed. * Update DashboardCharts.tsx * Inserted Paper wrapper for sidemenu Makes the background responsive to dark mode (so it's not just more black surface). * Update SideMenu.tsx Fix positioning to accommodate new wrapper padding. * First wave of theme changes, global font alterations, restructure nav to top * Moving the design revamp along Walking the line between the new ideas but using the current functionality and components (we don't have designs for where things lik the dark mode and logout buttons go, the toolbar was removed but now we need a place for the start process button, we still need the tabs, etc.). * Moving new style along Had to add custom background palette for dark/light mode. * Carousel display and task cards for new display * Grids, carousels, accordions, etc. All in design requirement Desktop 27 (Figma file) * All finished Revamped, workflow implemented, rotating charts, dark mode checked, new scrollbars for more ipad-like feel, search working, etc. etc. * Tweaks and good to go. * Update MyProcesses.tsx Remove console.log. * Collapse process detail by default, and fix tasks label. * Full screen containers We don't want th default max width enforced by MUI. * TopNav responsiveness and speedial * Responsive grid areas * Add task counts * create a top level route for the new spiff ui from App.tsx w/ burnettk (#1586) Co-authored-by: jasquat <jasquat@users.noreply.github.com> * Unused imports * Clean up wonky pie chart. * Remove hardcoded url * Clean up info panel * Fix menu button responsive text wrap wonk * Put grid back With data changes since there is more stuff in the first column (based on the design). I took a best guess. * Remove cell focus outline with CSS overrides MUI * Flyout Panel for demo (new look etc.) * Task switching in panel. * Cleanup tweaks pre-demo. There is a bug in the "first select" of a row with tasks, I'm aware of it. * Rework flow of data, make it simpler Fixes a bug; when you clicked a PI row the first time, its tasks wouldn't load. If you did it again, everything worked. The way the code moved data to the InfoPanel was unclear, cleaning that up made the bug obvious. * put back psycopg2 and mysqlclient * Create useProcessModels.tsx * Create useProcessGroups.tsx * Update ProcessInstanceCard.tsx Fixes task count display * Refactor for top level routing Keeping all views as children of SpiffUIV2 (will make swapping app easier). * Update SpiffUIV2.tsx Routing and view scaffolding set. * Menu and button nice nice in dark mode etc. * View transitions * Process group/model data under control and feeding into view. * Using RXJS for broadcasting to menu items. * Update SpiffUIV2.tsx * Config seemed broken (I couldn't start the app, Vite not found etc.) I fixed by moving @preact/preset-vite to dependencies (this seems required, probably because it adds types and primitives that are used in runtime code or something) and making sure Node was up to date. * Fix for Preact breaking rendering lifecycle One of their PRs put a ridiculously low check on rerenders, and in dev/debug mode throws an app-crashing error, which affected the MUI-X Datagrid. * Button components aware of stream Also had to add a way for buttons to know what the view they nav to was loaded from the URL (e.g. a bookmark) to meet the design req. * Have to make sure buttons that have no paths don't respond to href load logic. * Layout for components, menu, treeview, theme tweaks Needed to alter text.secondary at theme level to accommodate designs. * Recurse through Process Group data to PM tree build tree for display All set. * Treeview complete Also moved some things around to track with evolving app structure. * Fully working tree with counters. * Favorites/Recently used layout, components, icons, etc. * Favorites and process groups displays A bit naive, but for now gets the job done. * Select of a group CArdor a group in the Tree updates view Display PMs and PGs for any group, and some ideas to tie selecting a Card into the Tree. This kind of has to work, if you don't do it the tree seems useless. * Create TreeItem wrapper TreeItems don't carry any data that could be used for crumbs. Need to wrap TreeItem and add a property that lets you expand any node anywhere in the hierarchy. * Update __init__.py * Update StartProcess.tsx Scrolling content area * Tree expansion from cards working as expected Have to do the collapse side of it, but so far so good. Also tweaks to scrolling area. * Wrap search bar and padding tweaks More explicit layout around child components. * Tree/card tracking working. Highlighting based on clicks, etc, very fancy. * Tree -> Cards -> Tree fully working, starting breadcrumbs. Breadcrumbs will be how this works on mobile, nobody will use the tree on a phone. * Collapse button will be used all over * More wiring details tree -> card -> tree -> search When search returns results, the tree or card nav is no longer the control. Use imperative ref to wipe expanded nodes. Also, make sure that if models and groups are returned that the accordions expand. Remove console logs. * Cross group model highlighting Tricky one: If you have several folders expanded in the tree, and are clicking through the models, if you click a model in a "non active" group, we have to clear the current group assets and load that group's. Since the cards come after the switch, they don't hear the clickstream that initiated them, so the model that was selected in the tree won't update the associated card's style. Fix that by passing in the lastSelected object to the cards and inspecting on init. * Localstorage, favorites, default favorite view (vs. groups), etc. * Guard no groups. * Update StartProcess.tsx Padding change opened up window, needed to adjust. * Update StartProcess.tsx * Update LocalStorageService.ts Update empty string to empty array. * Tree panel collapse/expand With everything else going on, this was tricky to get responsive, but working as expected now. Also tweak to fix annoying thing in MenuItems. Also made sure dark mode tracks. * Hover effects for cards and text cleanups Hover is useless on touch screens, but otherwise this is a bit more in keeping with the design. * Breadcrumbs, root element and favorites in collapse tree view, etc. This pretty much nails it. * Add Favorite Count Add count to favorites indicators. Helps user make sense of "I'm clicking it why are no items loading (because there are zero favorites). * Docs, cleanup Also fix that NavBar logo issue in the "old" app. * fix breadcrumb re-render issue when saving json file for first time w/ burnettk * fix / ignore eslint issues * add types for react-slick * ignore ts error * revert nav bar to undo logout logo change w/ burnettk * Update spiffworkflow-frontend/src/a-spiffui-v2/views/Dashboards/infopanels/ProcessInfo.tsx Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Update spiffworkflow-frontend/src/a-spiffui-v2/views/StartProcess/StartProcess.tsx Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --------- Co-authored-by: Tim Consolazio <tcoz@tcoz.com> Co-authored-by: burnettk <burnettk@users.noreply.github.com> Co-authored-by: jasquat <jasquat@users.noreply.github.com> Co-authored-by: Kevin Burnett <18027+burnettk@users.noreply.github.com> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2024-07-09 17:39:29 +00:00
"vite-plugin-svgr": "^4.2.0",
"vite-tsconfig-paths": "^4.3.2",
"web-vitals": "^3.5.2"
},
"overrides": {
"postcss-preset-env": {
"autoprefixer": "10.4.5"
}
},
"scripts": {
"build": "vite build",
"eslint": "./node_modules/.bin/eslint src --ext .js,.jsx,.ts,.tsx",
"format": "prettier --write src/**/*.[tj]s{,x}",
the big message improvements branch (#1549) * imported patch from old message_improvements branch w/ burnettk * wip. * merging in changes from message_improvements * remove patch files that were accidendetally added. * Added a modal for editing a correlation. Added ability to delete whole correlation keys. A little css cleanup. * * Removing migration - will add back in at the end. * The Message models API should not require page and per_age parameters, it will return all. * The Message model list should return a full json description of all messages/correlations for all containing groups. * * wip * Add import, fix class name * Getting ./bin/pyl to pass * Getting ./bin/pyl to pass * Some fe lint fixes * Some ruff fixes * Commands to nuke poetry dirs * Temp skipping of a couple tests * Getting ./bin/pyl to pass * This needs to be back in * Revert back to main * Factored out data store handling * Working on factoring out collecting messages, has test failure * Formatting * Fixed up test failures * Remove commentted out lines * Adding fields * Fix merge issue * Re-enable modal * WIP * Untested relationships * Remove correlation key table * Remove retrieval expression from uniqueness * Remove commentted out lines * WIP * WIP * WIP * WIP * WIP * Make mypy pass * Getting formatters to pass * Add migration * WIP fixing tests * WIP fixing tests * WIP fixing tests * WIP fixing tests * WIP fixing tests * Getting ./bin/pyl to pass * Fix skipped test * Fix skipped test * Getting ./bin/pyl to pass * Remove unused method * Remove unused methods * Clean up unused code * Refactor to support creating single messages from the UI * Untested support for processing one process_group * WIP test * WIP test * Filled out test * Getting ./bin/pyl to pass * Message Editor Modal Work * Change migration and add in schemas. * Swtich to using the associated branch of the process BPMN.io mods * Get the backend returning messages created from the frontend to the drop down list in the BPMN.io editor. * Merge main, fix up test * Getting ./bin/pyl to pass * Show path in location * Rename var * install packages from bpmn-js-spiffworkflow as well for local development * process group api can add and update message models now w/ burnettk * backend tests are passing now w/ burnettk * the launch message edit button is loading the editor w/ burnettk * updated bpmn-js-spiffworkflow * pyl is passing w/ burnettk * updated bpmn-js-spiffworkflow w/ burnettk * updated bpmn-js-spiffworkflow w/ burnettk * fixed console errors w/ burnettk * a couple tweaks w/ burnettk * save the message json in the new format from the mform w/ burnettk * display the correlation props in the form w/ burnettk * default to empty schema so the format is obvious * allow removing correlation props from web ui w/ burnettk * added save notification when saving a message on a process model w/ burnettk * fixed broken test w/ burnettk * Updating test cases to new message format, tests are failing * support schema from messages in frontend * Fixing tests * Fixing tests * Fixing tests * removed references to correlation keys and removed unused components w/ burnettk * removed temp mesasge model edit button w/ burnettk * Make mypy pass * Fixing tests * Fixing tests * Getting ./bin/pyl to pass * save deleted messages before attempting to add new ones w/ burnettk * set state for the message id so it can be changed w/ burnettk * do not wait for the message id to be set since it is not necessary w/ burnettk * updated bpmn-js-spiffworkflow w/ burnettk * build images for this branch w/ burnettk * put location in path of message-models so we can control permissions on it w/ burnettk * fix black * some coderabbit suggestions * pull in spiff fix * Default schema to {} * Temp fix for invalid schema * updated bpmn-js-spiffworkflow * some updates for issue 1626 * minor name tweaks and attempts to update message dropdown in panel when message changes - does not work yet w/ burnettk * updated bpmn-js-spiffworkflow w/ burnettk * attempt to call add_message.returned event when message updates w/ burnettk * treat formData as a state in the MesasgeEditor so it can be updated when the form contents is modified w/ burnettk * updated bpmn-js-spiffworkflow w/ burnettk * Feature/merge correlation properties (#1693) * Merge XML Correlation properties with Process group properties * updates for messages w/ burnettk --------- Co-authored-by: theaubmov <ayoubaitlachgar98@gmail.com> Co-authored-by: jasquat <jasquat@users.noreply.github.com> * do not wait for message id state to be set to better support new messages w/ burnettk * updated SpiffWorkflow w/ burnettk * some cleanup from coderabbit and linting * added index to message tables, run typecheck in ci, and other updates while code reviewing w/ burnettk * updated bpmn-js-spiffworkflow w/ burnettk * remove branch to build --------- Co-authored-by: jasquat <jasquat@users.noreply.github.com> Co-authored-by: danfunk <daniel.h.funk@gmail.com> Co-authored-by: Jon Herron <jon.herron@yahoo.com> Co-authored-by: burnettk <burnettk@users.noreply.github.com> Co-authored-by: jasquat <2487833+jasquat@users.noreply.github.com> Co-authored-by: theaubmov <ayoubaitlachgar98@gmail.com>
2024-06-10 16:15:54 +00:00
"lint": "npm run eslint && npm run typecheck",
"lint:fix": "./node_modules/.bin/eslint --fix src --ext .js,.jsx,.ts,.tsx",
"serve": "vite preview",
"start": "VITE_VERSION_INFO='{\"version\":\"local\"}' vite",
Newuiv3 (#2047) * new view to kick off process instance * now ProcessModelCard can kick off an instance * show total child items rather than using a slash * some initial code to implement frontend from figma w/ burnettk * updated homepage tab names w/ burnettk * updated field names in new ui w/ burnettk * moved nabar to wrapper component w/ burnettk * added basics for dark mode w/ burnettk * use spiff logo and colors w/ burnettk * use spiff logo and colors w/ burnettk * corrected hover colors in dark mode * some additional formatting * added tree view to start process page in v3 site w/ burnettk * some cleanup for the tree view w/ burnettk * removed unused side nav items w/ burnettk * actually navigate to locations when clicking in nav bar w/ burnettk * moved custom button inline with other items w/ burnettk * moved used items from v2 ui to v3 and change paths to v3 to newui and old to newuiv2 * updated v2 code to match main so we can more easily compare against it * revert v2 route as well to be like main * some fixes and clean and added profile button w/ burnettk * revert nav bar w/ burnettk * update profile menu so it can log out w/ burnettk * added dark mode button back w/ burnettk * profile menu update w/ burnettk * profile menu update w/ burnettk * moved side nav into own component w/ burnettk * make sure you have to logged in to see the new ui w/ burnettk * stack icons on collapse * allow profile menu to go beyond constraint of sidenav * profile menu when collapsed * make thing not overlap * removed duplicate attribute * get tasks from the api instead of mock data * added waiting for column w/ burnettk * fixed header names of new pages w/ burnettk * swap colors * updated some bgcolors w/ burnettk * updated some of the theme colors w/ burnettk * some more color cleanup w/ burnettk * add border to table and background lighter like design * more colors w/ burnettk * add border * add height to tab indicator props * use macro colors * persist theme selection in local storage * h1 as god intended * fix highlight on main nav * new started by me view * avoid hardcoding color because themes * fetch process instances * extract shared junk into components * extract more shared junk * some cleanup to the new workflow view w/ burnettk * update button * more tweaks and fixes to task table w/ burnettk * match design * some updateds to headertabs w/ burnettk * make the create custom tab button look more like the other tabs w/ burnettk * added view mode tile table toggle w/ burnettk * add startopen script to allow all interfaces for dev server * hide complete task play button if no task * remove waiting for from tile if blank w/ burnettk * implemented hide complete w/ burnettk * show non active * fixed var w/ burnettk * do not show action if user cannot complete task w/ burnettk * time ago ts * added timeago in words to task table w/ burnettk * some updates to timeago for typsescript w/ burnettk * some formatting to the tile w/ burnettk * move arrow to top right * make the whole tile clickable if there is a task w/ burnettk * default sidenav to collapsed on mobile * tile views by default on mobile * completely hide menu on mobile, not just collapse * get rid of autocollapse on mobile code, since it is all hidden * mobile nav * improve mobile nav * when you open the nav on mobile, it should always be expanded * some minor support for user group select * lint * persistent top nav so you can always access menu on mobile * implemented group by option w/ burnettk * allow ungroup * only show Ungrouped if it is grouped * group by text * use accent color when grouping tasks * added text.accent for dark mode w/ burnettk * copied task show elements to v3 folder w/ burnettk * newui task show routes work w/ burnettk * converted task show elements to mui w/ burnettk * fixed up task show page a big w/ burnettk * added padding to tash show page w/ burnettk * modified colors for dark mode and consistency w/ burnettk * added interstitial and progress pages to new ui w/ burnettk * go to newui appropriately from interstitial * allow grouping tasks by the process group of their instance * scroll to the card when selecting from the left nav tree w/ burnettk * move task details to bottom of tile w/ burnettk * navigate back to home page when no more tasks w/ burnettk * avoid cutting off right side of main content * a little cleanup w/ burnettk * some format updates to h tags w/ burnettk * fix class name for carbon * Newuiv3a (#2046) * wip to get only runnable prcess models for start process model page w/ burnettk * wip to get only runnable prcess models for start process model page w/ burnettk * wrote out method to group by process group w/ burnettk * added test for grouping by process group * some cleanup to prepare to be merged into the main newuiv3 branch * fixed mypy issues * fixed tests * fixed lint issues w/ burnettk --------- Co-authored-by: jasquat <jasquat@users.noreply.github.com> * try to fix animations * remove favorites icon and update pi creation flow w/ burnettk * remove carbon from interstital page w/ burnettk * title is bpmn_name and name is bpmn_id * slow fade transition from interstitial to homepage * do a hilariously long fade in when going from interstitial to homepage * show last process instance id saved on interstitial * get rid of local storage * move last instance to top and avoid on mobile * avoid useEffect and rock local storage * added some error display w/ burnettk * moved v3 specific code to v3 dir w/ burnettk * some code rabbit suggestions w/ burnettk * more code rabbit w/ burnettk * remove bad id w/ burnettk --------- Co-authored-by: burnettk <burnettk@users.noreply.github.com> Co-authored-by: jasquat <jasquat@users.noreply.github.com> Co-authored-by: Kevin Burnett <18027+burnettk@users.noreply.github.com>
2024-08-16 19:13:33 +00:00
"startopen": "VITE_VERSION_INFO='{\"version\":\"local\"}' vite --host 0.0.0.0",
"test": "vitest run --coverage",
the big message improvements branch (#1549) * imported patch from old message_improvements branch w/ burnettk * wip. * merging in changes from message_improvements * remove patch files that were accidendetally added. * Added a modal for editing a correlation. Added ability to delete whole correlation keys. A little css cleanup. * * Removing migration - will add back in at the end. * The Message models API should not require page and per_age parameters, it will return all. * The Message model list should return a full json description of all messages/correlations for all containing groups. * * wip * Add import, fix class name * Getting ./bin/pyl to pass * Getting ./bin/pyl to pass * Some fe lint fixes * Some ruff fixes * Commands to nuke poetry dirs * Temp skipping of a couple tests * Getting ./bin/pyl to pass * This needs to be back in * Revert back to main * Factored out data store handling * Working on factoring out collecting messages, has test failure * Formatting * Fixed up test failures * Remove commentted out lines * Adding fields * Fix merge issue * Re-enable modal * WIP * Untested relationships * Remove correlation key table * Remove retrieval expression from uniqueness * Remove commentted out lines * WIP * WIP * WIP * WIP * WIP * Make mypy pass * Getting formatters to pass * Add migration * WIP fixing tests * WIP fixing tests * WIP fixing tests * WIP fixing tests * WIP fixing tests * Getting ./bin/pyl to pass * Fix skipped test * Fix skipped test * Getting ./bin/pyl to pass * Remove unused method * Remove unused methods * Clean up unused code * Refactor to support creating single messages from the UI * Untested support for processing one process_group * WIP test * WIP test * Filled out test * Getting ./bin/pyl to pass * Message Editor Modal Work * Change migration and add in schemas. * Swtich to using the associated branch of the process BPMN.io mods * Get the backend returning messages created from the frontend to the drop down list in the BPMN.io editor. * Merge main, fix up test * Getting ./bin/pyl to pass * Show path in location * Rename var * install packages from bpmn-js-spiffworkflow as well for local development * process group api can add and update message models now w/ burnettk * backend tests are passing now w/ burnettk * the launch message edit button is loading the editor w/ burnettk * updated bpmn-js-spiffworkflow * pyl is passing w/ burnettk * updated bpmn-js-spiffworkflow w/ burnettk * updated bpmn-js-spiffworkflow w/ burnettk * fixed console errors w/ burnettk * a couple tweaks w/ burnettk * save the message json in the new format from the mform w/ burnettk * display the correlation props in the form w/ burnettk * default to empty schema so the format is obvious * allow removing correlation props from web ui w/ burnettk * added save notification when saving a message on a process model w/ burnettk * fixed broken test w/ burnettk * Updating test cases to new message format, tests are failing * support schema from messages in frontend * Fixing tests * Fixing tests * Fixing tests * removed references to correlation keys and removed unused components w/ burnettk * removed temp mesasge model edit button w/ burnettk * Make mypy pass * Fixing tests * Fixing tests * Getting ./bin/pyl to pass * save deleted messages before attempting to add new ones w/ burnettk * set state for the message id so it can be changed w/ burnettk * do not wait for the message id to be set since it is not necessary w/ burnettk * updated bpmn-js-spiffworkflow w/ burnettk * build images for this branch w/ burnettk * put location in path of message-models so we can control permissions on it w/ burnettk * fix black * some coderabbit suggestions * pull in spiff fix * Default schema to {} * Temp fix for invalid schema * updated bpmn-js-spiffworkflow * some updates for issue 1626 * minor name tweaks and attempts to update message dropdown in panel when message changes - does not work yet w/ burnettk * updated bpmn-js-spiffworkflow w/ burnettk * attempt to call add_message.returned event when message updates w/ burnettk * treat formData as a state in the MesasgeEditor so it can be updated when the form contents is modified w/ burnettk * updated bpmn-js-spiffworkflow w/ burnettk * Feature/merge correlation properties (#1693) * Merge XML Correlation properties with Process group properties * updates for messages w/ burnettk --------- Co-authored-by: theaubmov <ayoubaitlachgar98@gmail.com> Co-authored-by: jasquat <jasquat@users.noreply.github.com> * do not wait for message id state to be set to better support new messages w/ burnettk * updated SpiffWorkflow w/ burnettk * some cleanup from coderabbit and linting * added index to message tables, run typecheck in ci, and other updates while code reviewing w/ burnettk * updated bpmn-js-spiffworkflow w/ burnettk * remove branch to build --------- Co-authored-by: jasquat <jasquat@users.noreply.github.com> Co-authored-by: danfunk <daniel.h.funk@gmail.com> Co-authored-by: Jon Herron <jon.herron@yahoo.com> Co-authored-by: burnettk <burnettk@users.noreply.github.com> Co-authored-by: jasquat <2487833+jasquat@users.noreply.github.com> Co-authored-by: theaubmov <ayoubaitlachgar98@gmail.com>
2024-06-10 16:15:54 +00:00
"typecheck": "./node_modules/.bin/tsc --noEmit"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"@cypress/grep": "^4.1.0",
"@tanstack/eslint-plugin-query": "^5.35.6",
Tcoz openai assist (#1138) * Update README.md Some notes for people that might want to run full-on native, with detail about how Mac hijacks port 7000 and how to get around it. * Revert "Update README.md" This reverts commit 096887c26d591f93a836ef808c148af09767f2d2. * README update and native code patch Some details for user that might be running Python3, Mac, and want to run everything locally/natively. * Implement basic tooltips Uses MUI tooltip, as it behaves more predictably with existing styling, and enables top-level theme config. Top-level configuration for all MUI components can be controlled via overriding the existing theme. See index.tsx. This could be done per user for customization, etc. Enabling JSON module imports in tsconfig.json seemed to fix the error in ReactDiagramEditor * Naive AI code editor implementation A working starting point. * Implement API to return if script assist should be enabled Along with route and function, api config, etc. * UI calls backend to see if script assist is enabled. If it is, loads the related UI, otherwise it doesn't appear. * Moving forward with service for message processing. * Services scaffolded * Open API called, prompt-engineered to get script only. * Little cleanup work * Enabled + process message working. Had to find all the places permissions are enabled, etc. * Cleanup, comments, etc. * Env vars, styling, error cases, conditional display of script assist Finishing touches for the most part. REQUIRES TWO ENV VARS BE SET. SPIFFWORKFLOW_SCRIPT_ASSIST_ENABLED=["True" | "true" | 1] (anything else is false) SECRET_KEY_OPENAI_API=[thekey] The are retrieved in default.py. I run the app locally, so I just set them in the terminal. NEW INSTALL: @carbon/colors (so we consistently use carbon palette etc.) * Fix tooltips, clean up some styling. Finishing it off. * Add loader and error message Complete UX stuff * Update useScriptAssistEnabled.tsx Remove log * Update script_assist_controller.py Add this tweak to avoid TMI. * Some reasonable changes suggested by the build process * Comments from PR. * Update ProcessModelEditDiagram.tsx Should (but I don't know how to tell yet) call the change handler that wasn't firing before. * updated the permissions setting in authorization service w/ burnettk * precommit now passes. tests are failing w/ burnettk * pinned SpiffWorkflow to known working version and fixed tests. we will update spiff in a later pr w/ burnettk * made changes based on coderabbi suggestions * updated the error handling to be more inline with how we have handled other errors and some ui tweaks * removed pymysql package w/ burnettk * forgot to remove pymysql from lock file w/ burnettk --------- Co-authored-by: Tim Consolazio <tcoz@tcoz.com> Co-authored-by: Kevin Burnett <18027+burnettk@users.noreply.github.com> Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-03-04 15:42:27 +00:00
"@types/carbon__colors": "^10.31.3",
"@types/cookie": "^0.6.0",
Feature/better form nav (#474) * Detect focus loss/return in the Diagram Editor - so that we can reload the process model and assure that we know about any changed files. Allow for looking specifically for json SCHEMA files (those files that are named -schema.json or .schema.json (as is the convention). Only show these in the dropdown for the form. * * Run descriptions through the markdown processor so you can use bold/italic etc... in your description fields within a form. * Move ExampleTable into it's own view component to keep the size of the form builder sane. * Assure markdown within jrsf forms have reasonable styling that follows the containers style, rather than setting to some other default. * Add a couple of example forms so people can get a sense of what is possible. * Connect up the new Json Schema Editor Component to the process model edit diagram. * Just select the schema file - not the ui file when selecting the form for a component - we may revert this to just a text box. * * Cleanup the formatting of arrays, so that they are sligtly intended, do not contain an awkward unneeded heading, and have some tighter css. * Connect the form editing in the modal back to the BPMN-JS editor Auto-Save edits in the Form Builder Lots and lots of tweaks to the react form builder ui * various fixes. * test for prepare_schema * minor fix for run_pyl * css cleanup less issues with reloading and jumping about when in the editor Don't sort keys when returning the json. More intelligent "ready" * bump package to point to branch of bpmn-js-spiffworkflow so others can check it out. * Assure that json keys are not sorted during serialization by default. Allow adding example fields to an existing schema Create a set of examples. * db complaints in migration change. * removed items from interface file that had been moved elsewhere w/ burnettk * rename prepare_form to prepare-form * rename prepare_form to prepare-form * Remove commented out code. * typo * add a comment about the empty column * move back to the main branch --------- Co-authored-by: jasquat <jasquat@users.noreply.github.com> Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2023-09-08 15:07:43 +00:00
"@types/lodash.merge": "^4.6.7",
Spiffui/newui (#1891) * Scaffold new UI homepage, hide current nav bar * Layout set up Divider was fiddly, but got the same setup as Figma now. * Config to allow svg loading and imports etc. in Vite Also moved preact from dev deps to deps (recommended). * Configure app to use Poppins Was a little tricky, had to isolate this from the rest of the app. * Move icons from figma to app, set up menus SVGs have to be exported from Figma, moved into assets in app, etc. * Layout and SideMenu Components and layout all set. * Some basic global themeing knocked off from Web3 * Datagrid Layout complete Nothing works and the data is contrived, but it's all matchy-matchy with the Figma view and so on. * Menu items hover and rollover states * Add card row * useProcessInstances hook Knocked off from the call logic in ProcessInstanceListTable * Responsiveness * Responsive tweaks * Live data in grid etc. * Phone responsive * Responsivness working across all breakpoints * Side menu height simplification * more chips for milestone and status * Basic client grid search * Newui README and component notes. * Add docs, cleanups, etc. * Component docs * Theme more robust Also added framework for dark mode. * Dark mode and theme enhancements * Install signals integration for vite, cleanup, and working darkmode toggle. * Update SpiffUIV2.tsx * Toggle feature for menu items Includes ability to swap icon and text on a toggle. Useful for dark mode toggle and possibly other things. * User menu pinned to bottom of VH Doesn't get lost if datagrid is long. * Color fixes for dark mode, added in tokens where possible. * Responsive Side Menu * adjusted filter cards to dark mode * Customize global themes for light and dark success/light/info/warning/error Pushing use of tokens everywhere, took some wrangling but it's in place now. Also fixed cards and a few other things to size more cleanly in responsive modes. * Fix tab light/dark mode swap Requires a bit more customiization of the theme. * Slide transition for menu * Solved very annoying MUI problem If there is a scrollbar on the screen, opening a Select removes it. This is intentional (use can not scroll the screen while select is open) but it has the unfortunate consequence of removing the browser scrollbar is that it increases the viewport size, causing all responsive layout to shift. This tells it "leave it be". Also add ability to feed in info to process instance hook. * Refactor some items to make layouts more declarative. We want the info window to be in the center-right of the view all the time, with some appropriate padding on the top-bottom, so regardless of the scroll position or window size they never lose it. Also, responsiveness (will resize until MD breakpoint then hide). * Refactor Dashboard to switch grids more cleanly * Info panel wired up * Task Collection, view hook etc. * My Tasks search working * Tab nav set up * "Old" forms loading into "new" flyout window. Had to move a few things around and dig into the routes, but got it up and running for demo. * InfoPanel displays selections from different grid views Built mini-factory to feed InfoPanel ReactNodes to render using selected grid item data. * Info panel toolbar, formatting and light/dark settings. * InfoPanel display with tasks APIs need to be sorted out, there doesn't appear to be an easy way to get all Tasks for a given ProcessId at this point. * Format dates in grids * Wire everything up for working workflow (demo-worthy) * Toggle for Row click panel open/close * Completed and waiting tasks in info panel. * Scrollable grids in the Dashboard view (no more page scrolling) * Remove mystery zero Stray truthy test was rendering the result (false, 0) * Tweak to prevent child scrollbars from overlaying infopanel windows. * had to install jsdom for Vue testing. * Update package-lock.json * Possibly ran npm i in the wrong directory hmm... * add optional platform dep * update lock file with optional dep info * Add ESBuild (this package was not found) There might be a global install but Vite/npm ain't seein' it. * Trying to make esbuild optional (it might already be global) * Accordions for tasks, and create a hook to enable some flexible customization. * Updates and refactoring to make more (possibly) extension-ready components for the data displays. * PI times summary report Also cleaned up some MUI Dom errors/warnings. * build images for newui * revert some changes in package-lock that did not help * Rebuilding repo (had "bad objects" error) * Charts (mostly for demo) * Responsive! * Collapsible side menu Added a button component suitable for the positioning/display, adjusted responsiveness (when the menu is collapsed, we need the grid to take up more room, and when the menu is naturally collapsed by screen size, we don't want the toggle button, etc.) * Adjust menu to display abbreviated spiff logo when collapsed. * Update DashboardCharts.tsx * Inserted Paper wrapper for sidemenu Makes the background responsive to dark mode (so it's not just more black surface). * Update SideMenu.tsx Fix positioning to accommodate new wrapper padding. * First wave of theme changes, global font alterations, restructure nav to top * Moving the design revamp along Walking the line between the new ideas but using the current functionality and components (we don't have designs for where things lik the dark mode and logout buttons go, the toolbar was removed but now we need a place for the start process button, we still need the tabs, etc.). * Moving new style along Had to add custom background palette for dark/light mode. * Carousel display and task cards for new display * Grids, carousels, accordions, etc. All in design requirement Desktop 27 (Figma file) * All finished Revamped, workflow implemented, rotating charts, dark mode checked, new scrollbars for more ipad-like feel, search working, etc. etc. * Tweaks and good to go. * Update MyProcesses.tsx Remove console.log. * Collapse process detail by default, and fix tasks label. * Full screen containers We don't want th default max width enforced by MUI. * TopNav responsiveness and speedial * Responsive grid areas * Add task counts * create a top level route for the new spiff ui from App.tsx w/ burnettk (#1586) Co-authored-by: jasquat <jasquat@users.noreply.github.com> * Unused imports * Clean up wonky pie chart. * Remove hardcoded url * Clean up info panel * Fix menu button responsive text wrap wonk * Put grid back With data changes since there is more stuff in the first column (based on the design). I took a best guess. * Remove cell focus outline with CSS overrides MUI * Flyout Panel for demo (new look etc.) * Task switching in panel. * Cleanup tweaks pre-demo. There is a bug in the "first select" of a row with tasks, I'm aware of it. * Rework flow of data, make it simpler Fixes a bug; when you clicked a PI row the first time, its tasks wouldn't load. If you did it again, everything worked. The way the code moved data to the InfoPanel was unclear, cleaning that up made the bug obvious. * put back psycopg2 and mysqlclient * Create useProcessModels.tsx * Create useProcessGroups.tsx * Update ProcessInstanceCard.tsx Fixes task count display * Refactor for top level routing Keeping all views as children of SpiffUIV2 (will make swapping app easier). * Update SpiffUIV2.tsx Routing and view scaffolding set. * Menu and button nice nice in dark mode etc. * View transitions * Process group/model data under control and feeding into view. * Using RXJS for broadcasting to menu items. * Update SpiffUIV2.tsx * Config seemed broken (I couldn't start the app, Vite not found etc.) I fixed by moving @preact/preset-vite to dependencies (this seems required, probably because it adds types and primitives that are used in runtime code or something) and making sure Node was up to date. * Fix for Preact breaking rendering lifecycle One of their PRs put a ridiculously low check on rerenders, and in dev/debug mode throws an app-crashing error, which affected the MUI-X Datagrid. * Button components aware of stream Also had to add a way for buttons to know what the view they nav to was loaded from the URL (e.g. a bookmark) to meet the design req. * Have to make sure buttons that have no paths don't respond to href load logic. * Layout for components, menu, treeview, theme tweaks Needed to alter text.secondary at theme level to accommodate designs. * Recurse through Process Group data to PM tree build tree for display All set. * Treeview complete Also moved some things around to track with evolving app structure. * Fully working tree with counters. * Favorites/Recently used layout, components, icons, etc. * Favorites and process groups displays A bit naive, but for now gets the job done. * Select of a group CArdor a group in the Tree updates view Display PMs and PGs for any group, and some ideas to tie selecting a Card into the Tree. This kind of has to work, if you don't do it the tree seems useless. * Create TreeItem wrapper TreeItems don't carry any data that could be used for crumbs. Need to wrap TreeItem and add a property that lets you expand any node anywhere in the hierarchy. * Update __init__.py * Update StartProcess.tsx Scrolling content area * Tree expansion from cards working as expected Have to do the collapse side of it, but so far so good. Also tweaks to scrolling area. * Wrap search bar and padding tweaks More explicit layout around child components. * Tree/card tracking working. Highlighting based on clicks, etc, very fancy. * Tree -> Cards -> Tree fully working, starting breadcrumbs. Breadcrumbs will be how this works on mobile, nobody will use the tree on a phone. * Collapse button will be used all over * More wiring details tree -> card -> tree -> search When search returns results, the tree or card nav is no longer the control. Use imperative ref to wipe expanded nodes. Also, make sure that if models and groups are returned that the accordions expand. Remove console logs. * Cross group model highlighting Tricky one: If you have several folders expanded in the tree, and are clicking through the models, if you click a model in a "non active" group, we have to clear the current group assets and load that group's. Since the cards come after the switch, they don't hear the clickstream that initiated them, so the model that was selected in the tree won't update the associated card's style. Fix that by passing in the lastSelected object to the cards and inspecting on init. * Localstorage, favorites, default favorite view (vs. groups), etc. * Guard no groups. * Update StartProcess.tsx Padding change opened up window, needed to adjust. * Update StartProcess.tsx * Update LocalStorageService.ts Update empty string to empty array. * Tree panel collapse/expand With everything else going on, this was tricky to get responsive, but working as expected now. Also tweak to fix annoying thing in MenuItems. Also made sure dark mode tracks. * Hover effects for cards and text cleanups Hover is useless on touch screens, but otherwise this is a bit more in keeping with the design. * Breadcrumbs, root element and favorites in collapse tree view, etc. This pretty much nails it. * Add Favorite Count Add count to favorites indicators. Helps user make sense of "I'm clicking it why are no items loading (because there are zero favorites). * Docs, cleanup Also fix that NavBar logo issue in the "old" app. * fix breadcrumb re-render issue when saving json file for first time w/ burnettk * fix / ignore eslint issues * add types for react-slick * ignore ts error * revert nav bar to undo logout logo change w/ burnettk * Update spiffworkflow-frontend/src/a-spiffui-v2/views/Dashboards/infopanels/ProcessInfo.tsx Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Update spiffworkflow-frontend/src/a-spiffui-v2/views/StartProcess/StartProcess.tsx Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --------- Co-authored-by: Tim Consolazio <tcoz@tcoz.com> Co-authored-by: burnettk <burnettk@users.noreply.github.com> Co-authored-by: jasquat <jasquat@users.noreply.github.com> Co-authored-by: Kevin Burnett <18027+burnettk@users.noreply.github.com> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2024-07-09 17:39:29 +00:00
"@types/node": "^20.12.13",
"@types/react-slick": "^0.23.13",
"@typescript-eslint/eslint-plugin": "^7.16.0",
"@typescript-eslint/parser": "^7.11.0",
"@vitest/coverage-v8": "^1.5.0",
"cypress": "^13",
2023-04-06 14:31:54 +00:00
"cypress-file-upload": "^5.0.8",
"cypress-slow-down": "^1.3.1",
"cypress-vite": "^1.5.0",
"eslint": "^8.56.0",
Spiffui/newui (#1891) * Scaffold new UI homepage, hide current nav bar * Layout set up Divider was fiddly, but got the same setup as Figma now. * Config to allow svg loading and imports etc. in Vite Also moved preact from dev deps to deps (recommended). * Configure app to use Poppins Was a little tricky, had to isolate this from the rest of the app. * Move icons from figma to app, set up menus SVGs have to be exported from Figma, moved into assets in app, etc. * Layout and SideMenu Components and layout all set. * Some basic global themeing knocked off from Web3 * Datagrid Layout complete Nothing works and the data is contrived, but it's all matchy-matchy with the Figma view and so on. * Menu items hover and rollover states * Add card row * useProcessInstances hook Knocked off from the call logic in ProcessInstanceListTable * Responsiveness * Responsive tweaks * Live data in grid etc. * Phone responsive * Responsivness working across all breakpoints * Side menu height simplification * more chips for milestone and status * Basic client grid search * Newui README and component notes. * Add docs, cleanups, etc. * Component docs * Theme more robust Also added framework for dark mode. * Dark mode and theme enhancements * Install signals integration for vite, cleanup, and working darkmode toggle. * Update SpiffUIV2.tsx * Toggle feature for menu items Includes ability to swap icon and text on a toggle. Useful for dark mode toggle and possibly other things. * User menu pinned to bottom of VH Doesn't get lost if datagrid is long. * Color fixes for dark mode, added in tokens where possible. * Responsive Side Menu * adjusted filter cards to dark mode * Customize global themes for light and dark success/light/info/warning/error Pushing use of tokens everywhere, took some wrangling but it's in place now. Also fixed cards and a few other things to size more cleanly in responsive modes. * Fix tab light/dark mode swap Requires a bit more customiization of the theme. * Slide transition for menu * Solved very annoying MUI problem If there is a scrollbar on the screen, opening a Select removes it. This is intentional (use can not scroll the screen while select is open) but it has the unfortunate consequence of removing the browser scrollbar is that it increases the viewport size, causing all responsive layout to shift. This tells it "leave it be". Also add ability to feed in info to process instance hook. * Refactor some items to make layouts more declarative. We want the info window to be in the center-right of the view all the time, with some appropriate padding on the top-bottom, so regardless of the scroll position or window size they never lose it. Also, responsiveness (will resize until MD breakpoint then hide). * Refactor Dashboard to switch grids more cleanly * Info panel wired up * Task Collection, view hook etc. * My Tasks search working * Tab nav set up * "Old" forms loading into "new" flyout window. Had to move a few things around and dig into the routes, but got it up and running for demo. * InfoPanel displays selections from different grid views Built mini-factory to feed InfoPanel ReactNodes to render using selected grid item data. * Info panel toolbar, formatting and light/dark settings. * InfoPanel display with tasks APIs need to be sorted out, there doesn't appear to be an easy way to get all Tasks for a given ProcessId at this point. * Format dates in grids * Wire everything up for working workflow (demo-worthy) * Toggle for Row click panel open/close * Completed and waiting tasks in info panel. * Scrollable grids in the Dashboard view (no more page scrolling) * Remove mystery zero Stray truthy test was rendering the result (false, 0) * Tweak to prevent child scrollbars from overlaying infopanel windows. * had to install jsdom for Vue testing. * Update package-lock.json * Possibly ran npm i in the wrong directory hmm... * add optional platform dep * update lock file with optional dep info * Add ESBuild (this package was not found) There might be a global install but Vite/npm ain't seein' it. * Trying to make esbuild optional (it might already be global) * Accordions for tasks, and create a hook to enable some flexible customization. * Updates and refactoring to make more (possibly) extension-ready components for the data displays. * PI times summary report Also cleaned up some MUI Dom errors/warnings. * build images for newui * revert some changes in package-lock that did not help * Rebuilding repo (had "bad objects" error) * Charts (mostly for demo) * Responsive! * Collapsible side menu Added a button component suitable for the positioning/display, adjusted responsiveness (when the menu is collapsed, we need the grid to take up more room, and when the menu is naturally collapsed by screen size, we don't want the toggle button, etc.) * Adjust menu to display abbreviated spiff logo when collapsed. * Update DashboardCharts.tsx * Inserted Paper wrapper for sidemenu Makes the background responsive to dark mode (so it's not just more black surface). * Update SideMenu.tsx Fix positioning to accommodate new wrapper padding. * First wave of theme changes, global font alterations, restructure nav to top * Moving the design revamp along Walking the line between the new ideas but using the current functionality and components (we don't have designs for where things lik the dark mode and logout buttons go, the toolbar was removed but now we need a place for the start process button, we still need the tabs, etc.). * Moving new style along Had to add custom background palette for dark/light mode. * Carousel display and task cards for new display * Grids, carousels, accordions, etc. All in design requirement Desktop 27 (Figma file) * All finished Revamped, workflow implemented, rotating charts, dark mode checked, new scrollbars for more ipad-like feel, search working, etc. etc. * Tweaks and good to go. * Update MyProcesses.tsx Remove console.log. * Collapse process detail by default, and fix tasks label. * Full screen containers We don't want th default max width enforced by MUI. * TopNav responsiveness and speedial * Responsive grid areas * Add task counts * create a top level route for the new spiff ui from App.tsx w/ burnettk (#1586) Co-authored-by: jasquat <jasquat@users.noreply.github.com> * Unused imports * Clean up wonky pie chart. * Remove hardcoded url * Clean up info panel * Fix menu button responsive text wrap wonk * Put grid back With data changes since there is more stuff in the first column (based on the design). I took a best guess. * Remove cell focus outline with CSS overrides MUI * Flyout Panel for demo (new look etc.) * Task switching in panel. * Cleanup tweaks pre-demo. There is a bug in the "first select" of a row with tasks, I'm aware of it. * Rework flow of data, make it simpler Fixes a bug; when you clicked a PI row the first time, its tasks wouldn't load. If you did it again, everything worked. The way the code moved data to the InfoPanel was unclear, cleaning that up made the bug obvious. * put back psycopg2 and mysqlclient * Create useProcessModels.tsx * Create useProcessGroups.tsx * Update ProcessInstanceCard.tsx Fixes task count display * Refactor for top level routing Keeping all views as children of SpiffUIV2 (will make swapping app easier). * Update SpiffUIV2.tsx Routing and view scaffolding set. * Menu and button nice nice in dark mode etc. * View transitions * Process group/model data under control and feeding into view. * Using RXJS for broadcasting to menu items. * Update SpiffUIV2.tsx * Config seemed broken (I couldn't start the app, Vite not found etc.) I fixed by moving @preact/preset-vite to dependencies (this seems required, probably because it adds types and primitives that are used in runtime code or something) and making sure Node was up to date. * Fix for Preact breaking rendering lifecycle One of their PRs put a ridiculously low check on rerenders, and in dev/debug mode throws an app-crashing error, which affected the MUI-X Datagrid. * Button components aware of stream Also had to add a way for buttons to know what the view they nav to was loaded from the URL (e.g. a bookmark) to meet the design req. * Have to make sure buttons that have no paths don't respond to href load logic. * Layout for components, menu, treeview, theme tweaks Needed to alter text.secondary at theme level to accommodate designs. * Recurse through Process Group data to PM tree build tree for display All set. * Treeview complete Also moved some things around to track with evolving app structure. * Fully working tree with counters. * Favorites/Recently used layout, components, icons, etc. * Favorites and process groups displays A bit naive, but for now gets the job done. * Select of a group CArdor a group in the Tree updates view Display PMs and PGs for any group, and some ideas to tie selecting a Card into the Tree. This kind of has to work, if you don't do it the tree seems useless. * Create TreeItem wrapper TreeItems don't carry any data that could be used for crumbs. Need to wrap TreeItem and add a property that lets you expand any node anywhere in the hierarchy. * Update __init__.py * Update StartProcess.tsx Scrolling content area * Tree expansion from cards working as expected Have to do the collapse side of it, but so far so good. Also tweaks to scrolling area. * Wrap search bar and padding tweaks More explicit layout around child components. * Tree/card tracking working. Highlighting based on clicks, etc, very fancy. * Tree -> Cards -> Tree fully working, starting breadcrumbs. Breadcrumbs will be how this works on mobile, nobody will use the tree on a phone. * Collapse button will be used all over * More wiring details tree -> card -> tree -> search When search returns results, the tree or card nav is no longer the control. Use imperative ref to wipe expanded nodes. Also, make sure that if models and groups are returned that the accordions expand. Remove console logs. * Cross group model highlighting Tricky one: If you have several folders expanded in the tree, and are clicking through the models, if you click a model in a "non active" group, we have to clear the current group assets and load that group's. Since the cards come after the switch, they don't hear the clickstream that initiated them, so the model that was selected in the tree won't update the associated card's style. Fix that by passing in the lastSelected object to the cards and inspecting on init. * Localstorage, favorites, default favorite view (vs. groups), etc. * Guard no groups. * Update StartProcess.tsx Padding change opened up window, needed to adjust. * Update StartProcess.tsx * Update LocalStorageService.ts Update empty string to empty array. * Tree panel collapse/expand With everything else going on, this was tricky to get responsive, but working as expected now. Also tweak to fix annoying thing in MenuItems. Also made sure dark mode tracks. * Hover effects for cards and text cleanups Hover is useless on touch screens, but otherwise this is a bit more in keeping with the design. * Breadcrumbs, root element and favorites in collapse tree view, etc. This pretty much nails it. * Add Favorite Count Add count to favorites indicators. Helps user make sense of "I'm clicking it why are no items loading (because there are zero favorites). * Docs, cleanup Also fix that NavBar logo issue in the "old" app. * fix breadcrumb re-render issue when saving json file for first time w/ burnettk * fix / ignore eslint issues * add types for react-slick * ignore ts error * revert nav bar to undo logout logo change w/ burnettk * Update spiffworkflow-frontend/src/a-spiffui-v2/views/Dashboards/infopanels/ProcessInfo.tsx Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Update spiffworkflow-frontend/src/a-spiffui-v2/views/StartProcess/StartProcess.tsx Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --------- Co-authored-by: Tim Consolazio <tcoz@tcoz.com> Co-authored-by: burnettk <burnettk@users.noreply.github.com> Co-authored-by: jasquat <jasquat@users.noreply.github.com> Co-authored-by: Kevin Burnett <18027+burnettk@users.noreply.github.com> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2024-07-09 17:39:29 +00:00
"eslint_d": "^12.2.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-cypress": "^3.3.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsx-a11y": "^6.9.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-react": "^7.31.0",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-sonarjs": "^1.0.3",
"eslint-plugin-unused-imports": "^3.2.0",
"inherits-browser": "^0.0.1",
"jsdom": "^24.1.1",
the big message improvements branch (#1549) * imported patch from old message_improvements branch w/ burnettk * wip. * merging in changes from message_improvements * remove patch files that were accidendetally added. * Added a modal for editing a correlation. Added ability to delete whole correlation keys. A little css cleanup. * * Removing migration - will add back in at the end. * The Message models API should not require page and per_age parameters, it will return all. * The Message model list should return a full json description of all messages/correlations for all containing groups. * * wip * Add import, fix class name * Getting ./bin/pyl to pass * Getting ./bin/pyl to pass * Some fe lint fixes * Some ruff fixes * Commands to nuke poetry dirs * Temp skipping of a couple tests * Getting ./bin/pyl to pass * This needs to be back in * Revert back to main * Factored out data store handling * Working on factoring out collecting messages, has test failure * Formatting * Fixed up test failures * Remove commentted out lines * Adding fields * Fix merge issue * Re-enable modal * WIP * Untested relationships * Remove correlation key table * Remove retrieval expression from uniqueness * Remove commentted out lines * WIP * WIP * WIP * WIP * WIP * Make mypy pass * Getting formatters to pass * Add migration * WIP fixing tests * WIP fixing tests * WIP fixing tests * WIP fixing tests * WIP fixing tests * Getting ./bin/pyl to pass * Fix skipped test * Fix skipped test * Getting ./bin/pyl to pass * Remove unused method * Remove unused methods * Clean up unused code * Refactor to support creating single messages from the UI * Untested support for processing one process_group * WIP test * WIP test * Filled out test * Getting ./bin/pyl to pass * Message Editor Modal Work * Change migration and add in schemas. * Swtich to using the associated branch of the process BPMN.io mods * Get the backend returning messages created from the frontend to the drop down list in the BPMN.io editor. * Merge main, fix up test * Getting ./bin/pyl to pass * Show path in location * Rename var * install packages from bpmn-js-spiffworkflow as well for local development * process group api can add and update message models now w/ burnettk * backend tests are passing now w/ burnettk * the launch message edit button is loading the editor w/ burnettk * updated bpmn-js-spiffworkflow * pyl is passing w/ burnettk * updated bpmn-js-spiffworkflow w/ burnettk * updated bpmn-js-spiffworkflow w/ burnettk * fixed console errors w/ burnettk * a couple tweaks w/ burnettk * save the message json in the new format from the mform w/ burnettk * display the correlation props in the form w/ burnettk * default to empty schema so the format is obvious * allow removing correlation props from web ui w/ burnettk * added save notification when saving a message on a process model w/ burnettk * fixed broken test w/ burnettk * Updating test cases to new message format, tests are failing * support schema from messages in frontend * Fixing tests * Fixing tests * Fixing tests * removed references to correlation keys and removed unused components w/ burnettk * removed temp mesasge model edit button w/ burnettk * Make mypy pass * Fixing tests * Fixing tests * Getting ./bin/pyl to pass * save deleted messages before attempting to add new ones w/ burnettk * set state for the message id so it can be changed w/ burnettk * do not wait for the message id to be set since it is not necessary w/ burnettk * updated bpmn-js-spiffworkflow w/ burnettk * build images for this branch w/ burnettk * put location in path of message-models so we can control permissions on it w/ burnettk * fix black * some coderabbit suggestions * pull in spiff fix * Default schema to {} * Temp fix for invalid schema * updated bpmn-js-spiffworkflow * some updates for issue 1626 * minor name tweaks and attempts to update message dropdown in panel when message changes - does not work yet w/ burnettk * updated bpmn-js-spiffworkflow w/ burnettk * attempt to call add_message.returned event when message updates w/ burnettk * treat formData as a state in the MesasgeEditor so it can be updated when the form contents is modified w/ burnettk * updated bpmn-js-spiffworkflow w/ burnettk * Feature/merge correlation properties (#1693) * Merge XML Correlation properties with Process group properties * updates for messages w/ burnettk --------- Co-authored-by: theaubmov <ayoubaitlachgar98@gmail.com> Co-authored-by: jasquat <jasquat@users.noreply.github.com> * do not wait for message id state to be set to better support new messages w/ burnettk * updated SpiffWorkflow w/ burnettk * some cleanup from coderabbit and linting * added index to message tables, run typecheck in ci, and other updates while code reviewing w/ burnettk * updated bpmn-js-spiffworkflow w/ burnettk * remove branch to build --------- Co-authored-by: jasquat <jasquat@users.noreply.github.com> Co-authored-by: danfunk <daniel.h.funk@gmail.com> Co-authored-by: Jon Herron <jon.herron@yahoo.com> Co-authored-by: burnettk <burnettk@users.noreply.github.com> Co-authored-by: jasquat <2487833+jasquat@users.noreply.github.com> Co-authored-by: theaubmov <ayoubaitlachgar98@gmail.com>
2024-06-10 16:15:54 +00:00
"nice-select2": "^2.1.0",
"prettier": "^3.3.2",
"safe-regex": "^2.1.1",
"tiny-svg": "^2.2.3",
"ts-migrate": "^0.1.30",
"vitest": "^1.5.0"
}
}