Skip to content

Commit 028846a

Browse files
committed
fix(build): resolve TypeScript errors and build issues
- Fix Firebase import conflict in analytics-service.ts (limit function) - Fix missing ensureDemoStatsExist method in firebase-service.ts - Update analytics service to use correct method names - Fix PlasmaBubbles component to use correct analytics interface - All TypeScript errors resolved, build now successful - ESLint warnings remain but don't block build process
1 parent 73e1f72 commit 028846a

File tree

83 files changed

+5377
-4656
lines changed

Some content is hidden

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

83 files changed

+5377
-4656
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
run: npm run type-check
3232

3333
test:
34-
name: Run Tests
34+
name: Run Cypress Tests
3535
runs-on: ubuntu-latest
3636
needs: quality-check
3737

@@ -48,16 +48,27 @@ jobs:
4848
- name: Install dependencies
4949
run: npm ci
5050

51-
- name: Run unit tests
52-
run: npm run test:coverage
53-
54-
- name: Upload coverage to Codecov
55-
uses: codecov/codecov-action@v3
51+
- name: Run Cypress tests
52+
uses: cypress-io/github-action@v6
5653
with:
57-
file: ./coverage/lcov.info
58-
flags: unittests
59-
name: codecov-umbrella
60-
fail_ci_if_error: false
54+
start: npm run dev
55+
wait-on: 'http://localhost:3000'
56+
wait-on-timeout: 120
57+
browser: chrome
58+
record: false
59+
config: video=false,screenshotOnRunFailure=true
60+
env:
61+
NEXT_PUBLIC_STELLAR_NETWORK: TESTNET
62+
NEXT_PUBLIC_STELLAR_HORIZON_TESTNET: https://horizon-testnet.stellar.org
63+
NEXT_PUBLIC_STELLAR_HORIZON_PUBLIC: https://horizon.stellar.org
64+
NEXT_PUBLIC_DEFAULT_ASSET_CODE: USDC
65+
NEXT_PUBLIC_DEFAULT_ASSET_ISSUER: CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA
66+
NEXT_PUBLIC_FIREBASE_API_KEY: AIzaSyCVq9jAmW912-4SClPuip6bbPy5fnWE7no
67+
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN: nexus-55966.firebaseapp.com
68+
NEXT_PUBLIC_FIREBASE_PROJECT_ID: nexus-55966
69+
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET: nexus-55966.firebasestorage.app
70+
NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID: 48419163339
71+
NEXT_PUBLIC_FIREBASE_APP_ID: 1:48419163339:web:637eadbce2dadb24605f4e
6172

6273
build:
6374
name: Build Application

.github/workflows/simple-ci.yml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,27 @@ jobs:
3030
- name: Type check
3131
run: npm run type-check
3232

33-
- name: Run unit tests
34-
run: npm run test:coverage
33+
- name: Run Cypress tests
34+
uses: cypress-io/github-action@v6
35+
with:
36+
start: npm run dev
37+
wait-on: 'http://localhost:3000'
38+
wait-on-timeout: 120
39+
browser: chrome
40+
record: false
41+
config: video=false,screenshotOnRunFailure=true
42+
env:
43+
NEXT_PUBLIC_STELLAR_NETWORK: TESTNET
44+
NEXT_PUBLIC_STELLAR_HORIZON_TESTNET: https://horizon-testnet.stellar.org
45+
NEXT_PUBLIC_STELLAR_HORIZON_PUBLIC: https://horizon.stellar.org
46+
NEXT_PUBLIC_DEFAULT_ASSET_CODE: USDC
47+
NEXT_PUBLIC_DEFAULT_ASSET_ISSUER: CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA
48+
NEXT_PUBLIC_FIREBASE_API_KEY: AIzaSyCVq9jAmW912-4SClPuip6bbPy5fnWE7no
49+
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN: nexus-55966.firebaseapp.com
50+
NEXT_PUBLIC_FIREBASE_PROJECT_ID: nexus-55966
51+
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET: nexus-55966.firebasestorage.app
52+
NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID: 48419163339
53+
NEXT_PUBLIC_FIREBASE_APP_ID: 1:48419163339:web:637eadbce2dadb24605f4e
3554

3655
- name: Build application
3756
run: npm run build

COMMANDS.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,4 +177,3 @@ npm run clean # Clean up cache
177177
- Use `npm run check:fix` before committing to automatically fix issues
178178

179179
**🚀 Happy coding!**
180-

0 commit comments

Comments
 (0)