Branch and pull request previews are automatically deployed to subdirectories.
-
Each branch is accessible at /branch-name/
-
-
-
-
âšī¸ About
-
SGEX is an experimental collaborative project developing a workbench of tools to make it easier and faster to develop high fidelity SMART Guidelines Digital Adaptation Kits (DAKs).
-
-
-
-
-EOF
- fi
+ # Build the React app
+ npm run build
- # Verify index.html exists
+ # Verify build output exists
if [[ ! -f "build/index.html" ]]; then
- echo "ERROR: index.html not found in build output"
+ echo "ERROR: React build failed - index.html not found in build output"
exit 1
fi
- echo "â Landing page build completed"
+ echo "â React landing page build completed successfully"
+ echo "Build contents:"
+ ls -la build/
- name: Deploy to gh-pages root (preserving existing branches)
shell: bash
run: |
set -e
- # Save the landing page build
- echo "Preserving landing page build..."
+ # Save the React app build
+ echo "Preserving React app build..."
mkdir -p /tmp/landing-build
cp -a build/. /tmp/landing-build/
@@ -165,7 +121,7 @@ EOF
fi
# Deploy landing page to root (this will not affect any subdirectories)
- echo "Deploying landing page to root..."
+ echo "Deploying React app to root..."
cp -a /tmp/landing-build/. .
# Verify existing directories are still there
@@ -175,7 +131,7 @@ EOF
# Clean up temporary build
rm -rf /tmp/landing-build
- echo "â Landing page deployed to gh-pages root while preserving all branch directories"
+ echo "â React app deployed to gh-pages root while preserving all branch directories"
- name: Commit and push changes
shell: bash
@@ -207,9 +163,9 @@ EOF
trigger_info="Auto-triggered by push to main"
fi
- git commit -m "đ Deploy landing page (${deployment_type})
+ git commit -m "đ Deploy React landing page (${deployment_type})
- - Updated landing page with self-contained assets from deploy branch
+ - Updated with React app build from main branch
- ${trigger_info}
- Deployed at $(date -u '+%Y-%m-%d %H:%M:%S UTC')
- Commit: ${{ github.sha }}"
@@ -218,7 +174,7 @@ EOF
git pull origin gh-pages --rebase || echo "Pull failed, attempting to push anyway..."
git push origin gh-pages
- echo "â Landing page deployment completed successfully"
+ echo "â React landing page deployment completed successfully"
fi
- name: Output deployment info
@@ -235,7 +191,7 @@ EOF
trigger_info="Auto-triggered by push to main"
fi
- echo "đ Landing Page Deployment Summary:"
+ echo "đ React Landing Page Deployment Summary:"
echo "- Landing Page URL: $landing_url"
echo "- Deployment Type: $deployment_type"
echo "- $trigger_info"
diff --git a/package.json b/package.json
index 3ffe2f430..4de05f6ac 100644
--- a/package.json
+++ b/package.json
@@ -3,7 +3,7 @@
"version": "1.0.0",
"description": "SGEX Workbench - WHO SMART Guidelines Exchange collaborative editor",
"private": true,
- "homepage": "/sgex/",
+ "homepage": "/",
"dependencies": {
"@octokit/rest": "^22.0.0",
"@testing-library/jest-dom": "^6.6.4",
diff --git a/src/App.js b/src/App.js
index bbc21000e..3a70635b6 100644
--- a/src/App.js
+++ b/src/App.js
@@ -1,44 +1,20 @@
import React from 'react';
import { BrowserRouter as Router, Routes, Route } from 'react-router-dom';
import './i18n'; // Initialize i18n
-import WelcomePage from './components/WelcomePage';
-import SelectProfilePage from './components/SelectProfilePage';
-import DAKActionSelection from './components/DAKActionSelection';
-import DAKSelection from './components/DAKSelection';
-import OrganizationSelection from './components/OrganizationSelection';
-import DAKConfiguration from './components/DAKConfiguration';
-
-import ComponentEditor from './components/ComponentEditor';
-import CoreDataDictionaryViewer from './components/CoreDataDictionaryViewer';
-import ActorEditor from './components/ActorEditor';
-import BPMNEditor from './components/BPMNEditor';
-import BusinessProcessSelection from './components/BusinessProcessSelection';
-import BPMNViewer from './components/BPMNViewer';
-import BPMNSource from './components/BPMNSource';
-import BPMNViewerTestComponent from './components/BPMNViewerTestComponent';
-import DocumentationViewer from './components/DocumentationViewer';
-import DecisionSupportLogicView from './components/DecisionSupportLogicView';
-import TestDashboard from './components/TestDashboard';
-import TestingViewer from './components/TestingViewer';
-import PagesManager from './components/PagesManager';
+import BranchDeploymentSelector from './components/BranchDeploymentSelector';
import NotFound from './components/NotFound';
-import LandingPageWithFramework from './components/LandingPageWithFramework';
-import DAKDashboardWithFramework from './components/DAKDashboardWithFramework';
-import DashboardRedirect from './components/DashboardRedirect';
-import TestDocumentationPage from './components/TestDocumentationPage';
-import AssetEditorTest from './components/AssetEditorTest';
import logger from './utils/logger';
import './App.css';
function App() {
const appLogger = logger.getLogger('App');
- // Get basename from PUBLIC_URL or default to /sgex, but use empty in development if no PUBLIC_URL
- const basename = process.env.PUBLIC_URL || (process.env.NODE_ENV === 'development' ? '' : '/sgex');
+ // Get basename from PUBLIC_URL or default to empty for deployment selector
+ const basename = process.env.PUBLIC_URL || '';
React.useEffect(() => {
appLogger.componentMount();
- appLogger.info('SGEX Workbench application started', {
+ appLogger.info('SGEX Branch Deployment Selector started', {
environment: process.env.NODE_ENV,
basename: basename
});
@@ -52,66 +28,7 @@ function App() {
+ Select a deployment to explore different versions and features of SGEX Workbench.
+ Each deployment represents a different branch or feature in development.
+
+ Each deployment represents a different version of SGEX Workbench. The main deployment
+ contains the stable, production-ready version. Feature deployments contain experimental
+ features and improvements that are being tested before they are merged into the main application.
+
+
+ Feature deployments may contain incomplete features or bugs. Use them to preview upcoming
+ functionality and provide feedback to the development team.
+
+
+
+
+
+ );
+};
+
+export default BranchDeploymentSelector;
\ No newline at end of file