Skip to content

feat(native): add project icon chooser - #210

Merged
rynfar merged 1 commit into
nativefrom
nw/185-icon-picker
Nov 4, 2026
Merged

rynfar merged 1 commit into
nativefrom
nw/185-icon-picker

Conversation

@rynfar

@rynfar rynfar commented Nov 4, 2026

Copy link
Copy Markdown
Owner

Settings → Projects only offered Reset for project icons. This ports the web Choose icon dialog with icon/color, emoji and monogram modes, fresh drafts on every opening, bounded search, previews, Unicode grapheme extraction, normalized monogram validation, Cancel/Escape, focus trapping and restoration. Save clears faviconPath and updates the captured group members through the existing permission-checked project.update path. Reset remains available, including scratch-project defaults.

The chooser offers the 170 Lucide names whose real glyphs native already ships. Search is capped at 60 results; unsupported saved names are preserved and identified explicitly. Icon saves keep their own busy state, recheck destination/member paths/permissions between writes, and cannot clear a newer view's state after it closes.

ST-PROJECTS remains partial, and #185 remains open. Remaining gaps: the full web Lucide catalog, image/file picker, draft-menu entry and cross-page project-scope notice. SB-GROUPING and every other ledger row are unchanged. Web, Electron, mobile, contracts and server behavior are unchanged; this slice is native Settings only.

Validation on native base cf0ce8a7aab67a73bd326c7d51e2c266e08e2360:

  • Strict workspace Clippy (--all-targets -- -D warnings), 1,368 workspace tests, theme, parity and conformance passed.
  • Normal and snapshot builds passed. Scoped rustfmt for the new picker modules, ledger formatting and diff whitespace checks passed. No repository-wide check:changed fallback.
  • Thirteen fresh offscreen captures cover all modes, keyboard selection, invalid Save, Cancel/reopen, Escape restoration, focus wrapping and 20px font scaling. Harmless command spies verified normalized monograms, complete ZWJ emoji, and Save/Reset payloads for both captured members; they return before RPC.
  • Live mutation persistence, reduced write grants and remote/relay behavior were not exercised. Permission/removal/destination guards are covered in pure core tests. Existing native: investigate missing cached text in offscreen captures #202 intermittent unrelated static glyph loss remains visible in some captures.

Local evidence only; no uploads or committed screenshot assets:

  • Before: /private/tmp/native-factory-2f5f764a/evidence-207-merged/detail-dark.png — prior feat(native): render saved project icon overrides #207 accepted capture at 8408b40e3435bcc68a55232cec960116b89ecf49, explicitly an older baseline.
  • After: /private/tmp/native-factory-2f5f764a/185-picker/finalcf0/after-settings-dark.png
  • Icons: /private/tmp/native-factory-2f5f764a/185-picker/finalcf0/chooser-icons-dark.png
  • Emoji: /private/tmp/native-factory-2f5f764a/185-picker/finalcf0/chooser-emoji-light.png
  • Monogram: /private/tmp/native-factory-2f5f764a/185-picker/finalcf0/chooser-monogram-dark.png
  • Font scaling: /private/tmp/native-factory-2f5f764a/185-picker/finalcf0/large-monogram.png
  • Exact source, binary, command, log and PNG hashes: /private/tmp/native-factory-2f5f764a/185-picker/finalcf0/manifest.json. Earlier 15ae checks/captures are retained separately under prior15ae/.

Verification incident: before checking feature provenance, the copied normal binary was accidentally invoked once with snapshot flags (owned session 47727, observed PID 17372). It opened the normal app; Ctrl-C stopped and joined that owned session with exit 130. It used the copied smoke14658 home, with no UI interaction or intentional server writes. All subsequent executions used an explicitly built private snapshot binary with a verified hash. Setup and the single APFS target clone joined before any Cargo command.

Built with GPT-6.1 Sol in Codex

@rynfar
rynfar merged commit 5612636 into native Nov 4, 2026
@rynfar rynfar mentioned this pull request Nov 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant