mirror of
https://github.com/Dasemu/Synapse.git
synced 2026-11-26 15:26:17 +00:00
fix(app): type icon cache refreshes on reload and reaches the tree view
loadTypeIcons logs failures, only notifies on change and bumps iconsVersion; every generation bump reloads it. The tree re-resolves label icons when iconsVersion changes, without re-running the layout. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
1a8bca5deb
commit
8a0fdc7610
5 files changed
+136
-17
No files matched your search
+4
-3
@@ -151,9 +151,10 @@ Both are plain names with no page, shown as one row of pills under the title.
|
||||
shown before the names of pages of that type: page title, All pages, quick switcher,
|
||||
recents, tabs, hub members, tag view (also its title when the tag is a type), linked
|
||||
references, related pages, the type pill and picker, and the tree view labels. Never in the
|
||||
network graph. `AppState.typeIcons` caches type → emoji (`loadTypeIcons`, at start and
|
||||
after edits); list DTOs carry `pageType` and `TypeIcon` (`widgets/type_icon.dart`) looks
|
||||
it up.
|
||||
network graph. `AppState.typeIcons` caches type → emoji (`loadTypeIcons`: at start, after
|
||||
edits and on every view reload, so synced or restored changes show; `iconsVersion` makes
|
||||
the tree view redraw its labels without a new layout); list DTOs carry `pageType` and
|
||||
`TypeIcon` (`widgets/type_icon.dart`) looks it up.
|
||||
- **Tags & types view** (sidebar, under All pages; also a tab route): "Types" lists every type
|
||||
with its emoji, page count and seeded suggestions; the emoji button opens a picker (curated
|
||||
grid by category, a field to paste any single emoji, "Remove emoji"); "New type" creates a
|
||||
|
||||
Reference in new issue
Block a user