ENG-1749: Fix Obsidian community plugin automated review findings#1103
Conversation
PR size/scope checkThis PR is over our review-size guideline.
Please split this into smaller PRs unless there is a clear reason the changes need to land together. If keeping it as one PR, please add a brief justification covering:
|
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
…tion[bot]@users.noreply.github.com> format file to pass ci check
e0c340a to
f439a97
Compare
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 652d76ad1e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Hide imported relation type IDs that do not match static CSS prefixes, and declare app.setting in obsidian-unofficial.d.ts. Co-authored-by: Cursor <cursoragent@cursor.com>
…-latest-release-to-get
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
Relations now live in relations.json, so static CSS prefix selectors are sufficient. Co-authored-by: Cursor <cursoragent@cursor.com>
https://www.loom.com/share/50b74ac8385a495d9fd4ca27c5126954
Passed the check on a mirroring branch: https://community.obsidian.md/account/plugins/discourse-graphs
Summary
Addresses Obsidian automated review failures for the Discourse Graph Obsidian plugin (v1.3.0 review): ESLint directive hygiene, plugin lifecycle/CSS rules, inline style assignments, and Obsidian DOM APIs (
activeDocument,createSpan/createDiv/createEl).Changes are split across five commits aligned with the store-review fix buckets (directives → lifecycle/CSS → inline styles → DOM helpers → follow-up guideline fixes).
Commits
I structure the PR so that you can view groups of errors that were addressed based on each PR. there are follow-up patches afterwards, but mostly each commit handles one bucket of errors.
eslint-directiveseslint-disable/eslint-enablecommentscb9f6279address eslint-directive errorslifecycle-cssstyles.css+ body class; removedetachLeavesOfTypeon unloadeb9733bdaddress bucket 2: add style and detach leafinline-stylessetCssProps)100dfdc0fix(obsidian): replace inline styles with CSS classes and setCssPropsdom-helpersactiveDocument; ObsidiancreateSpan/createDiv/createElfd321266fix(obsidian): use Obsidian DOM helpers and activeDocument07d2db1bSmoke tests
Plugin lifecycle and CSS architecture
https://www.loom.com/share/35f64880b62c480eb3638a6f48b6491b
Inline styles → CSS classes / setCssProps
https://www.loom.com/share/8d75238f08454e668f0192679db3e3e2
Obsidian DOM helpers and activeDocument
https://www.loom.com/share/b7c844ff2f644840b90bfd72b7896713
Note
Obsidian store-review tooling (
eslint-plugin-obsidianmd,lint:obsidian,store-reviewCLI) exists locally on the worktree but is NOT included in this PR. It's in a follow-up ticket ENG-1832: Add Obsidian eslint to the projectMade with Cursor