Skip to content

Commit

Permalink
Merge pull request #514 from powerhouse-inc/staging-release
Browse files Browse the repository at this point in the history
Staging Release
  • Loading branch information
gpuente authored Sep 5, 2024
2 parents 6c2ee82 + cad5a8f commit 03c9654
Show file tree
Hide file tree
Showing 48 changed files with 3,113 additions and 2,879 deletions.
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
.env
node_modules/
dist/
100 changes: 37 additions & 63 deletions .env
Original file line number Diff line number Diff line change
@@ -1,63 +1,37 @@
VITE_DISABLED_EDITORS=powerhouse/document-drive
VITE_DEFAULT_DRIVES_URL=https://apps.powerhouse.io/staging/makerdao/switchboard/d/monetalis
VITE_BASE_HREF=/
ASSET_URL=/

VITE_APP_REQUIRES_HARD_REFRESH=true

######## RENOWN CONFIG ########
# Renown instance to use for login
# VITE_RENOWN_URL=http://localhost:3000

# Network Id to use for signing the Renown credential (default: 1 for Ethereum mainnet)
# VITE_RENOWN_NETWORK_ID=1

# Set the base URL of the app (default: /)
VITE_ROUTER_BASENAME=/

######## CONNECT CONTENT CONFIG ########
# Set to false to hide searchbar in folder conent (default: true)
VITE_SEARCH_BAR_ENABLED=false

VITE_SENTRY_DSN=""
VITE_SENTRY_ENV=dev

######## CONNECT SETTINGS ########
# Set to true to hide document model selection from connect settings (default: false)
# VITE_HIDE_DOCUMENT_MODEL_SELECTION_SETTINGS=true

######## PUBLIC DRIVES CONFIG ########
# Set to false to hide public drives section in the sidebar (default: true)
# VITE_PUBLIC_DRIVES_ENABLED=false

# Set to true to disable adding public drives (default: false)
#VITE_DISABLE_ADD_PUBLIC_DRIVES=false

# Set to true to disable deleting public drives (default: false)
#VITE_DISABLE_DELETE_PUBLIC_DRIVES=false




######## CLOUD DRIVES CONFIG ########
# Set to false to hide cloud drives section in the sidebar (default: true)
# VITE_CLOUD_DRIVES_ENABLED=false

# Set to true to disable adding cloud drives (default: false)
#VITE_DISABLE_ADD_CLOUD_DRIVES=false

# Set to true to disable deleting cloud drives (default: false)
#VITE_DISABLE_DELETE_CLOUD_DRIVES=false




######## LOCAL DRIVES CONFIG ########
# Set to false to hide local drives section in the sidebar (default: true)
# VITE_LOCAL_DRIVES_ENABLED=false

# Set to true to disable adding local drives (default: false)
#VITE_DISABLE_ADD_LOCAL_DRIVES=true

# Set to true to disable deleting local drives (default: false)
#VITE_DISABLE_DELETE_LOCAL_DRIVES=false
# build arguments
BASE_PATH="/" # vite base path
BASE_HREF="./" # electron-forge base href
PH_CONNECT_APP_REQUIRES_HARD_REFRESH="true"
SENTRY_AUTH_TOKEN=
SENTRY_ORG=
SENTRY_PROJECT=

# environment variables

## app configuration & feature flags
PH_CONNECT_ROUTER_BASENAME="/develop/powerhouse/connect"
PH_CONNECT_DEFAULT_DRIVES_URL="https://apps.powerhouse.io/develop/powerhouse/switchboard/d/core-dev"
PH_CONNECT_ENABLED_EDITORS="*"
PH_CONNECT_DISABLE_ADD_PUBLIC_DRIVES="false"
PH_CONNECT_SEARCH_BAR_ENABLED="false"
PH_CONNECT_DISABLE_ADD_CLOUD_DRIVES="false"
PH_CONNECT_DISABLE_ADD_LOCAL_DRIVES="false"
PH_CONNECT_DISABLE_DELETE_PUBLIC_DRIVES="false"
PH_CONNECT_DISABLE_DELETE_CLOUD_DRIVES="false"
PH_CONNECT_DISABLE_DELETE_LOCAL_DRIVES="false"
PH_CONNECT_PUBLIC_DRIVES_ENABLED="true"
PH_CONNECT_CLOUD_DRIVES_ENABLED="true"
PH_CONNECT_LOCAL_DRIVES_ENABLED="true"
PH_CONNECT_ARBITRUM_ALLOW_LIST=""
PH_CONNECT_RWA_ALLOW_LIST=""
PH_CONNECT_HIDE_DOCUMENT_MODEL_SELECTION_SETTINGS="true"

