feat(core): a page's direct hub is an implicit tag

Members of a hub are indexed under the hub's title in page_tags, tag_catalog and the
graph tag nodes, merged with a same-name type or tag. Hub rename, delete and
membership changes re-index the derived index (no ops). Schema v7 rebuilds it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
dasemuandClaude Opus 5.5 committed 2026-10-26 03:52:04 +01:00
1 parent 3585ce67af
commit 6f483ce763
10 files changed
+273 -77

No files matched your search

+1 -1
View File
@@ -199,7 +199,7 @@ class NetworkCanvasState extends State<NetworkCanvas>
? -1
: (() {
final i = g.tags.indexOf(n.primaryTag!);
return i < 10 ? i : -1;
return i >= 0 && i < 10 ? i : -1;
})(),
ColorBy.hub =>
n.homeHub == null