Page MenuHomePhabricator

[e.cash] Add announcement bar for ECC
ClosedPublic

Authored by johnkuney on Sep 4 2025, 16:47.

Details

Reviewers
bytesofman
Group Reviewers
Restricted Project
Commits
rABC302e511540c5: [e.cash] Add announcement bar for ECC
Summary

As suggested utilizing the announcement bar component in the nav to add something for the ECC

Test Plan

Preview and test. Any copy suggestions

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Tail of the build log:

#8 10.05   run `npm fund` for details
#8 10.11 
#8 10.11 9 vulnerabilities (1 low, 4 moderate, 2 high, 2 critical)
#8 10.11 
#8 10.11 To address issues that do not require attention, run:
#8 10.11   npm audit fix
#8 10.11 
#8 10.11 To address all issues, run:
#8 10.11   npm audit fix --force
#8 10.11 
#8 10.11 Run `npm audit` for details.
#8 10.11 npm notice
#8 10.11 npm notice New major version of npm available! 10.9.3 -> 11.6.0
#8 10.11 npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.6.0
#8 10.11 npm notice To update run: npm install -g npm@11.6.0
#8 10.11 npm notice
#8 DONE 10.6s

#9 [5/5] RUN npm run build
#9 sha256:fa52dc97b90165509d7d3a4589ec5a8063f6f010142806492d07e515d36aa9d0
#9 0.636 
#9 0.636 > e.cash@0.0.1 build
#9 0.636 > next build
#9 0.636 
#9 1.117 Attention: Next.js now collects completely anonymous telemetry regarding usage.
#9 1.117 This information is used to shape Next.js' roadmap and prioritize features.
#9 1.117 You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
#9 1.117 https://nextjs.org/telemetry
#9 1.117 
#9 1.167   ▲ Next.js 14.2.5
#9 1.167   - Environments: .env
#9 1.167 
#9 1.168    Linting and checking validity of types ...
#9 1.259    Creating an optimized production build ...
#9 10.18  ✓ Compiled successfully
#9 10.18    Collecting page data ...
#9 10.74 ReferenceError: document is not defined
#9 10.74     at createTag (/node_modules/lottie-web/build/player/lottie.js:30:5)
#9 10.74     at /node_modules/lottie-web/build/player/lottie.js:1316:20
#9 10.74     at /node_modules/lottie-web/build/player/lottie.js:1323:6
#9 10.74     at /node_modules/lottie-web/build/player/lottie.js:1540:4
#9 10.74     at /node_modules/lottie-web/build/player/lottie.js:2:83
#9 10.74     at Object.<anonymous> (/node_modules/lottie-web/build/player/lottie.js:5:3)
#9 10.74     at Module._compile (node:internal/modules/cjs/loader:1706:14)
#9 10.74     at Object..js (node:internal/modules/cjs/loader:1839:10)
#9 10.74     at Module.load (node:internal/modules/cjs/loader:1441:32)
#9 10.74     at Function._load (node:internal/modules/cjs/loader:1263:12)
#9 10.74 
#9 10.74 > Build error occurred
#9 10.74 Error: Failed to collect page data for /wallets
#9 10.74     at /node_modules/next/dist/build/utils.js:1268:15
#9 10.74     at process.processTicksAndRejections (node:internal/process/task_queues:105:5) {
#9 10.74   type: 'Error'
#9 10.74 }
#9 ERROR: executor failed running [/bin/sh -c npm run build]: exit code: 1
------
 > [5/5] RUN npm run build:
------
executor failed running [/bin/sh -c npm run build]: exit code: 1
Build preview-e.cash failed with exit code 1

Tail of the build log:

#9 [5/5] RUN npm run build
#9 0.505 
#9 0.505 > e.cash@0.0.1 build
#9 0.505 > next build
#9 0.505 
#9 0.999 Attention: Next.js now collects completely anonymous telemetry regarding usage.
#9 1.001 This information is used to shape Next.js' roadmap and prioritize features.
#9 1.001 You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
#9 1.001 https://nextjs.org/telemetry
#9 1.001 
#9 1.083   ▲ Next.js 14.2.5
#9 1.083   - Environments: .env
#9 1.083 
#9 1.084    Linting and checking validity of types ...
#9 1.179    Creating an optimized production build ...
#9 9.786  ✓ Compiled successfully
#9 9.787    Collecting page data ...
#9 10.34 ReferenceError: document is not defined
#9 10.34     at createTag (/node_modules/lottie-web/build/player/lottie.js:30:5)
#9 10.34     at /node_modules/lottie-web/build/player/lottie.js:1316:20
#9 10.34     at /node_modules/lottie-web/build/player/lottie.js:1323:6
#9 10.34     at /node_modules/lottie-web/build/player/lottie.js:1540:4
#9 10.34     at /node_modules/lottie-web/build/player/lottie.js:2:83
#9 10.34     at Object.<anonymous> (/node_modules/lottie-web/build/player/lottie.js:5:3)
#9 10.34     at Module._compile (node:internal/modules/cjs/loader:1706:14)
#9 10.34     at Object..js (node:internal/modules/cjs/loader:1839:10)
#9 10.34     at Module.load (node:internal/modules/cjs/loader:1441:32)
#9 10.34     at Function._load (node:internal/modules/cjs/loader:1263:12)
#9 10.34 
#9 10.34 > Build error occurred
#9 10.34 Error: Failed to collect page data for /what-is-ecash
#9 10.34     at /node_modules/next/dist/build/utils.js:1268:15
#9 10.34     at process.processTicksAndRejections (node:internal/process/task_queues:105:5) {
#9 10.34   type: 'Error'
#9 10.34 }
#9 ERROR: process "/bin/sh -c npm run build" did not complete successfully: exit code: 1
------
 > [5/5] RUN npm run build:
