=== NextDash - Modern Customer Dashboard ===
Contributors: wenextcoder
Tags: woocommerce, customer dashboard, my account, react, woocommerce dashboard
Requires at least: 5.8
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.1.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Replace WooCommerce’s outdated My Account page with a fast, modern React-powered customer dashboard.

== Description ==

**NextDash** replaces the default WooCommerce My Account page with a modern customer dashboard.

Give your customers a faster, cleaner, and more intuitive account experience — without breaking WooCommerce compatibility or your WordPress theme.

Built with React and modern web technologies, NextDash improves usability, reduces friction, and makes your store feel professional and up to date.

= Live demo =

Visit our [live demo](https://demo.nextdash.io) to see how this plugin works.

Demo login:
* Username: mahbub
* Password: 12345678

= Why NextDash? =

The default WooCommerce My Account page is functional — but outdated.

NextDash modernizes the customer experience with:
* Faster navigation
* Clear visual hierarchy
* Mobile-friendly layouts
* A dashboard customers actually enjoy using

A better account experience leads to:
* Higher customer satisfaction
* Fewer support requests
* Increased repeat purchases

= Free and Premium Features =

= Free Features (included with NextDash) =

* Modern Customer Dashboard - Clean, intuitive interface replacing WooCommerce's default My Account page
* Email-based Login - customers can sign in using their email
* Signup - create a new customer account
* OTP-based Forgot Password - email one-time code, verify OTP, then reset password
* Dashboard Overview - order statistics, recent orders, and account summary at a glance
* Order Management - full order history with status badges, filtering, and pagination
* Order Details - complete order information including items, billing, shipping, and payment details
* Downloads Center - easy access to all downloadable products
* Address Management - edit billing and shipping addresses inline
* Account Settings - update name, email, and password
* Dark Mode Support - light, dark, or system-based theme
* Mobile-First Design - optimized for phones, tablets, and desktops
* Performance - loads only on WooCommerce My Account pages
* Developer Friendly - hooks, filters, and extensibility

= Premium Features (requires [NextDash Premium](https://nextdash.io)) =

* Social Login - Google, Facebook, Apple (Premium feature)
* Subscriptions - built into NextDash Premium, no subscriptions plugin required. Automatic renewals on the customer's saved payment method, free trials, sign-up fees, failed-payment retries, and pause, cancel or renew from the dashboard. Existing WooCommerce Subscriptions data can be imported. (Premium feature)
* Memberships ([WooCommerce Memberships](https://woocommerce.com/products/woocommerce-memberships/)) (Premium feature)
* Bookings ([WooCommerce Bookings](https://woocommerce.com/products/woocommerce-bookings/)) (Premium feature)
* Gift Cards ([WooCommerce Gift Cards](https://woocommerce.com/products/woocommerce-gift-cards/)) (Premium feature)


= 🔌 Compatibility =

* Works with any WordPress theme
* Compatible with WooCommerce Blocks
* Supports WooCommerce HPOS (Custom Order Tables)
* Compatible with YITH WooCommerce Wishlist
* No conflicts with standard WooCommerce extensions

= 📱 Responsive & Accessible =

* Mobile-first responsive layout
* Touch-friendly interface
* Keyboard navigation support
* Screen reader compatible
* WCAG-friendly contrast and structure

= 🚀 Performance =

* Optimized React bundle
* Lazy-loaded components
* Minimal server load
* Only loads on WooCommerce My Account pages

= 🌍 Translations =

Every string in the dashboard is translatable, including the React interface.

Bundled translations:

* English (en_US)
* Spanish (es_ES)
* French (fr_FR)
* Bengali (bn_BD)

Dates and currency automatically follow the site locale. To add your own language, translate `languages/nextdash.pot` with a tool such as Poedit and save it as `nextdash-{locale}.po` / `.mo` in the same folder.

== Installation ==

= Automatic Installation =

1. Log in to your WordPress admin panel
2. Navigate to Plugins → Add New
3. Search for "NextDash"
4. Click "Install Now" and then "Activate"

= Manual Installation =

1. Download the plugin zip file
2. Go to Plugins → Add New → Upload Plugin
3. Upload the zip file and click "Install Now"
4. Activate the plugin

= After Installation =

1. Go to **NextDash** in your WordPress admin
2. Enable NextDash from the settings page
3. Configure your preferences (theme mode, sections, etc.)
4. Visit your WooCommerce My Account page

= Shortcode =
Use this shortcode to display the dashboard anywhere: **[nextdash_dashboard]**


== Source Code ==

**Important Note:**
The files in the `dist/` folder (such as `dist/assets/nextdash-main.js`) are minified and compressed production builds optimized for performance. These files are generated from the original source code using build tools.

**Source Code Availability:**
The WordPress.org plugin submission includes only the compiled production files in the `dist/` folder. The complete, unminified source code (React components, TypeScript files, and CSS) is available in our public GitHub repository for review, study, and contribution.

**GitHub Repository:**
For development, contribution, and access to the original source code, visit our GitHub repository:
https://github.com/wenextcoder/nextdash

The `src/` folder containing all source files is maintained in the GitHub repository and is not included in the WordPress.org plugin zip file.

**Build Tools:**
This plugin uses modern build tools to create optimized production files:
* **Vite** - Build tool and development server
* **npm** - Package manager for dependencies
* **TypeScript** - Type-safe JavaScript
* **Tailwind CSS** - Utility-first CSS framework

**Building from Source:**
To build the plugin from source code:

1. Clone the repository from GitHub: `git clone https://github.com/wenextcoder/nextdash.git`
2. Install Node.js 18+ and npm
3. Navigate to the plugin directory
4. Install dependencies: `npm install`
5. Build for production: `npm run build`
6. Development mode: `npm run dev` (runs Vite dev server)

The source code in the `src/` folder (available on GitHub) follows standard React/TypeScript conventions and is formatted for developer review and modification. The compiled files in `dist/assets/` are generated from this source code using the build tools listed above.

For detailed development instructions, see the README.md file in the GitHub repository.

== Frequently Asked Questions ==

= Will this work with my WordPress theme? =

Yes. NextDash works independently of your theme and only affects the WooCommerce My Account page.

= Does it work on mobile devices? =

Absolutely. NextDash is built mobile-first and works smoothly on phones, tablets, and desktops.

= Do I need coding knowledge? =

No. NextDash works out of the box after activation. Simply enable it from the settings page.

= Will it slow down my site? =

No. NextDash only loads on WooCommerce My Account pages and is optimized for performance.

= Does it support dark mode? =

Yes. Users can choose light, dark, or system-based theme preferences.

= Is it translation ready? =

Yes. All strings are internationalized and a .pot file is included.

= Is NextDash compatible with Wishlist? =

Yes. Wishlist functionality integrates YITH WooCommerce Wishlist.

== Screenshots ==

1. Dashboard Overview – Order totals, lifetime spend and recent orders at a glance
2. Order History – Full order list with status badges, search and pagination
3. Downloads – Digital purchases ready to re-download
4. Addresses – Edit billing and shipping addresses in place
5. Account Details – Update personal details and password
6. Wishlist – Saved products with prices, supporting YITH and TI WooCommerce Wishlist
7. Login – Branded sign-in that replaces the default WooCommerce form
8. Registration – Create an account without the WordPress admin look
9. Forgot Password – Email one-time code, verify, then reset
10. Subscription Plans – Subscribe and save options on the product page (NextDash Premium)
11. Subscriptions – Status, next payment and recurring total (NextDash Premium)
12. Subscription Details – Renewal history, payment method, pause or cancel (NextDash Premium)
13. Memberships – Active plans and what each one unlocks (NextDash Premium)
14. Membership Details – Dates, status and the order that granted access (NextDash Premium)
15. Bookings – Upcoming appointments alongside orders (NextDash Premium)
16. Booking Details – Time, resource and add to calendar (NextDash Premium)
17. Gift Cards – Balance and code, ready to copy at checkout (NextDash Premium)
18. Gift Card Details – Full redemption history per card (NextDash Premium)

== Changelog ==

= 1.1.0 - 2026-08-16 =
* Added TI WooCommerce Wishlist support alongside YITH - whichever is active is detected automatically
* Added an Addons screen listing every NextDash module and its status
* Added Spanish, and completed the French and Bengali translations
* Fixed a fatal error on every front-end page when WooCommerce was deactivated or deleted
* Fixed removing a wishlist item failing on YITH WooCommerce Wishlist 4.0 and later
* Fixed Total Orders and Total Spent on the overview counting only the ten most recent orders
* Fixed the sidebar logo detaching while scrolling the dashboard
* Hardened the password reset flow against brute-force and user enumeration
* Assets are now cache-busted per file, so updates are not served from a stale browser cache

= 1.0.1 - 2026-03-19 =
* Added email-based login, signup, and OTP-based forgot password flow (send code, verify OTP, reset password)
* Added Premium features support: Subscriptions, Memberships, Bookings, and Gift Cards (via NextDash Premium)
* Fixed various issues and improved stability (dashboard routing, settings validation, and WordPress coding-standard fixes)

= 1.0.0 - 2026-02-14 =
* Initial release
* React-based WooCommerce customer dashboard
* Order management and order details
* Downloadable products section
* Address management (billing and shipping)
* Account details editing
* Dark mode support


== Upgrade Notice ==
= 1.1.0 =
Fixes a fatal error that broke the whole site when WooCommerce was deactivated. Update recommended for every install.

= 1.0.0 =
Initial release of NextDash. Upgrade WooCommerce My Account with a modern customer dashboard.

== Privacy Policy ==

NextDash does not:
* Collect any user data
* Track user behavior
* Make external API calls
* Store data outside your WordPress installation
* Use cookies beyond standard WordPress authentication

All data remains on your server and follows WordPress and WooCommerce privacy standards.
