enhance: importer displays one notification about ignored files

rather than one notification per file. Also ignore pdf highlight pages
as user graphs shouldn't fail hard on features that aren't imported yet.
This allowed the user graph in
https://github.com/logseq/db-test/issues/191 to import without errors
This commit is contained in:
Gabriel Horner
2025-01-13 11:44:02 -05:00
parent c90ab6c090
commit 1ab621069d
5 changed files with 22 additions and 4 deletions

View File

@@ -284,6 +284,13 @@
(log/info :org-files (mapv :path org-files))
(notification/show! (str "Imported " (count org-files) " org file(s) as markdown. Support for org files will be added later.")
:info false))
(when-let [ignored-files (seq @(:ignored-files import-state))]
(notification/show! (str "Import ignored " (count ignored-files) " "
(if (= 1 (count ignored-files)) "file" "files")
". See the javascript console for more details.")
:info false)
(log/error :import-ignored-files {:msg (str "Import ignored " (count ignored-files) " file(s)")})
(pprint/pprint ignored-files))
(when-let [ignored-props (seq @(:ignored-properties import-state))]
(notification/show!
[:.mb-2