Remove "filter" from the report charts filter names.
This commit is contained in:
parent
c795fb0e09
commit
079748cbb2
|
@ -10,12 +10,12 @@ import { applyFilters } from '@wordpress/hooks';
|
|||
*/
|
||||
import { getCategoryLabels } from 'lib/async-requests';
|
||||
|
||||
const CATEGORY_REPORT_CHART_FILTER = 'woocommerce_admin_category_report_chart_filter';
|
||||
const CATEGORY_REPORT_CHARTS_FILTER = 'woocommerce_admin_category_report_charts';
|
||||
const CATEGORY_REPORT_FILTERS_FILTER = 'woocommerce_admin_category_report_filters';
|
||||
const CATEGORY_REPORT_ADVANCED_FILTERS_FILTER =
|
||||
'woocommerce_admin_category_report_advanced_filters';
|
||||
|
||||
export const charts = applyFilters( CATEGORY_REPORT_CHART_FILTER, [
|
||||
export const charts = applyFilters( CATEGORY_REPORT_CHARTS_FILTER, [
|
||||
{
|
||||
key: 'items_sold',
|
||||
label: __( 'Items Sold', 'woocommerce-admin' ),
|
||||
|
|
|
@ -10,11 +10,11 @@ import { applyFilters } from '@wordpress/hooks';
|
|||
*/
|
||||
import { getCouponLabels } from 'lib/async-requests';
|
||||
|
||||
const COUPON_REPORT_CHART_FILTER = 'woocommerce_admin_coupon_report_chart_filter';
|
||||
const COUPON_REPORT_CHARTS_FILTER = 'woocommerce_admin_coupon_report_charts';
|
||||
const COUPON_REPORT_FILTERS_FILTER = 'woocommerce_admin_coupon_report_filters';
|
||||
const COUPON_REPORT_ADVANCED_FILTERS_FILTER = 'woocommerce_admin_coupon_report_advanced_filters';
|
||||
|
||||
export const charts = applyFilters( COUPON_REPORT_CHART_FILTER, [
|
||||
export const charts = applyFilters( COUPON_REPORT_CHARTS_FILTER, [
|
||||
{
|
||||
key: 'orders_count',
|
||||
label: __( 'Discounted Orders', 'woocommerce-admin' ),
|
||||
|
|
|
@ -10,12 +10,12 @@ import { applyFilters } from '@wordpress/hooks';
|
|||
*/
|
||||
import { getCustomerLabels, getProductLabels } from 'lib/async-requests';
|
||||
|
||||
const DOWLOADS_REPORT_CHART_FILTER = 'woocommerce_admin_downloads_report_chart_filter';
|
||||
const DOWLOADS_REPORT_CHARTS_FILTER = 'woocommerce_admin_downloads_report_charts';
|
||||
const DOWLOADS_REPORT_FILTERS_FILTER = 'woocommerce_admin_downloads_report_filters';
|
||||
const DOWLOADS_REPORT_ADVANCED_FILTERS_FILTER =
|
||||
'woocommerce_admin_downloads_report_advanced_filters';
|
||||
|
||||
export const charts = applyFilters( DOWLOADS_REPORT_CHART_FILTER, [
|
||||
export const charts = applyFilters( DOWLOADS_REPORT_CHARTS_FILTER, [
|
||||
{
|
||||
key: 'download_count',
|
||||
label: __( 'Downloads', 'woocommerce-admin' ),
|
||||
|
|
|
@ -12,11 +12,11 @@ import { getCouponLabels, getProductLabels } from 'lib/async-requests';
|
|||
|
||||
const { orderStatuses } = wcSettings;
|
||||
|
||||
const ORDERS_REPORT_CHART_FILTER = 'woocommerce_admin_orders_report_chart_filter';
|
||||
const ORDERS_REPORT_CHARTS_FILTER = 'woocommerce_admin_orders_report_charts';
|
||||
const ORDERS_REPORT_FILTERS_FILTER = 'woocommerce_admin_orders_report_filters';
|
||||
const ORDERS_REPORT_ADVANCED_FILTERS_FILTER = 'woocommerce_admin_orders_report_advanced_filters';
|
||||
|
||||
export const charts = applyFilters( ORDERS_REPORT_CHART_FILTER, [
|
||||
export const charts = applyFilters( ORDERS_REPORT_CHARTS_FILTER, [
|
||||
{
|
||||
key: 'orders_count',
|
||||
label: __( 'Orders Count', 'woocommerce-admin' ),
|
||||
|
|
|
@ -10,12 +10,12 @@ import { applyFilters } from '@wordpress/hooks';
|
|||
*/
|
||||
import { getProductLabels, getVariationLabels } from 'lib/async-requests';
|
||||
|
||||
const PRODUCTS_REPORT_CHART_FILTER = 'woocommerce_admin_products_report_chart_filter';
|
||||
const PRODUCTS_REPORT_CHARTS_FILTER = 'woocommerce_admin_products_report_charts';
|
||||
const PRODUCTS_REPORT_FILTERS_FILTER = 'woocommerce_admin_products_report_filters';
|
||||
const PRODUCTS_REPORT_ADVANCED_FILTERS_FILTER =
|
||||
'woocommerce_admin_products_report_advanced_filters';
|
||||
|
||||
export const charts = applyFilters( PRODUCTS_REPORT_CHART_FILTER, [
|
||||
export const charts = applyFilters( PRODUCTS_REPORT_CHARTS_FILTER, [
|
||||
{
|
||||
key: 'items_sold',
|
||||
label: __( 'Items Sold', 'woocommerce-admin' ),
|
||||
|
|
|
@ -5,11 +5,11 @@
|
|||
import { __ } from '@wordpress/i18n';
|
||||
import { applyFilters } from '@wordpress/hooks';
|
||||
|
||||
const REVENUE_REPORT_CHART_FILTER = 'woocommerce_admin_revenue_report_chart_filter';
|
||||
const REVENUE_REPORT_CHARTS_FILTER = 'woocommerce_admin_revenue_report_charts';
|
||||
const REVENUE_REPORT_FILTERS_FILTER = 'woocommerce_admin_revenue_report_filters';
|
||||
const REVENUE_REPORT_ADVANCED_FILTERS_FILTER = 'woocommerce_admin_revenue_report_advanced_filters';
|
||||
|
||||
export const charts = applyFilters( REVENUE_REPORT_CHART_FILTER, [
|
||||
export const charts = applyFilters( REVENUE_REPORT_CHARTS_FILTER, [
|
||||
{
|
||||
key: 'gross_revenue',
|
||||
label: __( 'Gross Revenue', 'woocommerce-admin' ),
|
||||
|
|
|
@ -12,11 +12,11 @@ import { getRequestByIdString } from 'lib/async-requests';
|
|||
import { getTaxCode } from './utils';
|
||||
import { NAMESPACE } from 'wc-api/constants';
|
||||
|
||||
const TAXES_REPORT_CHART_FILTER = 'woocommerce_admin_taxes_report_chart_filter';
|
||||
const TAXES_REPORT_CHARTS_FILTER = 'woocommerce_admin_taxes_report_charts';
|
||||
const TAXES_REPORT_FILTERS_FILTER = 'woocommerce_admin_taxes_report_filters';
|
||||
const TAXES_REPORT_ADVANCED_FILTERS_FILTER = 'woocommerce_admin_taxes_report_advanced_filters';
|
||||
|
||||
export const charts = applyFilters( TAXES_REPORT_CHART_FILTER, [
|
||||
export const charts = applyFilters( TAXES_REPORT_CHARTS_FILTER, [
|
||||
{
|
||||
key: 'total_tax',
|
||||
label: __( 'Total Tax', 'woocommerce-admin' ),
|
||||
|
|
Loading…
Reference in New Issue