Commit Graph

41 Commits

Author SHA1 Message Date
Mauro
173b39a07f Swift Testing for Unit Tests PART 1 (#5119)
* migrated a lot of unit tests to Swift Testing and added a new implementation for deferred fulfillment

more tests migration

Cleaned the code manually to establish some good patterns

more code improvements

some more code improvements

removed empty tests

update project

* more pr suggestions and cleanups

* removed the TestSetup pattern

* fixing claude not reusing tests

* pr suggestion + added indent rule to swiftformat so that we can prevent AIs to change that
2026-02-19 16:20:47 +01:00
Mauro
4f9b9e8a21 Swift Testing for Compound (#5110) 2026-02-16 14:04:04 +01:00
Mauro
77c88a817a Compound - Swift 6.2 and Main actor isolation (#5109)
* compound is now using 6.2 and main actor isolation + some tweaks to make it build tests and EX

* better handling of the nonisolated context for CompoundUIColors

* improving docs

* fix comment

* remove unused Sendable conformance
2026-02-16 10:19:12 +00:00
Mauro Romito
64009b499f Updated compound icons to match ios 26 designs 2026-01-30 17:33:24 +01:00
renovate[bot]
85f22b734e Update dependency element-hq/compound-design-tokens to v6.9.0 (#5011)
* Update dependency element-hq/compound-design-tokens to v6.9.0

* Update Package.resolved files.

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Doug <douglase@element.io>
2026-01-27 14:14:16 +00:00
Stefan Ceriu
04053ae69b Update files following swiftformat upgrade 2026-01-27 12:50:57 +02:00
Doug
d5faab854e Enable Swift 6 and default actor isolation on the Compound Inspector app. (#4966) 2026-01-19 09:15:28 +00:00
renovate[bot]
b20bd34b52 Update dependency element-hq/compound-design-tokens to v6.8.0 (#4959)
* Update dependency element-hq/compound-design-tokens to v6.8.0

* Update the Package.resolved files.

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Doug <douglase@element.io>
2026-01-16 11:30:20 +00:00
Doug
52d823fb03 Update dependencies. (#4940)
* Minor dependency updates.

Plus SwiftSyntax 509 → 601

* Update MapLibre to v6.

* Update Sentry to v9.
2026-01-09 16:48:03 +00:00
Mauro
2d1d62552a Empty spaces list screen (#4936)
* Added an FF to create spaces + empty spaces list state

* removed learn more button and improved spacing

* updated toolbar for chats and spaces to match ios 26 designs
2026-01-09 15:17:43 +01:00
renovate[bot]
6f615dadd6 Update dependency element-hq/compound-design-tokens to v6.6.0 (#4928)
* Update dependency element-hq/compound-design-tokens to v6.6.0

* Update Package.resolved files.

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Doug <douglase@element.io>
Co-authored-by: Doug <6060466+pixlwave@users.noreply.github.com>
2026-01-07 14:07:12 +00:00
renovate[bot]
7ee80774cf Update dependency element-hq/compound-design-tokens to v6.5.0 (#4920)
* Update dependency element-hq/compound-design-tokens to v6.5.0

* Update Package.resolved files.

* Use the new translate icon.

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Doug <douglase@element.io>
2026-01-06 21:48:42 +00:00
Doug
10bd3015ee Final tweaks to the existing QR code screens to match the designs. (#4874)
* Simplify QR errors even more and use the correct error state for deviceAlreadySignedIn.

* Remove the pre-defined padding on TitleAndIcon and use it in the QRCodeLoginScreen too.

* Update FullscreenDialog to allow different horizontal padding in each section.
2025-12-17 17:23:55 +00:00
Doug
9d75c21deb Update the foreground colour of BigIcon's default style. (#4871)
* Update the foreground colour of BigIcon's default style.

* Bump the design tokens and fix a bug in the inspector app.
2025-12-17 12:48:18 +00:00
Doug
b9c121db82 Move BigIcon into Compound and add a new TitleAndIcon component. (#4866)
* Move BigIcon into Compound.

* Replace the old server selection image asset with the \.host icon.

* Add a new TitleAndIcon component to Compound.

* Add the ability to override TitleAndIcon's padding.
2025-12-16 16:01:26 +00:00
renovate[bot]
fc8f6cf0e7 Update dependency element-hq/compound-design-tokens to v6.4.2 (#4806)
* Update dependency element-hq/compound-design-tokens to v6.4.2

* Update Package.resolved files and snapshots.

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Doug <douglase@element.io>
2025-12-02 14:32:04 +00:00
Mauro Romito
24febbeaee drop iOS 17 and removed all #available and #unavaible checks for 17 and 18 2025-12-01 14:19:52 +01:00
Doug
2070ae4353 Update Compound's List header style to match our iOS 26 components. (#4797)
* Update Compound's list header font for iOS 26.

* Update the preview snapshots.

* Update UI test snapshots.
2025-11-28 14:31:31 +00:00
Mauro Romito
8f10fdb8ad use 26.1.1 for compound ios tests on CI 2025-11-28 13:27:45 +01:00
Mauro Romito
6d77371666 multi selection should have the accessory on the leading side 2025-11-28 13:27:45 +01:00
renovate[bot]
eecc4ebc78 Update dependency element-hq/compound-design-tokens to v6.4.1 (#4780)
* Update dependency element-hq/compound-design-tokens to v6.4.1

* Update snapshots and Package.resolved files.

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Doug <douglase@element.io>
2025-11-25 13:26:52 +00:00
Mauro Romito
8eb07e15cb room members list redesign 2025-11-21 14:23:19 +01:00
Doug
607dc48772 Update the enterprise submodule.
And some missed Package.resolved files.
2025-11-18 16:25:11 +02:00
Doug
8755178cf3 Add @MainActor to some of the hook points. 2025-11-18 16:25:11 +02:00
Doug
b1d2fdd122 Add a DeveloperOptionsScreenHook. 2025-11-18 16:25:11 +02:00
Doug
32bddf1f50 Update the design tokens package. 2025-11-17 20:28:10 +02:00
Mauro
ebbaeedb0a Rename snapshots (#4756)
* renaming snapshots so that it's easier to diff them when an upgrade happens.

* fix macOS runner version for the compound tests

* os version update in the yml

* possible fix to run compound-ios tests
2025-11-17 16:46:51 +00:00
renovate[bot]
271c2ebaec Update dependency element-hq/compound-design-tokens to v6.3.0 2025-11-04 13:47:57 +01:00
renovate[bot]
34d746c487 Update dependency SFSafeSymbols/SFSafeSymbols to v7 (#4659)
* Update dependency SFSafeSymbols/SFSafeSymbols to v7

* Update all the Package.resolved files and fix simulator.

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Doug <douglase@element.io>
2025-10-28 09:13:04 +00:00
Mauro
6160c44d67 Update copyright holding and dates (#4640)
* Update copyright holding and dates

* compound IDE Macros updated

* update copyright

* update copyrights done

* update templates and README
2025-10-21 14:34:56 +02:00
Doug
bab9b89416 Some random tweaks made on a train 🚆 (#4636)
* Fix the search text field's tint colour.

* Don't allow optional content IDs in the placeholder avatar.

* Use SwiftUI to resolve the hex values in the Inspector app.

This fixes incorrect values being shown in dark/high-contrast modes.

* Fix a layout bug with the colour swatch in the Inspector app on iPhone.

* Switch to the chats tab when selecting a room with the global search screen.

* Run the latest SwiftFormat.
2025-10-21 10:04:54 +01:00
Doug
f2a24853b4 Only run Compound tests when files are changed in Compound. (#4611)
* Only run Compound tests when files are changed in Compound.

* Fix warnings about missing spacing.

* Fix warnings about inner type shadowing.
2025-10-10 14:30:51 +01:00
Mauro Romito
c0d8d94119 updated compound tests 2025-10-07 18:49:37 +02:00
Mauro Romito
3de7c7d460 new divider color for iOS 26
# Conflicts:
#	PreviewTests/Sources/__Snapshots__/PreviewTests/leaveSpaceView.Only-Admin-Rooms-iPad-pseudo.png
#	PreviewTests/Sources/__Snapshots__/PreviewTests/leaveSpaceView.Only-Admin-Rooms-iPhone-16-pseudo.png
#	PreviewTests/Sources/__Snapshots__/PreviewTests/settingsScreen.Bug-report-disabled-iPad-en-GB.png
#	PreviewTests/Sources/__Snapshots__/PreviewTests/settingsScreen.Bug-report-disabled-iPad-pseudo.png
#	PreviewTests/Sources/__Snapshots__/PreviewTests/settingsScreen.Bug-report-disabled-iPhone-16-en-GB.png
#	PreviewTests/Sources/__Snapshots__/PreviewTests/settingsScreen.Bug-report-disabled-iPhone-16-pseudo.png
#	PreviewTests/Sources/__Snapshots__/PreviewTests/settingsScreen.Default-iPad-en-GB.png
#	PreviewTests/Sources/__Snapshots__/PreviewTests/settingsScreen.Default-iPad-pseudo.png
#	PreviewTests/Sources/__Snapshots__/PreviewTests/settingsScreen.Default-iPhone-16-en-GB.png
#	PreviewTests/Sources/__Snapshots__/PreviewTests/settingsScreen.Default-iPhone-16-pseudo.png
2025-10-07 18:49:37 +02:00
Doug
886f35ed5c A couple of small tweaks. (#4569)
* Stop ignoring the safe area with the suggestions view.

They weren't visible on iPad (hidden behind the sidebar) and I can't find any instance when they're shown where the safe area comes into play.

* Make sure the room list deselects the cell when dismissed a room.

* Use the backports pattern in more places.

* Fix the annoying header on macOS.

* Silence some warnings

* Fix compound CI branch name.
2025-10-03 12:09:17 +01:00
Doug
3074c5cc96 Update compound snapshots. 2025-09-29 10:41:01 +01:00
Doug
15875527a8 Make sure the IDETemplateMacros.plist file is committed. 2025-09-29 10:41:01 +01:00
Doug
3abb938ff2 Fix Compound Inspector and run SwiftFormat. 2025-09-29 10:41:01 +01:00
Doug
8ba73f679a Move Compound Inspector into the project. 2025-09-29 10:41:01 +01:00
Doug
6bec5f794a Run SwiftFormat and fix SwiftLint. 2025-09-29 10:41:01 +01:00
Doug
aeaac90239 Move compound-ios package into the project. 2025-09-29 10:41:01 +01:00