Skip to content

Conversation

@cyndichin
Copy link
Contributor

@cyndichin cyndichin commented Nov 25, 2025

📜 Tickets

Jira ticket
Github issue

💡 Description

This PR replaces two methods that we were using previously to display and delete recent searches, getMostRecentHistoryMetadata and deleteHistoryMetadataOlderThan respectively. We were using these because these were the best existing methods to implement the feature.

However, we recently added some new rust methods that are specific to showing metadata related to search queries and not the entire history metadata. The two new methods are:

🎥 Demos

Simulator.Screen.Recording.-.iPhone.16e.-.2025-11-25.at.18.15.29.mov

Note: To test, ensure that you have the features on in debug menu and you navigate to the recent searches section after tapping on the address bar from a webpage.

📝 Checklist

  • I filled in the ticket numbers and a description of my work
  • I updated the PR name to follow our PR naming guidelines
  • I ensured unit tests pass and wrote tests for new code
  • If working on UI, I checked and implemented accessibility (Dynamic Text and VoiceOver)
  • If adding telemetry, I read the data stewardship requirements and will request a data review
  • If adding or modifying strings, I read the guidelines and will request a string review from l10n
  • If needed, I updated documentation and added comments to complex code

@cyndichin cyndichin marked this pull request as ready for review November 25, 2025 23:14
@cyndichin cyndichin requested a review from a team as a code owner November 25, 2025 23:14
@cyndichin cyndichin requested review from Cramsden and issammani and removed request for Cramsden November 25, 2025 23:14
@mobiletest-ci-bot
Copy link

Messages
📖 Project coverage: 37.96%

💪 Quality guardian

3 tests files modified. You're a champion of test coverage! 🚀

🥇 Perfect PR size

Smaller PRs are easier to review. Thanks for making life easy for reviewers! ✨

💬 Description craftsman

Great PR description! Reviewers salute you 🫡

❌ Per-file test coverage gate

The following changed file(s) are below 35.0% coverage:

File Coverage Required
MozillaRustComponents/Sources/MozillaRustComponentsWrapper/Places/Places.swift 0.0% 35.0%

Client.app: Coverage: 37.05

File Coverage
SearchViewModel.swift 65.65%
RecentSearchProvider.swift 90.74%

libStorage.a: Coverage: 54.93

File Coverage
RustPlaces.swift 65.78%

Generated by 🚫 Danger Swift against 7353b81

Copy link
Collaborator

@issammani issammani left a comment

Choose a reason for hiding this comment

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

Let's gooo 🔥

@cyndichin cyndichin merged commit 20078ed into main Nov 26, 2025
11 checks passed
@cyndichin cyndichin deleted the cc/FXIOS-14282_integrate-new-rust-APIs branch November 26, 2025 11:44
@github-actions
Copy link
Contributor

🚀 PR merged to main, targeting version: 146.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants