refactor: streamline alias editing and improve category path handling in admin panel
Test Suite / backend-pr-quick (push) Has been skipped
Test Suite / quick-import-pr-quick (push) Has been skipped
Test Suite / backend-full (push) Failing after 21s
Test Suite / flutter-quality (push) Successful in 57s

This commit is contained in:
Nils-Johan Gynther
2026-05-12 21:53:19 +02:00
parent a4d16cdbae
commit 621ced0e43
2 changed files with 101 additions and 51 deletions
@@ -76,9 +76,10 @@ List<ProductOption> toProductOptions(List<AdminProduct> products) {
}
Widget buildCategoryPathChip(String? categoryPath, {double maxWidth = 220}) {
final value = (categoryPath == null || categoryPath.trim().isEmpty)
? 'okänd'
: categoryPath.trim();
if (categoryPath == null || categoryPath.trim().isEmpty) {
return const SizedBox.shrink();
}
final value = categoryPath.trim();
return Tooltip(
message: value,
child: Chip(