spiff-arena/spiffworkflow-backend/bin/local_development_environment_setup
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

95 lines
3.6 KiB
Bash
Executable File

#!/usr/bin/env bash
function error_handler() {
echo >&2 "Exited with BAD EXIT CODE '${2}' in ${0} script at line: ${1}."
exit "$2"
}
trap 'error_handler ${LINENO} $?' ERR
set -o errtrace -o errexit -o nounset -o pipefail
if [ "${BASH_SOURCE[0]}" -ef "$0" ]; then
echo "Hey, you should source this script, not execute it!"
exit 1
fi
PORT="${SPIFFWORKFLOW_BACKEND_PORT:-7000}"
acceptance_test_mode="false"
use_local_open_id="true"
# always check $@ so we can pass in multiple args
if [[ "${1:-}" == "keycloak" ]]; then
use_local_open_id="false"
shift
fi
if [[ "${1:-}" == "acceptance" ]]; then
acceptance_test_mode="true"
shift
fi
process_model_dir="${1:-}"
if [[ -d "$process_model_dir" ]]; then
shift
fi
if [[ -z "${SPIFFWORKFLOW_BACKEND_BPMN_SPEC_ABSOLUTE_DIR:-}" ]]; then
if [[ -n "${process_model_dir}" ]] && [[ -d "${process_model_dir}" ]]; then
SPIFFWORKFLOW_BACKEND_BPMN_SPEC_ABSOLUTE_DIR="$process_model_dir"
else
SPIFFWORKFLOW_BACKEND_BPMN_SPEC_ABSOLUTE_DIR=$(./bin/find_sample_process_models)
fi
export SPIFFWORKFLOW_BACKEND_BPMN_SPEC_ABSOLUTE_DIR
fi
if [[ "$acceptance_test_mode" == "true" ]]; then
export SPIFFWORKFLOW_BACKEND_LOAD_FIXTURE_DATA=true
export SPIFFWORKFLOW_BACKEND_PERMISSIONS_FILE_NAME=acceptance_tests.yml
fi
if [[ "$use_local_open_id" == "true" ]]; then
backend_base_url="${SPIFFWORKFLOW_BACKEND_URL:-}"
if [[ -z "$backend_base_url" ]]; then
backend_base_url="http://localhost:$PORT"
fi
export SPIFFWORKFLOW_BACKEND_AUTH_CONFIGS__0__identifier="default"
export SPIFFWORKFLOW_BACKEND_AUTH_CONFIGS__0__label="internal openid"
export SPIFFWORKFLOW_BACKEND_AUTH_CONFIGS__0__uri="${backend_base_url}/openid"
export SPIFFWORKFLOW_BACKEND_AUTH_CONFIGS__0__client_id="spiffworkflow-backend"
export SPIFFWORKFLOW_BACKEND_AUTH_CONFIGS__0__client_secret="JXeQExm0JhQPLumgHtIIqf52bDalHz0q"
# else # uncomment to test multiple auths
# export SPIFFWORKFLOW_BACKEND_AUTH_CONFIGS__0__identifier="keycloak_internal"
# export SPIFFWORKFLOW_BACKEND_AUTH_CONFIGS__0__label="I am a Core Contributor"
# export SPIFFWORKFLOW_BACKEND_AUTH_CONFIGS__0__uri="http://localhost:7002/realms/spiffworkflow"
# export SPIFFWORKFLOW_BACKEND_AUTH_CONFIGS__0__client_id="spiffworkflow-backend"
# export SPIFFWORKFLOW_BACKEND_AUTH_CONFIGS__0__client_secret="JXeQExm0JhQPLumgHtIIqf52bDalHz0q"
#
# export SPIFFWORKFLOW_BACKEND_AUTH_CONFIGS__1__identifier="openid"
# export SPIFFWORKFLOW_BACKEND_AUTH_CONFIGS__1__label="I am a vendor"
# export SPIFFWORKFLOW_BACKEND_AUTH_CONFIGS__1__uri="http://localhost:$PORT/openid"
# export SPIFFWORKFLOW_BACKEND_AUTH_CONFIGS__1__client_id="spiffworkflow-backend"
# export SPIFFWORKFLOW_BACKEND_AUTH_CONFIGS__1__client_secret="JXeQExm0JhQPLumgHtIIqf52bDalHz0q"
# else # uncomment to test specfied
# export SPIFFWORKFLOW_BACKEND_OPEN_ID_SERVER_URL="http://localhost:7002/realms/spiffworkflow"
# export SPIFFWORKFLOW_BACKEND_OPEN_ID_CLIENT_ID="spiffworkflow-backend"
# export SPIFFWORKFLOW_BACKEND_OPEN_ID_CLIENT_SECRET_KEY="JXeQExm0JhQPLumgHtIIqf52bDalHz0q"
fi
if [[ -z "${SPIFFWORKFLOW_BACKEND_ENV:-}" ]]; then
export SPIFFWORKFLOW_BACKEND_ENV=local_development
fi
export FLASK_SESSION_SECRET_KEY="e7711a3ba96c46c68e084a86952de16f"
export FLASK_DEBUG=1
if [[ -z "${SPIFFWORKFLOW_BACKEND_RUN_BACKGROUND_SCHEDULER_IN_CREATE_APP:-}" ]]; then
SPIFFWORKFLOW_BACKEND_RUN_BACKGROUND_SCHEDULER_IN_CREATE_APP=true
fi
export SPIFFWORKFLOW_BACKEND_RUN_BACKGROUND_SCHEDULER_IN_CREATE_APP
export FLASK_APP=src/spiffworkflow_backend
if [[ -z "${SPIFFWORKFLOW_BACKEND_FAIL_ON_INVALID_PROCESS_MODELS:-}" ]]; then
export SPIFFWORKFLOW_BACKEND_FAIL_ON_INVALID_PROCESS_MODELS=false
fi