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

Feature/fga/room directory #2620

Merged
merged 23 commits into from
Mar 29, 2024
Merged

Feature/fga/room directory #2620

merged 23 commits into from
Mar 29, 2024

Conversation

ganfra
Copy link
Contributor

@ganfra ganfra commented Mar 28, 2024

Type of change

  • Feature
  • Bugfix
  • Technical
  • Other :

Content

Room directory search should disabled for release build.
Can be enabled in preferences in debug/nightly.

The feature is accessible from room list search.

More complex navigation will be handled by permalink feature (opening room preview before joining, knocking...).

Motivation and context

Closes #2578

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 Mar 28, 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 Mar 28, 2024
@ganfra ganfra added the Record-Screenshots Runs the 'Record Screenshots' CI job and adds a commit with any new screenshots found. label Mar 28, 2024
@ganfra ganfra marked this pull request as ready for review March 28, 2024 17:15
@ganfra ganfra requested a review from a team as a code owner March 28, 2024 17:15
@ganfra ganfra requested review from jmartinesp and removed request for a team March 28, 2024 17:15
@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 Mar 28, 2024
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, and tested OK. A few minor remarks

*/

// TODO: Remove once https://youtrack.jetbrains.com/issue/KTIJ-19369 is fixed
@Suppress("DSL_SCOPE_VIOLATION")
Copy link
Member

Choose a reason for hiding this comment

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

You should update our template, this can be removed :)

// debounce search query
delay(300)
// cancel load more right away
loadingMore = false
Copy link
Member

Choose a reason for hiding this comment

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

right away, so maybe before the delay?

RoomDirectorySearch(
key = "feature.roomdirectorysearch",
title = "Room directory search",
description = "Allow user to search for public rooms in his homeserver",
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
description = "Allow user to search for public rooms in his homeserver",
description = "Allow user to search for public rooms in their homeserver",

val avatarUrl: String?,
val joinRule: JoinRule,
val isWorldReadable: Boolean,
val joinedMembers: Long
Copy link
Member

Choose a reason for hiding this comment

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

Maybe rename to numberOfMembers?

RoomDescription(
roomId = RoomId("!exa:matrix.org"),
name = "Element X Android",
description = "Element X is a secure, private and decentralized messenger.",
Copy link
Member

Choose a reason for hiding this comment

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

Element X is not really decentralized :)

@ElementBot
Copy link
Collaborator

ElementBot commented Mar 29, 2024

Warnings
⚠️

libraries/ui-strings/src/main/res/values-cs/translations.xml#L4 - For locale "cs" (Czech) the following quantity should also be defined: many (e.g. "10.0 dne")

⚠️

libraries/ui-strings/src/main/res/values-cs/translations.xml#L22 - For locale "cs" (Czech) the following quantity should also be defined: many (e.g. "10.0 dne")

⚠️

libraries/ui-strings/src/main/res/values-cs/translations.xml#L152 - For locale "cs" (Czech) the following quantity should also be defined: many (e.g. "10.0 dne")

⚠️

libraries/ui-strings/src/main/res/values-cs/translations.xml#L174 - For locale "cs" (Czech) the following quantity should also be defined: many (e.g. "10.0 dne")

⚠️

libraries/ui-strings/src/main/res/values-sk/translations.xml#L4 - For locale "sk" (Slovak) the following quantity should also be defined: many (e.g. "10.0 dňa")

⚠️

libraries/ui-strings/src/main/res/values-sk/translations.xml#L22 - For locale "sk" (Slovak) the following quantity should also be defined: many (e.g. "10.0 dňa")

⚠️

libraries/ui-strings/src/main/res/values-sk/translations.xml#L151 - For locale "sk" (Slovak) the following quantity should also be defined: many (e.g. "10.0 dňa")

⚠️

libraries/ui-strings/src/main/res/values-sk/translations.xml#L173 - For locale "sk" (Slovak) the following quantity should also be defined: many (e.g. "10.0 dňa")

Generated by 🚫 dangerJS against 8325583

Copy link
Contributor

github-actions bot commented Mar 29, 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/26nfhG

@ganfra ganfra added the Run-Maestro Starts a Maestro Cloud session to run integration tests label Mar 29, 2024
@ganfra ganfra enabled auto-merge March 29, 2024 10:51
@github-actions github-actions bot removed the Run-Maestro Starts a Maestro Cloud session to run integration tests label Mar 29, 2024
Copy link

sonarcloud bot commented Mar 29, 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

@ganfra ganfra added the Run-Maestro Starts a Maestro Cloud session to run integration tests label Mar 29, 2024
@github-actions github-actions bot removed the Run-Maestro Starts a Maestro Cloud session to run integration tests label Mar 29, 2024
Copy link

codecov bot commented Mar 29, 2024

Codecov Report

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

Project coverage is 73.31%. Comparing base (bd5c6ea) to head (8325583).
Report is 5 commits behind head on develop.

Files Patch % Lines
...tures/roomdirectory/impl/root/RoomDirectoryView.kt 76.86% 7 Missing and 24 partials ⚠️
...omdirectory/impl/DefaultRoomDirectoryEntryPoint.kt 0.00% 6 Missing ⚠️
.../roomdirectory/impl/root/RoomDirectoryPresenter.kt 85.71% 3 Missing and 3 partials ⚠️
...s/roomdirectory/impl/root/model/RoomDescription.kt 68.42% 1 Missing and 5 partials ⚠️
...id/features/roomdirectory/impl/root/di/JoinRoom.kt 0.00% 3 Missing ⚠️
...eatures/roomlist/impl/search/RoomListSearchView.kt 78.57% 1 Missing and 2 partials ⚠️
.../android/libraries/matrix/test/FakeMatrixClient.kt 40.00% 3 Missing ⚠️
...res/roomdirectory/impl/root/RoomDirectoryEvents.kt 75.00% 1 Missing ⚠️
...ries/featureflag/impl/StaticFeatureFlagProvider.kt 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2620      +/-   ##
===========================================
+ Coverage    73.20%   73.31%   +0.10%     
===========================================
  Files         1413     1428      +15     
  Lines        34306    34661     +355     
  Branches      6670     6718      +48     
===========================================
+ Hits         25115    25412     +297     
- Misses        5717     5743      +26     
- Partials      3474     3506      +32     

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

@ganfra ganfra merged commit a9f326c into develop Mar 29, 2024
19 checks passed
@ganfra ganfra deleted the feature/fga/room_directory branch March 29, 2024 15:54
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.

[Task] Join a public room from the room search directory
3 participants