feat: add Logseq DB graph compatibility - #36
Open
adyscorpius wants to merge 1 commit into
Open
Conversation
- Upgrade @logseq/libs from 0.0.17 to 0.3.2 for DB API support
- Add supportsDB: true to package.json logseq manifest
- Introduce src/graphMode.ts to hold the runtime isDbGraph flag
- Detect DB mode at startup via checkCurrentIsDbGraph() and register
property schemas (upsertProperty) for all Jira fields
- updateBlockProperties: use upsertBlockProperty per key in DB mode
instead of updateBlock({properties}), which is silently ignored
- getPagePreBlock: return the page entity directly in DB mode (no
pre-block concept); fix null return from getPageBlocksTree and
remove removed isPageBlock option from insertBlock
- getIssuePageByKey: query :plugin.property.logseq-jira/key in DB
mode instead of :block/properties (not populated in DB graphs)
- getIssuePageTypeProperties: use "pagetype" key in DB mode (no
leading dot; dot-prefixed hidden props are a file-mode convention)
- updateJiraIssue / updateJiraIssueOnPaste / getJQLResults: read
block.title in DB mode (block.content deprecated), force
enableOrgMode=false in DB mode (Org Mode unsupported), and write
block properties via upsertBlockProperty rather than inline text
https://claude.ai/code/session_01ShEoWBybnoABk7WaKUtX9W
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
property schemas (upsertProperty) for all Jira fields
instead of updateBlock({properties}), which is silently ignored
pre-block concept); fix null return from getPageBlocksTree and
remove removed isPageBlock option from insertBlock
mode instead of :block/properties (not populated in DB graphs)
leading dot; dot-prefixed hidden props are a file-mode convention)
block.title in DB mode (block.content deprecated), force
enableOrgMode=false in DB mode (Org Mode unsupported), and write
block properties via upsertBlockProperty rather than inline text