feat(buy/sell): Hinweis wenn Kursdienst (Aktionariat) nicht erreichbar#702
Open
joshuakrueger-dfx wants to merge 1 commit into
Open
feat(buy/sell): Hinweis wenn Kursdienst (Aktionariat) nicht erreichbar#702joshuakrueger-dfx wants to merge 1 commit into
joshuakrueger-dfx wants to merge 1 commit into
Conversation
When the DFX brokerbot price endpoints fail (e.g. today's outage: HTTP 500 "Cannot destructure property 'priceInCHF'"), the buy/sell converters previously swallowed the error and left a frozen input with no explanation. Now the converter state carries a `priceUnavailable` flag, set on any price-fetch error and cleared on the next success, and the buy/sell pages render a small non-blocking PaymentActionRequired hint under the converter. - buy/sell converter state: add `priceUnavailable` flag - buy/sell converter cubits: set flag on error, clear on success - buy_page/sell_page: render reused PaymentActionRequired notice - i18n: add priceSourceUnavailableTitle/Description (DE + EN) - tests: flag set-on-error / clear-on-success for both cubits Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Kontext
Heute (2026-06-05) liefern die DFX-Brokerbot-Preisendpunkte (
/v1/realunit/brokerbot/buyPrice|buyShares|...) durchgehend HTTP 500 (Cannot destructure property 'priceInCHF'— Aktionariat-Preisquelle down), auf prod und dev. Die App verschluckt diese Fehler bisher komplett: Die Converter-Cubits loggen nur und emittenloading: false— der User sieht ein eingefrorenes Eingabefeld ohne jede Erklärung.Änderung
Kleiner, nicht-blockierender Hinweis auf der Kauf- und Verkauf-Seite, direkt unter dem Umrechner, wenn der Kurs nicht geladen werden kann:
Verschwindet automatisch beim nächsten erfolgreichen Kurs-Abruf.
priceUnavailable-Flag inBuyConverterState/SellConverterStatePaymentActionRequired-Widget wiederverwendet (gleicher Stil wie BitBox-/KYC-Hinweise)priceSourceUnavailableTitle/DescriptionDE + EN, Codegen gelaufen (ARB-Umsortierungen im Diff stammen vom Alphabetize-Tool des Generators)true; nächster Erfolg ⇒ FlagfalseVerifikation
flutter analyze: No issues found🤖 Generated with Claude Code