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

Refactor FXIOS-8970 [Fonts] LoginDetail to use FXFontStyles #19814

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

NeoKolian
Copy link
Contributor

@NeoKolian NeoKolian commented Apr 16, 2024

📜 Tickets

Jira ticket
Github issue

💡 Description

fonts in following classes updated: LoginDetailTableViewCell,
LoginDetailCenteredTableViewCell.
TextStyling parameters was updated to match password font requirements.

📝 Checklist

You have to check all boxes before merging

  • Filled in the above information (tickets numbers and description of your work)
  • Updated the PR name to follow our PR naming guidelines
  • Wrote unit tests and/or ensured the tests suite is passing
  • When working on UI, I checked and implemented accessibility (minimum Dynamic Text and VoiceOver)
  • If needed, I updated documentation / comments for complex code and public methods
  • If needed, added a backport comment (example @Mergifyio backport release/v120)

@NeoKolian NeoKolian requested a review from a team as a code owner April 16, 2024 10:17
@NeoKolian
Copy link
Contributor Author

before:
Снимок экрана 2024-04-16 в 17 55 46
Снимок экрана 2024-04-16 в 17 56 10

@NeoKolian
Copy link
Contributor Author

after:
Снимок экрана 2024-04-16 в 17 49 32
Снимок экрана 2024-04-16 в 17 50 18

@adudenamedruby adudenamedruby changed the title FXIOS-19807 Update: Fonts related to LoginDetail to use FXFontStyles Refactor FXIOS-8970 [Fonts] LoginDetail to use FXFontStyles Apr 16, 2024
@cyndichin cyndichin requested a review from cwzilla April 16, 2024 15:25
@adudenamedruby
Copy link
Contributor

Looks like you've got a Swiftlint failure. :(

descriptionLabel.font = DefaultDynamicFontHelper.preferredFont(withTextStyle: .body,
size: 16,
symbolicTraits: [.traitMonoSpace])
descriptionLabel.font = FXFontStyles.Regular.body.monospacedFont()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as per @cwzilla's suggestion, lets update this to use subheadline

@@ -62,8 +60,7 @@ class LoginDetailTableViewCell: UITableViewCell,

lazy var descriptionLabel: UITextField = .build { [weak self] label in
guard let self = self else { return }

label.font = DefaultDynamicFontHelper.preferredFont(withTextStyle: .body, size: UX.descriptionFontSize)
label.font = FXFontStyles.Regular.body.scaledFont()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as per @cwzilla's suggestion, lets update this to use subheadline

Copy link
Contributor

@cyndichin cyndichin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @NeoKolian, the updates look great! a couple of changes request due to design reviewing and would like to adjust the font size.

@NeoKolian NeoKolian requested a review from cyndichin May 2, 2024 13:24
@NeoKolian
Copy link
Contributor Author

NeoKolian commented May 2, 2024

Looks like you've got a Swiftlint failure. :(

Hmm, strange, it seems like somebody fix it. After SwiftLint --fix I found only next issues that not related to my code
image

@adudenamedruby
Copy link
Contributor

Screenshot 2024-05-02 at 3 07 11 PM

I'm not sure if xcode is not picking this up, but you'll have to fix this manually, if swiftlint --fix doesn't do it, or the pipeline won't be able to run. :( Lemme know if I can help.

@NeoKolian
Copy link
Contributor Author

I'm not sure if xcode is not picking this up, but you'll have to fix this manually, if swiftlint --fix doesn't do it, or the pipeline won't be able to run. :( Lemme know if I can help.

Thank you, now it's done

@mobiletest-ci-bot
Copy link

Messages
📖 Project coverage: 32.67%
📖 Edited 3 files
📖 Created 0 files

Client.app: Coverage: 31.28

File Coverage
LoginDetailCenteredTableViewCell.swift 0.0% ⚠️
LoginDetailTableViewCell.swift 0.0% ⚠️

Generated by 🚫 Danger Swift against a0037e5

@NeoKolian
Copy link
Contributor Author

thanks @NeoKolian, the updates look great! a couple of changes request due to design reviewing and would like to adjust the font size.

Hello @cyndichin! Please check if all requirements are done

@isabelrios
Copy link
Contributor

Bitrise is red because there is a UI test failing 3 out of 3: testCreateLoginManually() this test may require some changes after this PR so that it is green. Please let us know if you need help

@cyndichin
Copy link
Contributor

thanks @NeoKolian, the updates look great! a couple of changes request due to design reviewing and would like to adjust the font size.

Hello @cyndichin! Please check if all requirements are done

@NeoKolian thank you! could you provide the updated screenshots for @cwzilla to verify? Also, in terms of the test errors, can you rebase this branch so its up to date with main?

@isabelrios these tests seem to be failing locally for me in main as well. It seems these tests are also failing in the artifacts but passes on the check in bitrise for some reason.

@cwzilla
Copy link

cwzilla commented May 23, 2024

Hi @cyndichin, the new mono font looks good! However, is it possible to make some changes to the input labels and regular text input (non-password).

For the input label, could we use Subhead and for text input, body. Here's a Figma reference - please refer to the first one. Thanks!

@cyndichin
Copy link
Contributor

thanks @cwzilla! @NeoKolian could you make those additional changes to the font types? thank you!

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

6 participants