4314 Commits

Author SHA1 Message Date
jasquat
4971ae737e
some updates the ReactFormBuilder to better handle readonly users w/ burnettk (#1943)
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-07-17 16:23:55 -04:00
jasquat
41dd5ddb2b
updated spiffworkflow to fix issues 1919 and 1920 w/ burnettk (#1942)
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-07-17 15:27:58 -04:00
jasquat
c11e9ba1b4
progress-page-display-error (#1859)
* display the given when a task fails while on the progress page

* add task info to the error details on progress page and added foreign key from event table to task table w/ burnettk

* do not attempt to add error details if one cannot be found w/ burnettk

* delete pi events when tasks are deleted w/ burnettk

* fixed migration file w/ burnettk

* removed db migration changes w/ burnettk

* pyl w/ burnettk

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-07-17 08:53:38 -07:00
dependabot[bot]
a038d544a9
Bump docker/build-push-action from 6.4.0 to 6.4.1 (#1938)
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 6.4.0 to 6.4.1.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v6.4.0...v6.4.1)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kevin Burnett <18027+burnettk@users.noreply.github.com>
2024-07-17 08:52:37 -07:00
dependabot[bot]
5f022b39f3
Bump sphinx from 7.4.4 to 7.4.5 (#1937)
Bumps [sphinx](https://github.com/sphinx-doc/sphinx) from 7.4.4 to 7.4.5.
- [Release notes](https://github.com/sphinx-doc/sphinx/releases)
- [Changelog](https://github.com/sphinx-doc/sphinx/blob/master/CHANGES.rst)
- [Commits](https://github.com/sphinx-doc/sphinx/compare/v7.4.4...v7.4.5)

---
updated-dependencies:
- dependency-name: sphinx
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kevin Burnett <18027+burnettk@users.noreply.github.com>
2024-07-17 08:52:23 -07:00
dependabot[bot]
284706c24f
Bump @mui/x-data-grid from 7.9.0 to 7.10.0 in /spiffworkflow-frontend (#1940)
Bumps [@mui/x-data-grid](https://github.com/mui/mui-x/tree/HEAD/packages/x-data-grid) from 7.9.0 to 7.10.0.
- [Release notes](https://github.com/mui/mui-x/releases)
- [Changelog](https://github.com/mui/mui-x/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mui/mui-x/commits/v7.10.0/packages/x-data-grid)

---
updated-dependencies:
- dependency-name: "@mui/x-data-grid"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kevin Burnett <18027+burnettk@users.noreply.github.com>
2024-07-17 15:30:43 +00:00
dependabot[bot]
e7bc446fa8
Bump flask-session from 0.5.0 to 0.8.0 in /spiffworkflow-backend (#1939)
Bumps [flask-session](https://github.com/pallets-eco/flask-session) from 0.5.0 to 0.8.0.
- [Release notes](https://github.com/pallets-eco/flask-session/releases)
- [Changelog](https://github.com/pallets-eco/flask-session/blob/development/CHANGES.rst)
- [Commits](https://github.com/pallets-eco/flask-session/compare/0.5.0...0.8.0)

---
updated-dependencies:
- dependency-name: flask-session
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-17 15:00:55 +00:00
burnettk
db8433d7d8
actually add libpq5, not just a comment 2024-07-16 21:12:46 -04:00
burnettk
9a0b59e0ed
Merge branch 'main' of github.com:sartography/spiff-arena 2024-07-16 20:03:48 -04:00
burnettk
56e6a82e09
add Migrate to breadcrumb 2024-07-16 20:03:36 -04:00
jasquat
4992586719
pi-migration-delete-tasks (#1929)
* remove tasks from the db that were removed in the migration

* ensure the correct number of cycles when we migrate a pi

* delete the tasks that spiff returns instead of calculating it in backend

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-07-16 14:27:05 -04:00
jasquat
461b37d3d9
hide the revert button on the migration page on the web ui if it cannot be reverted to that revision w/ burnettk (#1935)
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-07-16 14:26:58 -04:00
jasquat
dfce83c684
ignore cannot be run errors in manual complete task 2024-07-16 13:33:53 -04:00
jasquat
484f9801c9
do not store events when migrating a process isntance w/ burnettk (#1934)
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-07-16 09:12:18 -07:00
dependabot[bot]
af9e9e7b28
Bump vite from 5.3.2 to 5.3.4 in /spiffworkflow-frontend (#1932)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.3.2 to 5.3.4.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v5.3.4/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-16 15:23:51 +00:00
dependabot[bot]
8ebd96b310
Bump prometheus-flask-exporter in /spiffworkflow-backend (#1931)
Bumps [prometheus-flask-exporter](https://github.com/rycus86/prometheus_flask_exporter) from 0.23.0 to 0.23.1.
- [Commits](https://github.com/rycus86/prometheus_flask_exporter/compare/0.23.0...0.23.1)

---
updated-dependencies:
- dependency-name: prometheus-flask-exporter
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-16 15:03:22 +00:00
dependabot[bot]
3ef43e0589
Bump docker/build-push-action from 6.3.0 to 6.4.0 (#1923)
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 6.3.0 to 6.4.0.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v6.3.0...v6.4.0)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-16 07:48:54 -07:00
dependabot[bot]
4ee5840eea
Bump sphinx from 7.4.3 to 7.4.4 (#1930)
Bumps [sphinx](https://github.com/sphinx-doc/sphinx) from 7.4.3 to 7.4.4.
- [Release notes](https://github.com/sphinx-doc/sphinx/releases)
- [Changelog](https://github.com/sphinx-doc/sphinx/blob/master/CHANGES.rst)
- [Commits](https://github.com/sphinx-doc/sphinx/compare/v7.4.3...v7.4.4)

---
updated-dependencies:
- dependency-name: sphinx
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-16 14:45:23 +00:00
jasquat
9224fbbcfa
updated the error text for migration issues 2024-07-15 11:47:15 -04:00
dependabot[bot]
19ff18df8e
Bump @cypress/grep from 3.1.5 to 4.1.0 in /spiffworkflow-frontend (#1926)
Bumps [@cypress/grep](https://github.com/cypress-io/cypress) from 3.1.5 to 4.1.0.
- [Release notes](https://github.com/cypress-io/cypress/releases)
- [Changelog](https://github.com/cypress-io/cypress/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/cypress-io/cypress/compare/@cypress/grep-v3.1.5...@cypress/grep-v4.1.0)

---
updated-dependencies:
- dependency-name: "@cypress/grep"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-15 15:14:08 +00:00
dependabot[bot]
00ba3b16c6
Bump sentry-sdk from 2.5.1 to 2.10.0 in /spiffworkflow-backend (#1925)
Bumps [sentry-sdk](https://github.com/getsentry/sentry-python) from 2.5.1 to 2.10.0.
- [Release notes](https://github.com/getsentry/sentry-python/releases)
- [Changelog](https://github.com/getsentry/sentry-python/blob/master/CHANGELOG.md)
- [Commits](https://github.com/getsentry/sentry-python/compare/2.5.1...2.10.0)

---
updated-dependencies:
- dependency-name: sentry-sdk
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-15 15:08:27 +00:00
dependabot[bot]
6bed054e06
Bump sphinx from 7.3.7 to 7.4.3 (#1924)
Bumps [sphinx](https://github.com/sphinx-doc/sphinx) from 7.3.7 to 7.4.3.
- [Release notes](https://github.com/sphinx-doc/sphinx/releases)
- [Changelog](https://github.com/sphinx-doc/sphinx/blob/master/CHANGES.rst)
- [Commits](https://github.com/sphinx-doc/sphinx/compare/v7.3.7...v7.4.3)

---
updated-dependencies:
- dependency-name: sphinx
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-15 14:30:24 +00:00
dependabot[bot]
0df70abf7c
Bump pytest-xdist from 3.3.1 to 3.6.1 in /spiffworkflow-backend (#1914)
Bumps [pytest-xdist](https://github.com/pytest-dev/pytest-xdist) from 3.3.1 to 3.6.1.
- [Release notes](https://github.com/pytest-dev/pytest-xdist/releases)
- [Changelog](https://github.com/pytest-dev/pytest-xdist/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest-xdist/compare/v3.3.1...v3.6.1)

---
updated-dependencies:
- dependency-name: pytest-xdist
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kevin Burnett <18027+burnettk@users.noreply.github.com>
2024-07-14 13:31:59 -07:00
Kevin Burnett
42a31108fe
add libpq5 in order to be able to use postgres at runtime (#1906)
Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2024-07-14 13:31:39 -07:00
Kevin Burnett
cc77d83b3a
update spiff to handle certain out of order states in spec migration (#1918)
Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2024-07-14 13:31:24 -07:00
Kevin Burnett
d6184416cf
default git user email if we have a username and no email (#1917)
Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2024-07-12 12:27:24 -07:00
jasquat
24b32cce40
pi-no-run-if-non-active (#1916)
* do not allow process instances to run do_engine_steps if they are not in an active state w/ burnettk

* no need to ignore cannot be run error from interstitial page w/ burnettk

* removed bad comment w/ burnettk

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-07-12 12:09:52 -04:00
jasquat
d36c740180
use the correct git revision for the event and process instance when reverting a process instance migration (#1911)
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-07-12 11:20:27 -04:00
dependabot[bot]
80437483fc
Bump astroid from 3.2.2 to 3.2.3 (#1915)
Bumps [astroid](https://github.com/pylint-dev/astroid) from 3.2.2 to 3.2.3.
- [Release notes](https://github.com/pylint-dev/astroid/releases)
- [Changelog](https://github.com/pylint-dev/astroid/blob/main/ChangeLog)
- [Commits](https://github.com/pylint-dev/astroid/compare/v3.2.2...v3.2.3)

---
updated-dependencies:
- dependency-name: astroid
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-12 15:14:35 +00:00
dependabot[bot]
6b9a25eb52
Bump snyk/actions (#1913)
Bumps [snyk/actions](https://github.com/snyk/actions) from dad21f44fadb6fbcd8d89d8b602d6ac761fe4c86 to 640e31719aac3e44867d239dc86c20c3e34c8e4f.
- [Release notes](https://github.com/snyk/actions/releases)
- [Commits](dad21f44fa...640e31719a)

---
updated-dependencies:
- dependency-name: snyk/actions
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-12 15:01:57 +00:00
dependabot[bot]
0674d46606
Bump cypress from 13.7.0 to 13.13.0 in /spiffworkflow-frontend (#1912)
Bumps [cypress](https://github.com/cypress-io/cypress) from 13.7.0 to 13.13.0.
- [Release notes](https://github.com/cypress-io/cypress/releases)
- [Changelog](https://github.com/cypress-io/cypress/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/cypress-io/cypress/compare/v13.7.0...v13.13.0)

---
updated-dependencies:
- dependency-name: cypress
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-12 14:57:47 +00:00
jasquat
2e1ee93293
Pi migration 2 (#1902)
* added migration detail table along with migration fe page w/ burnettk

* allow specifying bpmn process defintion when getting instance w/ burnettk

* added a test for migration reverting w/ burnettk

* added result states to migration page w/ burnettk

* updated spiffworkflow to fix migration revert issue w/ burnettk

* added test for the migration events api w/ burnettk

* fixed tests

* finished migration web page w/ burnettk

* coderabbit and other issues and added spiffworkflow-local realm and use that if running locally

* fixed pyl issue

* just check for the git revision key in tests instead of a value since the value could be None

* ruff

* updated configs for cypress tests

* use correct realm in ci

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-07-11 13:46:54 -04:00
burnettk
195aedcf3c
config is defaulted to true in default.py 2024-07-11 12:58:52 -04:00
Stephen Zhang
8f86ff5f84
Support config SQLAlchemy pool_pre_ping option from env (#1883) (#1903)
Co-authored-by: Zhang Cheng <chengzhang@natureself.cn>
Co-authored-by: Kevin Burnett <18027+burnettk@users.noreply.github.com>
2024-07-11 09:51:49 -07:00
dependabot[bot]
0761505096
Bump types-pytz in /spiffworkflow-backend (#1905)
Bumps [types-pytz](https://github.com/python/typeshed) from 2024.1.0.20240203 to 2024.1.0.20240417.
- [Commits](https://github.com/python/typeshed/commits)

---
updated-dependencies:
- dependency-name: types-pytz
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-11 15:17:28 +00:00
dependabot[bot]
58e1e03330
Bump react-router from 6.22.3 to 6.24.1 in /spiffworkflow-frontend (#1904)
Bumps [react-router](https://github.com/remix-run/react-router/tree/HEAD/packages/react-router) from 6.22.3 to 6.24.1.
- [Release notes](https://github.com/remix-run/react-router/releases)
- [Changelog](https://github.com/remix-run/react-router/blob/main/packages/react-router/CHANGELOG.md)
- [Commits](https://github.com/remix-run/react-router/commits/react-router@6.24.1/packages/react-router)

---
updated-dependencies:
- dependency-name: react-router
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-11 14:44:23 +00:00
Kevin Burnett
6d16438816
Support jwks rotation (#1900)
* support jwks rotation

* force refresh if not in cache

* cleanup

* dedup

* Update spiffworkflow-backend/src/spiffworkflow_backend/services/authentication_service.py

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

* more types

* lint

---------

Co-authored-by: burnettk <burnettk@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2024-07-10 13:00:18 -07:00
pixeebot[bot]
8b26848ec9
Use Safe Parsers in lxml Parsing Functions (#1896)
* Use Safe Parsers in `lxml` Parsing Functions

* fix

---------

Co-authored-by: pixeebot[bot] <104101892+pixeebot[bot]@users.noreply.github.com>
Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2024-07-10 09:37:44 -07:00
dependabot[bot]
f80373c822
Bump lxml from 4.9.4 to 5.2.2 in /spiffworkflow-backend (#1899)
Bumps [lxml](https://github.com/lxml/lxml) from 4.9.4 to 5.2.2.
- [Release notes](https://github.com/lxml/lxml/releases)
- [Changelog](https://github.com/lxml/lxml/blob/master/CHANGES.txt)
- [Commits](https://github.com/lxml/lxml/compare/lxml-4.9.4...lxml-5.2.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-10 15:13:47 +00:00
dependabot[bot]
8f3e6a1e81
Bump autoprefixer from 10.4.16 to 10.4.19 in /spiffworkflow-frontend (#1898)
Bumps [autoprefixer](https://github.com/postcss/autoprefixer) from 10.4.16 to 10.4.19.
- [Release notes](https://github.com/postcss/autoprefixer/releases)
- [Changelog](https://github.com/postcss/autoprefixer/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/autoprefixer/compare/10.4.16...10.4.19)

---
updated-dependencies:
- dependency-name: autoprefixer
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-10 15:06:36 +00:00
dependabot[bot]
10f3bfdc50
Bump actions/setup-python from 5.1.0 to 5.1.1 (#1897)
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 5.1.0 to 5.1.1.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v5.1.0...v5.1.1)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-10 14:55:20 +00:00
jasquat
ec21ffb735
Pi migration (#1892)
* some initial code to migrate a process instance w/ burnettk essweine

* the migration test is working now w/ burnettk essweine

* use the persist method from the pi migration method w/ burnettk

* updated spiffworkflow w/ burnettk

* added api to migrate a process instance w/ burnettk

* fixed tests w/ burnettk

* added api to check if a process instance can be migrated w/ burnettk

* return error if pi is not suspended when attempting to migrate w/ burnettk

* return error if pi is not suspended when attempting to migrate w/ burnettk

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
Co-authored-by: Kevin Burnett <18027+burnettk@users.noreply.github.com>
2024-07-09 14:35:14 -04:00
jasquat
738446147e
fixed spiffworkflow logo in main nav bar w/ burnettk 2024-07-09 13:56:40 -04:00
jasquat
898015ce3c
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 10:39:29 -07:00
dependabot[bot]
e6cc81ac76
Bump @typescript-eslint/eslint-plugin in /spiffworkflow-frontend (#1894)
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 7.14.1 to 7.16.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.16.0/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-09 14:52:07 +00:00
dependabot[bot]
822940b512
Bump snyk/actions (#1893)
Bumps [snyk/actions](https://github.com/snyk/actions) from a1346e4eaf761d462da22c34c681dc06849b6851 to dad21f44fadb6fbcd8d89d8b602d6ac761fe4c86.
- [Release notes](https://github.com/snyk/actions/releases)
- [Commits](a1346e4eaf...dad21f44fa)

---
updated-dependencies:
- dependency-name: snyk/actions
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-09 14:37:06 +00:00
burnettk
950e288223
use correctly named script 2024-07-08 22:52:59 -04:00
dependabot[bot]
e941f03e59
Bump actions/download-artifact from 4.1.7 to 4.1.8 (#1886)
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 4.1.7 to 4.1.8.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v4.1.7...v4.1.8)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kevin Burnett <18027+burnettk@users.noreply.github.com>
2024-07-08 13:03:40 -07:00
Kevin Burnett
5f8f42c20b
document script tasks, thank you @fharmusial (#1890)
Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2024-07-08 11:23:14 -07:00
Usama Ahmad
e784bf3049
Inclusive Gateway Example (#1889)
* Inclusive Gateway Example

* edit

---------

Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2024-07-08 09:36:41 -07:00