Skip to content
Source
Sign inSign up
pingdotgg/t3code

test(swift-ios): use environment-scoped provider catalogs #6130

Mergedsaphid(GitHub profile, opens in a new tab)merged 1 commit intot3code/rebuild-mobile-app-swift fromrefs/pull/6130/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHub

What Changed

  • construct home-thread metadata fixtures with providersByEnvironment
  • keep provider lookup assertions aligned with the environment-scoped production model

Why

The SwiftUI base moved provider discovery away from the deprecated flat providers array, but two metadata tests still populated only that legacy field. They fail against the current production lookup even though the lookup is behaving as designed.

Verification

  • HomeThreadMetadataTests: 5 passed, 0 failed on iOS Simulator
  • git diff --check: passed

Scope

Tests only; no product behavior changes.


Note

Low Risk Test-only fixture updates with no production code or runtime behavior changes.

Overview Updates HomeThreadMetadataTests so FeatureSnapshot fixtures use providersByEnvironment (keyed by environment id, e.g. "device") instead of the flat providers array.

This keeps catalog fallback and row-context provider assertions aligned with production home-thread metadata lookup, which resolves providers per environment. Tests only; no app behavior changes.

Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit d185ff05361a3ee825455df6d4068ccd4c590cec. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).

Note

Update iOS Swift tests to use environment-scoped provider catalogs

Replaces the flat providers array with a providersByEnvironment dictionary keyed by "device" in HomeThreadMetadataTests.swift. Both affected @Test methods are updated to match the new FeatureSnapshot initialization shape.

Macroscope summarized d185ff0.

Delivery: direct Validated against Theo commit: f98cab553546558e28d6e22f3dbe9807ecc3325f Depends on: none Merge order: this PR only Validation status: Mergeable; native/repository checks and current review are green. The unrelated Vercel authorization failure is a maintainer-side gate.

    1. Important

      Review skipped

      Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

      ⚙️ Run configuration

      Configuration used: Repository UI

      Review profile: CHILL

      Plan: Pro Plus

      Run ID: 99c6afda-14d3-42f7-b2b1-9f300bd6ae97

      You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

      Use the checkbox below for a quick retry:

      • 🔍 Trigger review

      Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

      ❤️ Share
      Comment `@coderabbitai help` to get the list of available commands.
    2. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted

    3. Approvability

      Verdict: Approved d185ff0

      Test-only change that updates test fixtures to use a new providersByEnvironment data structure. No production code is affected.

      You can customize Macroscope's approvability policy. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    4. t3-code-bot[bot](GitHub profile, opens in a new tab) approved these changes

      reviewed the environment-scoped provider catalog fixture updates. they align the tests with the production snapshot contract and fix the shared native-test failure without changing production behavior. no blocking issues found.

Sign in to join this conversation.