feat: Add pm

This commit is contained in:
2026-04-27 00:45:16 +02:00
parent bc2fa7de22
commit 11c2588e45
65 changed files with 3653 additions and 214 deletions

View File

@@ -98,6 +98,30 @@ function createDefaultLayout(): Record<string, ThemeLayoutEntry> {
w: 4,
h: 12 }
};
continue;
}
if (key === 'dmConversationsPanel') {
layoutEntries[key] = {
container: 'roomLayout',
grid: { x: 0,
y: 0,
w: 4,
h: 12 }
};
continue;
}
if (key === 'dmChatPanel') {
layoutEntries[key] = {
container: 'roomLayout',
grid: { x: 4,
y: 0,
w: 16,
h: 12 }
};
}
}
@@ -163,6 +187,14 @@ function createDarkDefaultElements(): Record<string, ThemeElementStyles> {
backdropFilter: 'var(--theme-effect-glass-blur)'
};
elements['dmConversationsPanel'] = {
...elements['chatRoomChannelsPanel']
};
elements['dmChatPanel'] = {
...elements['chatRoomMainPanel']
};
elements['chatRoomEmptyState'] = {
backgroundColor: 'hsl(var(--panel-background-alt) / 0.88)',
color: 'hsl(var(--muted-foreground))',

View File

@@ -102,6 +102,30 @@ export const THEME_REGISTRY: readonly ThemeRegistryEntry[] = [
supportsLink: false,
supportsIcon: false
},
{
key: 'dmConversationsPanel',
label: 'DM Conversations Panel',
description: 'The direct-message sidebar showing private chat conversations.',
category: 'room',
container: 'roomLayout',
layoutEditable: true,
pickerVisible: true,
supportsTextOverride: false,
supportsLink: false,
supportsIcon: false
},
{
key: 'dmChatPanel',
label: 'DM Chat Panel',
description: 'The main direct-message panel that hosts private chat messages.',
category: 'room',
container: 'roomLayout',
layoutEditable: true,
pickerVisible: true,
supportsTextOverride: false,
supportsLink: false,
supportsIcon: false
},
{
key: 'chatRoomEmptyState',
label: 'Room Empty State',