feat(ai): finalize AI magic edits epic rollout and operations
This commit is contained in:
@@ -30,4 +30,14 @@ describe('groupNotificationsByScope', () => {
|
||||
const grouped = groupNotificationsByScope(items);
|
||||
expect(grouped.map((group) => group.scope)).toEqual(['photos', 'events', 'general']);
|
||||
});
|
||||
|
||||
it('places ai scope before general', () => {
|
||||
const items: Item[] = [
|
||||
{ id: '1', scope: 'general', is_read: true },
|
||||
{ id: '2', scope: 'ai', is_read: true },
|
||||
];
|
||||
|
||||
const grouped = groupNotificationsByScope(items);
|
||||
expect(grouped.map((group) => group.scope)).toEqual(['ai', 'general']);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
export type NotificationScope = 'photos' | 'guests' | 'gallery' | 'events' | 'package' | 'general';
|
||||
export type NotificationScope = 'photos' | 'guests' | 'gallery' | 'events' | 'package' | 'ai' | 'general';
|
||||
|
||||
export type ScopedNotification = {
|
||||
scope: NotificationScope;
|
||||
@@ -17,6 +17,7 @@ const SCOPE_ORDER: NotificationScope[] = [
|
||||
'gallery',
|
||||
'events',
|
||||
'package',
|
||||
'ai',
|
||||
'general',
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user