Skip to content

feat: add Logseq DB graph compatibility - #36

Open
adyscorpius wants to merge 1 commit into
masterfrom
claude/logseq-db-update-whIln
Open

feat: add Logseq DB graph compatibility#36
adyscorpius wants to merge 1 commit into
masterfrom
claude/logseq-db-update-whIln

Conversation

@adyscorpius

@adyscorpius adyscorpius commented Apr 20, 2026

Copy link
Copy Markdown
Owner
  • 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

- 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants