feat: add vertical input for Stackbit 1248#862
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #862 +/- ##
===========================================
+ Coverage 97.30% 97.36% +0.05%
===========================================
Files 83 83
Lines 10798 10986 +188
===========================================
+ Hits 10507 10696 +189
+ Misses 291 290 -1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
73e2c55 to
ab698b7
Compare
|
Should these changes be added to the changelog? If so, for the May release? |
For now make it drat and make changes on |
|
As the form factor allows, try to increase grid size and better use screen surface, making it easier to type. |
1e11ac2 to
70f6ffb
Compare
Done, updated the PR Device image tho! |
qlrd
left a comment
There was a problem hiding this comment.
LGTM, but if possible, i would check the uncovered lines. Saw them and found weird that they aren't covered. Either untested by some case or those pieces receive more love.
joaozinhom
left a comment
There was a problem hiding this comment.
LGTM, there are some uncovered lines to review but i think its a simple mock test work, in my view the uncovered lines are in the following functions:
_toggle_bit_vertical;
_index_vertical;
One thing that i learned here is that we have potential dead codes, @bitcoisas check if they're dead codes or just need mock like @joaozinhom says |
i will work on the coverage later today, checking if we have dead code and also writing some new unit tests too! Thanks again team learning a lot with your guidance! :) |
e6c5070 to
22e2533
Compare
Good catch @qlrd and @joaozinhom ! The Added unit tests for the remaining paths: early return for invalid cells and forward navigation in Now we have the 100% coverage and a cleaner code. Thank you again for the reviews. |
|
Two last commits could go as one |
22e2533 to
459abe5
Compare
477bd0e to
cffc8af
Compare
|
Just a FUP, i'm working on the updates that you suggested/asked to change here @qlrd. And thank you very much to make me level up every day! :) |
70b6152 to
5bb237a
Compare
93d30ee to
6cafc38
Compare
Co-authored-by: qlrd <106913782+qlrd@users.noreply.github.com>
6cafc38 to
a68ff88
Compare
|
hey @qlrd merged your PR, thanks for the refactor learned a lot with your test style, but i kept the guard in |
|
ACK tested at a68ff88 on simulator, amigo and yahboom_devkit (also had a chance to see merged pr_834 in action). The task of stackbit1248 data entry was easier than I imagined, and is easier than tinyseed-ish data entry, especially with fat fingers and smaller yahboom_devkit screen. Still I made errors along the way and had a chance to say No or to fix before confirmation... or to correct the word once I realized my 12 checksum word was wrong... flow felt nice the entire time. regarding Tadeu's comment in pr 834 with the unlabeled plate... this seems like an interesting backup method if user is shooting for "I don't want anyone to know what this plate represents in the event they find it.":
...to recover, lay your stackbit1248 transparent template over your unlabeled backup plate and load into krux. |
|
Very neat improvements @bitcoisas, still to address: requested changes from @qlrd ?!?! |
Thanks for the ACK and for testing on multiple devices, @jdlcdl. I believe I ve addressed all of @qlrd requested changes and already requested a re-review. |
qlrd
left a comment
There was a problem hiding this comment.
LGTM, just som non-blocking nits and a suggestion to replace test docstrings to comments
a68ff88 to
e9509e4
Compare
|
One thing that we should discuss with @stackbitme is the use of "Stackbit" brand. This format was not created or used by Stackbit. AFAIK there's only one guy making it (the mead guy), maybe we could differentiate the original one as Stackbit 1248, and this new one as "Vertical 1248". |

What is this PR for?
This PR adds vertical layout support for Stackbit 1248 seed input, covering the input/loading side of #834.
A "Vertical" option is added to the "Load from 1248" submenu alongside the existing "Standard" layout. Also, this PR complement this other one: #847 (backup side).
Closes input part of #834
Changes made to:
Did you build the code and tested on device?
What is the purpose of this pull request?
Screenshots: