Patron Shopping List
===================

What it does
------------
- In patron crafting orders, Left Click the small + button on a required reagent you need to supply.
- Shift + Right Click on the reagent itself is still supported as a fallback.
- The addon adds that reagent and quantity to a saved shopping list.
- The shopping-list window now opens when you add a reagent, so you can immediately see what is in the list.
- Patron order required reagent slots get a small + button so you do not have to rely only on modified right-click hooks.
- A "Patron List" button is added to the Crafting Orders list view and to the Auction House.
- At the Auction House, click Search on a row, or Search All to run through the whole list.
- The list keeps showing how many of each reagent you still need.

Install
-------
1. Unzip the folder "PatronShoppingList" into:
   World of Warcraft\_retail_\Interface\AddOns\
2. Restart WoW or type /reload
3. Enable "Patron Shopping List" in the AddOns list if needed.

Usage
-----
- Open a patron order in the professions crafting order window.
- Left Click the small + button on any required reagent the patron did NOT provide.
- Shift + Right Click on the reagent should also work.
- The shopping-list window will open and show the item plus needed amount.
- Open the Auction House.
- Click the "Patron List" button near the top-right corner if the window is not already open.
- Press Search on an item, or Search All to queue the whole list.

Slash commands
--------------
/psl        - Toggle the addon window
/psl show   - Show the addon window
/psl hide   - Hide the addon window
/psl clear  - Clear the shopping list
/psl debug  - Toggle debug chat output
/psldebug on - Enable debug chat output
/psldebug off - Disable debug chat output
/psldebugon  - Enable debug chat output
/psldebugoff - Disable debug chat output

Notes
-----
- The addon is built for retail / Midnight-era WoW APIs.
- The auction-house quantity field is still best effort, because Blizzard changes that buy UI over time.
- The shopping-list window is the reliable source of truth for needed counts.

- In the professions window, the "Patron List" button is intended to show on the Crafting Orders list page and stay out of the detailed order view.


Version 1.1.3
- Fixed invisible Patron List buttons by forcing visible label text and higher frame level/strata.
- Slightly adjusted top-right button placement so it sits left of the close button without being clipped.


Version 1.1.6
- Stops auto-writing the Auction House quantity field during addon searches.
- This avoids the stale AH buy-state issue that could trigger "This item is no longer available" until the quantity was edited manually.


Version 1.1.7
- Removes the addon's small + buttons from optional/modifying reagent slots.
- Shopping-list add actions now only apply to patron-order required reagents.


Version 1.1.9
- Auction House searches now force the Buy/Browse tab first, so row Search buttons are less likely to appear to do nothing when another AH page is open.
- Uses separateOwnerItems=false for exact AH searches, matching common SendSearchQuery examples.
- Adds clearer search-result status/debug messages so it is easier to tell whether a search fired and whether it returned results.
- The TRADE_SKILL_SHOW debug line now notes that foundViews=0 / target=nil is normal until an actual patron-order detail view is open.

Debug build commands:
- /psldebug on
- /psldebug off
- /psldump
- /psl clearlog


Version 1.1.12
- Adds /psldebugon and /psldebugoff aliases.
- Auction House row searches now try a direct item search first, then fall back to browse search.
- Browse fallback no longer uses ExactMatch and now retries briefly if Blizzard reports an empty browse table too early.
