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 button hidden behind software keyboard in create account view #2773

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

danieldaquino
Copy link
Contributor

@danieldaquino danieldaquino commented Dec 18, 2024

Summary

This commit fixes an issue where the "next" button is hidden behind the software keyboard in the account creation view, where it is very hard to press.

The fix was done by dynamically shrinking the profile picture size when keyboard appears in smartphone screens, so that there is enough space for all content to appear.

Closes: #2771

Checklist

  • I have read (or I am familiar with) the Contribution Guidelines
  • I have tested the changes in this PR
  • My PR is either small, or I have split it into smaller logical commits that are easier to review
  • I have added the signoff line to all my commits. See Signing off your work
  • I have added appropriate changelog entries for the changes in this PR. See Adding changelog entries
  • I have added appropriate Closes: or Fixes: tags in the commit messages wherever applicable, or made sure those are not needed. See Submitting patches

Test report

Devices:

  • iPhone SE simulator
  • iPhone 16 Pro Max simulator
  • iPad Air 11-inch (M2) simulator

iOS: 18.1
Damus: fbe2225554e9baa2de8ca6f6dae847fbc1e2220c
Setup:

  • Software keyboard enabled on the simulator

Steps:

  1. Create account
  2. Enable and disable software keyboard. Make sure that profile image looks smaller when software keyboard appears (if it needs space), and that the screen has enough space to show the "next" button (i.e. Not hidden behind the keyboard)
  3. Upload image
  4. Repeat step 2
  5. Check the other usages of EditPictureControl to make sure they still work as expected.

Results:

  • PASS
  • Partial PASS

Accompanying pictures from the test

Screenshot 2024-12-18 at 18 05 18 Screenshot 2024-12-18 at 18 05 32 Screenshot 2024-12-18 at 18 06 13 Screenshot 2024-12-18 at 18 06 22 Screenshot 2024-12-18 at 18 08 45 Screenshot 2024-12-18 at 18 08 57

Other notes

  • I tried to implement an automated screenshot test, but it does not work as expected, likely due to the way the screenshot tests are setup by the library.
  • Sending as a PR to better show the test results via screenshots
  • The transitions are animated

This commit fixes an issue where the "next" button is hidden behind the
software keyboard in the account creation view, where it is very hard to
press.

The fix was done by dynamically shrinking the profile picture size when
keyboard appears in smartphone screens, so that there is enough space
for all content to appear.

Changelog-Fixed: Fixed issue where the "next" button would appear hidden and hard to click on the create account view
Closes: damus-io#2771
Signed-off-by: Daniel D’Aquino <[email protected]>
@danieldaquino danieldaquino requested a review from jb55 December 18, 2024 09:38
@jb55
Copy link
Collaborator

jb55 commented Dec 19, 2024 via email

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.

Bug: create account difficult to proceed
2 participants