Skip to content

Register project as a built-in frontend node type - #1774

Merged
mstomar125 merged 1 commit into
mainfrom
issue-1754-register-project-frontend-type
Jul 28, 2026
Merged

mstomar125 merged 1 commit into
mainfrom
issue-1754-register-project-frontend-type

Conversation

@mstomar125

Copy link
Copy Markdown
Contributor

Summary

core#134 (merged) added project as 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' to CORE_NODE_TYPES → isCustomSchemaType('project') is now false.
  • icons/registry.ts: register a project icon — the shared CircleIcon glyph (as date/entity/user do) with its own --node-project color var (same 200 40% 45% fallback as entity, so no app.css change is needed), hasRingEffect: true.
  • stores/schemas.svelte.ts: add 'project' to SIDENAV_CORE_TYPES so a core project surfaces in the sidenav.

Verified no label map or type switch needs a project arm (humanization is dynamic; switches key off NodeType = string with a default arm).

Tests

+5 tests (predicates, icon registry, sidenav filter). bun run test = 4096 pass; svelte-check 0 errors; lint/format clean.

Closes #1754.

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]>
@mstomar125
mstomar125 merged commit 35db68b into main Jul 28, 2026
2 checks passed
@mstomar125
mstomar125 deleted the issue-1754-register-project-frontend-type branch July 28, 2026 13:42
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.

Frontend: register project as a built-in node type (predicates, icon, sidenav)

1 participant