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

Reactions: Add more button #1314

Merged
merged 15 commits into from
Jul 14, 2023
Merged

Conversation

langleyd
Copy link
Member

What's in this PR

  • Adds the "Add more" button to the reaction layout if there are greater than 0 already, for quickly adding more reactions.
  • Create ReactionLayoutItemType LayoutValueKey to tag subviews with ReactionLayoutItem
  • Add LayoutValueKey support to the layout mocks
  • Make the animation of the addMore and collapse buttons consistent

What does it look like

Simulator Screen Recording - iPhone 14 Pro - 2023-07-12 at 09 51 00

- Adds a CollapsibleFlowLayout for controlling the layout
- Adds tests for  this layout and some mocks for testing layouts generally
- Improves the rendering of the reaction buttons which were not pixel perfect
- Adds the UI for the expand collapse buttons including the count of hidden items in the collapsed state.
…c and account for the add more button specifics.
…into langleyd/reactions_add_more_button
- create ReactionLayoutItemType to tag subviews with ReactionLayoutItem
- Add LayoutValueKey support to the layout mocks
- Fix some mistakes in the merge
- Make the test code a bit more DRY
- Make the animation of the addMore and collapse buttons consistent
@langleyd langleyd requested a review from a team as a code owner July 12, 2023 10:37
@langleyd langleyd requested review from pixlwave and removed request for a team July 12, 2023 10:37
…into langleyd/reactions_add_more_button
@github-actions
Copy link

github-actions bot commented Jul 12, 2023

Warnings
⚠️ Please add a changelog.
⚠️ Some of the commits are missing ticket numbers. Please consider squashing all commits that don't have a tracking number.
⚠️ You seem to have made changes to views. Please consider adding screenshots.

Generated by 🚫 Danger Swift against 1fe7dc8

Copy link
Member

@pixlwave pixlwave left a comment

Choose a reason for hiding this comment

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

I still need to look at the changes in the flow layout, but finishing for today so posting this for now :)

@langleyd langleyd mentioned this pull request Jul 12, 2023
3 tasks
@codecov
Copy link

codecov bot commented Jul 12, 2023

Codecov Report

Patch coverage: 62.85% and project coverage change: +0.57 🎉

Comparison is base (bf91e97) 44.05% compared to head (f31f6f3) 44.62%.

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

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1314      +/-   ##
===========================================
+ Coverage    44.05%   44.62%   +0.57%     
===========================================
  Files          397      435      +38     
  Lines        26306    28053    +1747     
  Branches     13387    14349     +962     
===========================================
+ Hits         11588    12518     +930     
- Misses       14424    15219     +795     
- Partials       294      316      +22     
Flag Coverage Δ
unittests 23.52% <62.85%> (+1.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...een/View/Supplementary/TimelineReactionsView.swift 39.63% <0.00%> (-28.18%) ⬇️
...lapsibleFlowLayout/CollapsibleReactionLayout.swift 90.15% <88.00%> (ø)

... and 99 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@langleyd langleyd requested a review from pixlwave July 13, 2023 19:02
Copy link
Member

@pixlwave pixlwave left a comment

Choose a reason for hiding this comment

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

Sorry for the delay coming back to this one. LGTM 👍

@langleyd langleyd enabled auto-merge (squash) July 14, 2023 16:19
@sonarcloud
Copy link

sonarcloud bot commented Jul 14, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@langleyd langleyd merged commit b31af77 into develop Jul 14, 2023
5 checks passed
@langleyd langleyd deleted the langleyd/reactions_add_more_button branch July 14, 2023 16:32
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.

2 participants