# Changelog

All notable changes to `ngauge-datadash` are documented here.

## [Unreleased]

## [v1.2.0] - 2026-05-23
### Added
- Multi-connection support: name multiple external DB connections, each stored under `params['plugins']['ngauge-datadash']['connections'][$name]`
- Connections index page (`/datadash/config/index`) now lists all named connections in a table with Edit / Models / Delete actions
- Create connection page (`/datadash/config/create`) with full form validation
- Update connection page (`/datadash/config/update`) — name is read-only, all other fields editable
- Delete connection via POST form (with confirmation dialog)
- Generate Models page (`/datadash/config/generate`) — lists all tables in the target database with checkboxes; generates Yii2 ActiveRecord models via Gii into the specified namespace using the Chalvington template
- Each connection bootstrapped as `datadash_{name}` Yii component on module load (replaces single `datadash` component)
- New URL rules: `create`, `update`, `POST delete`, `generate`, `POST do-generate`

## [v1.1.1] - 2026-05-22
### Fixed
- Form submission on config page failed due to URL rules with verb prefix blocking Yii2 reverse routing; config index rule changed to verb-agnostic and all `Url::to()` calls updated to use absolute routes

## [v1.1.0] - 2026-05-14
### Added
- Config page (`/ngauge-datadash/config`) for managing external database DSN (MySQL, PostgreSQL, SQL Server, SQLite)
- Username / password credential fields with optional encryption-at-rest using the backend Security component
- Test Connection action — verifies live PDO credentials and returns server version details
- List Tables action — connects and returns all tables with row counts and sizes (data, index, total MB) per driver
- `datadash` Yii db component auto-registered on bootstrap from saved params, available across all apps as `Yii::$app->get('datadash')`
- Config routes: `GET/POST ngauge-datadash/config`, `POST ngauge-datadash/config/test-connection`, `POST ngauge-datadash/config/list-tables`

## [v1.0.0] - 2026-05-03
### Added
- Initial release — configurable data visualisations, KPI widgets, and business reporting dashboards

[v1.0.0]: https://dev.azure.com/PortalPeopleUK/NGauge_Modules/_git/ngauge-datadash
