Skip to content

Conversation

@tonyespinoza1
Copy link
Contributor

@tonyespinoza1 tonyespinoza1 commented Dec 9, 2025

Summary

  • Adds a simple example pattern showing how to use navigateTo() to create new instances of a pattern dynamically
  • Pattern has a text field and button that creates a new instance of itself with a custom name
  • Demonstrates using Cell.of() for local state and handlers for navigation

Test plan

  • Deploy to a space using ct charm new
  • Enter text and click the button
  • Verify navigation to new charm instance with the entered name

🤖 Generated with Claude Code


Summary by cubic

Adds a simple nav-test pattern that demonstrates self-instantiation and navigation with navigateTo(). Users enter a name and open a new instance with that name.

  • New Features
    • Added NavTestPattern in packages/patterns/nav-test.tsx
    • Text input bound to Cell.of() for local state
    • createAndNavigate handler creates a new instance and calls navigateTo()
    • Title uses NAME with str to include the current label

Written for commit 615c034. Summary will update automatically on new commits.

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Simple example pattern showing:
- Text field with bidirectional binding using Cell.of()
- Button with handler that creates new instance of itself
- Uses navigateTo() to navigate to the new charm with custom name

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

Co-Authored-By: Claude Opus 4.5 <[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.

2 participants