namecoin-core icon indicating copy to clipboard operation
namecoin-core copied to clipboard

Overhauled the Buy Names Page with the Electrum-NMC version

Open junekomeiji opened this issue 1 year ago • 12 comments

Overhauled the Buy Names Page with the Electrum-NMC version and added error boxes for invalid domain names.

junekomeiji avatar Nov 17 '24 20:11 junekomeiji

OK so initial reaction: the XML form changes here are really hard to review because there's too much happening in a single commit. For example, the text Use <strong>d/</strong> prefix for domain names. shows up in both the old and new XML forms, but the diff is complicated enough that Git can't tell that those two lines correspond.

I think one way to improve this would be to split the XML form diff into two commits: one that exclusively tweaks whitespace on existing lines, and one that adds/removes lines. This should make it a lot easier for Git to tell which lines correspond in the diff.

JeremyRand avatar Nov 18 '24 22:11 JeremyRand

@domob1812 Updated the codebase.

junekomeiji avatar May 26 '25 18:05 junekomeiji

I'd like @JeremyRand to review this, as he is the one who did the Qt code and I'm not really proficient with it.

domob1812 avatar Jun 02 '25 17:06 domob1812

Based on code review of 7c1b67d50567e974053ce0a4b0b5fcc818d1f8fd, only a few small issues (see review above). Also please change the commit message to something more descriptive.

I'll do a final round of testing in the next 24 hours but I'm not expecting to see any major problems there.

JeremyRand avatar Jun 06 '25 05:06 JeremyRand

Should I fix the issues highlighted above now, or is it better if I wait for your final checks on the PR?

junekomeiji avatar Jun 06 '25 07:06 junekomeiji

Should I fix the issues highlighted above now, or is it better if I wait for your final checks on the PR?

@junekomeiji Feel free to fix them now.

JeremyRand avatar Jun 06 '25 08:06 JeremyRand

Quite a few of the added lines have trailing whitespace. If you run git diff fe2ff395aa25387f1acfefd1722b3e10f199d21e..b035e5ca2b382e46a946a55e1806e02e3bb0baf4, it'll show a diff of your PR; trailing whitespace in the added lines will be highlighted with a red background, which should make it easy for you to find and fix them.

JeremyRand avatar Jun 07 '25 10:06 JeremyRand

Tested b035e5ca2b382e46a946a55e1806e02e3bb0baf4, all functionality works fine for me. Just some small code style issues (see review above).

JeremyRand avatar Jun 07 '25 10:06 JeremyRand

Responded to the review above.

junekomeiji avatar Jun 07 '25 13:06 junekomeiji

Quite a few of the added lines have trailing whitespace. If you run git diff fe2ff395aa25387f1acfefd1722b3e10f199d21e..b035e5ca2b382e46a946a55e1806e02e3bb0baf4, it'll show a diff of your PR; trailing whitespace in the added lines will be highlighted with a red background, which should make it easy for you to find and fix them.

There's still one in buynamespage.h

JeremyRand avatar Jun 07 '25 16:06 JeremyRand

ACK 558bad42a823057bc2716aa7d3265faed6fadfa6. Code review looks OK to me, unit tests pass, and manual testing of the GUI doesn't show any problems.

JeremyRand avatar Jun 09 '25 17:06 JeremyRand

@domob1812 Feel free to merge.

JeremyRand avatar Jun 09 '25 17:06 JeremyRand