Refactor mini-message system: add precomputed styles for optimization, update models and components to use preprocessed nodes, and display total message counts in ChatInfo UI.

This commit is contained in:
2026-08-01 23:33:34 +02:00
parent 819739ff60
commit c8b5a01c21
9 changed files with 81 additions and 60 deletions
@@ -2,4 +2,5 @@ export interface ChatChannel {
name: string;
type: 'SERVER' | 'DM' | 'PARTY' | 'GAC' | 'SPY';
unreadMessages: number;
totalMessages: number;
}
@@ -1,4 +1,4 @@
import {MiniMessageComponent} from '@pages/altitude/chat/mini-message/mini-message.types';
import {ProcessedMiniMessageNode} from '@pages/altitude/chat/mini-message/mini-message.types';
export interface ChatMessage {
uuid: string;
@@ -7,7 +7,7 @@ export interface ChatMessage {
type: string;
channel: string;
receiver: string;
messageJson: MiniMessageComponent;
messageJson: ProcessedMiniMessageNode;
notBlocked: boolean;
channelName?: string;
channelType?: 'SERVER' | 'DM' | 'PARTY' | 'GAC' | 'SPY';