Skip to content

Conversation

@typelets
Copy link
Owner

@typelets typelets commented Nov 3, 2025

Changes

  • ✅ Add type field filtering to GET /api/notes endpoint
  • ✅ Support querying notes by type (note or diagram)
  • ✅ Add TypeScript type safety for type field in handlers
  • ✅ Add comprehensive test coverage for diagram functionality
  • ✅ Document default behavior in OpenAPI schema

Technical Details

  • The type field defaults to 'note' for backwards compatibility with existing clients
  • The index on type column (already applied in production) enables efficient filtering
  • All validation happens at both the validation layer and OpenAPI schema level

Test Coverage

Added 4 new integration tests:

  1. Default type behavior (creates 'note' when not specified)
  2. Explicit diagram note creation
  3. Filtering notes by type
  4. Updating note type from note to diagram

Backwards Compatibility

Fully backwards compatible - existing API clients will continue to work without changes. Notes created without specifying type will automatically default to 'note'.

@typelets typelets self-assigned this Nov 3, 2025
@typelets typelets merged commit 339033e into main Nov 3, 2025
3 checks passed
@typelets
Copy link
Owner Author

typelets commented Nov 3, 2025

🎉 This PR is included in version 1.12.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants