Skip to content

Room navigation #2695

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

Merged
merged 26 commits into from
Apr 15, 2024
Merged

Room navigation #2695

merged 26 commits into from
Apr 15, 2024

Conversation

ganfra
Copy link
Member

@ganfra ganfra commented Apr 12, 2024

Type of change

  • Feature
  • Bugfix
  • Technical
  • Other :

Content

This PR introduces a JoinedRoomFlowNode which is the previous RoomFlowNode. RoomFlowNode is now responsible to listen on room membership to decide which node to render, either JoinedRoomFlowNode or the new JoinRoomNode.

The JoinRoomNode is not completed yet, but this is a first draft.

Motivation and context

Closes #2654
Closes #2658
Handles some part of element-hq/element-meta#2341

Screenshots / GIFs

Tests

  • Step 1
  • Step 2
  • Step ...

Tested devices

  • Physical
  • Emulator
  • OS version(s):

Checklist

@ganfra ganfra added the Record-Screenshots Runs the 'Record Screenshots' CI job and adds a commit with any new screenshots found. label Apr 12, 2024
@github-actions github-actions bot removed the Record-Screenshots Runs the 'Record Screenshots' CI job and adds a commit with any new screenshots found. label Apr 12, 2024
Copy link
Contributor

github-actions bot commented Apr 12, 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/ssnFDA

@ganfra ganfra added the Record-Screenshots Runs the 'Record Screenshots' CI job and adds a commit with any new screenshots found. label Apr 12, 2024
@github-actions github-actions bot removed the Record-Screenshots Runs the 'Record Screenshots' CI job and adds a commit with any new screenshots found. label Apr 12, 2024
@ganfra ganfra marked this pull request as ready for review April 12, 2024 14:49
@ganfra ganfra requested a review from a team as a code owner April 12, 2024 14:49
@ganfra ganfra requested review from jmartinesp and bmarty and removed request for a team April 12, 2024 14:49
Copy link

codecov bot commented Apr 12, 2024

Codecov Report

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

Project coverage is 73.12%. Comparing base (8cfa45e) to head (a5240e3).
Report is 39 commits behind head on develop.

Files Patch % Lines
...ent/android/features/joinroom/impl/JoinRoomView.kt 0.00% 138 Missing ⚠️
...id/features/joinroom/impl/JoinRoomStateProvider.kt 0.00% 39 Missing ⚠️
...es/invite/impl/response/AcceptDeclineInviteView.kt 55.00% 10 Missing and 8 partials ⚠️
...nt/android/features/joinroom/impl/JoinRoomState.kt 72.72% 6 Missing and 3 partials ⚠️
...ures/invite/impl/invitelist/InviteListPresenter.kt 27.27% 8 Missing ⚠️
...vite/impl/response/AcceptDeclineInvitePresenter.kt 85.41% 2 Missing and 5 partials ⚠️
...te/impl/response/AcceptDeclineInviteViewWrapper.kt 0.00% 7 Missing ⚠️
...ndroid/features/joinroom/impl/JoinRoomPresenter.kt 86.53% 2 Missing and 5 partials ⚠️
...ndroid/features/joinroom/impl/di/JoinRoomModule.kt 0.00% 6 Missing ⚠️
...roid/features/roomdirectory/api/RoomDescription.kt 77.27% 3 Missing and 2 partials ⚠️
... and 8 more
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2695      +/-   ##
===========================================
- Coverage    73.57%   73.12%   -0.45%     
===========================================
  Files         1460     1477      +17     
  Lines        35317    35689     +372     
  Branches      6790     6859      +69     
===========================================
+ Hits         25984    26098     +114     
- Misses        5795     6040     +245     
- Partials      3538     3551      +13     

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

Copy link
Member

@bmarty bmarty left a comment

Choose a reason for hiding this comment

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

LGTM, something strange though:
When clicking on an invite, user has the time to see the wording "Preview not available".
But when it's done in airplane mode, it's not the case.
There is maybe some possible improvement on this?

Also, showing the roomId is a bit strange:

image

Copy link

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
Copy link
Member

bmarty commented Apr 15, 2024

I am trying to figure out why the JoinRoomView is not covered by Test. There are some Preview, but Showkase does not seem to detect them. Still investigating.

Also, the code coverage is not good (-0.45%), this is related to the issue above, but not only.

Regarding the timing, we need to merge the PR. We will investigate the coverage issue later.

@ganfra ganfra added the Run-Maestro Starts a Maestro Cloud session to run integration tests label Apr 15, 2024
@github-actions github-actions bot removed the Run-Maestro Starts a Maestro Cloud session to run integration tests label Apr 15, 2024
@ganfra ganfra merged commit e19cd28 into develop Apr 15, 2024
@ganfra ganfra deleted the feature/fga/room_navigation branch April 15, 2024 10:55
@bmarty bmarty mentioned this pull request Apr 18, 2024
14 tasks
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.

Room screen is not left if the room is left from another session. [Task] Enhance RoomFlowNode
2 participants