Commit graph

177 commits

Author SHA1 Message Date
Doug
ff73246891 Fix authentication tests. 2022-10-10 15:30:24 +01:00
Johannes Marbach
03b0cd80da Merge branch 'develop' into johannes/session-name-trumps-device-type-name 2022-10-07 13:27:16 +02: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
Johannes Marbach
42f7934f74 Only use device type name as fallback for session display name 2022-10-07 09:48:17 +02:00
ismailgulek
19afad1f18
Login with QR UI components (#6790)
* Display QR button on login screen if HS supports

* Create start screen

* Add build flag

* Connect start screen to the login

* QR display screen

* Move `LabelledDividerView` into separate file

* Show display QR screen on button tap

* Add swift concurreny to CameraAccessManager

* Introduce `QRLoginServiceProtocol`

* Use new service in screens

* Introduce scan QR code screen

* Remove hardcoded service availability

* Remove unnecessary import

* Add confirmation screen

* Add loading screen

* Fix ZXingObjc targets

* Add failure screen

* Add strings

* Various UI tweaks, navigation according to the service state

* Fix tests

* Add string for invalid QR error

* Add QR login service mode
2022-10-06 18:05:46 +03:00
Stefan Ceriu
033920e63f Add rendezvous service (MSC3886) and ECDH X25519 AES 256 based secure channel creation establishing implementation and simple tests. 2022-10-06 17:33:18 +03:00
Aleksandrs Proskurins
dd8d27bcac Unverified sessions screen 2022-10-05 16:22:52 +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
Gil Eluard
0ecbf82eee Added support for MSC3881
- Update after review
2022-10-03 15:33:35 +02: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
Johannes Marbach
b846c393a5
Merge pull request #6761 from vector-im/johannes/device-model-in-user-agent
Include concrete device model in user agent (PSG-754)
2022-09-26 19:46:52 +02:00
Johannes Marbach
a1361ce95d Add AppVersion to test target 2022-09-26 17:33:11 +02:00
Johannes Marbach
7c511238dd Add AppInfo to test target 2022-09-26 16:35:48 +02:00
aringenbach
04ef849913 Fix render of links with both characters requiring percent encoding and markdown-like syntax 2022-09-23 15:06:40 +02:00
Gil Eluard
c4e0544c89 Fixed failed to join room (was not legal room) 2022-09-20 10:01:46 +02:00
Doug
9a1c12f53b Put the session creator on the main actor instead.
This covers all login and registration options.
2022-09-16 12:31:25 +01:00
Stefan Ceriu
84975deec7 Fix tests missing data source parameter 2022-08-29 10:10:56 +03:00
Gil Eluard
19d2a68902 App Layout: Fixed Analytics Tests 2022-08-24 13:43:24 +02:00
Doug
90ecedbd22 Use the default homeserver when starting a new auth flow.
And override this when a provisioning link has been set.
2022-08-09 08:54:31 +01:00
Doug
66a2d9f5ea
Stop using an ephemeral web browser session on SSO (#6464)
Rename the bundle name to Element for the SSO alert.

* Fix unit tests after bundle name change.

* Update slather for bundle name change.
2022-07-27 12:13:31 +01:00
Doug
e3bcb71b09 FTUE tweaks
- Allow login using a phone number.
- Update the server when entering a full MXID during registration.
- Reset the authentication service back to matrix.org after onboarding completes.
- Disable zoom on ReCaptcha to fix responsiveness issue.
- Tidy up unused methods.
2022-07-19 09:22:15 +01:00
Doug
a529389ddf Fix Riot tests. 2022-07-14 16:56:35 +01:00
aringenbach
6177562462 Fix PillsFormatter unit tests 2022-07-12 09:47:12 +02:00
aringenbach
ecd3fb9b01 Add formatter build reply HTML unit tests 2022-07-06 15:15:29 +02:00
Doug
3e6925b980 Trim whitespace and trailing slashes from a user entered homeserver address. 2022-06-21 10:04:22 +01:00
aringenbach
5aba712828
Merge pull request #6309 from vector-im/aringenbach/6302_use_latest_data_for_pills
Use latest user data for mention pills
2022-06-17 13:56:20 +02:00
Doug
83e2b1d440 Add custom string representations of view model/coordinator results. 2022-06-17 10:15:10 +01:00
aringenbach
d2ca614655 Add avatar url and attachment size tests 2022-06-17 09:16:59 +02:00
aringenbach
ff17725bba Use latest user data for mention pills 2022-06-16 17:07:47 +02:00
ismailgulek
4a4c15aed2
Create PasswordValidator 2022-06-10 18:06:21 +03:00
ismailgulek
8e11dd46a8
Fix PR remarks 2022-06-09 13:22:50 +03:00
ismailgulek
9f59a7bf9d
Add resetOthers parameter to session creator method 2022-06-08 17:22:47 +03:00
ismailgulek
ceae4a455d
Merge pull request #6250 from vector-im/ismail/6180_support_prov_links 2022-06-07 20:54:14 +03:00
ismailgulek
36ebbc6b9c
Update UniversalLink class to parse path and query params 2022-06-07 16:05:47 +03:00
ismailgulek
81410f003a
Mock account manager and disable saving on session creator tests 2022-06-06 16:16:12 +03:00
ismailgulek
3995d48ee3
Merge branch 'develop' into ismail/6177_wellknown_IS 2022-06-06 15:23:22 +03:00
Doug
a9beeac55a
Add initial tests on the authentication service. (#6229) 2022-06-06 13:20:46 +01:00
ismailgulek
740713a638
Use identity server from well-known when creating the client 2022-06-03 18:08:19 +03:00
Doug
36581ae451
Merge pull request #6201 from vector-im/doug/5654_login_flow
Add login screen to new flow.
2022-05-31 17:04:50 +01:00
aringenbach
f2eea7bde6 WellKnown: support outbound keys presharing strategy 2022-05-31 17:38:33 +02:00
ismailgulek
73030bb4c7
Move validation logic to a new class and add tests 2022-05-30 16:05:20 +03:00
ismailgulek
1a55011d3c
Move extension methods to Swift.String, add tests 2022-05-30 16:05:00 +03:00
Doug
4ebcd7d7f0 Disable the next button whilst loading a server.
Add tests for login screen.
Self review.
2022-05-24 18:03:31 +01:00
Doug
9502112daf Add initial implementation of the LoginWizard. 2022-05-24 10:09:24 +01:00
Doug
badd44f426 Add tests for FlowResult. 2022-05-19 11:43:38 +01:00
aringenbach
161bdfe163 Fix minor PillsFornatterTests issue 2022-05-13 17:03:20 +02:00
aringenbach
1841d53b89 Fix unit tests 2022-05-11 09:11:12 +02:00
aringenbach
90a843a8c8 Merge branch 'develop' into aringenbach/3526_user_pills 2022-05-09 17:15:45 +02:00
aringenbach
529fe55d73 Rename StringPillsUtils to PillsFormatter 2022-05-09 15:32:53 +02:00
Doug
54a4feb0ea
Send the Signup analytics event (#6118)
* Implement the Signup event from AuthenticationViewController.

Use AuthenticationFlow instead of MXKAuthenticationType.
Create new AuthenticationType that aligns with AnalyticsEvent naming.
Add additional cases from AnalyticsEvents.
2022-05-06 13:08:54 +01:00
aringenbach
08146152f5 Rename isCurrentUser to isHighlighted 2022-05-05 15:28:04 +02:00
aringenbach
c0f799a85a Add tests 2022-05-05 15:04:26 +02:00
Doug
3591a3a403
Add AuthenticationService and RegistrationWizard. (#6056) 2022-04-27 16:02:54 +01:00
Andy Uhnak
08b48b6285 Reduce the number of unnecessary home page reloads 2022-04-04 12:04:55 +01:00
Andy Uhnak
53a6c29743 Refactor sections as enum types 2022-04-04 09:40:26 +01:00
Andy Uhnak
92b31a0f01 Join room loading indicators 2022-03-29 15:03:09 +01:00
Andy Uhnak
5d999adbf4 URL encode fragment deeplink 2022-03-28 16:55:54 +01:00
Andy Uhnak
dcfff556a4 Enable joining a room via identifier from another home server 2022-03-28 16:34:12 +01:00
aringenbach
a31209b02c Fix unit tests 2022-03-22 15:30:49 +01:00
Arnaud Ringenbach
8c088b7ed5 Remove KeyPreSharingStrategy support 2022-03-16 14:17:46 +01:00
Arnaud Ringenbach
700f0896ea Update WellKnown & HomeserverConfiguration for mandatory backup 2022-03-09 10:40:33 +01:00
ismailgulek
0a826d1570
Update analytics tests 2022-03-01 17:42:15 +03:00
Doug
4a0a67ff73
Merge pull request #5591 from vector-im/doug/5590_ftue_analytics
Add support for UserProperties to analytics and capture FTUE use case selection.
2022-02-18 10:49:06 +00:00
aringenbach
057cb9ed70
Fix HTML render for links containing Markdown formatting (#5587)
* Fix HTML render for links containing Markdown formatting

* Log renderToHTML fail as an error

* Fix AST nodes memory handling

Co-authored-by: Arnaud Ringenbach <arnaud.ringenbach@niji.fr>
2022-02-18 09:00:45 +01:00
Doug
ae1d8026c0 Include user properties with the next sent event. 2022-02-17 12:39:11 +00:00
SBiOSoftWhare
9ccb2f160c Xcodegen: Fix RoomTimelineStyleIdentifier.swift location in all targets. 2022-02-16 09:46:17 +01:00
Doug
3943b17d57
Merge pull request #5467 from vector-im/doug/5160_ftue_use_case
Add the FTUE use case screen for new users.
2022-02-10 14:28:28 +00:00
Stefan Ceriu
c9d0a4f4b4 Correctly chain up async calls on emoji store loading to avoid race conditions and intermittent test failures. 2022-02-08 17:46:18 +02:00
Stefan Ceriu
b35407bab2 Fixed/improved emoji tests, made emoji service always callback on the main queue. 2022-02-08 17:46:18 +02:00
Doug
8c55168067 Fix tests. 2022-02-04 17:46:27 +00:00
Doug
d11b3e0950 Add the Use Case selection screen to the onboarding flow. 2022-02-04 16:10:38 +00:00
Stefan Ceriu
9ac722dcad vector-im/element-ios/issues/5298 - Add .well-known configuration support for tile server and map styles. 2022-02-04 11:33:55 +02:00
ismailgulek
1599456828
Fix test build 2022-01-19 14:21:33 +03:00
ismailgulek
f3e492a300
Merge branch 'ismail/5068_start_thread' into ismail/5096_thread_notifications 2022-01-17 11:39:25 +03:00
SBiOSoftWhare
565b1cca05
Merge pull request #5342 from vector-im/steve/5321_bubbles_lauching
Message bubbles: Add settings and build flag
2022-01-13 09:50:23 +01:00
ismailgulek
c1cee57b6e
Add EventMenuBuilder to manage ordering on event menu actions 2022-01-10 17:31:28 +03:00
SBiOSoftWhare
4d3a8a2ffa Rename RoomTimelineStyle enum to RoomTimelineStyleIdentifier. 2022-01-04 17:53:15 +01:00
Stefan Ceriu
574a155c80 vector-im/element-ios/issues/5298 - Added body message content keys and replaced plain string usages. 2022-01-04 17:33:32 +02:00
Stefan Ceriu
5a72750f8d vector-im/element-ios/issues/5298 - Replaced "msgtype" strings with new kMXMessageTypeKey. 2022-01-04 17:33:32 +02:00
SBiOSoftWhare
6589b39b6d Fix targets configuration. 2022-01-04 11:11:02 +01:00
SBiOSoftWhare
1deb146d51 Update targets for new BuildSettings properties. 2022-01-03 18:18:37 +01:00
Doug
59486c824a Add accessibility labels/hints. Fix tests. Show analytics prompt to everyone. 2021-12-16 17:01:22 +00:00
Doug
2b80c0437a Don't read analytics opt in status from account data.
Update PostHog to 1.4.3.

Add tests for prompt type.
2021-12-16 16:59:45 +00:00
SBiOSoftWhare
6f604a0d40 Remove unneeded plist file from MatrixKit tests. 2021-12-03 15:00:22 +01:00
SBiOSoftWhare
4d7847ba5b Fix MatrixKit unit tests. 2021-12-03 11:47:43 +01:00
SBiOSoftWhare
acd0d83c33 Merge MatrixKit develop with commit hash: b85b736313bec0592bd1cabc68035d97f5331137 2021-12-03 11:47:24 +01:00
SBiOSoftWhare
b595b3a3a5 Handle MatrixKit tests new location, update bridging header. 2021-12-01 11:18:19 +01:00
Philippe Loriaux
c6c3eaaec1 Improve the Obj-C Generated Interface Header Name definition 2021-10-26 17:42:33 +02:00
ismailgulek
f95391009f
Add unit tests for NSArray mapping 2021-10-12 14:29:40 +03:00
Stefan Ceriu
6111382a63 Merge branch 'develop' into stefan/4881-configurable-app-name-localization-strings
# Conflicts:
#	Riot/Generated/Strings.swift
2021-09-22 17:17:05 +03:00
Stefan Ceriu
388d828c2b Fixes #4881 - Replaced InfoPlist.cfBundleDisplayName with AppInfo.current.displayName and removed the now unused InfoPlist generated class. 2021-09-22 16:59:47 +03:00
David Langley
fb0f023964 Merge branch 'develop' of https://github.com/vector-im/element-ios into langleyd/4781_swiftui_template_examples 2021-09-15 14:33:05 +01:00
David Langley
158ef08eec UITests and Mock Screens
Adds the test targets for Unit and UI tests
Adds mock screen data and utilities to render each mock screen for previews/ui tests.
Changes Published property in the service to CurrentValueSubject. we don't need the synthesized aspect of Published and property wrappers cannot be included in protocols.
2021-09-09 16:23:00 +01:00
David Langley
89bf79df7d CoordinatorParamters, Type -> Protocol, remove MX Prefix. 2021-09-08 15:47:24 +01:00
David Langley
0a7beb6744 Add template unit tests and publisher utility. 2021-09-08 15:32:41 +01:00
Doug
ea14ed9616 Add more docs and comments.
Rename store.store(_:) to store.cache(_:).
2021-09-08 09:51:47 +01:00
Doug
4924110f8e Merge remote-tracking branch 'origin/develop' into doug/888_add_url_previews 2021-09-02 17:39:42 +01:00
David Langley
55c515fe4a Merge branch 'develop' of https://github.com/vector-im/element-ios into langleyd/4776_extract_swiftui 2021-09-02 10:14:11 +01:00
David Langley
a8f603a954 Fix tests 2021-09-01 13:16:03 +01:00