fix: openActivityTarget navigates to parent folder and previews files

- resolveActivityTarget uses 'targetId'/'targetPath' for all types
  (note, file, folder) instead of type-specific property names
- openActivityTarget for files: resolves the file node via
  GetNodeDetail, navigates to its parent folder in the Files tab,
  then auto-previews the file if it's a previewable type
- For root-level files (no parent_id): loads root items
- Removed spurious OpenFolder(targetPath) call that silently failed
  because OpenFolder expects a node ID, not a filesystem path
This commit is contained in:
2026-06-03 17:32:18 +08:00
parent 4ec03c849f
commit e30a75c5a0
4 changed files with 26 additions and 12 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long