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

Pill View #1797

Merged
merged 34 commits into from Sep 27, 2023
Merged

Pill View #1797

merged 34 commits into from Sep 27, 2023

Conversation

Velin92
Copy link
Contributor

@Velin92 Velin92 commented Sep 26, 2023

NOTES:

  • Can be activated with a FF in Dev options
  • The designs are improvised and not final
  • There is also a loading state
  • Sadly the snapshot tests do not seems to support text attachments, so it appears as empty (even if the size is actually correct! so I wonder if is a window/overlay limitation of the snapshot)
  • However we have the pill view itself being snapshot tested
  • They are tappable but they still behave as links did before, so they the tap is still unhandled

The designs are not final

Simulator Screenshot - iPhone 14 - 2023-09-26 at 17 57 06

@github-actions
Copy link

github-actions bot commented Sep 26, 2023

Warnings
⚠️ This pull request seems relatively large. Please consider splitting it into multiple smaller ones.
⚠️ 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 602cc5b

@manuroe manuroe added the Trigger-PR-Build Uses to trigger alpha builds for PRs label Sep 26, 2023
@github-actions
Copy link

github-actions bot commented Sep 26, 2023

📱 Scan the QR code below to install the build for this PR.
🔒 This build is for internal testing purpose. Only devices listed in the ad-hoc provisioning profile can install Element Alpha.

QR code

If you can't scan the QR code you can install the build via this link: https://i.diawi.com/dSC9CG

@Velin92 Velin92 linked an issue Sep 26, 2023 that may be closed by this pull request
@Velin92 Velin92 marked this pull request as ready for review September 26, 2023 15:58
@Velin92 Velin92 requested a review from a team as a code owner September 26, 2023 15:58
@Velin92 Velin92 requested review from pixlwave and callumu and removed request for a team September 26, 2023 15:58
Copy link
Contributor

@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.

Love that we have pills working in the app now 👏

ElementX/Sources/Application/AppCoordinator.swift Outdated Show resolved Hide resolved
ElementX/Sources/Mocks/Generated/GeneratedMocks.swift Outdated Show resolved Hide resolved
ElementX/Sources/Other/Pills/PillView.swift Outdated Show resolved Hide resolved
ElementX/Sources/Other/Pills/PillViewModel.swift Outdated Show resolved Hide resolved
ElementX/Sources/Other/Pills/PillViewModel.swift Outdated Show resolved Hide resolved
ElementX/Sources/UnitTests/UnitTestsAppCoordinator.swift Outdated Show resolved Hide resolved
ElementX/Sources/Other/Pills/MentionBuilder.swift Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Sep 26, 2023

Codecov Report

Attention: 54 lines in your changes are missing coverage. Please review.

Comparison is base (8d4c5e2) 71.43% compared to head (7665546) 71.48%.

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

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1797      +/-   ##
===========================================
+ Coverage    71.43%   71.48%   +0.05%     
===========================================
  Files          434      439       +5     
  Lines        29659    29919     +260     
  Branches     14588    14693     +105     
===========================================
+ Hits         21187    21388     +201     
- Misses        7943     7994      +51     
- Partials       529      537       +8     
Flag Coverage Δ
unittests 54.91% <79.46%> (+0.15%) ⬆️

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

Files Coverage Δ
ElementX/Sources/Application/AppCoordinator.swift 54.89% <ø> (-0.07%) ⬇️
ElementX/Sources/Application/AppSettings.swift 96.55% <ø> (ø)
...Sources/FlowCoordinators/RoomFlowCoordinator.swift 54.88% <100.00%> (+0.06%) ⬆️
...es/Other/HTMLParsing/AttributedStringBuilder.swift 89.82% <100.00%> (+0.53%) ⬆️
...rces/Other/SwiftUI/Animation/ShimmerModifier.swift 100.00% <ø> (ø)
...X/Sources/Screens/HomeScreen/View/HomeScreen.swift 80.56% <100.00%> (ø)
...ens/HomeScreen/View/HomeScreenEmptyStateView.swift 96.66% <100.00%> (ø)
...s/Screens/HomeScreen/View/HomeScreenRoomCell.swift 98.27% <100.00%> (+<0.01%) ⬆️
...s/RoomScreen/View/Timeline/FormattedBodyText.swift 99.46% <100.00%> (+<0.01%) ⬆️
...en/View/Timeline/TimelineTableViewController.swift 82.98% <100.00%> (ø)
... and 15 more

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@stefanceriu stefanceriu left a comment

Choose a reason for hiding this comment

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

This is an amazing start, well done! 👏
Left some comments inline, most of them minor.

ElementX/Sources/Other/Pills/MentionBuilder.swift Outdated Show resolved Hide resolved
ElementX/Sources/Other/ProcessInfo.swift Show resolved Hide resolved
NSE/Sources/Other/NSEMentionBuilder.swift Outdated Show resolved Hide resolved
ElementX/Sources/Other/Pills/PillTextAttachmentData.swift Outdated Show resolved Hide resolved
ElementX/Sources/Other/Pills/PillViewModel.swift Outdated Show resolved Hide resolved
ElementX/Sources/Other/Pills/PillViewModel.swift Outdated Show resolved Hide resolved
ElementX/Sources/Other/Pills/PillViewModel.swift Outdated Show resolved Hide resolved
@sonarcloud
Copy link

sonarcloud bot commented Sep 27, 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 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

Copy link
Contributor

@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.

Love it, this all looks great to me 👏

ElementX/Sources/Other/Pills/MentionBuilder.swift Outdated Show resolved Hide resolved
ElementX/Sources/Other/Pills/MessageText.swift Outdated Show resolved Hide resolved
ElementX/Sources/Services/Client/ClientProxy.swift Outdated Show resolved Hide resolved
ElementX/Sources/UITests/UITestsAppCoordinator.swift Outdated Show resolved Hide resolved
UnitTests/Sources/AttributedStringBuilderTests.swift Outdated Show resolved Hide resolved
Velin92 and others added 9 commits September 27, 2023 18:54
Co-authored-by: Doug <6060466+pixlwave@users.noreply.github.com>
Co-authored-by: Doug <6060466+pixlwave@users.noreply.github.com>
Co-authored-by: Doug <6060466+pixlwave@users.noreply.github.com>
Co-authored-by: Doug <6060466+pixlwave@users.noreply.github.com>
Co-authored-by: Doug <6060466+pixlwave@users.noreply.github.com>
Co-authored-by: Doug <6060466+pixlwave@users.noreply.github.com>
@Velin92 Velin92 enabled auto-merge (squash) September 27, 2023 17:05
@sonarcloud
Copy link

sonarcloud bot commented Sep 27, 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 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

@Velin92 Velin92 merged commit 7bde419 into develop Sep 27, 2023
6 checks passed
@Velin92 Velin92 deleted the mauroromito/pill_view branch September 27, 2023 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Trigger-PR-Build Uses to trigger alpha builds for PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Timeline: Display user mention in a pill
4 participants