Repository navigation
Register project as a built-in frontend node type - #1774
Merged
Merged
Conversation
core#134 added project as a backend core type; register it on the frontend in the three spots the #134 review named so a project is treated as a built-in rather than a custom schema type: add 'project' to CORE_NODE_TYPES (so isCustomSchemaType is false), an icon-registry entry (the shared circle glyph with its own --node-project color var, mirroring date/entity), and SIDENAV_CORE_TYPES so it surfaces in the sidenav. Scoped to nav/icon — no viewer or behavior mirror. Adds 5 tests. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
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.
Summary
core#134(merged) addedprojectas a backend core node type +ProjectNodeBehavior. This registers it as a built-in on the frontend in the three spots the #134 review named, so a project gets built-in treatment (icon + nav) instead of being handled as a custom UUID-keyed schema type.Change (scoped to nav/icon — no viewer, no behavior mirror)
node-type-predicates.ts: add'project'toCORE_NODE_TYPES→isCustomSchemaType('project')is nowfalse.icons/registry.ts: register aprojecticon — the sharedCircleIconglyph (asdate/entity/userdo) with its own--node-projectcolor var (same200 40% 45%fallback asentity, so noapp.csschange is needed),hasRingEffect: true.stores/schemas.svelte.ts: add'project'toSIDENAV_CORE_TYPESso a core project surfaces in the sidenav.Verified no label map or type switch needs a
projectarm (humanization is dynamic; switches key offNodeType = stringwith adefaultarm).Tests
+5 tests (predicates, icon registry, sidenav filter).
bun run test= 4096 pass;svelte-check0 errors; lint/format clean.Closes #1754.