Commit Graph

2558 Commits

Author SHA1 Message Date
Stefan Ceriu
265eaba3ae Fix state change commented by mistake and simplify snapshot test setup (+ a couple of warnings) 2024-12-17 11:06:33 +02:00
Valere
03931004e3 feat(crypto): Support for new UtdCause for historical messages 2024-12-17 10:15:35 +02:00
Stefan Ceriu
278d83b375 Fix video item duration formatting 2024-12-16 19:21:28 +02:00
Stefan Ceriu
49382cd39b Implement frequency tracking for frequently used emojis 2024-12-16 19:21:28 +02:00
Stefan Ceriu
3079afe7a8 Fix #3620 - Fix frequently used emojis, stop relying on Apple's keyboard values and store everything app side instead. 2024-12-16 19:21:28 +02:00
Stefan Ceriu
ffad834cd3 Fix the media gallery's empty state showing up at wrong times. 2024-12-16 19:21:28 +02:00
Doug
ee24764b08 Rework the presentation of the media browser quick look view to use SwiftUI. (#3619)
* Embed the media preview quick look inside a full screen cover

With a zoom transition on iOS 18.

* Use a the representable coordinator properly.

* Fix a bug with the toolbar appearance.

* Format

* Try prevent the zoom transition being upside down.

* Fix the snapshot test configuration.
2024-12-16 15:27:50 +00:00
Mauro
89ac38c91b Implement Knock Logic (#3573)
* WIP RequestToJoin struct

* implemented the logic to display the cells

* knock request banner accept flow

* mark all knocks as seen implemented

* details logic

* implemented accept, decline and ban in the list

* added a loader and modified the stacked view

of the banner

* pr suggestions

* updated naming and loading strings

* added the initial loading state

improved code and the tests

* updated a string that has changed

* code improvement

* tests for the room screen view model

* room details tests

and improved the knock requests tests for the room screen

* knock requests list tests

* added error state alerts with retry

* struct has been renamed on the sdk

so I renamed it also on the app side

* update SDK
2024-12-16 15:32:45 +01:00
renovate[bot]
847adab8c7 chore(deps): update dependency fastlane to v2.226.0 (#3621)
* chore(deps): update dependency fastlane to v2.226.0

* Actually update it 🙄

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Doug <douglase@element.io>
2024-12-16 10:37:51 +00:00
pixlwave
6c29053df7 Translations update 2024-12-16 09:51:26 +02:00
Stefan Ceriu
9aef0c6f7c Add a comment on bubble background modifier default parameter values. 2024-12-13 19:31:35 +02:00
Stefan Ceriu
dc06f3c301 Fix MediaFileRoomTimelineContent tap gesture taking over media event timeline taps. 2024-12-13 19:31:35 +02:00
Stefan Ceriu
07c8b0e8b2 Add empty states for the media gallery sections 2024-12-13 19:31:35 +02:00
Stefan Ceriu
ed3f7fea1c Update the other affected snapshots 2024-12-13 19:31:35 +02:00
Doug
3209a8b37c Update FormattedBodyText snapshots. 2024-12-13 19:31:35 +02:00
Stefan Ceriu
6ce0c720ab Simplify how we build bubbles for previewing purposes, make use of the new bubbleBackground modifier. 2024-12-13 19:31:35 +02:00
Stefan Ceriu
fbdbc562ca Stop adding empty groups to the gallery. 2024-12-13 19:31:35 +02:00
Stefan Ceriu
1b684d269e Stop passing the whole timeline item to the bubble background modifier. 2024-12-13 19:31:35 +02:00
Mauro
35e24656d7 Security and privacy part 1 (#3617)
* added the security and settings button in details

* added content to the view

* added enable encryption alert

* updated preview tests and the UI

* removed wrong plists committed by mistake

* pr suggestions
2024-12-13 18:29:17 +01:00
Stefan Ceriu
45090a6221 Various danger swift rule tweaks
* remove the ticket number check, it's noisy
* remove signoff now that we have cla checks
* fix description image attachments check
2024-12-13 17:43:25 +02:00
Stefan Ceriu
707d9eee4e Bump the RustSDK to v1.0.80 2024-12-13 12:56:35 +02:00
Valere
7e078e746f feat(posthog): wire support for extra utd error properties 2024-12-13 12:56:35 +02:00
renovate[bot]
3af4858422 Update dependency fastlane to v2.226.0 2024-12-13 09:58:33 +02:00
Stefan Ceriu
828e4c4b03 Custom media gallery views for files and voice messages (#3610)
* Extract the timeline item background from the BubbledStyler.
* Use different views for files and voices messages, reuse the timeline content but only keep the bubble background instead of the whole TimelineStyler.
* Add back max voice message width and add missing accessibility label
2024-12-12 17:48:41 +02:00
Doug
aa6487ed22 Hook up the actions in the media details sheet. (#3607) 2024-12-12 09:22:36 +00:00
Stefan Ceriu
ffa53e6100 Media gallery - support for files and voice messages (#3605)
* Move the voice message views to where they belong
* Add separate struct for each media events timeline view
* Add support for all the different media gallery message types and get the files section working
2024-12-12 10:02:10 +02:00
Doug
7943dbd6df Fix a bug where you're shown the remove caption action when it isn't available. 2024-12-12 08:29:15 +02:00
renovate[bot]
b984d892c1 Update dependency fastlane to v2.226.0 2024-12-12 08:28:16 +02:00
Mauro
4e057fe195 Design Tweaks (#3606)
* updated the order of the room details

also...
- removed the bloom bg from the join room screen
- now DMs do not necessarily need to be encrypted rooms
- changed bg of the knock banner

* removed unnecessary disabled

* updated join room screen tests
2024-12-11 17:42:33 +00:00
Doug
1c3d410e3f Configure the media preview screen based on the event and presentation. (#3604)
* Configure media previews based on the presenting screen.

* Switch on TimelineKind instead of having an isPinnedEventsTimeline Bool.
2024-12-11 15:40:31 +00:00
Mauro
1196e0b013 Fix tap knockable room and custom keyboard did show scrolling (#3603)
* making knockable rooms tappable

* added a way to customise the keyboard scrolling

in case we want the focussed view/textview to display something outside its content

* better documentation
2024-12-11 16:09:52 +01:00
renovate[bot]
93a7d5b079 Update dependency fastlane to v2.226.0 2024-12-11 13:36:53 +02:00
Stefan Ceriu
2c69019046 Monthly media gallery separators (#3601)
* Fix the order of the items in the media grid.
* Add media gallery timeline separators.
* Change the `SeparatorRoomTimelineItem` to have it expose a Date timestamp instead of a text string.
2024-12-11 13:32:29 +02:00
renovate[bot]
3041184400 Update dependency fastlane to v2.226.0 (#3600)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-11 08:58:08 +00:00
Stefan Ceriu
a297643443 Bump the RustSDK to v1.0.79; add a feature flag for the new rust side ClientBuilder::useEventCachePersistentStorage 2024-12-10 18:19:31 +02:00
Doug
e596c4b43f Use TimelineMediaQuickLook in the MediaEventsTimelineScreen. (#3598) 2024-12-10 14:56:51 +02:00
Stefan Ceriu
8407737977 UI test snapshot fixes (#3597) 2024-12-10 10:02:57 +02:00
Doug
e09b687470 Update the timeline media QuickLook modifier. (#3593)
Not hooked up to any flows yet.
2024-12-09 15:23:12 +00:00
ElementRobot
6936d6a472 Translations update (#3592)
Co-authored-by: pixlwave <6060466+pixlwave@users.noreply.github.com>
2024-12-09 09:24:29 +00:00
Stefan Ceriu
e75c930d8f Media gallery - part 1(#3588)
* Introduce a `MediaEventsTimelineFlowCoordinator`
* Update SDK API and architecture
* Add a feature flag, add translations
* Move the media events timeline presentation under the room flow coordinator state machine
* Rename `TimelineViewState.timelineViewState` of type `TimelineState` to `timelineState`
* Enabled SwiftLint's `trailing_closure` rule and fix the warnings.
2024-12-06 16:58:14 +02:00
Doug
64da80c6cb Use a Date for the timestamp in all timeline items. (#3590)
* Use a Date for the timestamp in all timeline items.

* UI test snapshots.

* Update snapshots

---------

Co-authored-by: Stefan Ceriu <stefanc@matrix.org>
2024-12-06 13:55:29 +00:00
Element CI
3ff8271924 Prepare next release 2024-12-05 08:28:20 -08:00
Doug
e67b7c148c Use the new SendButton v2 design. (#3589) 2024-12-05 16:08:15 +00:00
Mauro
e69f1a490b Update sdk to 1.0.78 (#3586)
* updated sdk

* added cases

* correct error tracking

* right error label
2024-12-05 10:55:49 +01:00
Doug
a4d8655f6b Fix UI snapshots. (#3585)
* Remove old snapshots.

* Add a check for the correct simulator name.

* Record mismatched snapshots.

* Regenerate more snapshots using a (temporary) higher precision.

* Fix snapshot.
2024-12-04 11:59:53 +00:00
fkwp
de1abd5bce increase ringing timeout from 15 seconds to 90 seconds 2024-12-04 10:40:11 +02:00
Doug
054da5b914 Add new development assets and use in mocks/previews. (#3581) 2024-12-03 17:14:05 +00:00
Mauro
9d7ad59dca added historical message error label string (#3580) 2024-12-03 17:21:02 +01:00
Element CI
842e3729b1 Prepare next release 2024-12-03 03:45:37 -08:00
Doug
4fc18402a8 Enable local echoes for media uploads for all builds. (#3579)
* Enable local echoes for media uploads for all builds.

* Update a string.
2024-12-03 11:28:21 +00:00