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

fix: handle large fonts with twelve word seed phrases #5187

Merged
merged 4 commits into from
Apr 1, 2024
Merged

Conversation

MuckT
Copy link
Collaborator

@MuckT MuckT commented Mar 29, 2024

Description

Currently large fonts can display the 12 word seed phrase with letters rendered off screen or covered index numbers. This PR fixes that by using the fontScale to display as either four rows with three columns or six rows with two columns.

Screenshots

iOS Large Font (Before) iOS Large Font (After) iOS Default Font (Before) iOS Default Font (After)
Android Large Font (Before) Android Large Font (After) Android Default Font (Before) Android Default Font (After)

Test plan

  • Tested locally on iOS
  • Tested locally on Android

Related issues

Backwards compatibility

Yes

Network scalability

N/A

Copy link

emerge-tools bot commented Mar 29, 2024

1 build had no size change

Name Version Download Change Install Change Approval
Celo (test)
org.celo.mobile.test
1.81.0 (146) 24.3 MB ⬆️ 650 B 60.9 MB - N/A

Celo (test) 1.81.0 (146)
org.celo.mobile.test

No changes to report


🛸 Powered by Emerge Tools

Copy link

codecov bot commented Mar 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.77%. Comparing base (03d2f21) to head (bffd1d6).
Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #5187      +/-   ##
==========================================
+ Coverage   85.76%   85.77%   +0.01%     
==========================================
  Files         744      744              
  Lines       30324    30343      +19     
  Branches     5237     5238       +1     
==========================================
+ Hits        26007    26028      +21     
+ Misses       4078     4076       -2     
  Partials      239      239              
Files Coverage Δ
src/backup/BackupPhraseContainer.tsx 86.36% <100.00%> (+0.64%) ⬆️

... and 8 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 03d2f21...bffd1d6. Read the comment docs.

@MuckT MuckT added this pull request to the merge queue Apr 1, 2024
Merged via the queue into main with commit fc3f2f2 Apr 1, 2024
16 checks passed
@MuckT MuckT deleted the tomm/act-1073 branch April 1, 2024 19:28
shottah pushed a commit to zed-io/kolektivo that referenced this pull request May 15, 2024
### Description

Currently large fonts can display the 12 word seed phrase with letters
rendered off screen or covered index numbers. This PR fixes that by
using the fontScale to display as either four rows with three columns or
six rows with two columns.

### Screenshots

| iOS Large Font (Before) | iOS Large Font (After) | iOS Default Font
(Before) | iOS Default Font (After) |
| ----- | ----- | ----- | ----- |
|
![](https://github.com/valora-inc/wallet/assets/26950305/ca0a363b-404c-4051-8644-efe422a4a8e7)
|
![](https://github.com/valora-inc/wallet/assets/26950305/828ee414-8408-4b8c-9685-b853ef8812eb)
|
![](https://github.com/valora-inc/wallet/assets/26950305/60fe83d7-fd40-4e93-8c7f-676e733515bc)
|
![](https://github.com/valora-inc/wallet/assets/26950305/9e822939-3884-4d41-8c36-bd44a1a57cfc)
|

| Android Large Font (Before) | Android Large Font (After) | Android
Default Font (Before) | Android Default Font (After) |
| ----- | ----- | ----- | ----- |
|
![](https://github.com/valora-inc/wallet/assets/26950305/ae204b44-1026-419b-a3c1-42a9e63d7c2e)
|
![](https://github.com/valora-inc/wallet/assets/26950305/fb1aadf9-55af-4e20-888e-93c87b4047b2)
|
![](https://github.com/valora-inc/wallet/assets/26950305/8eaa9eb9-3520-48b5-8596-a050c546e67d)
|
![](https://github.com/valora-inc/wallet/assets/26950305/8da1b5ed-38e6-4adf-b6f5-2daf7857ba15)
|

### Test plan

- Tested locally on iOS
- Tested locally on Android

### Related issues

- Fixes ACT-1073

### Backwards compatibility

Yes

### Network scalability

N/A
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.

None yet

2 participants