Gold drop dialog silently clamps an amount past its cap

Offen Anfängerfreundlich
#4,901 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Anfängerfreundlichkeit
72/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
typescript
Bereich
frontend, game-dev

Rechercherichtung

Finde den Dialog für das Ablegen von Gold auf dem Boden und das Verhalten beim Zurückziehen des Entwurfs, die im Umfeld von #4886 hinzugefügt wurden; im Issue werden weder Dateien noch Tests genannt. Lies die Verarbeitung des Entwurfsbetrags und füge anschließend einen Pinning-Test für Beträge hinzu, die über dem mitgeführten Guthaben liegen. Fertig ist es, wenn der Entwurf für das Ablegen auf den Betrag begrenzt wird, den das Guthaben zulässt, und der Test dies bestätigt.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Follow-up noted during the review of #4886.

The ground-drop gold dialog has the same silent-clamp shape the withdraw
draft had before that fix: typing an amount past what the carried balance
actually allows silently proceeds with a clamped value instead of capping
the draft the way the withdraw row now does.

Scope notes:

  • The server already clamps a ground gold drop, so no bad amount can
    reach the wire; the defect is display-side only.
  • It predates the gold-cap work; it was left out of #4886 on purpose so
    that fix stayed narrow.

Wanted: the drop draft gets the same treatment as the withdraw draft
(cap to the room the balance leaves, honestly) — a small client-only
change with a pinning test.

Vorherrschende Sprache
Go
Sterne
97
Forks
61
Ø Merge
3 Std. 59 Min.
Gemergte PRs (30 T.)
966

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus opensro-dev/opensro

Alle Issues in opensro-dev/opensro

Ähnliche Issues

Weitere Issues zu Go

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.