Implement Web Assets' theme system and selection, and add 'light' theme #118

Merged
Márton Lente merged 97 commits from martonlente/extensions-website:ui/theme-light into main 2024-05-08 14:20:07 +02:00
Showing only changes of commit 84ba9c7c9f - Show all commits

View File

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