503 Commits

Author SHA1 Message Date
Doug 9841467b02 Disable codecov/patch (#202) 2022-09-22 09:31:57 +01:00
ismailgulek 40e878cbb1 Redacted events in timeline (#199)
* Add redacted timeline item and view

* Use isOwn and isRedacted properties from sdk

* Build redacted items in factory

* Include redacted events in timeline

* Add changelog

* Fix unit tests
2022-09-21 14:13:04 +03:00
Stefan Ceriu 5ebe923991 Sliding Sync + New Timeline API (#189)
* Begin adopting new Timeline API.

* Add edited indicator and reactions.

* vector-im/element-x-ios/issues/65 - Sliding sync support
* Fix missing room display name, wrong placeholder avatar text color and various other warnings that would fail the build on the CI

* Various tweaks:
* using release version of the demo branch of the sdk
* enabled home screen last room messages
* switched debug mode rust logging to warn
* enabled redactions
* enabled new logout flows and soft logout
* enabled replies

* Fix room member display name and avatar crashes / race condition, fix unit tests
* Make the ClientProxy and the UserSession MainActors
* Remove unused MatrixRustSDK imports, we should strive to keep these only in top level services and proxies
* Don't start either of the syncs while in soft logout

* #181: Style the session verification banner to match Figma.
* #181: Update verification modal.
* #181: Update snapshot tests.

* Make session verification state machine less pedantic
* Remove unnecessary weak selfs
* Various tweaks following code review:
* add start and stop sync client proxy methods
* move ss proxy url the build settings
* made media provider load results discardable
* added publishers for the roomSummaryProvider's total number of rooms and state

* Fix when sender details are shown
* Disable sync v2, causes duplicates in the timeline (as expected)
* Move ClientProxy media loading off the main queue and into a detached task
* Another attempt at moving image loading off the main queue
* Moved home screen diffing and latest room fetching to the background
* Prevent the timeline composer from becoming the first responder when not needed

* Bump to a newer version of the RustSDK

* Fixes vector-im/element-x-ios/issues/107 - New home screen design
* Implement thumbnail loading instead of full image avatars.
* Revert "Disable sync v2, causes duplicates in the timeline (as expected)"
* Add support for local echoes, dispatching detached tasks to a concurrenc GCD queue
* Move the session verification banner to a List Section to avoid UI glitches
* Optimise room mapping after sliding sync updates and thumbnail fetching
* Replace home screen List with a LazyVStack in an attempt to fix performance. Moved move summary provider room updating to a background thread

* Fixes vector-im/element-x-ios/issues/177 - New Bubbles Design
* Define in group state for timeline items
* Add replies into the bubble
* Add timeline width environment value
* Add `RoundedCorner` shape with specific corners rounding
* Add in group state for previews
* Implement bubble grouping logic
* Timeline avatar layout changes
* Fix placeholder avatars for dark mode
* New bubbles design
* Update mock timeline items
* Update timeline separator design
* Update room screen reference screenshots
* Add changelog
* Formatting fixes
* Add some space before single or beginning outgoing items

* Redesign the message composer

* Handle the msgtype enum.

* Update room name label line limit and incoming bubble background. Disabled syncv2, ss withCommonExtensions and session verification controller checking

* Increase default back pagination limit.
* Stop parsing links and tidy up composer button.
* Also fix the frame of an image whilst loading.
* Bump SDK package version.

* Remove app states about settings
* Add strings
* Use colors on placeholder avatars
* Tiny changes for placeholder avatars
* Update settings screen design
* Provide a user display name from the mock client
* Settings screen presentation logic
* Add changelog
* Update reference screenshots

Co-authored-by: Doug <douglase@element.io>
Co-authored-by: ismailgulek <ismailgulek@users.noreply.github.com>
Co-authored-by: ismailgulek <ismailg@matrix.org>
2022-09-21 09:21:58 +01:00
Stefan Ceriu ffee192e89 Fixes vector-im/element-x-ios/issues/114 - Replying to timeline items 2022-09-14 16:21:23 +03:00
Doug 91795a0d19 Redact and event ID, not an item ID. 2022-09-14 13:18:04 +01:00
Doug fb947f2dba #178: Add redaction menu (disabled). 2022-09-14 13:18:04 +01:00
Doug 4bed534a6f Add default values for timeline item properties. 2022-09-14 12:19:38 +01:00
Doug 7dd77be01b Add timeline properties for edited and reactions.
Not yet visible, waiting for timeline API.
2022-09-14 12:19:38 +01:00
Doug 2986f85bcb Revert "Add redaction menu (disabled)."
This reverts commit bd4a698f8b.
2022-09-14 09:44:15 +01:00
Doug bd4a698f8b Add redaction menu (disabled). 2022-09-14 09:40:00 +01:00
Stefan Ceriu 4660f096f8 Fixes vector-im/element-x-ios/issues/117 - Event permalink timeline action
* moved NSRegularExpression outside of the AttributedString builder into the MatrixEntityRegex
* fixed eventId v3 regex
* added permalink builders for users, room identifiers and aliases, and events
* added timeline item permalink contextual menu actions and error alerts
* added an app wide ServiceLocator and moved the top level userIndicatorPresenter to it.
* added URL constructor that takes a StaticString and returns an non-optional
* Include Unit and UI tests in the swiftlint search paths
2022-09-12 21:34:53 +03:00
Doug 4349b8fc03 #150: Use standard file headers everywhere.
* Add default header in IDETemplateMacros.plist.
* Use the standard header everywhere.
2022-08-11 08:54:24 +01:00
Stefan Ceriu e1eee9465e Fix vector-im/element-x-ios/issues/134 - Prevent home screen room last message attributed string from being computed on every update
Add async/await methods to the AttributedStringBuilder and adopt them throughout the app
2022-07-22 10:25:17 +03:00
Doug 25d7ba55ad Enable blank line rules. (#132) 2022-07-06 16:01:50 +01:00
Doug 02eb4b35e2 Add SwiftFormat to the project. (#129)
* Run swiftformat for whitespace.
* Run swiftformat with some rules.
2022-07-06 14:49:05 +01:00
Stefan Ceriu a6f9d1ba89 vector-im/element-x-ios/issues/31 - Implement simple SaS sesson verification
* vector-im/element-x-ios/issues/31 - Session verification unit and UI tests
* Fix ImageAnonymizer tests when running on Apple Silicon
* Rename SessionVerification to SessionVerificationScreen
2022-07-01 13:56:52 +03:00
ismailgulek b6b8b4be26 Room screen: timeline message bubbles (#91)
* #34 Create `TimelineItemStylerView`

* #34 Add styler view into different type of cells

* #34 Use placeholder avatar image on room list

* #34 Add `isOutgoing` param to event based timeline item

* #34 Compute `isOutgoing` for timeline items

* #34 Update sender info view in timeline

* #34 Update mock timeline items

* #34 Rename `EventBasedTimelineView` to `EventBasedTimelineSenderView`

* #34 Change padding on timeline cells

* #34 Create `TimelineItemStylerView` to move content into a bubble if needed

* #34 Use styler view in all of the timeline item views

* #34 Make timestamp more readable on images

* #34 Little layout tweaks

* #34 Add changelog

* #34 Fix code smells

* #34 Set text colors on timeline items

* #34 Fix background color of the timeline

* #34 Fix PR remarks

* #34 Set background colors explicitly on remaining screens

* #34 Reduce min bubble width and make it a scaled metric

* #34 Refactor `PlaceholderAvatarImage` to accept a text only

* #34 Fix code smell

* #34 Fix further comments
2022-06-23 14:54:29 +03:00
Stefan Ceriu d7ef0cdc30 Fix copyright file headers and project template 2022-05-31 16:16:01 +03:00
Stefan Ceriu 1b4d3a650e #53 - Refactored various components:
- updated the authentication coordinator to use async await
- replaced the UserSession with a ClientProxy (similar to the RoomProxy)
- renamed `completion` to `callback` on the coordinators and view models
- renamed `viewModelResult` to `viewModelAction`
- introduced back UserSession as a user specific service container
2022-05-30 16:06:11 +03:00
Stefan Ceriu 8fec97217f vector-im/element-x-ios/issues/53 - Various tweaks following code review 2022-05-26 11:42:57 +03:00
Stefan Ceriu 73f507045b Fix various code smells as reported by Sonarcloud, fixed tests 2022-05-26 11:42:57 +03:00
Stefan Ceriu f5890b68a2 vector-im/element-x-ios/issues/53 - Adopt MainActors, dispatch heavy operations do detached tasks and ensure combine publisher call back on the right queue 2022-05-26 11:42:57 +03:00
Stefan Ceriu dde7786152 vector-im/element-x-ios/issues/53 - Converted most callback based methods to async/await 2022-05-26 11:42:57 +03:00
Stefan Ceriu 7f1c24059f Implement message sending. Refactor the timeline. Fix various UI/UX issues and add scroll to bottom timeline button. 2022-04-18 10:54:48 +03:00
Stefan Ceriu e20c699298 Enable encryption and add support for loading encrypted images. 2022-04-07 17:07:42 +03:00
Stefan Ceriu 8d50d4fd25 Added blurhash and correct sizes to timeline images and animations throughout the app. 2022-04-05 15:09:04 +03:00
Stefan Ceriu 711857ac9c Caching memberDetailProviders, showing sender display names in home screen last message, cleaner homescreen design. 2022-04-01 16:05:26 +03:00
Stefan Ceriu 49f7678ce8 Caching the room proxies and their messages. Improved performance throughout. 2022-03-31 17:45:41 +03:00
Stefan Ceriu a74849b79c Showing day name on timeline separators. 2022-03-31 11:22:49 +03:00
Stefan Ceriu 1bbc38c03e Moved timeline views to the room screen folder. Extracted timeline code into its own component. Added more preview providers. 2022-03-30 16:33:57 +03:00
Stefan Ceriu 4053841e2f Removed manual message sorting after rust sdk fix. 2022-03-29 18:04:19 +03:00
Stefan Ceriu 88dd482be1 Reduced timeline sender details header size, removed divider. 2022-03-29 16:02:29 +03:00
Stefan Ceriu af5b75cde0 Correct dark theme support with html rendering. 2022-03-29 14:52:21 +03:00
Stefan Ceriu ab25689e38 Added support for emotes and notices. 2022-03-29 12:13:41 +03:00
Stefan Ceriu 2fcbd33158 Reimplemented ObjC attributed string handling in swift. 2022-03-28 21:16:18 +03:00
Stefan Ceriu ff7c8f6128 Added link detection in plain text (not available ootb in SwiftUI) and support for user, room, event and group identifiers + room aliases. 2022-03-24 16:26:58 +02:00
Stefan Ceriu fde8ce63eb Reload the timeline on content size category changes, dynamic type support. 2022-03-24 14:49:09 +02:00
Stefan Ceriu 762b497940 Sort incoming messages client side, workaround backward stream issues (revisit later with new Rust implementation). 2022-03-24 14:48:38 +02:00
Stefan Ceriu cf42d61d27 Initial timeline HTML support. 2022-03-24 14:47:55 +02:00
Stefan Ceriu 5c7761e851 Added html body to text messages and rendering through Apple's default NSAttributedString.DocumentType.html parser 2022-03-22 10:09:46 +02:00
Stefan Ceriu d201ca1ad8 Added user display names and switched to using an avatar url directly in the homeScreen viewModel for the current user. 2022-03-21 19:35:24 +02:00
Stefan Ceriu fdb9242838 Fixed missing PlaceholderAvatarImage. 2022-03-18 14:35:38 +02:00
Stefan Ceriu e70b782956 Enabled markdown rendering. 2022-03-18 14:07:07 +02:00
Stefan Ceriu 22659ae214 Added protocols for the timeline and memberDetails providers. 2022-03-18 13:48:07 +02:00
Stefan Ceriu 2eae0f0573 Introduced MemberDetailsProvider, caching user avatar urls and images. Various other tweaks and improvements. 2022-03-18 13:40:25 +02:00
Stefan Ceriu 120bcaf012 Loading images and user avatars. 2022-03-17 18:09:29 +02:00
Stefan Ceriu 30378ae6a9 Correctly building image items for the timeline. Missing URL and way to load image. 2022-03-16 18:02:19 +02:00
Stefan Ceriu 3cc1395fbc Adopting different timeline item types exposed from rust. 2022-03-16 18:02:19 +02:00
Stefan Ceriu 1ca3448ca3 Rewrote timeline back pagination on top of direct access to the underlying UITableView. 2022-03-15 13:06:50 +02:00
Stefan Ceriu 3d7b3d3d63 Introduced the RoomTimelineViewProvider with different timeline items/views. Added timeline date separators (currently breaks back pagination) 2022-03-11 14:49:09 +02:00