Remove hardcoded Firma Alpha display overrides so apps use on-chain
Firma / FIRMA token info again. Delete tokenDisplayOverrides in Cashtab
and ecash-herald, remove explorer token_display overrides, and rename
user-facing Firma Alpha copy back to Firma across Cashtab, Marlin,
notifications-server, charts, e.cash, and marlinwallet.com.
Details
- Reviewers
PiRK - Group Reviewers
Restricted Project - Commits
- rABCb49155031d94: [cashtab, apps, web] Undo Firma Alpha rebrand
- cd cashtab && npm test -- --testPathPatterns='TokenActions|SendXec.test|SendByUrlParams|Header.test' --watchAll=false
- cd apps/ecash-herald && pnpm test
- cd apps/notifications-server && pnpm test
Diff Detail
- Repository
- rABC Bitcoin ABC
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Build Bitcoin ABC Diffs / Diff Testing (ai-review) passed.
CodeRabbit Review
Diff : committed changes only
Compare : HEAD → master
Directory : work
────────────────────────────────────────
(\(\
(• .•) Because, faster merges = more features.
────────────────────────────────────────
Review complete
No findings ✔
35 files reviewed:
- apps/ecash-herald/constants/tokenDisplayOverrides.ts
- apps/ecash-herald/src/chronik.ts
- apps/ecash-herald/src/parse.ts
- apps/ecash-herald/test/agora.test.ts
- apps/marlin-wallet/web/cypress/e2e/send.cy.ts
- apps/marlin-wallet/web/cypress/e2e/shared-image-qr.cy.ts
- apps/marlin-wallet/web/src/supported-assets.ts
- apps/notifications-server/src/constants/hotTokenGenesisInfo.ts
- apps/notifications-server/src/services/pushGenesisInfo.test.ts
- cashtab/src/chronik/index.ts
... and 25 more files
────────────────────────────────────────
Failed tests logs:
====== CashTab Unit Tests: <Wallets /> Deleting the active wallet while other wallets exist activates the next wallet in the list and does not show onboarding ======
Error: expect(received).toBe(expected) // Object.is equality
Expected: "ecash:qzs4zzxs0gvfrc6e2wqhkmvj4dmmh332cvfpd7yjep"
Received: "ecash:qzj4u2pl2nv3kampdnnjc2c30f9lwl50uvvg4nfkfz"
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div>
<div
class="sc-ZUflv kTGiaW"
>
<section
aria-atomic="false"
aria-label="Notifications"
aria-live="polite"
aria-relevant="additions text"
class="Toastify"
>
<div
class="Toastify__toast-container Toastify__toast-container--top-right"
tabindex="-1"
>
<div
class="Toastify__toast Toastify__toast-theme--dark Toastify__toast--success Toastify__toast--close-on-click Toastify--animate Toastify__bounce-enter--top-right"
data-in="true"
id="11"
role="alert"
tabindex="0"
>
<div
class="Toastify__toast-icon Toastify--animate-icon Toastify__zoom-enter"
>
<svg
fill="var(--toastify-icon-color-success)"
height="100%"
viewBox="0 0 24 24"
width="100%"
>
<path
d="M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"
/>
</svg>
</div>
“Transaction Fixtures” deleted
<button
aria-label="close"
class="Toastify__close-button Toastify__close-button--dark"
type="button"
>
<svg
aria-hidden="true"
viewBox="0 0 14 16"
>
<path
d="M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"
fill-rule="evenodd"
/>
</svg>
</button>
<div
class="Toastify__progress-bar--wrp"
data-hidden="false"
>
<div
class="Toastify__progress-bar--bg Toastify__progress-bar-theme--dark Toastify__progress-bar--success"
/>
<div
aria-hidden="false"
aria-label="notification timer"
class="Toastify__progress-bar Toastify__progress-bar--animated Toastify__progress-bar-theme--dark Toastify__progress-bar--success"
role="progressbar"
style="animation-duration: 2000ms; animation-play-state: paused;"
/>
</div>
</div>
</div>
</section>
<div
class="sc-hPeUyl iedhFX"
>
<div
class="sc-esoVGF iSYPhz"
>
<div
class="sc-RWGNv buttCe"
>
<div
class="sc-jGFFOr eCkvIC"
title="Wallet Info"
>
<div
class="sc-hMjcWo bmIUaW"
>
<div
class="sc-bLJvFH ekARTr"
title="Price in Local Currency"
>
1
XEC
=
0.00003000
USD
</div>
<div
class="sc-hgzKov kecDHV"
>
<div
class="sc-gjAXCV jiDRUj"
>
<label
class="sc-hhaNoI hxUbPe"
>
<input
checked=""
class="sc-gneEKw fTKnGi"
type="checkbox"
/>
<div
class="sc-kFLxrv kQEKXu"
>
<svg
fill="currentColor"
title="Visible"
/>
</div>
</label>
<button
aria-label="Copy ecash:qzj4u2pl2nv3kampdnnjc2c30f9lwl50uvvg4nfkfz"
class="sc-jbKcbu dkVUbc"
>
<svg
title="copy-paste"
/>
</button>
<a
aria-label="Settings"
class="sc-dOkuiw hPBWcg"
data-discover="true"
href="/configure"
>
<svg
title="Settings"
/>
</a>
</div>
<select
class="sc-hCbubC htQPV...
at toBe (/work/cashtab/src/components/Wallets/__tests__/index.test.js:732:70)Each failure log is accessible here:
CashTab Unit Tests: <Wallets /> Deleting the active wallet while other wallets exist activates the next wallet in the list and does not show onboarding
Harden active-wallet delete next-selection to fix flaky cashtab-tests CI (bravo activated instead of alpha when displayOrder fell through unsorted fallback). Confirmed Wallets delete test passes locally (5x + full suite).
Build Bitcoin ABC Diffs / Diff Testing (ai-review) passed.
CodeRabbit Review
Diff : committed changes only
Compare : HEAD → master
Directory : work
────────────────────────────────────────
(\(\
(• .•) Your code's Big O notation: O(WTF).
────────────────────────────────────────────────────────────────────────
major [Data Integrity & Integration] → ]8;;vscode://file//work/cashtab/src/helpers/index.ts:107cashtab/src/helpers/index.ts:107]8;; Invalidate pre-migration token metadata. If CashtabCache survives an upgrade, `new Map(storedCashtabCache.tokens) preserves Firma Alpha` metadata. Wallet sync fetches only uncached token IDs, so existing entries bypass the raw-metadata path. Add cache invalidation or rebuild affected entries during restoration. Add a regression test with a serialized pre-migration Firma entry.
────────────────────────────────────────
Review complete
1 finding ✔
Major 1
37 files reviewed:
- apps/ecash-herald/constants/tokenDisplayOverrides.ts
- apps/ecash-herald/src/chronik.ts
- apps/ecash-herald/src/parse.ts
- apps/ecash-herald/test/agora.test.ts
- apps/marlin-wallet/web/cypress/e2e/send.cy.ts
- apps/marlin-wallet/web/cypress/e2e/shared-image-qr.cy.ts
- apps/marlin-wallet/web/src/supported-assets.ts
- apps/notifications-server/src/constants/hotTokenGenesisInfo.ts
- apps/notifications-server/src/services/pushGenesisInfo.test.ts
- cashtab/src/chronik/index.ts
... and 27 more files
────────────────────────────────────────
Print all AI prompts: coderabbit review --show-prompts
Back out wallet-delete flake fix (now D20423). Invalidate legacy Firma Alpha rows in storedCashtabCacheToMap so upgraded caches refetch on-chain Firma metadata (CodeRabbit).
Build Bitcoin ABC Diffs / Diff Testing (ai-review) passed.
CodeRabbit Review
Diff : committed changes only
Compare : HEAD → master
Directory : work
────────────────────────────────────────
(\(\
(• .•) Keep your friends close, but your code reviewers closer.
────────────────────────────────────────
Review complete
No findings ✔
36 files reviewed:
- apps/ecash-herald/constants/tokenDisplayOverrides.ts
- apps/ecash-herald/src/chronik.ts
- apps/ecash-herald/src/parse.ts
- apps/ecash-herald/test/agora.test.ts
- apps/marlin-wallet/web/cypress/e2e/send.cy.ts
- apps/marlin-wallet/web/cypress/e2e/shared-image-qr.cy.ts
- apps/marlin-wallet/web/src/supported-assets.ts
- apps/notifications-server/src/constants/hotTokenGenesisInfo.ts
- apps/notifications-server/src/services/pushGenesisInfo.test.ts
- cashtab/src/chronik/index.ts
... and 26 more files
────────────────────────────────────────
OK, the diff reverts all the applyTokenDisplayOverrides calls and fixes tests accordingly. The only new piece of code is the invalidation of the cashtab cache if it contains "firma alpha".