Skip to content

Rename ai_chat node type to ai-chat (kebab-case convention) #1039

Closed

Description

@malibio

Summary

The ai_chat node type uses snake_case, but NodeSpace's naming convention for node types is kebab-case (e.g., code-block, quote-block, ordered-list, horizontal-line). Rename to ai-chat for consistency.

Files to Update

  • src/lib/services/base-node-decoration.ts — decorator registration and config
  • src/lib/design/icons/registry.ts — icon registration
  • src/lib/components/references/base-node-reference.svelte — icon map and CSS classes
  • src/lib/components/autocomplete-modal.svelte — type config
  • src/tests/services/base-node-decoration.test.ts — all test references
  • Any database records with nodeType: "ai_chat"

Acceptance Criteria

  • All code references updated from ai_chat to ai-chat
  • CSS classes updated (.ns-noderef--ai_chat → .ns-noderef--ai-chat)
  • Tests updated and passing
  • No backward compatibility needed (pre-release, no users)

Activity

  1. malibio commented on Apr 5, 2026

    @malibio
    CollaboratorAuthor

    Baseline: 124 test files passed, 3849 tests passed (34.48s)

  2. self-assigned this
    on Apr 5, 2026
  3. added a commit that references this issue on Apr 5, 2026
    e3c12c3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions