Commit graph

62 commits

Author SHA1 Message Date
Stefan Ceriu
94f5dc477b Fixed various SwiftFormat warnings 2022-10-13 20:49:32 +03:00
Stefan Ceriu
83c327bcf4 Fix UI tests for features currently disabled 2022-10-12 17:27:25 +03:00
Stefan Ceriu
dcc9cf71c6 Implement login with scanned QR code flows 2022-10-12 17:27:25 +03:00
Doug
3d3ccda296 Update strings for unknown sessions. 2022-10-12 14:42:24 +01:00
Aleksandrs Proskurins
5cb2b25eff Merge branch 'develop' into aleksandrs/6838_filter_sessions
# Conflicts:
#	RiotSwiftUI/Modules/UserSessions/UserOtherSessions/Test/Unit/UserOtherSessionsViewModelTests.swift
#	RiotSwiftUI/Modules/UserSessions/UserOtherSessions/UserOtherSessionsViewModel.swift
2022-10-12 10:58:04 +03:00
Aleksandrs Proskurins
a6bc478a14 Renamed OtherUserSessionsFilter to UserOtherSessionsFilter 2022-10-12 09:30:41 +03:00
Doug
313331708d
Device Manager: Verify session (#6832)
* Initial implementation
* Add verificationState to UserSessionInfo
* Listen for changes device changes in the service.
2022-10-11 16:11:52 +01:00
Doug
c358f28a55
Device Manager: Rename Session (#6826)
* Publish the user sessions overview data.
* Add UserSessionName screen.
* Update logout action to match Figma more closely.
2022-10-11 13:11:15 +01:00
ismailgulek
d5ac519e8f
Ignore OS version from web based sessions (PSG-826) (#6852)
* Ignore OS version from web based sessions

* Add changelog
2022-10-11 14:39:36 +03:00
Aleksandrs Proskurins
bbc2d957e1 Fixed formatting 2022-10-10 09:27:47 +03:00
Aleksandrs Proskurins
61b6392742 Fixed swiftformat warnings 2022-10-07 17:00:15 +03:00
Aleksandrs Proskurins
007cb4ad1f Merge from develop 2022-10-07 14:51:30 +03:00
ismailgulek
1ee8c9ca19
QR login from device manager (#6818)
* Add link device button into the sessions overview screen

* Run Swift format

* Fix tests

* Fix a crash in tests

* Fix PR remark
2022-10-07 12:58:26 +03:00
Aleksandrs Proskurins
98f18dde0e 'View all' button in other sessions list 2022-10-07 09:45:45 +03:00
Aleksandrs Proskurins
8a6c8b1212 Renamed sortAndConvertDevices method 2022-10-06 13:16:10 +03:00
Aleksandrs Proskurins
4fa1398a74 Merge branch 'develop' into aleksandrs/6801_unverified_sessions_screen 2022-10-06 10:49:48 +03:00
Aleksandrs Proskurins
7d9b040eeb UI tests 2022-10-06 10:23:33 +03:00
Doug
bb07a11e7e Session Manager: Single session logout 2022-10-05 16:48:51 +01:00
Aleksandrs Proskurins
a586ed0c33 Renamed sessionsInfo to sessionInfos 2022-10-05 16:59:15 +03:00
Aleksandrs Proskurins
dd8d27bcac Unverified sessions screen 2022-10-05 16:22:52 +03:00
Aleksandrs Proskurins
7e09a6ece5 Merge branch 'develop' into aleksandrs/6786_inactive_sessions_screen
# Conflicts:
#	RiotSwiftUI/Modules/UserSessions/UserSessionDetails/UserSessionDetailsViewModel.swift
2022-10-05 11:51:08 +03:00
Aleksandrs Proskurins
3deee90005 Merge branch 'develop' into aleksandrs/6786_inactive_sessions_screen
# Conflicts:
#	Riot/Assets/en.lproj/Vector.strings
#	Riot/Generated/Strings.swift
#	RiotSwiftUI/Modules/UserSessions/Coordinator/UserSessionsFlowCoordinator.swift
#	RiotSwiftUI/Modules/UserSessions/UserSessionOverview/Test/Unit/UserSessionOverviewViewModelTests.swift
#	RiotSwiftUI/Modules/UserSessions/UserSessionsOverview/Coordinator/UserSessionsOverviewCoordinator.swift
#	RiotSwiftUI/Modules/UserSessions/UserSessionsOverview/Service/Mock/MockUserSessionsOverviewService.swift
#	RiotSwiftUI/Modules/UserSessions/UserSessionsOverview/UserSessionsOverviewModels.swift
#	RiotSwiftUI/Modules/UserSessions/UserSessionsOverview/View/UserSessionListItemViewData.swift
2022-10-04 15:14:59 +03:00
ismailgulek
dadbeca766
Include browser version in parsed user agent (PSG-761) (#6788)
* Update UserSessionInfo structure to include client version

* Add string for browser

* Update user agent parser to parse browser version too

* Add browser row into the session details

* Add changelog

* Fix tests

* Run Swift format
2022-10-04 10:49:26 +03:00
Aleksandrs Proskurins
ca3a401b18 Added translation strings, cleanup 2022-10-04 10:07:04 +03:00
Aleksandrs Proskurins
899539fbeb Refactored creation of UserSessionListItemViewData, added inactive session icon 2022-10-03 15:47:40 +03:00
Gil Eluard
f6b2be8dc4 Added support for MSC3881 2022-10-03 13:42:30 +02:00
Aleksandrs Proskurins
0b85beb0f4 User other sessions screen template 2022-10-03 11:27:12 +03:00
Stefan Ceriu
52c4ff65db
Improve user session overview tests
* Add sessions overview UI tests
* Expose static methods from the UserSession name and lastActivity formatters; cleaned up the UserSessionsOverview a bit
* Add UserSessionsOverviewViewModel unit tests
* Add UserSessionsOverviewService unit tests
2022-09-30 13:49:16 +03:00
ismailgulek
2f689f4557
Extended device info (PSG-772) (#6766) 2022-09-29 15:07:10 +03:00
Stefan Ceriu
ca0cc12016 Fix member modifier warning 2022-09-28 15:36:11 +03:00
Stefan Ceriu
d34b8ec478 Cleaned up session overview services 2022-09-28 15:36:11 +03:00
Stefan Ceriu
c21f39c961 Implemented PSG-680 - Sessions overview security recommendations
- remove uppercased strings from localizables
- moved inactivity computation to the service
2022-09-28 15:36:11 +03:00
Aleksandrs Proskurins
6a24cf61a7 Moved isCurrentSession into UserSessionInfo 2022-09-27 15:36:44 +03:00
Aleksandrs Proskurins
66d7915350 Renamed userSession and userSessionInfo to session 2022-09-27 13:57:54 +03:00
Stefan Ceriu
de54ae3da3 Removed deprecated StateStoreViewModel dispatching and reducing 2022-09-27 12:55:44 +03:00
Stefan Ceriu
ec0634ffb7 Configured and applied SwiftFormat 2022-09-27 12:55:44 +03:00
Stefan Ceriu
2c9596c912 Cleaned up various things around the UserSessionsOverviewService 2022-09-27 09:27:07 +03:00
Stefan Ceriu
148bc1624a Cleaned up various things, mostly removed unnecessary selfs, comments and bad formatting 2022-09-27 09:27:07 +03:00
Aleksandrs Proskurins
412b8b07da Session overview screen 2022-09-26 16:58:02 +03:00
Aleksandrs Proskurins
4bd3979522 Code review fixes 2022-09-22 11:52:42 +03:00
Aleksandrs Proskurins
a06d7d0aaa User session flow coordinator and details view 2022-09-16 13:50:45 +03:00
Aleksandrs Proskurins
b5850c1d5d Code review fixes 2022-09-14 11:28:47 +03:00
SBiOSoftWhare
7c3084212b UserSessionsOverview: Handle current session section view. 2022-09-08 20:01:02 +02:00
SBiOSoftWhare
111c829236 UserSessionsOverviewViewModelResult: Remove useless case. 2022-09-08 18:49:41 +02:00
SBiOSoftWhare
30388059ad MockAppScreens: Add MockUserSessionsOverviewScreenState. 2022-09-08 17:26:09 +02:00
SBiOSoftWhare
ea91f5d710 UserSessionListItem: Fix runtime issue. 2022-09-08 08:56:36 +02:00
SBiOSoftWhare
625b6d0d86 UserSessionsOverview: Improve other sessions list layout. 2022-09-08 08:34:21 +02:00
SBiOSoftWhare
f733171f6b UserSessionsOverview: Improve layout. 2022-09-07 15:47:03 +02:00
SBiOSoftWhare
0b061dcef3 UserSessionListItem: Improve layout and handle separator. 2022-09-07 15:42:27 +02:00
SBiOSoftWhare
93a4fc8fd6 Update MockUserSessionsOverviewService. 2022-09-07 12:23:03 +02:00