feat: Implement caching for selectable products and enhance product filtering in admin panels
Test Suite / test (24.15.0) (push) Has been cancelled

This commit is contained in:
Nils-Johan Gynther
2026-05-11 18:42:35 +02:00
parent d75fd00666
commit a4f65c6065
10 changed files with 481 additions and 79 deletions
@@ -3,6 +3,7 @@ class AdminProduct {
final String name;
final String? canonicalName;
final String? normalizedName;
final int? ownerId;
final int? categoryId;
final String? categoryPath;
final bool? isActive;
@@ -14,6 +15,7 @@ class AdminProduct {
required this.name,
this.canonicalName,
this.normalizedName,
this.ownerId,
this.categoryId,
this.categoryPath,
this.isActive,
@@ -43,6 +45,7 @@ class AdminProduct {
name: (json['name'] ?? '').toString(),
canonicalName: json['canonicalName']?.toString(),
normalizedName: json['normalizedName']?.toString(),
ownerId: ((json['owner'] as Map<String, dynamic>?)?['id'] as num?)?.toInt(),
categoryId: (json['categoryId'] as num?)?.toInt(),
categoryPath: names.isEmpty ? null : names.join(' > '),
isActive: json['isActive'] as bool?,