Skip to content
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

HCaptcha, Favicon #26

Merged
merged 6 commits into from
Sep 24, 2024
Merged

HCaptcha, Favicon #26

merged 6 commits into from
Sep 24, 2024

Conversation

shannonwells
Copy link

@shannonwells shannonwells commented Sep 20, 2024

  1. Out with Recaptcha, in with HCaptcha
  2. Rip out a bunch of network data we don't use
  3. Add new favicons
  4. Update READMEs

So now if in the root .env file, you set

SMF_CONFIG_NETWORK="localhost"

It will use a locally running chain and the seed you provided (which defaults to //Alice)
for fauceting.

Closes #17
Closes #18

To Verify:

Please follow the updated Server and Client READMEs to launch server + client and test integration with either Paseo or local chain, bonus if both.

  • implement HCaptcha
  • new favicon (and new logo, actually)
  • fix tests and CI

@shannonwells shannonwells marked this pull request as ready for review September 21, 2024 00:21
Integrate HCaptcha

IDE failed to add these

* Fix tests for hcaptcha
* Some renames to reflect the switch

Update .env.example
@@ -0,0 +1,18 @@
import { Captcha } from "./Captcha";
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this was actually renamed.

{ amount: "999999999", expected: "999999999000000000000" },
{ amount: "999999999.9", expected: "999999999900000000000" },
{ amount: "999999999999999.9", expected: "999999999999999900000000000" },
{ amount: "1", expected: "10000000000" },
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Substituted rococo here with paseo, which has 2 fewer decimals.

@@ -31,7 +31,7 @@ jobs:
- run: yarn run test
- run: yarn run build
env:
PUBLIC_CAPTCHA_KEY: 6LesXHomAAAAAGVVTCgc467t8hvBbmK7IlYZCc8O
PUBLIC_CAPTCHA_KEY: 0f68a804-860e-4f9a-962a-39789afc8792
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link

@aramikm aramikm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Read the code. Looked good to me!

client/src/lib/components/CaptchaV2.svelte Outdated Show resolved Hide resolved
Copy link

@claireolmstead claireolmstead left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link

@JoeCap08055 JoeCap08055 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bug report: (running LOCAL, not testnet)

If you enter a wallet address, then answer the hCaptcha, the UI behaves as expected & the "Get some XRQCYs" button enables.

If you do it in reverse order (answer the hCaptcha, then enter an address), the button does not enable, and only a page reload gets you back to a useable state.

@shannonwells shannonwells enabled auto-merge (squash) September 24, 2024 17:10
@shannonwells
Copy link
Author

@JoeCap08055 Yeah I noticed that too, thanks for the nudge, I meant to make a bug report for it.

@shannonwells shannonwells merged commit 6d9f72a into main Sep 24, 2024
6 checks passed
@shannonwells shannonwells deleted the feat/ui-updates branch September 24, 2024 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace favicon Replace reCAPTCHA with hCAPTCHA
5 participants