-
Notifications
You must be signed in to change notification settings - Fork 24
fix(dashpay): contested search row reflects vote state, not just document absence #955
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -752,6 +752,12 @@ | |
| /* Username marketplace: section of contested-name requests awaiting the masternode vote */ | ||
| "In network vote" = "In network vote"; | ||
|
|
||
| /* Username marketplace: search row for a contested label with an active vote by others */ | ||
| "In a network vote — you can join as a contender" = "In a network vote — you can join as a contender"; | ||
|
|
||
| /* Username marketplace: search row for a label a past vote locked */ | ||
| "Locked by a network vote — nobody can register it" = "Locked by a network vote — nobody can register it"; | ||
|
|
||
|
Comment on lines
+755
to
+760
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win 🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -euo pipefail
file -b --mime-encoding DashWallet/en.lproj/Localizable.stringsRepository: dashpay/dashwallet-ios Length of output: 202 🏁 Script executed: #!/bin/bash
set -euo pipefail
python3 - <<'PY'
from pathlib import Path
path = Path("DashWallet/en.lproj/Localizable.strings")
data = path.read_bytes()
print(f"path={path}")
print(f"size={len(data)}")
print(f"bom={data[:2].hex()}")
try:
text = data.decode("utf-16-le")
print("utf-16le=decodable")
print(f"nul_ratio={data.count(0) / len(data):.3f}")
for key in (
"In a network vote — you can join as a contender",
"Locked by a network vote — nobody can register it",
):
print(f"{key!r}={key in text}")
except UnicodeDecodeError as exc:
print(f"utf-16le=not_decodable:{exc}")
PY
printf '\nRelevant repository configuration:\n'
rg -n -i 'BartyCrouch|Localizable\.strings|UTF-16|utf-16' \
--glob '!DashWallet/**/Localizable.strings' \
.github . 2>/dev/null | head -80 || trueRepository: dashpay/dashwallet-ios Length of output: 12569 Convert 🤖 Prompt for AI AgentsSource: Coding guidelines |
||
| /* Username marketplace: latest ownership change */ | ||
| "Last transferred" = "Last transferred"; | ||
|
|
||
|
|
@@ -2488,6 +2494,9 @@ | |
| /* Username marketplace: contested request not yet indexed by Platform */ | ||
| "Requested — waiting for the network vote" = "Requested — waiting for the network vote"; | ||
|
|
||
| /* Username marketplace: search row for a contested label this identity already requested */ | ||
| "Requested by you — the network vote is in progress" = "Requested by you — the network vote is in progress"; | ||
|
|
||
| /* Asset-lock retry in progress */ | ||
| "Retrying transfer…" = "Retrying transfer…"; | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Use the selected tint for the contested available icon.
Line 573 forces every
"plus.circle.fill"icon to.dashGreen. The contested fresh case on Lines 559-561 selects.dashGolden, but the icon renders green while its subtitle renders gold.Proposed fix
📝 Committable suggestion
🤖 Prompt for AI Agents