ADAMANT Messenger v4.12.1: Strict CSP, deterministic indexer pagination, 8-language RTL UI, and verifiable builds #83
dev-adamant-im
started this conversation in
Messenger apps
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
ADAMANT Messenger PWA
v4.12.1ships frommaster(074db965) on top ofv4.12.0(dfe094d3), spanning69commits (253files changed,+20,800/-4,234),12merged pull requests,14closed milestone issues, and syncedadamant-walletsmasterdata (9a7df1f).Rather than adding surface features alone,
v4.12.1focuses on verifiable transport and runtime hardening, deterministic node/indexer pagination under decentralized multi-operator infrastructure, full eight-language parity with Arabic RTL support, and transparent build provenance across web, desktop, and Android targets.Architecture and runtime highlights
1. Strict CSP, eval-free Web3 validation, and shared security headers
#1006,#927):PWA_SECURITY_HEADERSinvite-config/plugins/cspHardeningPlugin.tsnow defines the single source of truth enforced across builds (frame-ancestors 'none',X-Frame-Options: DENY,X-Content-Type-Options: nosniff,Referrer-Policy: no-referrer,X-XSS-Protection: 0), mirrored byvercel.jsoncatch-all headers,deploy/nginx/security-headers.conf, anddeploy/nginx/pwa-site.conf.example.#1029): Web3 ABI/validation switches to Zod 4 withconfig({ jitless: true })(src/lib/configureZod.ts) forweb3-validatorandabitypeforweb3-eth-abi, removing compiler entry points whilecspHardeningPlugin.tsexpands the production bundle gate against runtimeevalandFunctionaliases.#990,#999,#1029):.npmrc(min-release-age=7),scripts/check-dependency-release-age.mjs, Dependabot cooldowns, Electron production pruning (9cf71bc2,scripts/electron/verifyMainBundle.mjs), andplaywright.config.tscredential/artifact exclusions harden build and test pipelines.cspDeployments.env.spec.tsandtests/e2e/production-csp.live.spec.tsprobes validate header presence and login-screen script enforcement (zero CSP violations) across production, dev, GitHub Pages, and Surge deployments.2. Node floors, bounded PostgREST queries, and single-node pagination affinity
#984,#1003,Adamant-im/adamant-wallets#149):adm.nodes.minVersionrises to0.10.0across mainnet, testnet, and Tor;adm.services.ipfsNode.minVersionis explicitly read fromipfsService.minVersion(0.1.0insrc/lib/nodes/ipfs/index.ts) rather thanadm.services.minVersion; relocated node fallback IPs are synced viaadamant-wallets9a7df1f.#984): Schemasrc/lib/schema/schema.jsonreplaceswithoutDirectTransferswith integer enums[0, 1](includeDirectTransfersInChatRooms,includeDirectTransfersInChats),src/lib/sockets.jsconnects immediately on unlock subscribing toCHAT_TRANSACTION_TYPES([0, 8]), andAChatTransaction.vue,ChatPreview.vue,AdmTransaction.vue, andTransactionListItem.vuekeep transfer status synced cleanly.#992,#975):EthIndexerClient.tsensures every/ethtxsrequest setslimit(limit ?? 25), splits native ETH lookups into two bounded indexed queries (txfrom=eq.{addr}&contract_to=eq.andtxto=eq.{addr}&contract_to=eq.) merged and deduplicated client-side bytxhash, and introducesgetTimestampGroupfor equal-timestamp boundary resolution.#992): BTC (walkHistorycycle guards, page budgets, per-nodeexhaustedflags), DOGE (confirmed non-PENDINGoffset tracking with overlap re-reads), and DASH (try ... finallyloaders) keep active pagination pinned to one indexer instead of fanning out an address across operators, whiletoPersistedModuleinsrc/lib/idb/state.jsstrips cachedtransactionsand resets pagination session cursors on save.Node API floors & Settings — ADM nodes below
0.10.0and plain HTTP endpoints flagged as unsupported; Settings build entry; IPFS nodes verified againstipfsNode.minVersion(0.1.0).Direct ADM transfer sync & preview safety — Chat preview spacing and delivery ticks synced with type-0 ADM transfers (
Sent 2 ADM), alongside unsanitized-payload previews safely rendered as inert text.Wallet & bounded transaction history — Live mainnet transaction feed (ADM) paired with the single-node pagination architecture across ADM, ETH/ERC-20, BTC, and DOGE.
3. Build identity, HTTP IPFS multihash fallback, and isolated network configs
#996,#960):vite-config/plugins/buildInfoPlugin.ts(virtual:adamant-build-info) exposes sanitizedversion,branch,commit,prNumber,author,buildDate, andisTestnetinBuildInfo.vueandBuildInfoDialog.vue, together with a Force refresh Service Worker and CacheStorage clear action that preserves user credentials and encrypted IndexedDB state, plus explicitTESTNETbadges on testnet builds.#989):src/lib/files/ipfs.tsuses@noble/hashesSHA-256 multihash derivation whencrypto.subtleis absent on plain HTTP contexts (such as.onionmirrors), andsrc/lib/notifications.js+src/App.vuestabilize runtime$tresolution and lifecycle teardown.#986,#972):development.jsonandproduction.jsonare unified intosrc/config/mainnet.json, exposed throughvirtual:adamant-network-configso unsupported Vite modes or cross-network config leakage fail at build time.Verifiable build provenance & Testnet distinction — Login build dialog (
v4.12.1/master/074db96+ Force refresh), full 8-language dropdown, and distinctTESTNETmarkers onmsg-adamant-testnet.surge.sh.4. Eight-language parity and full Arabic RTL support
#998): Adds Spanish (es), French (fr), Japanese (ja), and Arabic (ar), completes audits for German (de), Russian (ru), and Simplified Chinese (zh), and aligns all eight JSON files to exact key parity (418leaf keys per locale).#998):applyLocale()insrc/i18n.jssynchronizesvue-i18n,dayjs, Vuetify locales,dir, andlang, adds accuratepluralRules(Arabic, French, Russian> 100teen cases), selectsar-u-nu-latnnumerals for Arabic dates, and detects initial language locally fromnavigator.languages.#998): Enables Vuetifyrtl: { ar: true }, mirrors navigation arrows viaa-directional-icon, adopts CSS logical properties across views, setsdir="auto"on user-authored messages while forcing LTR for passphrases, and locks regressions withRtlUiContract.spec.jsandchat-rtl-layout-regression.spec.ts.Arabic RTL layout — Right-aligned chat list with Latin numerals (
ar-u-nu-latn), active transfer card in RTL chat view with mirrored directional icons, and mirrored Settings hierarchy.New full translations — Spanish (
es), French (fr), and Japanese (ja) matching all 418 UI strings on liveadm.im.Packaging and platform notes
b378c2f8): UpgradescompileSdkVersionandtargetSdkVersionto36, raisesminSdkVersionto24(Android 7.0+), and updates AGP (8.13.0), Gradle (8.14.3), andcordovaAndroidVersion(14.0.1,versionCode41201).#1035,#1034): Apple blocked our developer account, so CI notarization is disabled (APPLE_NOTARIZE: 'false'). Desktop.dmginstallers (x64,arm64,universal) remain Developer ID signed and installable via System Settings → Privacy & Security → Open Anyway after the first launch attempt. The iOS App Store button on adamant.im is currently non-clickable with a matching notice.References
dev→master): Chore: release 4.12.1 adamant-im#1037v4.12.0...v4.12.1): Adamant-im/adamant-im@v4.12.0...v4.12.1adamant-wallets#149): Chore: Sync dev to master adamant-wallets#149All reactions