# Changelog
All notable changes to this project will be documented in this file.
## [0.2.0] - 2026-03-21
### Added
- **New Tools View (shortcut 6)**: Integrated administrative actions like terminating idle sessions, canceling long-running queries, and resetting statistics with a secure confirmation workflow.
- **New Settings View (shortcut 7)**: Full scrollable access to every PostgreSQL configuration parameter (`pg_settings`) organized by category.
- **Fuzzy Search (shortcut /)**: Real-time subsequence matching for all tables, allowing quick navigation (e.g., searching `mxcon` for `max_connections`).
- **Dynamic Refresh Interval (shortcut r)**: Interactive modal to change monitoring frequency (0.5s to 10s) on the fly.
- **Dynamic Top-N Limit (shortcut n)**: Toggle display limits between 10, 20, 50, 100, or All rows.
- **Vim Motion Support**: Added standard `j` and `k` keys for navigating all tables and session lists.
- **Enhanced Visuals**: Implemented a consistent "Identity-White / Metric-Gray" aesthetic across all views with functional color-coding (Red/Yellow/Green) for critical performance indicators.
- **Blocking Chain Detection**: The Locks view now identifies blocking vs. blocked PIDs and calculates wait durations.
### Fixed
- **Postgres Version Compatibility**: Automatically detect and support different `pg_stat_statements` column names (handling the v12 vs v13+ naming changes).
- **PostgreSQL Connection Reuse**: Refactored background worker to reuse client connections, drastically reducing network and database overhead.
- **Robust DSN Parsing**: Fixed summarization of connection strings containing query parameters or quoted values with spaces.
- **Client IP Formatting**: Correctly extract host addresses from `inet` types without network masks.
- **TUI Navigation**: Standardized row selection and fixed bugs where navigation keys would become non-functional in certain views.
- **Modal Layout**: Redesigned popups to handle massive SQL statements and high-resolution screens without hiding action hints.
### Changed
- **Architectural Refactoring**: Split monolithic files into a clean, modular directory structure (`src/tui/app/` and `src/tui/ui/`) for easier maintenance.
- **Symmetrical Activity Layout**: Reorganized the Activity Summary into a balanced 2x2 grid for better scanability.
- **Restored Unit Tests**: Fully recovered and expanded the unit test suite to 19 tests, covering core logic and data shaping.