-
Notifications
You must be signed in to change notification settings - Fork 16
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
Enhancement/12 words sanitize #816
Conversation
✅ Deploy Preview for cambiatus-elm-book ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy done!
To edit notification comments on pull requests, go to your Netlify site settings. |
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.
Bro, just remembered that at some point, long ago we've started supporting creating 12 words in Spanish. I think it was done here: #306
If this is still working, we should support Spanish words too on the validation.
To be honest this might even be a good place to actually support Portuguese as it was approved a few months after we've added Spanish support: https://bitcointalk.org/index.php?topic=5272106.0
What do you think? this might be a great hidden feature!
Also on another note, do you think we could add highlight to the wrong word? a google search showed this article that comes with a lib that could be easy to include or implement: https://codersblock.com/blog/highlight-text-inside-a-textarea/
I had no idea we supported Spanish mnemonics 🤯 Those are some great ideas, I'll work on it 💪 |
@lucca65 I fixed spanish mnemonics, added Portuguese ones, and added highlighting to words that aren't in any of those lists ✅ We could do a few more things:
I think those would take some extra time to do, so I haven't done them in this PR. If you think it would be nice to have those things, we could have another PR to do them. What do you think? |
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.
Damn, I can't believe how amazing this looks. Seriously I loved this changes!!! My mind is blown!!
I've spotted two problems, however
- After the change, looks like the paste button is no longer working on safari desktop
- When I try to create a new account on Mizu, I gives me an error because 0,CMB don't accept invites. I've tried it on staging and its working, so I guess something's up with Netlify
- So I've deployed this branch to staging, but when creating an account with ptBr selected it didn't generated with right lang. Maybe its because its matching to
pt
instead ofptBr
(or similar)?
I'm excited about this PR, looks amazing bro!
Fixed ✅
Ever since we started using community from the graphql context, we've been having some similar bugs. I have some ideas to fix them, I'll open an issue later. This only happens when we don't use subdomains, so it's ok for prod.
Did you do |
I did run |
ok, done. Still the same result on staging 🤔 |
Maybe there's some really specific edge case where the locale in Elm and in JS are getting out of sync... I really can't see how that could happen though, and I can't replicate it... Can you share what your cookies look like on staging? If you try with Spanish, does it work? |
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.
bro, cache issues are a pain
There are only two hard problems in computer science: Cache invalidation and Naming things
This PR looks awesome! I'll include it on our release right away!
Yeah, I really don't know what could it be 😅. The locale in your cookies looks ok, and Elm should pick it up when starting the app. Changing it while using the app also should change cookies, so I don't know. |
Oi @NeoVier Você pode me explicar melhor oq devo fazer aqui 👇 o que são os "bip39 words"? O que devo ver? "Write 12 random words and see how many bip39 words you can guess" |
Esse bip39 é a lista de palavras possíveis para serem usadas nas suas 12 palavras. Se você tentar alguma palavra que não está nessa lista, deve aparecer um erro quando tentar fazer o submit |
Ok, consegui fazer o login normalmente, mesmo com algumas letras maiúsculas
Ok, escrevi uma palavra errada e não consegui fazer o login
Ok, consegui criar minha conta em ES e PT-BR gerando as 12 palavras nos respectivos idiomas Obs: Também vi um erro ao criar meu nome de usuário na CCON. Escrevi o nome errado faltando os números. Com isso deveria aparecer um feedback de erro. Porém esse feedback de erro não apareceu. A tela apenas travou e eu não consegui finalizar a criação da conta. |
Esse link aponta pra comunidade 0,CMB, que não aceita novos membros sem convite. Por causa disso, o link de criar conta não deve aparecer mesmo
Pode criar uma issue pra isso, @juramos-2020? Desvia um pouco do que estamos tentando resolver nesse PR, então acho que ficaria melhor resolver em um separado. |
Como o que é relacionado a esse PR foi aprovado, vou mergear 😁 |
Beleza crio sim 😉🤟 Tudo certo então 🧞✅ |
What issue does this PR close
Closes #815
Changes Proposed ( a list of new changes introduced by this PR)
bip39
to validate the words. It'll be much easier to spot typos!How to test ( a list of instructions on how to test this PR)