Post Web Assets v2 upgrade UI fixes and improvements #114

Merged
Márton Lente merged 35 commits from martonlente/extensions-website:ui/issue105 into main 2024-05-07 16:33:28 +02:00
Showing only changes of commit 84ba9c7c9f - Show all commits

View File

@ -50,6 +50,7 @@ class ApprovalQueueView(ListView):
'extension': extension, 'extension': extension,
'last_activity': None, 'last_activity': None,
'last_type_display': None, 'last_type_display': None,
'type': None,
} }
by_extension[extension] = stats by_extension[extension] = stats
by_date_created.append(stats) by_date_created.append(stats)
@ -61,7 +62,8 @@ class ApprovalQueueView(ListView):
stats['type'] = item.type stats['type'] = item.type
groupped_by_type = defaultdict(list) groupped_by_type = defaultdict(list)
for stats in by_date_created: for stats in by_date_created:
groupped_by_type[stats['type']].append(stats) type = stats['type'] or ApprovalActivity.ActivityType.AWAITING_REVIEW
groupped_by_type[type].append(stats)
result = [] result = []
for type in STATUS_CHANGE_TYPES: for type in STATUS_CHANGE_TYPES:
result.extend(groupped_by_type[type]) result.extend(groupped_by_type[type])