# Changelog

## [1.0.1] - 2025-05-19

### Added
- Added TopSMS Analytics functionality.
- Added full Stripe integration.

### Changed
- Added website (home) url when making TopSMS request to send SMS.

## [1.0.2] - 2025-05-28

### Added
- Added publicly documented resource for your the source files in the README.txt.
- Added documentation on the use of a 3rd Party / external service (Supabase services).

### Fixed
- Replace direct echo output with WordPress's `wp_add_inline_style()` and `wp_add_inline_script()` functions for inline styles and scripts.
- Prefixed all functions, classes, constants, namespaces, and option names with unique identifiers.

## [1.0.3] - 2025-05-29

### Added
- Documented the integration and usage of external third-party services (TopSMS API).
- Added full source code, including **uncompiled React source code**.

### Fixed
- Move the CSS rules for hiding the WordPress admin sidebar and header from inline styles to the `topsms-admin.css` file for the setup page.

## [1.0.4] - 2025-06-02

### Added
- Added a link for the 'Request a feature' banner.

### Fixed
- Fixed timeout error when making request to TopSMS API.
- Removed unnecessary text from the Registration page.

## [1.0.5] - 2025-06-02

### Fixed
- Fixed the WooCommerce HPOS incompatibility issue.

## [1.0.6] - 2025-06-02

### Fixed
- Moved the custom CSS snippet for Setup pages (Remove the admin sidebar and header) to another custom CSS file in the `admin/css` folder to prevent overwritten when compiling source code.

## [1.0.7] - 2025-06-03

### Fixed
- Changed README.txt to readme.txt.
- Added the `Tested up to` header to the main plugin file.

## [1.0.8] - 2025-09-04

### Added
- Added a function `check_user_balance()` to check user SMS balance before sending SMS. The function is called before sending SMS when order status changed, or when the low balance alert message is sent.
- When sending an SMS, the sender name is fetched from the API. The value is saved to the options for further use.

### Changed
- Highlighted the important note in the admin settings page, under the Top Up Your Balance section. 

## [2.0.0] - 2025-14-10

### Added
- Added Bulk SMS functionality. Users can now send or schedule bulk SMS campaigns to the contacts in their selected lists.
- Added the Contacts page where users can view all WooCommerce customers and filter them by state, city, postcode, total number of orders, total amount spent, and SMS subscription status. Filters can also be saved as segments for future campaigns.
- Added the Campaigns page where users can view all sent, scheduled, cancelled, and draft campaigns, with filtering by status. Scheduled campaigns can also be cancelled via the table actions column.

### Changed
- Changed the logic to allow users to configure order status automation details even when SMS notifications for order statuses are disabled.

### Fixed
- Fixed the Topup amount in the Settings page.

## [2.0.1] - 2025-14-10

### Fixed
- Added templates content for Bulk SMS.