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: conversation screen top bar spacing [WPB-971] #2208

Merged
merged 8 commits into from
Sep 13, 2023

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Sep 11, 2023

StoryWPB-971 [Improvement] Make better usage of horizontal space in conversation header

Cherry pick from the original PR:


⚠️ Conflicts during cherry-pick:


PR Submission Checklist for internal contributors

  • The PR Title

    • conforms to the style of semantic commits messages¹ supported in Wire's Github Workflow²
    • contains a reference JIRA issue number like SQPIT-764
    • answers the question: If merged, this PR will: ... ³
  • The PR Description

    • is free of optional paragraphs and you have filled the relevant parts to the best of your ability

What's new in this PR?

Issues

Current usage of space on the conversation screen top bar is not optimal and not much of the conversation title fits on the screen.

Solutions

Decrease spacing between top bar elements, reduce buttons widths, title font size and avatar size.
To make it possible to narrow the buttons, LocalMinimumInteractiveComponentEnforcement is disabled for WireButton (it makes the clickable elements to have minimal dimensions required by system) and instead, new parameter minClickableSize is provided to be able to apply custom values to that. Also, minWidth and minHeight are grouped into minSize to keep consistency and all hardcoded button sizes are replaced with values defined in WireDimensions.

Attachments (Optional)

Before After
conversation_topbar_before conversation_topbar_after

PR Post Submission Checklist for internal contributors (Optional)

  • Wire's Github Workflow has automatically linked the PR to a JIRA issue

PR Post Merge Checklist for internal contributors

  • If any soft of configuration variable was introduced by this PR, it has been added to the relevant documents and the CI jobs have been updated.

References
  1. https://sparkbox.com/foundry/semantic_commit_messages
  2. https://github.com/wireapp/.github#usage
  3. E.g. feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764.

@github-actions github-actions bot added the cherry-pick PR is cherry-picking changes from another banch label Sep 11, 2023
@AndroidBob
Copy link
Collaborator

Build 682 failed.

@github-actions
Copy link
Contributor Author

github-actions bot commented Sep 11, 2023

Test Results

600 tests  ±0   599 ✔️ ±0   5m 38s ⏱️ - 3m 0s
  85 suites ±0       1 💤 ±0 
  85 files   ±0       0 ±0 

Results for commit d2cbd78. ± Comparison against base commit ead2204.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor Author

APKs built during tests are available here. Scroll down to Artifacts!

@AndroidBob
Copy link
Collaborator

Build 684 succeeded.

The build produced the following APK's:

@saleniuk saleniuk requested review from a team, typfel, gongracr, borichellow, trOnk12, ohassine, Garzas and saleniuk and removed request for a team, gongracr and trOnk12 September 11, 2023 14:22
@github-actions
Copy link
Contributor Author

APKs built during tests are available here. Scroll down to Artifacts!

@AndroidBob
Copy link
Collaborator

Build 709 succeeded.

The build produced the following APK's:

@github-actions
Copy link
Contributor Author

APKs built during tests are available here. Scroll down to Artifacts!

@AndroidBob
Copy link
Collaborator

Build 723 succeeded.

The build produced the following APK's:

@github-actions
Copy link
Contributor Author

APKs built during tests are available here. Scroll down to Artifacts!

@AndroidBob
Copy link
Collaborator

Build 730 succeeded.

The build produced the following APK's:

@codecov
Copy link

codecov bot commented Sep 12, 2023

Codecov Report

Merging #2208 (b63da52) into develop (ead2204) will decrease coverage by 0.03%.
The diff coverage is n/a.

❗ Current head b63da52 differs from pull request most recent head d2cbd78. Consider uploading reports for the commit d2cbd78 to get more accurate results

@@              Coverage Diff              @@
##             develop    #2208      +/-   ##
=============================================
- Coverage      40.89%   40.86%   -0.03%     
+ Complexity       997      996       -1     
=============================================
  Files            310      310              
  Lines          11430    11420      -10     
  Branches        1525     1524       -1     
=============================================
- Hits            4674     4667       -7     
+ Misses          6316     6313       -3     
  Partials         440      440              
Files Changed Coverage Δ
...tlin/com/wire/android/ui/debug/DebugDataOptions.kt 0.00% <ø> (ø)
...tions/model/messagetypes/audio/AudioMessageType.kt 0.00% <ø> (ø)

... and 2 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 ead2204...d2cbd78. Read the comment docs.

@github-actions
Copy link
Contributor Author

APKs built during tests are available here. Scroll down to Artifacts!

@AndroidBob
Copy link
Collaborator

Build 741 succeeded.

The build produced the following APK's:

@saleniuk saleniuk added this pull request to the merge queue Sep 13, 2023
Merged via the queue into develop with commit fd815b3 Sep 13, 2023
12 checks passed
@saleniuk saleniuk deleted the fix/conversation_top_bar_spacing-cherry-pick branch September 13, 2023 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-pick PR is cherry-picking changes from another banch size/XL
Projects
None yet
4 participants