-
Notifications
You must be signed in to change notification settings - Fork 499
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
Device manager: User sessions overview - Other sessions section read only (PSG-667) #6672
Conversation
📱 Scan the QR code below to install the build for this PR. If you can't scan the QR code you can install the build via this link: https://i.diawi.com/aQxbpG |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Woah, the Device Manager looks like it's going to be a cool new feature 😎
Comments inline :)
...odules/UserSessions/UserSessionsOverview/Service/MatrixSDK/UserSessionsOverviewService.swift
Outdated
Show resolved
Hide resolved
RiotSwiftUI/Modules/UserSessions/UserSessionsOverview/UserSessionsOverviewViewModel.swift
Outdated
Show resolved
Hide resolved
|
||
@Environment(\.theme) private var theme: ThemeSwiftUI | ||
|
||
private var sessionTitle: String { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could this, sessionDetailsText
and lastActivityDateString(from:)
be moved into UserSessionListItemViewData
instead? It would make the view implementation clearing keeping all this logic out of it.
RiotSwiftUI/Modules/UserSessions/UserSessionsOverview/View/UserSessionListItem.swift
Outdated
Show resolved
Hide resolved
RiotSwiftUI/Modules/UserSessions/UserSessionsOverview/View/UserSessionsOverview.swift
Outdated
Show resolved
Hide resolved
.padding(.horizontal, 16) | ||
|
||
// Device list | ||
VStack(spacing: 16) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could use a LazyVStack
here given we're emulating a List
.
Side note: Might be worth looking at VectorForm
and using/extending that for use in this view :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
VectorForm
has the separators already implemented too 😉
RiotSwiftUI/Modules/UserSessions/DeviceAvatar/DeviceAvatarView.swift
Outdated
Show resolved
Hide resolved
RiotSwiftUI/Modules/UserSessions/DeviceAvatar/DeviceAvatarView.swift
Outdated
Show resolved
Hide resolved
…MatrixSDK/UserSessionsOverviewService.swift Co-authored-by: Doug <[email protected]>
….swift Co-authored-by: Doug <[email protected]>
…rSessionListItem.swift Co-authored-by: Doug <[email protected]>
…ionsOverviewViewModel.swift Co-authored-by: Doug <[email protected]>
Codecov Report
@@ Coverage Diff @@
## develop #6672 +/- ##
===========================================
+ Coverage 6.23% 9.98% +3.74%
===========================================
Files 1474 1486 +12
Lines 155154 157045 +1891
Branches 62259 62950 +691
===========================================
+ Hits 9679 15685 +6006
+ Misses 145072 140807 -4265
- Partials 403 553 +150
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
var name: String { | ||
let name: String | ||
|
||
let appName = AppInfo.current.displayName |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will this not show the current app's bundle display name for all devices?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes atm the application short name Element
is taken from the bundle display name in the app. This is probably something we set in other place like BuildSettings
or specific translation file in the future.
The parsing of client name is not yet implemented. So there is chances to change the client name generation in the future also.
...odules/UserSessions/UserSessionsOverview/Service/MatrixSDK/UserSessionsOverviewService.swift
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure who this is going to now, but LGTM
RiotSwiftUI/Modules/UserSessions/DeviceAvatar/DeviceAvatarView.swift
Outdated
Show resolved
Hide resolved
Kudos, SonarCloud Quality Gate passed! |
Thanks @pixlwave. @paleksandrs is picking this up from Stève. |
#6656