Skip to content

Add Slash Command Entries for Code/Quote Blocks - #126

Merged
malibio merged 3 commits into
mainfrom
feature/issue-119-slash-commands
Sep 26, 2025
Merged

malibio merged 3 commits into
mainfrom
feature/issue-119-slash-commands

Conversation

@malibio

@malibio malibio commented Sep 26, 2025

Copy link
Copy Markdown
Collaborator

Closes #119

malibio and others added 3 commits September 26, 2025 10:31
- Add comprehensive component architecture guide with templates
- Update frontend architecture documentation with new hierarchy
- Add critical component architecture section to CLAUDE.md
- Establish clear naming conventions: *Node vs *NodeViewer
- Provide templates and examples for future development
- Document plugin registration patterns and file structure

This ensures all future development follows consistent architectural patterns.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
- Add code-block and quote-block commands to textNodePlugin in corePlugins.ts
- Add icon display cases for code-square-alt and quote-square-alt in slash-command-dropdown
- Commands create proper initial content structure with cursor positioning
- Icons reference CSS classes from issue #118

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
#118)

- Add code-block and quote-block slash commands with shortcuts (``` and >)
- Implement real-time rendering with focus/blur state management
- Add visual styling: monospace with background for code, italic with left border for quotes
- Support multi-line content with shift+enter functionality
- Add cursor positioning: between ``` markers for code, after > for quotes
- Include icons: code-square-alt for code blocks, quote-square-alt for quotes
- Fix pattern matching for various newline combinations (```\n```, ```\n\n```)
- Update contentEditableController for block-level markdown processing
- Synchronize pattern detection across base-node.svelte and controller
- Remove language labels from demo code block entries
- Update test expectations for new slash command counts (6→8 total commands)

All 521 tests passing. Ready for review.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@malibio
malibio merged commit 0eb8902 into main Sep 26, 2025
@malibio
malibio deleted the feature/issue-119-slash-commands branch September 26, 2025 11:14
malibio added a commit that referenced this pull request Sep 28, 2025
…commands"

This reverts commit 0eb8902, reversing
changes made to ba7d37a.
mstomar125 added a commit that referenced this pull request Jun 9, 2026
…37) (#1400)

Land the open-core data plane for ADR-037's opt-in restriction: a
Core-protected boolean `restrictedToMembers` on the `collection` schema
(default false = open/organizational). The Pro RLS layer reads
`properties->>'restrictedToMembers'` to gate access (nodespace-sync#124);
core only declares the inert, protected property.

The member_of edge `permission` (admin/modify/readOnly, default modify) is
a free-form property on the native member_of edge — the RLS reads it
directly, so no schema change is needed. Toggling restriction is a normal
node property update and adding a person member with a permission is a
normal member_of relationship create; the Pro-side enforcement flows
(auto-admin, last-admin, onboarding) are nodespace-sync#125/#126.

Depends on #133 (PersonNode, the person-only membership check). Tests +
schema-count asserts updated.

Co-authored-by: Mayank  Tomar <[email protected]>
Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
malibio pushed a commit that referenced this pull request Jun 22, 2026
…37) (#1400)

Land the open-core data plane for ADR-037's opt-in restriction: a
Core-protected boolean `restrictedToMembers` on the `collection` schema
(default false = open/organizational). The Pro RLS layer reads
`properties->>'restrictedToMembers'` to gate access (nodespace-sync#124);
core only declares the inert, protected property.

The member_of edge `permission` (admin/modify/readOnly, default modify) is
a free-form property on the native member_of edge — the RLS reads it
directly, so no schema change is needed. Toggling restriction is a normal
node property update and adding a person member with a permission is a
normal member_of relationship create; the Pro-side enforcement flows
(auto-admin, last-admin, onboarding) are nodespace-sync#125/#126.

Depends on #133 (PersonNode, the person-only membership check). Tests +
schema-count asserts updated.

Co-authored-by: Mayank  Tomar <[email protected]>
Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
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.

Add Slash Command Entries for Code/Quote Blocks

1 participant