# Changelog

All notable changes to the Sticky Notes MCP Server will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.1.2] - 2024-02-18

### Added

- About modal showing server configuration information
  - Web Interface URL
  - WebSocket URL
  - Database location
- Added server configuration endpoint `/api/config`

### Changed

- Improved modal rendering to ensure proper z-index stacking
- Enhanced UI documentation with screenshots

### Fixed

- Fixed modal stacking context issues
- Improved modal overlay visibility

## [1.1.1] - 2024-02-18

### Added

- Support for color values in note creation through MCP create-note tool
- Color hex values are now properly stored and returned in note objects
- Updated Note interface to include color_hex property

### Changed

- Modified create-note tool handler to accept color_hex parameter
- Updated insertNote prepared statement to include color_hex field

### Fixed

- Fixed filter reset behavior when deleting the last note in a conversation or with a specific tag
- Improved timing of filter updates during note deletion operations

## [1.1.0] - 2024-02-15

### Added

- Enhanced WebSocket implementation:
  - Robust reconnection strategy with exponential backoff
  - Message queuing for handling disconnections
  - Real-time note synchronization
  - Improved error handling and connection management
- React-based WebSocket integration:
  - Custom useWebSocket hook
  - Real-time UI updates
  - Connection status management
- Theme support:
  - Light/dark mode toggle
  - Persistent theme preferences
  - Dynamic theme switching
- Advanced UI features:
  - Markdown preview in note editor
  - Bulk actions for notes (delete, color change, export)
  - Enhanced filtering and sorting capabilities
  - Improved pagination controls
- Export functionality:
  - Export single or multiple notes
  - Markdown format support
  - Customizable file naming

### Changed

- Improved WebSocket connection handling
- Enhanced error recovery mechanisms
- Optimized real-time updates
- Refined UI/UX for note management
- Updated theme system for better consistency

### Fixed

- WebSocket reconnection issues
- Theme persistence across sessions
- Note synchronization edge cases
- Export filename handling
- Markdown preview rendering issues

## [1.0.0] - 2024-02-14

### Added

- Client-side pagination with customizable items per page
- Enhanced conversation management:
  - New `/api/conversations` endpoint with metadata
  - Conversation tracking with total notes count
  - First creation and last update timestamps
  - Improved sidebar organization
- Improved tag search functionality:
  - Server-side tag deduplication
  - Combined filtering with conversations
  - Enhanced query performance
- Full markdown support:
  - Live preview in note editor
  - Markdown rendering in note display
  - Export notes as markdown
- Automatic port scanning functionality when configured ports are in use
- Configuration file support with multiple lookup locations
- Hierarchical configuration system (ENV > Config File > Defaults)
- Optional WebSocket support through configuration
- Optional Full-Text Search (FTS) support through configuration
- Database optimizations (WAL mode, indexes, cache settings)
- Color coding support for notes
- Bulk color update operations
- Section-based note organization
- Hierarchical tag system with parent-child relationships
- REST API endpoints for notes, sections, and tags
- MCP tools for note operations
- React-based web UI
- SQLite database with better-sqlite3
- Basic CRUD operations for notes
- Search functionality
- Conversation management
- Database migrations system

### Changed

- Enhanced pagination response format to include total items and pages
- Improved conversation list endpoint with detailed metadata
- Made WebSocket server optional and configurable
- Made Full-Text Search (FTS) optional and configurable
- Improved configuration system with clear precedence
- Enhanced error handling for database operations
- Optimized database queries with prepared statements
- Added script directory to configuration file lookup paths
- Improved configuration loading feedback with detailed logging

### Fixed

- Tag search parameter handling and deduplication
- Port conflict issues with automatic port scanning
- Database connection handling improvements
- WebSocket server cleanup on shutdown
- Configuration file not being found when server is started with absolute path

## [0.1.0] - 2024-02-12

### Added

- Initial release
- Basic MCP server implementation
- Note creation and management
- SQLite database integration
- Web UI interface
- WebSocket support
- REST API endpoints
- Tag system
- Search functionality
