Commit graph

12 commits

Author SHA1 Message Date
dial481
fcda5142c3 Revert "Revert package-lock.json to upstream state (not our change to make)"
This reverts commit 503211d706.
2026-04-13 20:10:52 +00:00
dial481
503211d706 Revert package-lock.json to upstream state (not our change to make) 2026-04-13 20:08:18 +00:00
dial481
77d91c4e85 Fix Dataview API load-order bug — plugin was dead on arrival
Both src/main.ts and src/linkManager.ts called getAPI() as class
field initializers. Class field initializers run at construction
time, before any lifecycle method. If Dataview loads after this
plugin (which is common), getAPI() returns null, onload() checks
this.api, finds null, prints "Dataview plugin is not available",
and returns. Plugin is dead. Load order doesn't matter because
the bug is in construction, not in load sequence.

Fix:
- src/main.ts line 70: api field initialized to null instead of
  calling getAPI() at construction
- src/main.ts onload(): tries getAPI() first. If null, registers
  for the dataview:api-ready event and initializes when Dataview
  is ready. Event handlers moved to initEventHandlers() so they
  can be called from either path.
- src/linkManager.ts line 11: api field initialized to null. Gets
  set from main.ts after Dataview is ready.
2026-04-13 19:39:36 +00:00
Kidan Nelson
e933691fb9 Link name opacity change 2024-05-05 13:27:17 -04:00
Kidan Nelson
d1491962d0 Just updated versioning 2024-05-05 12:17:12 -04:00
Kidan Nelson
cd44cb62b4 Only draw for new metadata once dataview indexing is finished.
Fixes #12
2024-01-16 13:37:06 -05:00
natefrisch01
077e87c444 Removed more console.logs. 2024-01-12 10:27:03 -05:00
Kidan Nelson
f6a1f8b802 Fixed folders for markdown links 2024-01-10 16:08:54 -05:00
Kidan Nelson
f6453f4404 Store links in link-text map as CustomLink and not a string. 2024-01-10 07:54:30 -05:00
Kidan Nelson
96da729e89 Now adds text above links in global graph view, and added side ribbon button for choosing colors. 2024-01-08 13:41:01 -05:00
natefrisch01
47936cf354 Added default categorical color to keys as a pair. 2024-01-05 21:23:32 -05:00
Kidan Nelson
83364bac24 Added DataView 2024-01-05 13:46:28 -05:00