Skip to content

Commit 6e98f8f

Browse files
authored
Merge pull request #1579 from o1-labs/dw/frontend-leaderboard-removal
Frontend: remove leaderboard and firebase
2 parents c383dc8 + 942b74b commit 6e98f8f

File tree

90 files changed

+519
-8099
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+519
-8099
lines changed

.github/actions/frontend-build/action.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,6 @@ runs:
6767
working-directory: frontend
6868
shell: bash
6969

70-
- name: Test make build-leaderboard
71-
if: inputs.test-build-commands == 'true'
72-
run: |
73-
rm -rf dist
74-
make build-leaderboard
75-
[ -d "dist/frontend" ] || { echo "Error: make build-leaderboard failed"; exit 1; }
76-
working-directory: frontend
77-
shell: bash
78-
7970
- name: Test make build-local
8071
if: inputs.test-build-commands == 'true'
8172
run: |

.github/scripts/docker/test-frontend-docker.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ set -euo pipefail
1717
if [ $# -lt 2 ]; then
1818
echo "Usage: $0 <image> <environment> [port]"
1919
echo ""
20-
echo "Supported environments: local, webnode, production, fuzzing, leaderboard, staging"
20+
echo "Supported environments: local, webnode, production, fuzzing, staging"
2121
echo ""
2222
echo "Examples:"
2323
echo " $0 o1labs/mina-rust-frontend:latest production"
@@ -31,7 +31,7 @@ PORT="${3:-8080}"
3131
CONTAINER_NAME="test-frontend-${ENVIRONMENT}-$$"
3232

3333
# Supported environments
34-
SUPPORTED_ENVS="local webnode production fuzzing leaderboard staging"
34+
SUPPORTED_ENVS="local webnode production fuzzing staging"
3535
if [[ ! " $SUPPORTED_ENVS " =~ \ $ENVIRONMENT\ ]]; then
3636
echo "❌ Unsupported environment: $ENVIRONMENT"
3737
echo "Supported environments: $SUPPORTED_ENVS"

.github/workflows/test-docs-scripts-frontend.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,6 @@ jobs:
8585
fi
8686
bash website/docs/developers/scripts/frontend/format-code.sh
8787
88-
- name: Test build leaderboard script
89-
run: |
90-
# Source nvm if available (Linux)
91-
if [ -n "$NVM_DIR" ] && [ -s "$NVM_DIR/nvm.sh" ]; then
92-
\. "$NVM_DIR/nvm.sh"
93-
fi
94-
bash website/docs/developers/scripts/frontend/build-leaderboard.sh
95-
9688
- name: Test build webnode script
9789
run: |
9890
# Source nvm if available (Linux)

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
154154
- **CI**: build benches for each PR with the workflow `tests`, and fix the step
155155
in the workflow `build` by adding the missing SQLx/SQLite setup
156156
([#1548](https://github.com/o1-labs/mina-rust/pull/1548))
157+
- **frontend**: remove leaderboard from the frontend
158+
([#1579](https://github.com/o1-labs/mina-rust/pull/1579)
157159

158160
### Fixed
159161

frontend/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
# Generated by running: ./generate-docker-env.sh
2626
#
2727
# REQUIRED ENVIRONMENT VARIABLES:
28-
# MINA_FRONTEND_ENVIRONMENT - Frontend configuration (local|webnode|production|fuzzing|leaderboard|staging)
28+
# MINA_FRONTEND_ENVIRONMENT - Frontend configuration (local|webnode|production|fuzzing|staging)
2929
#
3030
# USAGE:
3131
# # Generate .env.docker with current git information

frontend/Makefile

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -42,24 +42,12 @@ build-webnode: ## Build the frontend with webnode configuration
4242
cp dist/frontend/browser/assets/environments/webnode.js \
4343
dist/frontend/browser/assets/environments/env.js
4444

45-
.PHONY: build-leaderboard
46-
build-leaderboard: build-production ## Build the frontend with leaderboard configuration
47-
cp dist/frontend/browser/assets/environments/leaderboard.js \
48-
dist/frontend/browser/assets/environments/env.js
49-
5045
.PHONY: build-staging
5146
build-staging: ## Build the frontend with staging configuration
5247
npx ng build --configuration production
5348
cp dist/frontend/browser/assets/environments/staging.js \
5449
dist/frontend/browser/assets/environments/env.js
5550

56-
.PHONY: build-leaderboard-sentry
57-
build-leaderboard-sentry: ## Build the frontend with leaderboard configuration and Sentry sourcemaps
58-
npx ng build --configuration production
59-
cp dist/frontend/browser/assets/environments/leaderboard.js \
60-
dist/frontend/browser/assets/environments/env.js
61-
$(MAKE) sentry-sourcemaps
62-
6351
.PHONY: check-prettify
6452
check-prettify: ## Check if files are formatted with Prettier
6553
npx prettier --check 'src/**/*.{ts,js,html,scss,css,json}'
@@ -73,18 +61,6 @@ copy-env: ## Copy webnode.js to env.js
7361
cp dist/frontend/browser/assets/environments/webnode.js \
7462
dist/frontend/browser/assets/environments/env.js
7563

76-
.PHONY: deploy
77-
deploy: prebuild build-production-sentry copy-env ## Deploy the application
78-
firebase deploy
79-
80-
.PHONY: deploy-leaderboard
81-
deploy-leaderboard: prebuild build-leaderboard ## Deploy the leaderboard application
82-
firebase deploy
83-
84-
.PHONY: deploy-leaderboard-sentry
85-
deploy-leaderboard-sentry: prebuild build-leaderboard-sentry ## Deploy the leaderboard application with Sentry sourcemaps
86-
firebase deploy
87-
8864
.PHONY: install-deps
8965
install-deps: ## Install npm dependencies (alias)
9066
npm install

frontend/docker/startup.sh

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,13 @@ build_frontend() {
3232
# Uses Angular webnode-local configuration and webnode.js runtime
3333
make build-webnode
3434
;;
35-
"leaderboard")
36-
# Uses Angular production configuration and leaderboard.js runtime
37-
make build-leaderboard
38-
;;
3935
"staging")
4036
# Uses Angular production configuration with staging.js runtime
4137
make build-staging
4238
;;
4339
*)
4440
echo "Error: Unknown environment '$environment'"
45-
echo "Available environments: local, fuzzing, production, webnode, leaderboard, staging"
41+
echo "Available environments: local, fuzzing, production, webnode, staging"
4642
exit 1
4743
;;
4844
esac
@@ -58,7 +54,7 @@ build_frontend() {
5854
# Validate that MINA_FRONTEND_ENVIRONMENT is set
5955
if [ -z "$MINA_FRONTEND_ENVIRONMENT" ]; then
6056
echo "Error: MINA_FRONTEND_ENVIRONMENT environment variable is required."
61-
echo "Available environments: local, fuzzing, production, webnode, leaderboard, staging"
57+
echo "Available environments: local, fuzzing, production, webnode, staging"
6258
echo "Example: docker run -e MINA_FRONTEND_ENVIRONMENT=webnode mina-frontend"
6359
exit 1
6460
fi

frontend/firebase.json

Lines changed: 0 additions & 82 deletions
This file was deleted.

0 commit comments

Comments
 (0)