# Admin Portal
[![Admin Portal Wrike Project](src/assets/images/wrike-project.svg)](https://www.wrike.com/open.htm?id=1225506542)

## Build 1.0.1.11
[![1.0.1.11](src/assets/images/build-project.svg)](https://www.wrike.com/open.htm?id=1590529667)

### Features

****Requires API version 8.1.1441**

* [1488728529](https://www.wrike.com/open.htm?id=1488728529) - Import/Export Framework **
  * Currently supported grids:
    * Order Template Products
    * User Order Template Products 

### Bugs
* [1536313919](https://www.wrike.com/open.htm?id=1536313919) - Clear stale user sessions
* [1595649983](https://www.wrike.com/open.htm?id=1595649983) - Load existing image into promotions admin
* [1530866033](https://www.wrike.com/open.htm?id=1530866033) - Unable to add new user billing and shipping address
* [1608581677](https://www.wrike.com/open.htm?id=1608581677) - Update product grid to use new manufacturer table

## Build 1.0.1.10.2

### Features
* [1608423193](https://www.wrike.com/open.htm?id=1608423193) - Add customer taxes ERP data grid


### Infrastructure
* Update to React 19 and associated dependencies
* Update MUI Core and MUI X to Latest


## Build 1.0.1.10.1

### Bugs
* [1595649983](https://www.wrike.com/open.htm?id=1595649983) - Existing image not loaded into the promotions admin

### Additional Information
This release contains small update to the UserMenu component and the search indexing progress indicator

## Build 1.0.1.10
[![1.0.1.10](src/assets/images/build-project.svg)](https://www.wrike.com/open.htm?id=1536223699)

### Features

****Requires API version 8.1.1397**

* [1552356884](https://www.wrike.com/open.htm?id=1552356884) - Add territory to ERP customer listing
* [1490359773](https://www.wrike.com/open.htm?id=1490359773) - Return template name in template detail payload
* [1527281612](https://www.wrike.com/open.htm?id=1527281612) - Add 'impersonate user' to the user list in User Groups
* [1287302405](https://www.wrike.com/open.htm?id=1287302405) - Download manager import methods as dropdown
* [1590538216](https://www.wrike.com/open.htm?id=1590538216) - Add site online/offline toggle **
* [1590546330](https://www.wrike.com/open.htm?id=1590546330) - Enhanced debug mode toggle **


### Bugs
* [1552359134](https://www.wrike.com/open.htm?id=1552359134) - Show order error message
* [1527789686](https://www.wrike.com/open.htm?id=1527789686) - Confirm user group delete before deleting
* [1540592612](https://www.wrike.com/open.htm?id=1540592612) - User group base rule search errors


### Project Infrastructure
* [1532664605](https://www.wrike.com/open.htm?id=1532664605) - Update TreeNav component to be compatible with new MUI version. 


## Build 1.0.1.9
[![1.0.1.9](src/assets/images/build-project.svg)](https://www.wrike.com/open.htm?id=1513512879)

### Bugs
* [1506002082](https://www.wrike.com/open.htm?id=1506002082) - Customer required on user creation
* [1529833350](https://www.wrike.com/open.htm?id=1529833350) - Missing setting options
* [1522148559](https://www.wrike.com/open.htm?id=1522148559) - Incorrect customer import methods defined
* [1516211349](https://www.wrike.com/open.htm?id=1516211349) - Unable to save product details setting options
* [1525763150](https://www.wrike.com/open.htm?id=1525763150) - Invalid PHP session when access/refresh tokens are valid causes WSOD
* [1525763544](https://www.wrike.com/open.htm?id=1525763544) - Stats controller does not implement AdminPortalControllerBase

### Features
* [1531905348](https://www.wrike.com/open.htm?id=1531905348) - Read only ERP data views
  * Customer data, includes billing and shipping addresses
  * Book prices
  * Spire price matrix
  * Promotional pricing
  * Payment terms

### Project Infrastructure
* Update dependencies
* Add ability to gate features behind a specific API version

## Build 1.0.1.8
[![1.0.1.8](src/assets/images/build-project.svg)](https://www.wrike.com/open.htm?id=1488725749)

### Bugs
* [1488411507](https://www.wrike.com/open.htm?id=1488411507) - Can't save a product view called 'cat'
* [1497988379](https://www.wrike.com/open.htm?id=1497988379) - Details settings changes not reflected on front end
* [1498259771](https://www.wrike.com/open.htm?id=1498259771) - Assigning Customer Does Not Set Default Customer Id
  * Additional updates to allow for selecting default if multiple customers are assigned

### Features
* [1477318102](https://www.wrike.com/open.htm?id=1477318102) - Admin Portal Login
  * The Admin Portal now has its own sign in screen
  * User sessions can be managed from the user grid
  * Request a password reset from the Admin Portal sign in screen

## Build 1.0.1.7
[![1.0.1.7](src/assets/images/build-project.svg)](https://www.wrike.com/open.htm?id=1450993170)

### Bugs
* [1397177102](https://www.wrike.com/open.htm?id=1397177102) - Debug toggle should only be available to the Super User 
* [1383853818](https://www.wrike.com/open.htm?id=1383853818) - Default date populates in the Last Login column for empty fields from the database 
* [1483081508](https://www.wrike.com/open.htm?id=1483081508) - Error searching Order Template > User 
* [1483084159](https://www.wrike.com/open.htm?id=1483084159) - Error sorting User Templates 
* [1364381268](https://www.wrike.com/open.htm?id=1364381268) - Filter sort when disabled does not disable and will not show as active 
* [1470840191](https://www.wrike.com/open.htm?id=1470840191) - Ignore warehouse setting not matching database setting 
* [1458948162](https://www.wrike.com/open.htm?id=1458948162) - Order Confirmation email recipient setting does not show available option 
* [1461161425](https://www.wrike.com/open.htm?id=1461161425) - Product Details changing conditions failed to save 
* [1377011961](https://www.wrike.com/open.htm?id=1377011961) - Update existing view 
* [1483075553](https://www.wrike.com/open.htm?id=1483075553) - Update Quantity in Order Templates

### Features
* [1451004804](https://www.wrike.com/open.htm?id=1451004804) - Add Breadcrumbs for the order templates
  * [Documentation](https://docs.terracor.ca/books/admin-portal/page/breadcrumbs)
* [1482931953](https://www.wrike.com/open.htm?id=1482931953) - Site Settings Updates
  * Add controls for:
    * Warehouse
    * Warehouses (multi select)
    * Comment type
    * Payment Terms
    * Sales Taxes
    * Shipping Methods
    * Customer ID


## Build 1.0.1.6
[![1.0.1.6](src/assets/images/build-project.svg)](https://www.wrike.com/open.htm?id=1417775150)

### Features
* [1311205555](https://www.wrike.com/open.htm?id=1311205555) - Global Template Management 
* [1311205523](https://www.wrike.com/open.htm?id=1311205523) - User Template Management 


### Bugs
* [1445628319](https://www.wrike.com/open.htm?id=1445628319) - No product custom field data causes WSOD

## Build 1.0.1.5
[![1.0.1.5](src/assets/images/build-project.svg)](https://www.wrike.com/open.htm?id=1380301444)

### Features
* [1311198487](https://www.wrike.com/open.htm?id=1311198487) - User Grid 
  * Add the ability to add and delete users
  * Add and update user billing and shipping addresses
  * Assign Customers
  * Manage user/customer bill to and ship to assignments
  * Add inline editable fields 
    * Company, email, first & last name, password reset, role, site access, username and password
  * Add the ability to enable/disable site access

* Orders Grid
  * By default, saved orders are filtered out of the grid 
  * Add the ability to see order errors and perform order error resolutions

  ### Bugs
* [1380599686](https://www.wrike.com/open.htm?id=1380599686) - Disable Category Throws Error
* [1381206004](https://www.wrike.com/open.htm?id=1381206004) - Logout button action not available the full width of menu item
* [1385307070](https://www.wrike.com/open.htm?id=1385307070) - View Site button redirects from staging to production 
* [1379485001](https://www.wrike.com/open.htm?id=1379485001) - Display order salesperson from salesperson_orders
* [1410354800](https://www.wrike.com/open.htm?id=1410354800) - Can't edit product custom fields

## Build 1.0.1.4
[![1.0.1.4](src/assets/images/build-project.svg)](https://www.wrike.com/open.htm?id=1371974588)

### Features
* Orders Grid
  * [1365443436](https://www.wrike.com/open.htm?id=1365443436) - Show Error Information
    * Show error status in the grid
    * Allow resolution of order errors by resetting the status, assigning or creating a customer
  * [1376091391](https://www.wrike.com/open.htm?id=1376091391) - "Sane" column defaults 
  * [1315422633](https://www.wrike.com/open.htm?id=1315422633) - Move order details view to Action column
  * [1315422634](https://www.wrike.com/open.htm?id=1315422634) - Show customer num in Orders Grid

* Users Grid
  * [1368059223](https://www.wrike.com/open.htm?id=1368059223) - "Sane" column defaults

* [1315343763](https://www.wrike.com/open.htm?id=1315343763) - Category list/details "source" tooltip

### Project Infrastructure
* Add PostHog analytics
* Remove Google Analytics

### Bugs
* [1375246446](https://www.wrike.com/open.htm?id=1375246446) - Unable to create condition rules
* [1374387896](https://www.wrike.com/open.htm?id=1374387896) - Customer Billing Address Not Displayed

## Build 1.0.1.3
[![1.0.1.3](src/assets/images/build-project.svg)](https://www.wrike.com/open.htm?id=1371929595)

### Bugs
* [1370915540](https://www.wrike.com/open.htm?id=1370915540) - Cache clear failure
* [1370908662](https://www.wrike.com/open.htm?id=1370908662) - Site Settings Redis Cache Clear Failure
* [1368508624](https://www.wrike.com/open.htm?id=1368508624) - Sorting by Customer Error 
* [1368064265](https://www.wrike.com/open.htm?id=1368064265) - Set Default Nav Drawer Width
* [1368059045](https://www.wrike.com/open.htm?id=1368059045) - Checkout Section Checkbox Edit Fails to Exit Edit Mode
* [1368057070](https://www.wrike.com/open.htm?id=1368057070) - Use Listing Quick Search Broken
* [1365437710](https://www.wrike.com/open.htm?id=1365437710) - Is Any Of Filter Results in WSOD
* [1320705119](https://www.wrike.com/open.htm?id=1320705119) - Make Search Layout Section Human Readable 

### Project Infrastructure 
* Update MUI Core and MUI X to Latest
* Add Eslint and Prettier checking to build


## Build 1.0.1.2
[![1.0.1.2](src/assets/images/build-project.svg)](https://www.wrike.com/open.htm?id=1359907805)

### Features
* User Grid
    * [1311201419](https://www.wrike.com/open.htm?id=1311201419) - Manage User Tags
    * [1311200674](https://www.wrike.com/open.htm?id=1311200674) - Manage Bill To Assignments
    * [1311200677](https://www.wrike.com/open.htm?id=1311200677) - Manage Ship To Assignments

* Search Indexing
    * View individual index stats as well as current mappings for all shop indexes
    *  [1311204190](https://www.wrike.com/open.htm?id=1311204190) - Create and Recreate Search Indexes
        *  SSEs (Server Side Events) allows for a non-blocking operation to create/update search indexes that will update the UI as it progresses

* [1316971088](https://www.wrike.com/open.htm?id=1316971088) - User Groups 
   * Create and assign user groups to users
   * These groups can then be assigned to top level categories in order to restrict their appearance on the site

* User Interface Improvements
    * User menu has been moved to the right of the top bar nav component
    * The active grid name will be displayed in the top bar nav component 
    * UI updates to the stats page

### Bugs
* [1343698095](https://www.wrike.com/open.htm?id=1343698095) - Sales Overview/User activity screen contrast
* [1343695687](https://www.wrike.com/open.htm?id=1343695687) - Sales Overview/User activity screen not responsive
* [1358219695](https://www.wrike.com/open.htm?id=1358219695) - Product grid: unable to filter by category

## Build 1.0.1.1
[![1.0.1.1](src/assets/images/build-project.svg)](https://www.wrike.com/open.htm?id=1318093259)

### Features: 
* [1315298486](https://www.wrike.com/open.htm?id=1315298486) - Admin Portal available when site is offline
* [1311198981](https://www.wrike.com/open.htm?id=1311198981) - User Grid Editable Fields
    * Site Access
    * Require Password Reset
    * Username
    * User Billing Address
    * User Shipping Address

### Bugs
* [1333723940](https://www.wrike.com/open.htm?id=1333723940) - System site offline access condition id has incorrect type
* [1333547393](https://www.wrike.com/open.htm?id=1333547393) - Preview settings sections filter not applying
* [1332652320](https://www.wrike.com/open.htm?id=1332652320) - Unable to delete saved grids
* [1327801955](https://www.wrike.com/open.htm?id=1327801955) - Product listing grid errors
* [1315314405](https://www.wrike.com/open.htm?id=1315314405) - Notification system gone haywire

### Project Infrastructure
* Update MUI Data Grid to v7


## Build: 1.0.1
[![1.0.1](src/assets/images/build-project.svg)](https://www.wrike.com/open.htm?id=1318093259)

### Features 
* [1318093259](https://www.wrike.com/open.htm?id=1318094732) - Add Production and Preview Release Tracks
    * Add support for release track switching if a "preview" release is available
    * Repository now has three main branches
        * main - Development branch
        * release/production - Production branch
        * release/preview - Preview branch

* [1311198981](https://www.wrike.com/open.htm?id=1311198981) - User Grid Add Editable Fields
    * Email, First Name, Last Name, Company, Role and User Password can now be updated from the users listing
    * Testing new "success" and "fail" user feedback when a cell is edited. If successful the cell edited will be highlighted in green, on fail, in red

### Cleanup and Enhancements
* Move user impersonation, view user orders to the "actions" column. 
* Change user password also resides in the "actions" column behind the context menu.

### Bugs
* [1326471593](https://www.wrike.com/open.htm?id=1326471593) - Add call to useFetchConditions hook
    * So conditions are available to the checkout grids

* [1327125785](https://www.wrike.com/open.htm?id=1327125785) - Order Listing Quick Search Fails
* [1326471593](https://www.wrike.com/open.htm?id=1326471593) - Checkout section settings unavailable
* [1315386834](https://www.wrike.com/open.htm?id=1315386834) - User List: Remove Default Customer ID


## Build: 1.0.1-beta-18
[![1.0.1-beta-18](src/assets/images/pull-request.svg)](https://bitbucket.org/terracor-developers/admin-portal/pull-requests/70)
[![1.0.1-beta-18](src/assets/images/build-project.svg)](https://www.wrike.com/open.htm?id=1287916461)

### Features
- [1270065348](https://www.wrike.com/open.htm?id=1270065348) - Product Grid: Edit values
  - Edit a product default category, manufacturer or update custom field data
  - Applies only to fields that are marked as having a "shop" data source

- [1276876350](https://www.wrike.com/open.htm?id=1276876350) - Column processing function performance
  - Memorize functions passed to the base grid so they are more performant


### Bugs
- [1275754152](https://www.wrike.com/open.htm?id=1275754152) - Diagnostic Pagination Does Not Work
- [1288823205](https://www.wrike.com/open.htm?id=1288823205) - Order Details Action Drawer White Screen of Death
- [1274938907](https://www.wrike.com/open.htm?id=1274938907) - Update Product Missing Price Query


## Build: 1.0.1-beta-17
[![1.0.1-beta-17](src/assets/images/pull-request.svg)](https://bitbucket.org/terracor-developers/admin-portal/pull-requests/64)
[![1.0.1-beta-17](src/assets/images/build-project.svg)](https://www.wrike.com/open.htm?id=1270034818)

### Features
- [1237790004](https://www.wrike.com/open.htm?id=1237790004) - Site Setting Tag System
  - Assign tags to site settings for easy filtering and grouping
  - System tags (global and not deletable) can be set by a database migration
  - User specific tags can be associated or created from the user interface

- [1281170065](https://www.wrike.com/open.htm?id=1281170065) - Redux State Persistence
  - Narrow the scope of what's stored in the Redux store
  - Better handling of a no local storage scenario, default state is loaded

- [1262964751](https://www.wrike.com/open.htm?id=1262964751) - One Click Cell Editing
  - Items that can be edited inline are activated by a single click

### Bugs
- [1285535799](https://www.wrike.com/open.htm?id=1285535799) - Admin Portal Won't Load
  - When user state has yet to load application could WSOD

- [1278664073](https://www.wrike.com/open.htm?id=1278664073) - Shorten Snackbar Display Time
  - Snackbar will display for 3 seconds

- [1278662537](https://www.wrike.com/open.htm?id=1278662537) - Site Setting Text Field Inline Editing
  - Superusers can edit text fields inline.
  - Regular users will edit text fields in the action drawer 

- [1287307915](https://www.wrike.com/open.htm?id=1287307915) - Preview Sections Displaying on Search/Details Layout Screens


## Build: 1.0.1-beta-16
[![1.0.1-beta-16](src/assets/images/pull-request.svg)](https://bitbucket.org/terracor-developers/admin-portal/pull-requests/63)
[![1.0.1-beta-16](src/assets/images/build-project.svg)](https://www.wrike.com/open.htm?id=1264537413)

### Features
- [1262980859](https://www.wrike.com/open.htm?id=1262980859) - Warehouse Condition Setting Grid
    - Assign visibility and stock availability conditions to warehouses


- [1266005889](https://www.wrike.com/open.htm?id=1266005889) - Checkout Stages Setting Grid
  - Manage checkout stages


- [1266007268](https://www.wrike.com/open.htm?id=1266007268) - Checkout Sections Setting Grid
  - Manage checkout sections


- [1266007424](https://www.wrike.com/open.htm?id=1266007424) - Checkout Fields Setting Grid
  - Manage checkout address fields

## Build: 1.0.1-beta-15
[![1.0.1-beta-15](src/assets/images/pull-request.svg)](https://bitbucket.org/terracor-developers/admin-portal/pull-requests/50)
[![1.0.1-beta-15](src/assets/images/build-project.svg)](https://www.wrike.com/open.htm?id=1250856076)


### Features
- [1262136500](https://www.wrike.com/open.htm?id=1262136500) - Product Details View Settings
    - Enable/disable, reorder and manage all options for the product detail settings


- [1262134883](https://www.wrike.com/open.htm?id=1262134883) - Product Preview Layout Settings
  - Enable/disable, reorder and manage all options for the preview settings.
  - Reordering is only permitted when a specific section has been selected


- [1262147475](https://www.wrike.com/open.htm?id=1262147475) - Search Layout Settings
  - Enable/disable, reorder and manage all options for the search layout sections
  - Reordering is only permitted when a specific section has been selected


- [1252308449](https://www.wrike.com/open.htm?id=1252308449) - API Key prompt
  - When visiting the admin portal if no OpenAI or Growthbook API keys have been set the user will be promoted to enter them.
  - Keys can be found in 1Password


- [1262154554](https://www.wrike.com/open.htm?id=1262154554)
  - Impersonate a user from the admin portal user grid

### Maintenance
- [1252308956](https://www.wrike.com/open.htm?id=1252308956) - Update Cypress
  - Update Cypress to 13.6.1


- [1252310935](https://www.wrike.com/open.htm?id=1252310935) - Add Cypress component tests
