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

Permalink navigation - Navigation to rooms and users #2713

Merged
merged 46 commits into from
Apr 18, 2024

Conversation

bmarty
Copy link
Member

@bmarty bmarty commented Apr 16, 2024

  • Handle permalink navigation to rooms and users
  • Introduce RoomAlias value class and move many String to RoomAlias
  • Introduce RoomIdOrAlias
  • Simplify PermalinkData classes
  • Waiting for SDK to be ready, API usage has been commented out.
image

Copy link
Contributor

github-actions bot commented Apr 17, 2024

📱 Scan the QR code below to install the build (arm64 only) for this PR.
QR code
If you can't scan the QR code you can install the build via this link: https://i.diawi.com/rrdhfV

Copy link
Contributor

@ganfra ganfra left a comment

Choose a reason for hiding this comment

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

Good work, thanks!
Some first remarks

import java.util.Optional

interface JoinRoomEntryPoint : FeatureEntryPoint {
fun createNode(parentNode: Node, buildContext: BuildContext, inputs: Inputs): Node

data class Inputs(
val roomId: RoomId,
val roomIdOrAlias: RoomIdOrAlias,
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd use an Optional<RoomAlias> instead

Copy link
Member Author

Choose a reason for hiding this comment

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

That would be more correct, hence it brings some complexity.
At some point the room resolver should probably be moved in the joinroom module (I am more and more convinced about this approach), and so, the first param roomId should just be removed.

Copy link

codecov bot commented Apr 17, 2024

Codecov Report

Attention: Patch coverage is 73.04348% with 93 lines in your changes are missing coverage. Please review.

Project coverage is 73.45%. Comparing base (0cda5b9) to head (4e55c9a).
Report is 9 commits behind head on develop.

Files Patch % Lines
...es/roomaliasresolver/impl/RoomAliasResolverView.kt 50.00% 3 Missing and 22 partials ⚠️
...ent/android/features/joinroom/impl/JoinRoomView.kt 76.47% 2 Missing and 10 partials ⚠️
...esolver/impl/DefaultRoomAliasResolverEntryPoint.kt 0.00% 8 Missing ⚠️
...eatures/messages/impl/DefaultMessagesEntryPoint.kt 0.00% 7 Missing ⚠️
...ndroid/features/joinroom/impl/JoinRoomPresenter.kt 79.16% 1 Missing and 4 partials ⚠️
...libraries/matrix/api/room/alias/MatrixRoomAlias.kt 0.00% 4 Missing and 1 partial ⚠️
...omaliasresolver/impl/di/RoomAliasResolverModule.kt 0.00% 4 Missing ⚠️
...omaliasresolver/impl/RoomAliasResolverPresenter.kt 82.35% 1 Missing and 2 partials ⚠️
...signsystem/atomic/organisms/RoomPreviewOrganism.kt 84.21% 1 Missing and 2 partials ⚠️
...lement/android/appnav/room/RoomNavigationTarget.kt 50.00% 2 Missing ⚠️
... and 11 more
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2713      +/-   ##
===========================================
+ Coverage    72.95%   73.45%   +0.49%     
===========================================
  Files         1469     1487      +18     
  Lines        35622    35806     +184     
  Branches      6862     6903      +41     
===========================================
+ Hits         25987    26300     +313     
+ Misses        6085     5883     -202     
- Partials      3550     3623      +73     

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

@bmarty bmarty changed the title Permalink navigation - WIP Permalink navigation - Navigation to rooms Apr 17, 2024
@bmarty bmarty changed the title Permalink navigation - Navigation to rooms Permalink navigation - Navigation to rooms and users Apr 17, 2024
@bmarty bmarty marked this pull request as ready for review April 17, 2024 23:51
@bmarty bmarty requested a review from a team as a code owner April 17, 2024 23:51
@bmarty bmarty requested review from ganfra and removed request for a team April 17, 2024 23:51
@bmarty bmarty added the Run-Maestro Starts a Maestro Cloud session to run integration tests label Apr 17, 2024
@github-actions github-actions bot removed the Run-Maestro Starts a Maestro Cloud session to run integration tests label Apr 17, 2024
Copy link
Contributor

@ganfra ganfra left a comment

Choose a reason for hiding this comment

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

Thanks for the changes, LGTM!

Copy link

sonarcloud bot commented Apr 18, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@bmarty bmarty merged commit e7172cb into develop Apr 18, 2024
16 checks passed
@bmarty bmarty deleted the feature/bma/roomPreview branch April 18, 2024 09:30
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

3 participants