Repository navigation
feat(native): render saved project icon overrides - #207
Merged
Merged
Conversation
5 tasks done
This was referenced Nov 4, 2026
Open
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.
Native project consumers currently ignore existing server-supplied projectIcon overrides. This ports ProjectFavicon, ProjectMonogram, the inline emoji rendering, projectIdentity and ReceivedProjectIcon behavior into one cached native presentation and renderer. Saved emoji, monogram, legacy monogram and vendored Lucide overrides take precedence over automatic favicons. Unknown future kinds return to automatic rendering; unvendored Lucide names retain their color on the web's folder-code fallback. Missing/failed automatic images use the same name-derived identity.
The renderer is shared by Settings project selection/list/detail, sidebar thread and draft rows, project filters, hover cards, drag previews, selected-thread breadcrumbs and thread context chips. Settings Select gained only an optional icon-content renderer. Icon colors are generated from the web's 18 light/dark classes, with a 14% monogram background; only Rocket was newly vendored. Presentations are rebuilt only when project input changes and pruned to the current shell; the existing bounded image cache remains in place. Receding Lucide/monogram ink uses the same RGB luminance matrix as CSS grayscale and the pinned GPUI image shader, preserving alpha and the normal hover appearance. No timers, service mutations, contracts or provider changes.
ST-PROJECTS stays partial under #185; SB-GROUPING bookkeeping is unchanged. The ledger edit preserves its other cells as requested.
Validation: decoder regression failed before the original fix and passes afterward; focused precedence, legacy/grapheme and Unicode identity cases pass. On the current db6b7fb base, cargo test --workspace passed 1,356 tests and cargo clippy --workspace --all-targets -- -D warnings passed. Theme, 42 parity tests, conformance drift check, scoped Rust formatting, snapshot build and standard native build passed. check:changed was not run: its mapping preflight sends apps/native paths to all repository packages, which is prohibited for this task. Original raw logs remain at /private/tmp/native-185-icons/; fresh review-fix checks and evidence are under /private/tmp/native-185-icons/review-p3/.
Offscreen-only verification used the copied smoke home and immutable project fixtures; no turns, real windows, clipboard actions, server writes or evidence uploads. Inputs and audit outputs have separate paths. The idle sample has no instrumented renders after settling. Local PNG evidence:
The review-fix fixture uses the existing project and draft-workspace fixture flags plus local filter/shelf gestures, without modifying snapshot.rs. Pixel samples change from 196 to 170 for the resting Lucide stroke and 191 to 163 for the resting monogram; the two 32×32 hovered icon patches are byte-identical before/after. Details: /private/tmp/native-185-icons/review-p3/pixel-comparison.json. This visual correction adds no UI unit tests. Inputs are immutable and separate from audit outputs.
Remaining gaps: icon/image pickers, filesystem/OS image selection, draft-menu project settings entry, cross-page scope notice, simultaneous grouping and full logical-group command-palette flow. The broader web dynamic Lucide catalog remains unvendored. GPUI uses centered bold monospace at the SVG's proportional font size and grapheme-based target width, without SVG textLength horizontal stretching; color emoji keep their native color when receding. The static draft breadcrumb/project menu in new_thread.rs belongs to the excluded draft/composer worker area and is untouched; the shared renderer is available to that follow-up. Actual cached favicon textures/error loading, reset RPCs, drag-drop, thread context chips and selected-thread breadcrumbs were not separately exercised at runtime; precedence/reset presentation is covered by pure tests and fixture states. No permission scope was widened.
Built with GPT-6.1 Sol in Codex