Repository navigation
fix(ui): preserve custom favicons across navigation - #48318
Open
tanishqbaweja wants to merge 2 commits into
Open
tanishqbaweja wants to merge 2 commits into
tanishqbaweja wants to merge 2 commits into
Conversation
tanishqbaweja
marked this pull request as ready for review
October 25, 2026 15:16
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This branch has not been deployed
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Saving a custom favicon currently works until dashboard navigation restores the default browser-tab icon. Keep the selected icon across navigation and cover saving, reloading and navigation with a browser regression
Details
TLDR
Problem this solves:
How it solves it:
Intentional product change: Saved custom favicons remain visible after dashboard navigation
App Router restores icon metadata after UI Theme has applied the custom URL. The app-directory favicon also injects a competing root URL that returns 404 behind the proxy. Rendering the fallback link from the persistent root layout prevents navigation from replacing the saved selection
User Flow
Before, opening Home restores the default icon
http://127.0.0.1:41475/ui/ui-theme/After, opening Home keeps the chosen icon
http://127.0.0.1:41475/ui/ui-theme/Relevant issues
Fixes #34916
Earlier PR #34920 investigated the competing app-directory icon and closed unmerged. Current main also replaces the theme's selected URL during navigation, which the new regression covers
Pre-Submission checklist
The new Playwright regression fails on unchanged main and passes on the final production export, one test in 5.6 seconds. Five affected frontend files pass, 34 tests covering theme settings, dashboard layout and its integration, chat layout and connect layout. Three existing backend favicon tests also pass against the unchanged backend
Production build and typecheck, changed-file Prettier, full CI ESLint, lint budgets, knip and
git diff --checkpass. ESLint reports zero errors and 3349 existing warnings. The default E2E typecheck has two existingPromise.withResolverserrors on both main and this branch. It passes with--lib ES2024,DOM,DOM.IterableAll four required CI gates pass, including unit tests, lint, smoke tests and cost-map validation. The coverage job also passes. Automated code reviews have not been posted, so that checklist item remains unverified
The OSV scan reports the same three advisories as unchanged main, two for filelock 3.32.7 and one for the development dependency @azure/msal-node 6.0.1. This PR changes no dependencies or lockfiles. The separate proposal #48302 tracks that scan failure
Screenshots / Proof of Fix
Both revisions ran as production dashboard exports served by the real proxy and PostgreSQL. The backend stayed at the before revision. Headed Chromium used 1440x900 and 390x844 page viewports, with touch emulation on the latter. Window screenshots and recordings include the browser tab
The included local image server serves
http://127.0.0.1:51477/favicon.pngandfavicon-alt.png. No browser requests were intercepted, and this settings workflow requires no LLM inference. The evidence includes images, the server, driver, raw screenshots and reportsBefore (dddbaa8)
Desktop
Desktop recording
Phone
Phone recording
After (7975e11)
Desktop
Desktop recording
Phone
Phone recording
Type
Bug Fix
Caveats
Low
QA runbook
tests/e2e/ui/tests/migration/migratedPages.spec.ts, keeps the configured favicon after navigating from UI Theme to Home/ui/next.svgURL, then save