From c49d3d8191f2a2e9c989391beea976d14130ba03 Mon Sep 17 00:00:00 2001
From: LeAnn <97471894+Leanngove@users.noreply.github.com>
Date: Tue, 4 Aug 2026 13:25:33 -0700
Subject: [PATCH] Hide Self-service preview tabs in Edit appearance for Android
apps (#50533)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
**Related issue:** Resolves #44791
# Checklist for submitter
If some of the following don't apply, delete the relevant line.
- [x] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
See [Changes
files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/guides/committing-changes.md#changes-files)
for more information.
## Testing
- [x] Added/updated automated tests
- [x] QA'd all new/changed functionality manually
## Summary
Android apps are always self-service and installed from the Play Store
in the end user's work profile — there's no Fleet self-service web view
for them. The "Edit appearance" modal's Preview section still showed a
"Fleet" / "Self-service" tab pair with a browser-style self-service
preview for Android titles, which doesn't reflect what end users
actually see (#44791).
This PR removes the tab nav for Android software titles in
`EditIconModal` — the Preview section now renders just the Fleet card,
with no tabs and no Self-service preview.
## Test plan
- [x] `yarn test` for `EditIconModal.tests.tsx` (added a test asserting
no tabs/Self-service text render for an `android_apps` source, existing
test confirms tabs still render for non-Android)
- [x] Manually verified in a local dev instance: seeded an Android
software title, opened Actions > Edit appearance, confirmed Preview
renders the Fleet card directly with no tabs
(Recreated from #50530, which accidentally included unrelated commits
from a stale branch base.)
## Summary by CodeRabbit
* **Bug Fixes**
* Removed the misleading Android Self-service preview from the Edit
appearance modal.
* Android app previews now show only the Fleet preview and Version view.
* Other software continues to display both Fleet and Self-service
preview options.
* **Tests**
* Added coverage to verify the correct preview tabs and version display
for Android apps.
---
...droid-edit-appearance-self-service-preview | 1 +
.../EditIconModal/EditIconModal.tests.tsx | 17 ++++++++++
.../EditIconModal/EditIconModal.tsx | 34 +++++++++++--------
3 files changed, 38 insertions(+), 14 deletions(-)
create mode 100644 changes/44791-android-edit-appearance-self-service-preview
diff --git a/changes/44791-android-edit-appearance-self-service-preview b/changes/44791-android-edit-appearance-self-service-preview
new file mode 100644
index 0000000000..93e89855e7
--- /dev/null
+++ b/changes/44791-android-edit-appearance-self-service-preview
@@ -0,0 +1 @@
+- Removed the misleading Self-service preview tab from the "Edit appearance" modal for Android apps. Android apps are installed from the Play Store rather than the Fleet self-service web view and updating its appearance will not change anything in Play Store.
diff --git a/frontend/pages/SoftwarePage/SoftwareTitleDetailsPage/EditIconModal/EditIconModal.tests.tsx b/frontend/pages/SoftwarePage/SoftwareTitleDetailsPage/EditIconModal/EditIconModal.tests.tsx
index 7aa6394be5..ac3de8c7dc 100644
--- a/frontend/pages/SoftwarePage/SoftwareTitleDetailsPage/EditIconModal/EditIconModal.tests.tsx
+++ b/frontend/pages/SoftwarePage/SoftwareTitleDetailsPage/EditIconModal/EditIconModal.tests.tsx
@@ -45,6 +45,23 @@ describe("EditIconModal", () => {
expect(save).toBeInTheDocument();
});
+ it("hides the preview tabs and Self-service view for Android apps", () => {
+ const render = createCustomRenderer({ withBackendMock: true });
+ const ANDROID_PROPS = {
+ ...MOCK_PROPS,
+ previewInfo: {
+ ...MOCK_PROPS.previewInfo,
+ source: "android_apps",
+ },
+ };
+ render(