PH_CONNECT_RENOWN_URL="https://www.renown.id"
PH_CONNECT_RENOWN_NETWORK_ID="eip155"
PH_CONNECT_RENOWN_CHAIN_ID=1
PH_CONNECT_DISABLED_EDITORS=""

## error tracking
PH_CONNECT_SENTRY_DSN=""
PH_CONNECT_SENTRY_PROJECT=""
PH_CONNECT_SENTRY_ENV="prod"
3 changes: 0 additions & 3 deletions .env.prod

This file was deleted.

32 changes: 16 additions & 16 deletions .github/workflows/build-and-deploy-arbitrum-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,20 @@ jobs:
heroku_app_name: ${{ secrets.HEROKU_APP_NAME }}
docker_options: >-
--build-arg BASE_PATH=/arbitrum/connect
--build-arg VITE_BASE_HREF=/arbitrum/connect/
--build-arg VITE_ROUTER_BASENAME=/arbitrum/connect
--build-arg VITE_SENTRY_DSN=${{ secrets.SENTRY_DSN }}
--build-arg VITE_SENTRY_ENV=${{ secrets.SENTRY_ENV }}
--build-arg VITE_ENABLED_EDITORS=ARBLTIPGrantee
--build-arg VITE_DISABLE_ADD_PUBLIC_DRIVES=true
--build-arg VITE_DISABLE_ADD_CLOUD_DRIVES=true
--build-arg VITE_DISABLE_ADD_LOCAL_DRIVES=true
--build-arg VITE_DISABLE_DELETE_PUBLIC_DRIVES=true
--build-arg VITE_DISABLE_DELETE_CLOUD_DRIVES=true
--build-arg VITE_DISABLE_DELETE_LOCAL_DRIVES=true
--build-arg VITE_LOCAL_DRIVES_ENABLED=false
--build-arg VITE_SEARCH_BAR_ENABLED=false
--build-arg VITE_DEFAULT_DRIVES_URL=https://apps.powerhouse.io/arbitrum/switchboard/d/arbitrum
--build-arg VITE_RENOWN_CHAIN_ID=42161
--build-arg VITE_HIDE_DOCUMENT_MODEL_SELECTION_SETTINGS=true
--build-arg PH_CONNECT_BASE_HREF=/arbitrum/connect/
--build-arg PH_CONNECT_ROUTER_BASENAME=/arbitrum/connect
--build-arg PH_CONNECT_SENTRY_DSN=${{ secrets.SENTRY_DSN }}
--build-arg PH_CONNECT_SENTRY_ENV=${{ secrets.SENTRY_ENV }}
--build-arg PH_CONNECT_ENABLED_EDITORS=ARBLTIPGrantee
--build-arg PH_CONNECT_DISABLE_ADD_PUBLIC_DRIVES=true
--build-arg PH_CONNECT_DISABLE_ADD_CLOUD_DRIVES=true
--build-arg PH_CONNECT_DISABLE_ADD_LOCAL_DRIVES=true
--build-arg PH_CONNECT_DISABLE_DELETE_PUBLIC_DRIVES=true
--build-arg PH_CONNECT_DISABLE_DELETE_CLOUD_DRIVES=true
--build-arg PH_CONNECT_DISABLE_DELETE_LOCAL_DRIVES=true
--build-arg PH_CONNECT_LOCAL_DRIVES_ENABLED=false
--build-arg PH_CONNECT_SEARCH_BAR_ENABLED=false
--build-arg PH_CONNECT_DEFAULT_DRIVES_URL=https://apps.powerhouse.io/arbitrum/switchboard/d/arbitrum
--build-arg PH_CONNECT_RENOWN_CHAIN_ID=42161
--build-arg PH_CONNECT_HIDE_DOCUMENT_MODEL_SELECTION_SETTINGS=true
process_type: web
34 changes: 17 additions & 17 deletions .github/workflows/build-and-deploy-arbitrum-staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,23 @@ jobs:
heroku_app_name: ${{ secrets.HEROKU_APP_NAME }}
docker_options: >-
--build-arg BASE_PATH=/staging/arbitrum/connect
--build-arg VITE_BASE_HREF=/staging/arbitrum/connect/
--build-arg VITE_ROUTER_BASENAME=/staging/arbitrum/connect
--build-arg VITE_ENABLED_EDITORS=ARBLTIPGrantee
--build-arg VITE_DISABLE_ADD_PUBLIC_DRIVES=true
--build-arg VITE_DISABLE_ADD_CLOUD_DRIVES=true
--build-arg VITE_DISABLE_ADD_LOCAL_DRIVES=true
--build-arg VITE_DISABLE_DELETE_PUBLIC_DRIVES=true
--build-arg VITE_DISABLE_DELETE_CLOUD_DRIVES=true
--build-arg VITE_DISABLE_DELETE_LOCAL_DRIVES=true
--build-arg VITE_LOCAL_DRIVES_ENABLED=false
--build-arg VITE_DEFAULT_DRIVES_URL=https://apps.powerhouse.io/staging/arbitrum/switchboard/d/arbitrum
--build-arg VITE_RENOWN_CHAIN_ID=42161
--build-arg VITE_SEARCH_BAR_ENABLED=false
--build-arg VITE_SENTRY_DSN=${{ secrets.SENTRY_DSN }}
--build-arg VITE_SENTRY_ENV=${{ secrets.SENTRY_ENV }}
--build-arg VITE_ARBITRUM_ALLOW_LIST=${{secrets.VITE_ARBITRUM_ALLOW_LIST}}
--build-arg VITE_HIDE_DOCUMENT_MODEL_SELECTION_SETTINGS=true
--build-arg PH_CONNECT_BASE_HREF=/staging/arbitrum/connect/
--build-arg PH_CONNECT_ROUTER_BASENAME=/staging/arbitrum/connect
--build-arg PH_CONNECT_ENABLED_EDITORS=ARBLTIPGrantee
--build-arg PH_CONNECT_DISABLE_ADD_PUBLIC_DRIVES=true
--build-arg PH_CONNECT_DISABLE_ADD_CLOUD_DRIVES=true
--build-arg PH_CONNECT_DISABLE_ADD_LOCAL_DRIVES=true
--build-arg PH_CONNECT_DISABLE_DELETE_PUBLIC_DRIVES=true
--build-arg PH_CONNECT_DISABLE_DELETE_CLOUD_DRIVES=true
--build-arg PH_CONNECT_DISABLE_DELETE_LOCAL_DRIVES=true
--build-arg PH_CONNECT_LOCAL_DRIVES_ENABLED=false
--build-arg PH_CONNECT_DEFAULT_DRIVES_URL=https://apps.powerhouse.io/staging/arbitrum/switchboard/d/arbitrum
--build-arg PH_CONNECT_RENOWN_CHAIN_ID=42161
--build-arg PH_CONNECT_SEARCH_BAR_ENABLED=false
--build-arg PH_CONNECT_SENTRY_DSN=${{ secrets.SENTRY_DSN }}
--build-arg PH_CONNECT_SENTRY_ENV=${{ secrets.SENTRY_ENV }}
--build-arg PH_CONNECT_ARBITRUM_ALLOW_LIST=${{secrets.PH_CONNECT_ARBITRUM_ALLOW_LIST}}
--build-arg PH_CONNECT_HIDE_DOCUMENT_MODEL_SELECTION_SETTINGS=true
--build-arg SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }}
--build-arg SENTRY_ORG=${{ secrets.SENTRY_ORG }}
--build-arg SENTRY_PROJECT=${{ secrets.SENTRY_PROJECT }}
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/build-and-deploy-makerdao-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ jobs:
heroku_app_name: ${{ secrets.HEROKU_APP_NAME }}
docker_options: >-
--build-arg BASE_PATH=/makerdao/connect
--build-arg VITE_BASE_HREF=/makerdao/connect/
--build-arg VITE_ROUTER_BASENAME=/makerdao/connect
--build-arg VITE_SENTRY_DSN=${{ secrets.SENTRY_DSN }}
--build-arg VITE_SENTRY_ENV=${{ secrets.SENTRY_ENV }}
--build-arg VITE_SEARCH_BAR_ENABLED=false
--build-arg VITE_DEFAULT_DRIVES_URL=https://apps.powerhouse.io/makerdao/switchboard/d/b443d823-3e4d-4e60-ae44-45edafd5f632
--build-arg VITE_RWA_ALLOW_LIST=${{secrets.VITE_RWA_ALLOW_LIST}}
--build-arg PH_CONNECT_BASE_HREF=/makerdao/connect/
--build-arg PH_CONNECT_ROUTER_BASENAME=/makerdao/connect
--build-arg PH_CONNECT_SENTRY_DSN=${{ secrets.SENTRY_DSN }}
--build-arg PH_CONNECT_SENTRY_ENV=${{ secrets.SENTRY_ENV }}
--build-arg PH_CONNECT_SEARCH_BAR_ENABLED=false
--build-arg PH_CONNECT_DEFAULT_DRIVES_URL=https://apps.powerhouse.io/makerdao/switchboard/d/b443d823-3e4d-4e60-ae44-45edafd5f632
--build-arg PH_CONNECT_RWA_ALLOW_LIST=${{secrets.PH_CONNECT_RWA_ALLOW_LIST}}
process_type: web
14 changes: 7 additions & 7 deletions .github/workflows/build-and-deploy-makerdao-staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ jobs:
heroku_app_name: ${{ secrets.HEROKU_APP_NAME }}
docker_options: >-
--build-arg BASE_PATH=/staging/makerdao/connect
--build-arg VITE_BASE_HREF=/staging/makerdao/connect/
--build-arg VITE_ROUTER_BASENAME=/staging/makerdao/connect
--build-arg VITE_SENTRY_DSN=${{ secrets.SENTRY_DSN }}
--build-arg VITE_SENTRY_ENV=${{ secrets.SENTRY_ENV }}
--build-arg VITE_SEARCH_BAR_ENABLED=false
--build-arg VITE_DEFAULT_DRIVES_URL=https://apps.powerhouse.io/staging/makerdao/switchboard/d/280dd289-ec51-40f0-adad-c154967fc2b2
--build-arg VITE_RWA_ALLOW_LIST=${{secrets.VITE_RWA_ALLOW_LIST}}
--build-arg PH_CONNECT_BASE_HREF=/staging/makerdao/connect/
--build-arg PH_CONNECT_ROUTER_BASENAME=/staging/makerdao/connect
--build-arg PH_CONNECT_SENTRY_DSN=${{ secrets.SENTRY_DSN }}
--build-arg PH_CONNECT_SENTRY_ENV=${{ secrets.SENTRY_ENV }}
--build-arg PH_CONNECT_SEARCH_BAR_ENABLED=false
--build-arg PH_CONNECT_DEFAULT_DRIVES_URL=https://apps.powerhouse.io/staging/makerdao/switchboard/d/280dd289-ec51-40f0-adad-c154967fc2b2
--build-arg PH_CONNECT_RWA_ALLOW_LIST=${{secrets.PH_CONNECT_RWA_ALLOW_LIST}}
process_type: web
8 changes: 2 additions & 6 deletions .github/workflows/build-and-deploy-powerhouse-develop.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,8 @@ jobs:
heroku_app_name: ${{ secrets.HEROKU_APP_NAME }}
docker_options: >-
--build-arg BASE_PATH=/develop/powerhouse/connect
--build-arg VITE_BASE_HREF=/develop/powerhouse/connect/
--build-arg VITE_ROUTER_BASENAME=/develop/powerhouse/connect
--build-arg VITE_DEFAULT_DRIVES_URL=https://apps.powerhouse.io/develop/powerhouse/switchboard/d/core-dev
--build-arg VITE_SEARCH_BAR_ENABLED=false
--build-arg VITE_SENTRY_DSN=${{ secrets.SENTRY_DSN }}
--build-arg VITE_SENTRY_ENV=${{ secrets.SENTRY_ENV }}
--build-arg PH_CONNECT_SENTRY_DSN=${{ secrets.SENTRY_DSN }}
--build-arg PH_CONNECT_SENTRY_ENV=${{ secrets.SENTRY_ENV }}
--build-arg SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }}
--build-arg SENTRY_ORG=${{ secrets.SENTRY_ORG }}
--build-arg SENTRY_PROJECT=${{ secrets.SENTRY_PROJECT }}
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/build-and-deploy-powerhouse-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ jobs:
heroku_app_name: ${{ secrets.HEROKU_APP_NAME }}
docker_options: >-
--build-arg BASE_PATH=/powerhouse/connect
--build-arg VITE_BASE_HREF=/powerhouse/connect/
--build-arg VITE_ROUTER_BASENAME=/powerhouse/connect
--build-arg VITE_SENTRY_DSN=${{ secrets.SENTRY_DSN }}
--build-arg VITE_SENTRY_ENV=${{ secrets.SENTRY_ENV }}
--build-arg VITE_DEFAULT_DRIVES_URL=https://apps.powerhouse.io/powerhouse/switchboard/d/powerhouse
--build-arg VITE_SEARCH_BAR_ENABLED=false
--build-arg PH_CONNECT_BASE_HREF=/powerhouse/connect/
--build-arg PH_CONNECT_ROUTER_BASENAME=/powerhouse/connect
--build-arg PH_CONNECT_SENTRY_DSN=${{ secrets.SENTRY_DSN }}
--build-arg PH_CONNECT_SENTRY_ENV=${{ secrets.SENTRY_ENV }}
--build-arg PH_CONNECT_DEFAULT_DRIVES_URL=https://apps.powerhouse.io/powerhouse/switchboard/d/powerhouse
--build-arg PH_CONNECT_SEARCH_BAR_ENABLED=false
process_type: web
12 changes: 6 additions & 6 deletions .github/workflows/build-and-deploy-powerhouse-staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ jobs:
heroku_app_name: ${{ secrets.HEROKU_APP_NAME }}
docker_options: >-
--build-arg BASE_PATH=/staging/powerhouse/connect
--build-arg VITE_BASE_HREF=/staging/powerhouse/connect/
--build-arg VITE_ROUTER_BASENAME=/staging/powerhouse/connect
--build-arg VITE_SENTRY_DSN=${{ secrets.SENTRY_DSN }}
--build-arg VITE_SENTRY_ENV=${{ secrets.SENTRY_ENV }}
--build-arg VITE_DEFAULT_DRIVES_URL=https://apps.powerhouse.io/staging/powerhouse/switchboard/d/powerhouse
--build-arg VITE_SEARCH_BAR_ENABLED=false
--build-arg PH_CONNECT_BASE_HREF=/staging/powerhouse/connect/
--build-arg PH_CONNECT_ROUTER_BASENAME=/staging/powerhouse/connect
--build-arg PH_CONNECT_SENTRY_DSN=${{ secrets.SENTRY_DSN }}
--build-arg PH_CONNECT_SENTRY_ENV=${{ secrets.SENTRY_ENV }}
--build-arg PH_CONNECT_DEFAULT_DRIVES_URL=https://apps.powerhouse.io/staging/powerhouse/switchboard/d/powerhouse
--build-arg PH_CONNECT_SEARCH_BAR_ENABLED=false
process_type: web
13 changes: 10 additions & 3 deletions .github/workflows/e2e-dev.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
name: End-to-end tests

on:
push:
branches: [develop]
pull_request:
branches:
- main
- develop
- staging
- production
- deployments/**
workflow_dispatch:
jobs:
cypress-run:
Expand All @@ -24,4 +29,6 @@ jobs:
wait-on: 'http://localhost:5173/'
env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PH_CONNECT_ROUTER_BASENAME: /
PH_CONNECT_DEFAULT_DRIVES_URL:
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ vite.renderer.config.ts
.commitlintrc.
.github
.releaserc
scripts
scripts
src/vite-env.d.ts
Loading

0 comments on commit 03c9654

Please sign in to comment.