Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hook reaction pickers into the system's recently used keyboard emojis #3453

Merged
merged 2 commits into from
Oct 25, 2024

Conversation

stefanceriu
Copy link
Member

The way this works is by opening the com.apple.EmojiPreferences suite and then getting the EMFDefaults.EMFRecentsKey from it. The same goes in opposite direction when chosing a reaction from the app.

NB

  • the feature is currently only enabled on development builds
  • there will be no changes on the mac until we figure out what to do with the context menu

Screenshot 2024-10-25 at 16 17 35

Screenshot 2024-10-25 at 16 17 25

@stefanceriu stefanceriu requested a review from a team as a code owner October 25, 2024 13:28
Copy link

github-actions bot commented Oct 25, 2024

Warnings
⚠️ Some of the commits are missing ticket numbers. Please consider squashing all commits that don't have a tracking number.
⚠️ You seem to have made changes to views. Please consider adding screenshots.

Generated by 🚫 Danger Swift against 4f0c88b

Copy link
Member

@pixlwave pixlwave left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏

@stefanceriu stefanceriu enabled auto-merge (squash) October 25, 2024 14:09
Copy link

sonarcloud bot commented Oct 25, 2024

Copy link

codecov bot commented Oct 25, 2024

❌ 3 Tests Failed:

Tests completed Failed Passed Skipped
849 3 846 0
View the top 3 failed tests by shortest run time
PreviewTests test_secureBackupRecoveryKeyScreen()
Stack Traces | 2.17s run time
failed - Snapshot "Not set up" does not match reference.

@−
"file:.../__Snapshots__/PreviewTests/test_secureBackupRecoveryKeyScreen-iPhone-16-en-GB.Not-set-up.png"
@+
"file:.../tmp/PreviewTests/test_secureBackupRecoveryKeyScreen-iPhone-16-en-GB.Not-set-up.png"

To configure output for a custom diff tool, use 'withSnapshotTesting'. For example:

    withSnapshotTesting(diffTool: .ksdiff) {
      // ...
    }

The percentage of pixels that match 0.9957123 is less than required 1.0
The lowest perceptual color precision 0.70734376 is less than required 0.98 (.../PreviewTests/Sources/PreviewTests.swift:84)
PreviewTests test_createRoom()
Stack Traces | 3.07s run time
failed - Snapshot "Create Room" does not match reference.

@−
"file:.../__Snapshots__/PreviewTests/test_createRoom-iPhone-16-en-GB.Create-Room.png"
@+
"file:.../tmp/PreviewTests/test_createRoom-iPhone-16-en-GB.Create-Room.png"

To configure output for a custom diff tool, use 'withSnapshotTesting'. For example:

    withSnapshotTesting(diffTool: .ksdiff) {
      // ...
    }

The percentage of pixels that match 0.957489 is less than required 1.0
The lowest perceptual color precision 0.39937502 is less than required 0.98 (.../PreviewTests/Sources/PreviewTests.swift:84)
PreviewTests test_secureBackupScreen()
Stack Traces | 7.51s run time
failed - Snapshot "Both setup" does not match reference.

@−
"file:.../__Snapshots__/PreviewTests/test_secureBackupScreen-iPhone-16-en-GB.Both-setup.png"
@+
"file:.../tmp/PreviewTests/test_secureBackupScreen-iPhone-16-en-GB.Both-setup.png"

To configure output for a custom diff tool, use 'withSnapshotTesting'. For example:

    withSnapshotTesting(diffTool: .ksdiff) {
      // ...
    }

The percentage of pixels that match 0.92419434 is less than required 1.0
The lowest perceptual color precision 0.29250002 is less than required 0.98 (.../PreviewTests/Sources/PreviewTests.swift:84)

To view individual test run time comparison to the main branch, go to the Test Analytics Dashboard

@frebib
Copy link

frebib commented Oct 25, 2024

Does this mean the information won't be sync'ed with Element Web's own tracking of frecently used emojis in account data?

@stefanceriu stefanceriu added the pr-feature for a new feature label Oct 25, 2024
@stefanceriu stefanceriu merged commit 7a47e37 into develop Oct 25, 2024
7 of 9 checks passed
@stefanceriu stefanceriu deleted the stefan/1934 branch October 25, 2024 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-feature for a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants