Repository navigation
Bounty #2 completed (with assistance from kevkevin - #9
Conversation
|
Closes #7 |
| const username = user.name | ||
| const password = user.pass | ||
| const deviceId = username | ||
| const deviceIdRaw: string = username |
There was a problem hiding this comment.
seems like we just use the username as the deviceIdRaw not sure if it makes more sense just to use username on line 208 and 198 instead of creating a new variable here
|
|
||
| // import IBEX_TOKEN from .env file | ||
| const IBEX_TOKEN = process.env.IBEX_TOKEN | ||
| const IBexPluginBaseURL = "http://api-development.flashapp.me:8760/api/v1" |
| headers: defaultHeaders, | ||
| } | ||
|
|
||
| if (methodType === "GET") { |
There was a problem hiding this comment.
maybe a switch statement might make more sense here but this works aswell
There was a problem hiding this comment.
changed to switch statement
| currencyId: 3, | ||
| }, | ||
| ) | ||
| console.log("IbexAccountCreationResponse", IbexAccountCreationResponse) |
There was a problem hiding this comment.
we can probably delete this console.log
| !IbexAccountCreationResponse.data || | ||
| !IbexAccountCreationResponse.data["data"]["id"] | ||
| ) { | ||
| console.error({ error: "unable to get IbexAccountCreationResponse" }) |
There was a problem hiding this comment.
should we throw an error here if it fails cause then we will create a new wallet with an empty ibexAccountId
There was a problem hiding this comment.
what is the alternative? Doesn't this like take care of the empty ibexAccountId scenario?
id: currency === "USD" ? ibexAccountId : crypto.randomUUID(),
There was a problem hiding this comment.
ya that should handle the scenario, I'm just not sure if we would want a random uuid but if that works for you then I'm good with it aswell
There was a problem hiding this comment.
wait that doesnt take care of the empty ibexAccountId scenario because it will use the empty one if currency === "USD" we would want currency === "USD" && !!ibexAccountId
kevkevinpal
left a comment
There was a problem hiding this comment.
added some comments but PR is looking good to me!
* completed * PR review changes made * PR review changes made
Per Dread 2026-04-22 18:39 ET: "we need to update all the docs so they no longer say NEW- on the issues". Cascade #8 mirrored the plan into Linear (ENG-345…ENG-363 + ENG-356). This cascade replaces every inline use of the old placeholder identifiers across the doc set with their live Linear IDs. Mechanism (two passes): 1. Bulk substring scrub (longest-prefix-first ordered table) — 491 subs across 10 files. Disambiguations: NEW-OPTIN → ENG-345 (server) / ENG-346 (mobile); bare → "ENG-345/346 (opt-in)" NEW-1 → ENG-351 (gql) / ENG-352 (svc); bare → "ENG-351/352" NEW-CASHOUT-V1-WALLET → ENG-357 NEW-COUNTRY-ALLOWLIST → ENG-347 NEW-ERPNEXT-LEDGER → ENG-348 NEW-2/3/4/6/7/8/10/11/13 → ENG-353/349/350/354/355/358/359/360/363 NEW-5/9/12 (retracted, folded into ENG-286/ENG-276) → labeled inline FEE-1 → ENG-356 NEW-EA-VERIFIED-WEBHOOK → "EA-VERIFIED-WEBHOOK (proposed; not yet filed)" 2. Cleanup pass — 80 hand-targeted fixes for bulk-scrub artifacts: - SESSION-CONTEXT redundant "**ENG-345** (ENG-345 (opt-in server) — …)" → "**ENG-345** (Cash Wallet opt-in: server — …)" with descriptive labels. - Doubled "[retired → ENG-276 acceptance] + [retired → ENG-276 acceptance]" → distinguished as "Bridge-fee persistence + replay-tooling acceptance". - LINEAR-PROPOSAL self-referential ID translation table fixed: leftmost column restored with backtick-quoted original placeholder names (`NEW-OPTIN`, `NEW-1`, …) and the section reframed as a "Historical placeholder map (cascade #8 → cascade #9)" Rosetta stone for archaeology only — no longer current ID source-of-truth. - WEBHOOKS.md ASCII-diagram cells with `NEW-ERPNEXT-\nLEDGER` token wrapped across lines — replaced as multi-line literal patterns to compact "ENG-348" cell labels. - LINEAR-VS-PROPOSAL retracted-row cells got italic descriptive labels (`_outbound-timeout work_`, `_Bridge-fee persistence_`, `_backfill/replay tooling_`) instead of duplicate retired markers. Per-file substitutions (bulk + cleanup): README.md 12 EXECUTIVE-SUMMARY.md 16 ARCHITECTURE.md 28 FLOWS.md 40 WEBHOOKS.md 9 (incl. 3 multi-line ASCII cells) OPERATIONS.md 21 SESSION-CONTEXT-2026-04-22.md 72 planning/LINEAR-PROPOSAL.md 310 planning/LINEAR-VS-PROPOSAL.md 43 planning/LINEAR-ORPHANS.md 20 Residual NEW-* tokens after this cascade: only inside backtick-quoted historical-archaeology cells (the LINEAR-PROPOSAL Historical-placeholder-map table + a handful of "former placeholder names from earlier drafts" callouts in SESSION-CONTEXT and LINEAR-VS-PROPOSAL). Every inline / narrative reference now uses the live ENG ID. SESSION-CONTEXT cascade #9 history-table row + footer SHA bump will follow in a tiny cleanup commit (chicken-and-egg — can't reference our own SHA in this commit's contents).
Tiny follow-up to 4f9fd48 (cascade #9 NEW-* placeholder scrub). Updates: - HEAD line bumped 148da20 → 4f9fd48 - Cascade #8 row "(this push)" placeholder backfilled with 148da20 SHA - New cascade #9 row added with full mechanism narrative (bulk scrub + cleanup pass, per-file counts, intentional residual-token policy) - Footer "Last pushed cascade" + "Previous" lines refreshed Chicken-and-egg cleanup — can't reference our own commit SHA in the content of that same commit, so the cascade #9 commit body itself explains the placeholder scrub but this small follow-up records it in the SESSION-CONTEXT history table.
Chicken-and-egg follow-up: cascade #11 can't reference its own commit SHA in the doc body. This single-file commit updates SESSION-CONTEXT: - HEAD pointer: a25ff75 (cascade #10) → 0eedf92 (cascade #11) - History row 11: "(pending — this cascade)" → "0eedf92" - Footer: cascade #11 promoted to "Last pushed"; #10 to "Previous"; #9 to "Earlier"
No description provided.