This repository was archived by the owner on Aug 6, 2026. It is now read-only.
feat(mobile): show custom base image badge on cloud task detail (port #3492) - #3499
Merged
Merged
Conversation
…3492) Ports the desktop custom base image badge to the React Native app. The task detail header now shows a violet "cube" badge with the custom sandbox base image name when a cloud run used a custom image (directly via custom_image_id or indirectly via its sandbox environment). The sandbox image and environment lists are fetched through the mobile app's authed-query pattern, and only when the latest run is a cloud run that carries a custom_image_id or sandbox_environment_id, so ordinary tasks add no extra network calls. The badge renders nothing when custom images are disabled or the image can't be resolved. Generated-By: PostHog Code Task-Id: 1230821c-af71-4788-b81f-dcaeb6442e2d
|
😎 Merged successfully - details. |
|
React Doctor found no issues in the changed files. 🎉 Reviewed by React Doctor for commit |
tatoalo
approved these changes
Jul 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The desktop/web app shows a badge on the cloud task detail view when a cloud run used a custom sandbox base image (or a sandbox environment tied to a custom image). The mobile app had no equivalent, so mobile users couldn't tell which base image a cloud run used.
Ports #3492 to
apps/mobile.Why: parity with desktop — surface the custom base image on the mobile cloud task detail so it's visible where the other run metadata (PR status, diff stats) lives.
Changes
CustomImageBadgemobile component (RN primitives, consistent with the siblingPrStatusBadge/PrDiffStatsBadge): a small violet cube badge showing the resolved custom image name.useCustomImageNamehook: fetches the sandbox custom-images and environments lists via the app's authed-query pattern and resolves the display name — directly fromcustom_image_id, or by followingsandbox_environment_id→ the environment's image. The queries only fire when the latest run is a cloud run carrying a custom image reference, so ordinary tasks add no network calls. Renders nothing when custom images are disabled or the image can't be resolved.getSandboxCustomImages/getSandboxEnvironmentsto the mobile tasks API layer.How did you test this?
CustomImageBadge.test.tsx(Vitest): covers non-cloud/local runs, cloud runs without a custom image id, resolving via directcustom_image_id, resolving viasandbox_environment_id → environment.custom_image_id, and the unresolvable case. All 5 pass.tsc --noEmit) and ran Biome — clean for the changed files.Automatic notifications
Created with PostHog Code