# Changelog

All notable changes to the Notepad++ plugin are documented here.

---

## [1.0.0] — 2026-04-22

Initial release.

### Added

#### Core Note Management
- Cloud-based note system with Laravel backend (`plugin_notepads` table)
- Create, edit, delete notes — all scoped to the authenticated user
- Paginated note grid with keyword search by title
- Auto-naming for notes without a title (`Untitled.txt`)

#### Code Editor
- Ace Editor integration with full syntax highlighting
- Five language modes: **Plain Text**, **JavaScript**, **PHP**, **HTML**, **CSS**
- Auto-extension detection: typing a filename like `script.php` switches the language mode automatically
- Three monospace font choices: **Fira Code**, **Ubuntu Mono**, **Source Code Pro**
- Adjustable font size (12px–28px)
- Live word and character count
- Display preferences (font, size, language mode) persisted in browser LocalStorage

#### WhatsApp Integration
- Send note content directly via WhatsApp Gateway
- Multi-device sender support — pick from connected WhatsApp devices
- Contact dropdown for recipient selection from the user's saved contacts
- Modal-based confirmation before sending

#### Gemini AI Assistant
- Dropdown menu with six pre-built AI actions:
  - **Format to WhatsApp** — convert notes into professional WhatsApp messages
  - **Fix Code** — detect and fix bugs in code snippets
  - **Summarize** — generate a summary of the note
  - **Translate to English** — machine translation
  - **Continue Writing** — extend existing text
- AI result preview: apply changes to the editor or copy to clipboard
- Markdown code block auto-cleanup when applying AI suggestions

#### AI API Key Management
- `plugin_notepads_settings` table for per-user AI configuration
- API Key Settings modal accessible from both the notes list and the editor
- API key saved in the database — no `.env` configuration required
- Professional error modal displayed when AI calls fail or API key is missing
- Link to Google AI Studio for key generation

#### Security
- All notes scoped by `user_id` — users can only access their own data
- CSRF token enforced on all state-changing requests
- Validation on create/update: title required, content optional

#### Internationalization
- All UI strings wrapped in `__()` for translation support

## [1.0.1] — 2026-05-05

### Added

Update v.1.0.1
### Added auto-save feature after the first save.
### Added AI chat assistant features, such as apply and copy to editor.
### Added RPM and RPD token count monitor.
### Added MPWA API tester + code snippet.

---

## License

This plugin is licensed under the **MIT License**.