10.34     at Object..js (node:internal/modules/cjs/loader:1839:10)
10.34     at Module.load (node:internal/modules/cjs/loader:1441:32)
10.34     at Function._load (node:internal/modules/cjs/loader:1263:12)
10.34 
10.34 > Build error occurred
10.34 Error: Failed to collect page data for /what-is-ecash
10.34     at /node_modules/next/dist/build/utils.js:1268:15
10.34     at process.processTicksAndRejections (node:internal/process/task_queues:105:5) {
10.34   type: 'Error'
10.34 }
------
Dockerfile:10
--------------------
   8 |     
   9 |     RUN npm ci
  10 | >>> RUN npm run build
  11 |     
  12 |     CMD ["npm", "start"]
--------------------
ERROR: failed to solve: process "/bin/sh -c npm run build" did not complete successfully: exit code: 1
Build preview-e.cash failed with exit code 1
bytesofman requested changes to this revision.Sep 4 2025, 16:55

build lint issue

This revision now requires changes to proceed.Sep 4 2025, 16:55

weird failing on /what-is-ecash page will have to investigate

Tail of the build log:

#5 [internal] load build context
#5 sha256:73e65a696aa4227a35cd8a436b999009adc4c3ee4e7e409a9d2d6ce20db2bd38
#5 transferring context: 48.90MB 0.2s done
#5 DONE 0.2s

#6 [2/5] COPY . .
#6 sha256:be475d25e16b0d9ed984dda6b07f65bb7d27f54f176e917f27b63350ec04d030
#6 CACHED

#7 [3/5] COPY next.preview.js next.config.js
#7 sha256:dfff834d0800c7ba28f50ced6088d6bacd4e6163667436ab12ab9d946d78bbaa
#7 CACHED

#8 [4/5] RUN npm ci
#8 sha256:1a38d10cb488a31ec4139d1ddbdb5f895e95a368fc1911934333d28a79eeef44
#8 CACHED

#9 [5/5] RUN npm run build
#9 sha256:0901c1045331f26c07142dc5b2ce44a5f9e620a4687c385af01391a96147f653
#9 0.440 
#9 0.440 > e.cash@0.0.1 build
#9 0.440 > next build
#9 0.440 
#9 0.918 Attention: Next.js now collects completely anonymous telemetry regarding usage.
#9 0.919 This information is used to shape Next.js' roadmap and prioritize features.
#9 0.919 You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
#9 0.919 https://nextjs.org/telemetry
#9 0.919 
#9 0.982   ▲ Next.js 14.2.5
#9 0.982   - Environments: .env
#9 0.982 
#9 0.982    Linting and checking validity of types ...
#9 1.073    Creating an optimized production build ...
#9 9.992  ✓ Compiled successfully
#9 9.993    Collecting page data ...
#9 10.50 ReferenceError: document is not defined
#9 10.50     at createTag (/node_modules/lottie-web/build/player/lottie.js:30:5)
#9 10.50     at /node_modules/lottie-web/build/player/lottie.js:1316:20
#9 10.50     at /node_modules/lottie-web/build/player/lottie.js:1323:6
#9 10.50     at /node_modules/lottie-web/build/player/lottie.js:1540:4
#9 10.50     at /node_modules/lottie-web/build/player/lottie.js:2:83
#9 10.50     at Object.<anonymous> (/node_modules/lottie-web/build/player/lottie.js:5:3)
#9 10.50     at Module._compile (node:internal/modules/cjs/loader:1706:14)
#9 10.50     at Object..js (node:internal/modules/cjs/loader:1839:10)
#9 10.50     at Module.load (node:internal/modules/cjs/loader:1441:32)
#9 10.50     at Function._load (node:internal/modules/cjs/loader:1263:12)
#9 10.51 
#9 10.51 > Build error occurred
#9 10.51 Error: Failed to collect page data for /wallets
#9 10.51     at /node_modules/next/dist/build/utils.js:1268:15
#9 10.51     at process.processTicksAndRejections (node:internal/process/task_queues:105:5) {
#9 10.51   type: 'Error'
#9 10.51 }
#9 ERROR: executor failed running [/bin/sh -c npm run build]: exit code: 1
------
 > [5/5] RUN npm run build:
------
executor failed running [/bin/sh -c npm run build]: exit code: 1
Build preview-e.cash failed with exit code 1

this should build now. rebased with master

This revision is now accepted and ready to land.Sep 5 2025, 23:11
This revision was automatically updated to reflect the committed changes.