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

Include app name in default session display name #6828

Merged
merged 2 commits into from
Oct 7, 2022

Conversation

Johennes
Copy link
Contributor

@Johennes Johennes commented Oct 7, 2022

The current default session display name is "Mobile" or "Tablet" which isn't very descriptive as it doesn't disclose what actual client this session belongs to. This PR changes the default session name to "%@ iOS" where current application name (e.g. "Element") is inserted into the placeholder. This harmonizes the default name with Element Android which uses the same pattern.

There is an argument to be made about including the device type (phone vs. tablet) in the name. However, since we have the concrete device model available via the new device manager, I think this is better solved via the UI.

@Johennes Johennes requested review from a team and stefanceriu and removed request for a team October 7, 2022 14:57
@sonarcloud
Copy link

sonarcloud bot commented Oct 7, 2022

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
No Duplication information No Duplication information

@codecov
Copy link

codecov bot commented Oct 7, 2022

Codecov Report

Base: 11.41% // Head: 11.43% // Increases project coverage by +0.01% 🎉

Coverage data is based on head (390b452) compared to base (1ee8c9c).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #6828      +/-   ##
===========================================
+ Coverage    11.41%   11.43%   +0.01%     
===========================================
  Files         1544     1544              
  Lines       154237   154274      +37     
  Branches     62254    62279      +25     
===========================================
+ Hits         17606    17636      +30     
- Misses      136027   136035       +8     
+ Partials       604      603       -1     
Impacted Files Coverage Δ
Riot/Categories/UIDevice.swift 21.42% <100.00%> (-14.29%) ⬇️
...can/MockAuthenticationQRLoginScanScreenState.swift 100.00% <0.00%> (ø)
...rt/MockAuthenticationQRLoginStartScreenState.swift 100.00% <0.00%> (ø)
...in/Scan/View/AuthenticationQRLoginScanScreen.swift 88.19% <0.00%> (+0.14%) ⬆️
...ojiPicker/Data/EmojiMart/EmojiItem+EmojiMart.swift 95.65% <0.00%> (+0.30%) ⬆️
.../Start/View/AuthenticationQRLoginStartScreen.swift 80.00% <0.00%> (+0.38%) ⬆️
...ogin/Scan/AuthenticationQRLoginScanViewModel.swift 57.14% <0.00%> (+1.26%) ⬆️
...ogin/Common/Service/MatrixSDK/QRLoginService.swift 19.04% <0.00%> (+2.66%) ⬆️
...Login/Common/Service/Mock/MockQRLoginService.swift 51.11% <0.00%> (+4.76%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

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

@github-actions
Copy link

github-actions bot commented Oct 7, 2022

📱 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/ueGg4r

Copy link
Member

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

Looks good to me, a welcome change 👍

@Johennes Johennes merged commit d11691b into develop Oct 7, 2022
@Johennes Johennes deleted the johannes/default-session-name branch October 7, 2022 18:40
@Johennes Johennes restored the johannes/default-session-name branch October 7, 2022 18:58
@Johennes Johennes deleted the johannes/default-session-name branch October 7, 2022 18:58
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