# Decor Vendor Changelog

## Version 1.99

### ActiveItems Database Updates

- Re-merged the split expansion ActiveItems files back into one combined `ActiveItems.lua` file.
- Kept expansion/category registration intact while simplifying long-term editing and maintenance.
- Cleaned up ActiveItems so it focuses more on core item data such as:
  - `itemID`
  - `decorID`
  - `model3D`
  - `source`
  - `soldBy`
  - `mapID`
  - `zone`
  - `sourceAction`
  - `bossevent`
  - `minInterface`
- Moved more Gallery-specific display text into `GalleryItemDetails.lua` where appropriate.
- Reduced duplicate note handling between ActiveItems, Gallery details, and boss/drop source data.

### Gallery Details Improvements

- Improved Gallery preview details for boss drops, treasures, events, and profession-related décor.
- Added better support for showing source location/zone text in Gallery details.
- Added support for showing `Profession:` text before event, treasure, or source-action details.
- Added support for `Learned From:` recipe text using Gallery item detail fields such as:
  - `professionText`
  - `recipeName`
  - `recipeItemID`
- Improved handling for décor that is crafted by a profession but learned from a treasure, recipe, or special source.
- Improved Gallery item notes so custom notes can appear under generated event/drop location lists.
- Added duplicate-note protection to reduce repeated notes in the preview panel.

### Source Action / Map Updates

- Improved shared source action handling for map-based sources.
- Added support for extra source notes from `Shared.SourceActions`.
- Improved handling for grouped map actions and multi-location sources.
- Improved parent/overview map support using `openMapID`.
- Continued improving source-action matching between:
  - `sourceAction`
  - `bossevent`
  - `dropName`
  - `treasureName`
  - `eventName`

### Profession / Recipe Display Updates (Still in process)

- Added Gallery display support for profession décor learned from recipes.
- Added recipe display text without requiring recipe vendors to be added to the main Decor Vendor vendor list.
- Improved profession source text so crafted décor can show both:
  - the profession requirement
  - the recipe or learned-from source
- Cleaned up recipe-related Gallery item detail formatting.

### Fixes

- Fixed profession text being skipped when an item also used event/drop/source-action text.
- Fixed Gallery notes being ignored when event/drop text returned early.
- Fixed some duplicate boss/drop notes appearing in Gallery preview details.
- Fixed source-action notes not being carried into the final preview text.
- Fixed boss/drop zone names not appearing clearly in Gallery details.
- Improved handling for Gallery-only item detail overrides.
- Improved source detail ordering in the Gallery preview panel.

### Notes

This update focuses heavily on Gallery data cleanup, source display accuracy, and making the shared data easier to maintain.

The ActiveItems data has been consolidated again into one main file, while Gallery-specific display information remains in the Gallery detail files.


## Version 1.98

### Packaging / Addon Suite Updates

- Updated addon folder structure for CurseForge packaging.
- Renamed supporting modules for better CurseForge compatibility:
  - `DecorVendor_Data`
  - `DecorVendor_Gallery`
- Updated addon dependency references to use the new folder names.
- Updated Gallery loading logic so the main Decor Vendor addon correctly loads `DecorVendor_Gallery`.
- Added compatibility globals so older internal references can still use:
  - `DecorVendorData`
  - `DecorVendorGallery`

### Gallery Browser Fixes

- Fixed the Gallery button failing to open after the folder rename.
- Updated Gallery loader checks to use the correct load-on-demand addon name.
- Improved Gallery global lookup support for both old and new naming styles.
- Added safer fallback handling when opening the Gallery from the welcome screen.

### Data Module Updates

- Added alias support for the renamed data module.
- `DecorVendor_Data` now supports both:
  - `_G.DecorVendorData`
  - `_G.DecorVendor_Data`
- Improved shared data bridge compatibility between Decor Vendor and DecorVendor Gallery.

### Welcome Screen Updates

- Added a new welcome screen for Decor Vendor.
- Added a Gallery Browser development notice.
- Improved welcome screen readability and font sizing.
- Added buttons for opening Decor Vendor or launching the Gallery Browser.

### Fixes

- Fixed Gallery Browser load errors caused by the addon folder rename.
- Fixed incorrect addon name references in the Gallery loader.
- Fixed compatibility issues caused by CurseForge folder naming requirements.
- Improved multi-folder addon packaging support.

### Notes

Decor Vendor is now packaged as a multi-folder addon suite. The package includes:

- `DecorVendor`
- `DecorVendor_Data`
- `DecorVendor_Gallery`

All three folders should remain installed together for the full addon experience.