ui: update ProductPerformanceProfitability page to enhance table views and tabs management

This commit is contained in:
M_Kececi
2026-07-02 17:39:22 +03:00
parent 1bf51b9e82
commit d98ce372c7
8 changed files with 1982 additions and 105 deletions
+25
View File
@@ -939,6 +939,31 @@ func InitRoutes(pgDB *sql.DB, mssql *sql.DB, ml *mailer.GraphMailer) *mux.Router
"pricing", "view",
wrapV3(routes.GetProductPerformanceSummaryHandler(pgDB)),
)
bindV3(r, pgDB,
"/api/pricing/product-performance/general", "GET",
"pricing", "view",
wrapV3(routes.GetProductPerformanceGeneralHandler(pgDB)),
)
bindV3(r, pgDB,
"/api/pricing/product-performance/orders", "GET",
"pricing", "view",
wrapV3(routes.GetProductPerformanceOrdersHandler(pgDB)),
)
bindV3(r, pgDB,
"/api/pricing/product-performance/orders/groups", "GET",
"pricing", "view",
wrapV3(routes.GetProductPerformanceOrderGroupsHandler(pgDB)),
)
bindV3(r, pgDB,
"/api/pricing/product-performance/orders/product-customers", "GET",
"pricing", "view",
wrapV3(routes.GetProductPerformanceOrderProductCustomersHandler(pgDB)),
)
bindV3(r, pgDB,
"/api/pricing/product-performance/orders/market-details", "GET",
"pricing", "view",
wrapV3(routes.GetProductPerformanceOrderMarketDetailsHandler(pgDB)),
)
bindV3(r, pgDB,
"/api/pricing/product-performance/markets", "GET",
"pricing", "view",