Commit Graph

18 Commits

Author SHA1 Message Date
jasquat 50ebf05100
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 15:13:33 -04: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
jasquat c0e072a2e2
Mi large data debug bpm only (#1846)
* some debug code to help track down slow processing times for mi tasks with larget data sets w/ burnettk

* use mapping cache for task models and bpmn processes and some linting cleanup

* some minor bugfixes w/ burnettk

* assign the correct bpmn process to the given guid w/ burnettk

* fixed data migration tests w/ burnettk

* unit tests are passing w/ burnettk

* integration tets are passing w/ burnettk

* some cleanup while code reviewing w/ burnettk

* some more cleanup w/ burnettk

* pass new args to TaskService in data migration w/ burnettk

* fixed broken test w/ burnettk

* allow running acceptance tests without keycloak w/ burnettk

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-07-01 16:05:51 -04:00
jasquat 5e3831f4d6
message-model-perm-check (#1805)
* check if user has permissions to messages before attempting call w/ burnettk

* fixed variable typo w/ burnettk

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-06-24 12:36:07 -07:00
Kevin Burnett 6ab89dab40
default to local openid instead of keycloak container dependency (#1794)
Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2024-06-21 08:38:52 -07:00
jasquat 6a99762f70
better-db-migration-waiting (#1732)
* explicitly wait for db migrations to be completed instead of sleeping w/ burnettk

* code rabbit suggestion w/ burnettk

* get rid of the set x w/ burnettk

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-06-13 13:34:32 -04:00
Kevin Burnett 0329c11182
more flexible local dev args (#1613)
Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2024-05-24 23:06:16 +00:00
Kevin Burnett 8cb39ef214
allow large tokens to pass through nginx (#1550)
* allow large tokens to pass through nginx

* improve comment

---------

Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2024-05-13 16:56:37 -07:00
jasquat 86f97d5937
New calling process table (#1480)
* added new table to handle called process relationships

* process caller api endpoint is working again w/ burnettk

* fixed more tests and mypy w/ burnettk

* unit tests are passing and commented out unrelated failing test w/ burnettk

* all tests are passing almost w/ burnettk

* uncommented flakey test w/ burnettk

* minor change while reviewing w/ burnettk

* some changes from coderabbit suggestions w/ burnettk

* commented out sampling change w/ burnettk

* name the foreign keys on the process caller table w/ burnettk

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-05-03 10:09:32 -04:00
jasquat 293aa867a1
Auth for secrets (#1369)
* added new api to show secrets so we can use that in permissions

* updated frontend to use new secret show value api

* cleaned up secret_show method

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-04-09 13:44:47 -04:00
Kevin Burnett 2b6640f24c
Prevent duplicated path prefix elements in generated URLs take two (#1350)
* Prevent duplicated path prefix elements in generated URLs

* add more debug info

* pure refactor

* let flask determine how to access site

* build this branch

* build image

* use more url_for, which includes a slash, and things are working locally

* fix hopefully the last missing url_for

* add some code that works for any openid provider

* one more url_for and remove more backend url config references

---------

Co-authored-by: Bret Mogilefsky <bmogilefsky@gmail.com>
Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2024-04-08 08:50:55 -07:00
jasquat 01c749aa0b
Allow setting path prefix (#1344)
* allow setting the path prefix of the server w/ burnettk

* added error in case someone was successfully using SPIFFWORKFLOW_BACKEND_APPLICATION_ROOT w/ burnettk

* Update docs/DevOps_installation_integration/path_based_routing.md

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

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2024-04-05 15:14:09 -04:00
Dan Funk 03b21accec
allow looping back in a process to create more messages - minor bug fix - didn't add what would be a complex test to this, as it was a one line change that seems an oversight in the original code. (#924) 2024-01-29 06:40:39 -08:00
jasquat 80bc2f2e42
Feature/typeahead allow guest user (#897)
* decode tokens with jwt instead of with base64 w/ burnettk

* try to verify jwt token with keycloak when we decode it w/ burnettk

* make the token algorithm a constant w/ burnettk

* WIP: create more valid looking jwt from spiff w/ burnettk

* tests are passsing now w/ burnettk

* some pyl stuff w/ burnettk

* fixed mypy issues w/ burnettk

* fixed issues from mypy fixes w/ burnettk

* do not load openid blueprint if not using those configs w/ burnettk

* used the process instance to determine if guest user can use connector api w/ burnettk

* only check the db for process instance if the api call is for typeahead

* removed unused test code

* pyl

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-01-16 14:47:25 -05:00
jasquat 18600189c8 Feature/background proc with celery (#788)
* WIP: some initial test code to test out celery w/ burnettk

* some cleanup for celery and added base model to put tasks waiting on timers

* removed dup bpmn file

* some more cleanup and added strategy to queue instructions

* some minor code changes w/ burnettk

* remove the unused next_task key from api calls since nobody uses it w/ burnettk essweine

* added migration for future tasks and added test to make sure we are inserting into it w/ burnettk essweine

* ensure future task run at time can be updated w/ burnettk

* added table to queue instructions for end user in w/ burnettk

* added test to ensure we are storing instructions for end users w/ burnettk

* added progress page to display new instructions to user

* ignore dup instructions on db insert w/ burnettk

* some more updates for celery w/ burnettk

* some pyl and test fixes w/ burnettk

* fixed tests w/ burnettk

* WIP: added in page to show instructions on pi show page w/ burnettk

* pi show page is fully using not interstitial now w/ burnettk

* fixed broken test w/ burnettk

* moved background processing items to own module w/ burnettk

* fixed apscheduler start script

* updated celery task queue to handle future tasks and upgraded black and set its line-length to match ruff w/ burnettk

* added support to run future tasks using countdown w/ burnettk

* build image for celery branch w/ burnettk

* poet does not exist in the image w/ burnettk

* start blocking scheduler should always start the scheduler w/ burnettk

* add init and stuff for this branch

* make this work not just on my mac

* send other args to only

* added running status for process instance and use that on fe to go to show page and added additional identifier to locking system to isolate celery workers better w/ burnettk

* fixed typing error that typeguard found, not sure why mypy did not w/ burnettk

* do not check for no instructions on interstitial page for cypress tests on frontend w/ burnettk

* do not queue process instances twice w/ burnettk

* removed bad file w/ burnettk

* queue tasks using strings to avoid circular imports when attmepting to queue w/ burnettk

* only queue imminent new timer events and mock celery

* some keyboard shortcut support on frontend and added ability to force run a process instance over the api w/ burnettk

* some styles added for the shortcut menu w/ burnettk

* pyl w/ burnettk

* fixed test w/ burnettk

* removed temporary celery script and added support for celery worker in run server locally w/ burnettk

* cleaned up migrations w/ burnettk

* created new migration to clean up old migrations

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2023-12-05 11:41:59 -05:00
jasquat b8cfa4fd3c fixed backwards compatibility with multiple auths 2023-11-09 11:09:11 -05:00
jasquat d5b0330609 Feature/support multiple auth (#602)
* added some support for configs to have mutliple auths

* multiple openids services are mostly working - still needs some cleanup

* some cleanup for pyl and fixed login_return for internal openid server w/ burnettk

* if only one auth is returned from backend then just do that w/ burnettk

* login page has been formatted w/ burnettk

* some extra formatting on the login page w/ burnettk

* relabel test openid providers and add user

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2023-11-09 10:34:07 -05:00
jasquat 8220aa42ef added bin/console command that runs flask shell and align zoom tooltips to the bottom w/ burnettk 2023-09-29 16:00:16 -04:00