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

Bug 1821430 - Update strings in the ETP settings screen part 2. Use the new strings and update the layout #1213

Merged
merged 3 commits into from
Mar 31, 2023

Conversation

t-p-white
Copy link
Contributor

@t-p-white t-p-white commented Mar 13, 2023

Still todo: Update SUMO with screenshots when approved.

ℹ️ Please see Figma model for exact layout specifications.

App (updated) Design
Screenshot 2023-03-29 at 12 46 03 Screenshot 2023-03-14 at 11 56 15

Pull Request checklist

  • Quality: This PR builds and passes detekt/ktlint checks (A pre-push hook is recommended)
  • Tests: This PR includes thorough tests or an explanation of why it does not
  • Changelog: This PR includes a changelog entry or does not need one
  • Accessibility: The code in this PR follows accessibility best practices or does not include any user facing features

After merge

  • Breaking Changes: If this is a breaking Android Components change, please push a draft PR on Reference Browser to address the breaking issues.

To download an APK when reviewing a PR (after all CI tasks finished running):

  1. Click on Checks at the top of the PR page.
  2. Click on the firefoxci-taskcluster group on the left to expand all tasks.
  3. Click on the build-apk-{fenix,focus,klar}-debug task you're interested in.
  4. Click on View task in Taskcluster in the new DETAILS section.
  5. The APK links should be on the right side of the screen, named for each CPU architecture.

GitHub Automation

https://bugzilla.mozilla.org/show_bug.cgi?id=1821430

@t-p-white t-p-white added the 🕵️‍♀️ needs review PRs that need to be reviewed label Mar 13, 2023
mavduevskiy

This comment was marked as outdated.

@mavduevskiy mavduevskiy self-requested a review March 14, 2023 05:08
mavduevskiy

This comment was marked as outdated.

@t-p-white t-p-white added work in progress Not ready to land yet. Work in progress (WIP). and removed 🕵️‍♀️ needs review PRs that need to be reviewed labels Mar 15, 2023
@t-p-white t-p-white force-pushed the 1821430_2 branch 5 times, most recently from 267e906 to da2d1d8 Compare March 16, 2023 12:40
@t-p-white t-p-white added 🕵️‍♀️ needs review PRs that need to be reviewed and removed work in progress Not ready to land yet. Work in progress (WIP). labels Mar 20, 2023
@mergify

This comment was marked as resolved.

@t-p-white t-p-white force-pushed the 1821430_2 branch 4 times, most recently from f44d760 to bfb5cad Compare March 24, 2023 17:21
Copy link
Contributor

@mavduevskiy mavduevskiy left a comment

Choose a reason for hiding this comment

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

Moving into the right direction! I left some notes on styling and ui elements spacing!

fenix/app/src/debug/res/layout/preference_no_widget.xml Outdated Show resolved Hide resolved
@@ -10,8 +10,7 @@
android:layout_height="wrap_content"
android:baselineAligned="false"
android:orientation="horizontal"
android:paddingTop="@dimen/radio_button_preference_vertical"
android:paddingBottom="@dimen/radio_button_preference_vertical">
android:paddingBottom="12dp">
Copy link
Contributor

Choose a reason for hiding this comment

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

This file, given the design, needs some adjustments.

Top spacing from the title should be 6dp, bottom spacing from the widget_summary should be 6dp as well. The info icon should be positioned in center (currently bottom padding of the parent view is lifting it up a bit).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks!

Copy link
Contributor

Choose a reason for hiding this comment

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

Here is the comparison between xml file and figma design. Spacing is a bit off! Top spacing of the title and spacing between the checkbox and the text are off.
Screenshot 2023-03-28 at 1 58 06 PM
Screenshot 2023-03-28 at 1 58 26 PM

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good spot, a rogue top margin on title. Updated per screenshot
Screenshot 2023-03-29 at 11 40 26

android:paddingTop="12dp"
android:paddingBottom="12dp"
android:layout_marginStart="16dp"
android:layout_marginTop="16dp"
Copy link
Contributor

Choose a reason for hiding this comment

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

this file still looks very different compared to the new design! Top/bottom spacing are different, layout_constraintGuide_percent value is too high. Even the image itself looks a bit different (in the design the top element in the image is the cloud, but in the file we actually have the sun as the top element, hence top padding is different)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, the provided image is actually slightly different to the Figma design. I've cc'd you into some UX conversations around this ETP banner, which should provide some context 🙂

@t-p-white t-p-white added the Needs-UX Issues or PRs that need UX input or review label Mar 28, 2023
android:letterSpacing="0.01"
android:lineSpacingExtra="5sp"
android:textAppearance="@style/Header16TextStyle"
app:layout_constraintStart_toStartOf="parent"
Copy link
Contributor

Choose a reason for hiding this comment

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

let's add constraints to the text view similar to the summary. if the string is too long, it will violate the checkbox space :)

android:layout_marginTop="12dp"
android:gravity="center_vertical"
android:letterSpacing="0.01"
android:lineSpacingExtra="5sp"
Copy link
Contributor

Choose a reason for hiding this comment

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

let's add bottom padding to the textView, to follow the design. lineSpacingExtra plays a role only in between lines, but doesn't affect the spacing below the last line. If you check the design, the line height on the textView is 24dp, which gives us 4dp extra padding to the bottom of 16sp text :)

@t-p-white t-p-white removed the Needs-UX Issues or PRs that need UX input or review label Mar 29, 2023
@t-p-white t-p-white force-pushed the 1821430_2 branch 2 times, most recently from a120996 to 4ab464d Compare March 29, 2023 17:27
Copy link
Contributor

@mavduevskiy mavduevskiy left a comment

Choose a reason for hiding this comment

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

looks good! 🚢 it!

@t-p-white t-p-white added approved PR that has been approved and removed 🕵️‍♀️ needs review PRs that need to be reviewed labels Mar 30, 2023
@t-p-white t-p-white added the 🛬 needs landing (squash) PRs that are ready to land (squashed) label Mar 31, 2023
@mergify mergify bot merged commit 4ea5308 into mozilla-mobile:main Mar 31, 2023
21 checks passed
@t-p-white t-p-white deleted the 1821430_2 branch April 27, 2023 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved PR that has been approved 🛬 needs landing (squash) PRs that are ready to land (squashed)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants