Skip to content

feat: add Stackbit 1248 vertical layout for backup display#847

Draft
bitcoisas wants to merge 4 commits intoselfcustody:developfrom
bitcoisas:feat/stackbit-1248-vertical
Draft

feat: add Stackbit 1248 vertical layout for backup display#847
bitcoisas wants to merge 4 commits intoselfcustody:developfrom
bitcoisas:feat/stackbit-1248-vertical

Conversation

@bitcoisas
Copy link
Copy Markdown

@bitcoisas bitcoisas commented Mar 31, 2026

What is this PR for?

This PR adds vertical layout support for Stackbit 1248 backup display.

Currently, the Stackbit 1248 grid only supports the horizontal layout (rows = digits, columns = weights 1/2/4/8). This adds a menu to choose between "Standard" (horizontal) and "Vertical" (rows = weights, columns = digits), which is essentially the transposition of the grid.

This PR covers the backup/display side only. The input/loading side will be addressed in a separate PR as discussed with maintainers.

Close #834

Changes made to:

  • Code
  • Tests
  • i18n
  • Docs
  • CHANGELOG

Did you build the code and tested on device?

  • Tested on simulator, not yet on device. Looking for feedback on the approach first.

What is the purpose of this pull request?

  • Bug fix
  • New feature
  • Docs update
  • Other

Screenshots (not the same words on the devices):

After selecting Stackbit 1248 on menu:

Stackbit 1248 menu - large screen Stackbit 1248 menu - small screen

Choosing Standard:

Standard layout - large screen Standard layout - small screen

Choosing Vertical:

Vertical layout - large screen Vertical layout - small screen

Add export_1248_vertical_grouped and export_1248_vertical_compact
methods to the Stackbit class for the vertical backup layout.

Part of issue selfcustody#834.
Add layout selection submenu with Standard and Vertical options.
Vertical uses grouped layout for all devices and compact layout
for M5StickV.

Part of issue selfcustody#834.
Cover vertical grouped layout (Amigo) and vertical compact layout
(M5StickV) with full 24-word mnemonic pagination.

Part of issue selfcustody#834.
@bitcoisas bitcoisas changed the title Feat/stackbit 1248 vertical feat: add Stackbit 1248 vertical layout for backup display Mar 31, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 31, 2026

Codecov Report

❌ Patch coverage is 98.76543% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 97.33%. Comparing base (76feb7b) to head (ba4c588).
⚠️ Report is 1 commits behind head on develop.

Files with missing lines Patch % Lines
src/krux/pages/home_pages/mnemonic_backup.py 96.22% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #847      +/-   ##
===========================================
+ Coverage    97.31%   97.33%   +0.02%     
===========================================
  Files           83       83              
  Lines        10573    10743     +170     
===========================================
+ Hits         10289    10457     +168     
- Misses         284      286       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

1 participant