You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ENG-1608: Add command to create Base view for a node type (#935)
* ENG-1608: Add command to create Base view for a node type
Adds a "Create Base view for node type" command that generates a .base
YAML file filtered by nodeTypeId, with entry points from the command
palette, node type settings, and discourse context panel.
Also refactors NodeTypeModal to accept a generic callback instead of
being hardcoded to createDiscourseNode, enabling reuse across both
the existing node creation flow and the new Base view creation.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Apply suggestions from code review
Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com>
* add documentations
* PR comment
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com>
As your discourse graph grows, you'll want to view and filter nodes by type — for example, seeing all your Claims or all your Questions in one place. Discourse Graphs integrates with Obsidian's [Bases](https://obsidian.md/blog/bases/) feature to create filtered table views for any node type.
9
+
10
+
## What is a Base view?
11
+
12
+
A Base view is a `.base` file that Obsidian renders as a filterable, sortable table. Discourse Graphs can generate these files pre-configured to show only nodes of a specific type, using the `nodeTypeId` frontmatter property as a filter.
13
+
14
+
## Creating a Base view
15
+
16
+
There are three ways to create a Base view for a node type:
Each time you create a Base view, a new `.base` file is created at the root of your vault with the name `{Node Type} Nodes.base` (e.g., `Claim Nodes.base`). If a file with that name already exists, a numbered suffix is added (e.g., `Claim Nodes 1.base`).
48
+
49
+
The generated file contains a table view filtered to show only nodes matching the selected node type. You can then further customize the view in Obsidian — add columns, change sorting, or add additional filters.
50
+
51
+
> **Note:** A new Base file is always created rather than opening an existing one. This ensures you always get a fresh view with the correct filter, even if you've modified a previous Base view.
0 commit comments