Skip to content

ENG-519 Make human-readable labels for node ids - #1271

Open
maparent wants to merge 10 commits into
mainfrom
eng-519-make-human-readable-labels-for-node-ids
Open

ENG-519 Make human-readable labels for node ids#1271
maparent wants to merge 10 commits into
mainfrom
eng-519-make-human-readable-labels-for-node-ids

Conversation

@maparent

@maparent maparent commented Jul 30, 2026

Copy link
Copy Markdown
Collaborator

https://linear.app/discourse-graphs/issue/ENG-519/make-human-readable-labels-for-node-ids

https://www.loom.com/share/e8b03f27c6a947fbaea0ebf416a0981b

Since the loom, I extracted the MetadataTypeManager from obsidian-types. I also unified other unofficial aspects in the obsidianUnofficialTypes.ts, and refactored a few files to use that instead of ad-hoc.


Open in Devin Review

@linear-code

linear-code Bot commented Jul 30, 2026

Copy link
Copy Markdown

ENG-519

@supabase

supabase Bot commented Jul 30, 2026

Copy link
Copy Markdown

This pull request has been ignored for the connected project zytfjzqyijgagqxrzbmz because there are no changes detected in packages/database/supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@vercel

vercel Bot commented Jul 30, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
discourse-graph Skipped Skipped Aug 10, 2026 8:31pm

Request Review

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 3 potential issues.

View 2 additional findings in Devin Review.

Open in Devin Review

Comment thread apps/obsidian/src/components/nodeTypeIdPropertyWidget.ts Outdated
Comment thread apps/obsidian/src/utils/nodeTypeIdPropertyWidget.ts Outdated
Comment thread apps/obsidian/src/components/nodeTypeIdPropertyWidget.ts
@maparent
maparent marked this pull request as draft July 30, 2026 21:02
@maparent
maparent force-pushed the eng-519-make-human-readable-labels-for-node-ids branch from b761a64 to 4956cbc Compare July 30, 2026 22:17
@maparent
maparent force-pushed the eng-519-make-human-readable-labels-for-node-ids branch from 4956cbc to 974bfa0 Compare August 1, 2026 16:36
@maparent
maparent force-pushed the eng-519-make-human-readable-labels-for-node-ids branch from 974bfa0 to 24a2c92 Compare August 3, 2026 20:53
@maparent
maparent force-pushed the eng-519-make-human-readable-labels-for-node-ids branch from 24a2c92 to bb47db8 Compare August 3, 2026 20:59
@maparent
maparent force-pushed the eng-519-make-human-readable-labels-for-node-ids branch from 1e10a90 to 422ca86 Compare August 4, 2026 03:11
@maparent
maparent force-pushed the eng-519-make-human-readable-labels-for-node-ids branch from 422ca86 to e599ea4 Compare August 4, 2026 03:13
@maparent
maparent requested a review from mdroidian August 4, 2026 03:15
@maparent
maparent marked this pull request as ready for review August 4, 2026 10:49
@graphite-app

graphite-app Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

PR size/scope check

This PR is over our review-size guideline.

  • Recommended: ~200 lines changed
  • Acceptable limit: up to 400 lines when well-scoped/self-contained
  • Preferred file count: fewer than 5 files

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:

  • What single problem this PR solves
  • Why the files/changes are coupled

Comment thread apps/obsidian/package.json Outdated
@maparent
maparent force-pushed the eng-519-make-human-readable-labels-for-node-ids branch from e599ea4 to fd3f363 Compare August 5, 2026 12:25
Comment thread apps/obsidian/src/utils/nodeTypeIdPropertyWidget.ts Outdated

Copy link
Copy Markdown
Member

@codex review

Copy link
Copy Markdown
Member

@trangdoan982 would you mind reviewing this?

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 08e80f82b6

ℹ️ 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".

Comment thread apps/obsidian/src/components/nodeTypeIdPropertyWidget.ts Outdated
Comment thread apps/obsidian/src/components/nodeTypeIdPropertyWidget.ts Outdated
maparent and others added 2 commits August 10, 2026 07:49
registerNodeTypeIdPropertyWidget previously overwrote any pre-existing
widget assignment for nodeTypeId without saving it, and unload always
called unsetType, silently discarding the user's prior property-type
configuration. Capture the previous assignment before setType and
restore it on unload instead.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
const nodeType = getNodeTypeById(plugin, nodeTypeId);

const el = containerEl.createSpan({
cls: "dg-node-type-id-value",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

stale class

Comment thread apps/obsidian/src/utils/obsidianUnofficialTypes.ts
@@ -0,0 +1,102 @@
import type {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: fileName in components should be CamelCase

@trangdoan982 trangdoan982 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mostly nit

Comment thread apps/obsidian/src/utils/obsidianUnofficialTypes.ts Outdated
Comment thread apps/obsidian/src/components/nodeTypeIdPropertyWidget.ts Outdated
Comment thread apps/obsidian/src/utils/obsidianUnofficialTypes.ts
@trangdoan982

Copy link
Copy Markdown
Member

@maparent can you hold off on merging to main? i'm experiencing some bugs with the obsidian-main.yaml workflow that I need to fix in ENG-2099: Test Obsidian Linear release pipeline first. Alternatively to unblock, upon merge, you can stop that github action

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.

3 participants