Added a submit button for SCB backup screen#3898
Added a submit button for SCB backup screen#3898kushagra0902 wants to merge 1 commit intoZeusLN:masterfrom
Conversation
views/Settings/SeedRecovery.tsx
Outdated
| marginHorizontal: 20, | ||
| marginTop: 10 | ||
| }} | ||
| disabled={!channelBackupsBase64} |
There was a problem hiding this comment.
The 'Confirm' button for SCB currently only checks if the channelBackupsBase64 input is non-empty. To enhance user experience and provide earlier feedback, consider adding a basic client-side validation (e.g., checking if the input is a valid Base64 string) before enabling the button. Ensure that if this validation fails, the user is provided with clear error feedback, and avoid triggering success-state haptic feedback for this error case as per our repository rules.
References
- Use distinct haptic feedback for success and error states to provide clear, unambiguous user feedback. Avoid giving a 'success' feedback for an action that results in an error.
|
Can we instead get this to work by hitting the enter key on the keyboard? |
Done. Now both button as well as keyboard enter works fine! |
dc07e51 to
459a8ca
Compare
|
I was thinking about this screen for a while, and I think we should change the UI to a 2 tabs screen: Then have a clean screen each for the 2 tabs, with exactly the logic and buttons we need for each case. (Another example for the issues regarding the mixed logic: When you start typing in the SCB input, seed word suggestions are displayed...) |
Got your point and I was thinking something in similar direction:
Please give your suggestions on this and I will start the work accordingly |
|
Or like this: |
I think this will make restoring only the channel for a wallet already restored difficult. So I think making a different section for this. I will implement both and will make the PR for the better one so any can be used |
|
So you mean, somebody restores the wallet (without providing SCB), then later decides to use the SCB? Hm, I guess this is not impossible. |
yes, not sure if this should be done, but someone may wnat to do so |
|
It is possible. Check out how Disaster Recovery works. |
|
Technically of course, I was trying to say, it is an unusual behavior. Anyway, yes, there should be a way to provide SCB directly (without going through restore process with seed words at the same time). Maybe we should just add the SCB flow separately in Menu -> Tools? |
it is already there in settings -> embedded node -> disaster recovery -> initiate recovery from clipboard. so I think your method of "giving all the words. then continue, recover" can be done along with this separate page can be done |
something like this: WhatsApp.Video.2026-03-30.at.4.21.25.AM.mp4 |
459a8ca to
6643a9c
Compare
ah right, makes sense. regarding your video in the last comment: nit: don't put the and the placeholder should probably say "Your SCB data in Base64 format". after #3886 is merged "Your SCB data in Base64 or HEX format" |
6643a9c to
ec0ccc4
Compare
done! |
|
@kushagra0902 rebase needed |
* [Transifex] Translate locales/en.json in cs 97% of minimum 25% translated source file: 'locales/en.json' on 'cs'. Sync of partially translated files: untranslated content is included with an empty translation or source language content depending on file format * [Transifex] Translate locales/en.json in cs 98% of minimum 25% translated source file: 'locales/en.json' on 'cs'. Sync of partially translated files: untranslated content is included with an empty translation or source language content depending on file format * [Transifex] Translate locales/en.json in cs 99% of minimum 25% translated source file: 'locales/en.json' on 'cs'. Sync of partially translated files: untranslated content is included with an empty translation or source language content depending on file format * [Transifex] Translate locales/en.json in cs 100% translated source file: 'locales/en.json' on 'cs'. * [Transifex] Translate locales/en.json in de 84% of minimum 25% translated source file: 'locales/en.json' on 'de'. Sync of partially translated files: untranslated content is included with an empty translation or source language content depending on file format * [Transifex] Translate locales/en.json in de 87% of minimum 25% translated source file: 'locales/en.json' on 'de'. Sync of partially translated files: untranslated content is included with an empty translation or source language content depending on file format * [Transifex] Translate locales/en.json in de 89% of minimum 25% translated source file: 'locales/en.json' on 'de'. Sync of partially translated files: untranslated content is included with an empty translation or source language content depending on file format --------- Co-authored-by: transifex-integration[bot] <43880903+transifex-integration[bot]@users.noreply.github.com>
ec0ccc4 to
1df2c80
Compare
done |
shubhamkmr04
left a comment
There was a problem hiding this comment.
- change the commit msg and author
- we only need changes in en.json
| ldkPassphrase: string; | ||
| ldkNodeDir: string; | ||
| embeddedLdkNetwork: string; | ||
| step: 1 | 2; |
There was a problem hiding this comment.
what do these steps mean? they should be enums
|
rebase needed |
Description
Relates to issue: #3878
SCB recovery page did not have a submit button. This made entering a SCB backup impossible for the users. This PR added the button which takes the user back to recovery page where they can add the mnemonic words and backup their wallet. The previous UI is untouched and just the button is added accordingly.
This pull request is categorized as a:
Checklist
yarn run tscand made sure my code compiles correctlyyarn run lintand made sure my code didn’t contain any problematic patternsyarn run prettierand made sure my code is formatted correctlyyarn run testand made sure all of the tests passTesting
If you modified or added a utility file, did you add new unit tests?
I have tested this PR on the following platforms (please specify OS version and phone model/VM):
I have tested this PR with the following types of nodes (please specify node version and API version where appropriate):
Locales
Third Party Dependencies and Packages
yarnafter this PR is merged inpackage.jsonandyarn.lockhave been properly updatedOther: