Added enter animation, added loading and error state to conversations and communities, updated other small stuff

This commit is contained in:
Alois 2026-03-29 11:31:44 +02:00
commit ed53c17597
10 changed files with 116 additions and 53 deletions

View file

@ -6,7 +6,7 @@ import { useChat } from "./context";
import InputComponent from "./components/input";
import Message from "./components/message";
const PAGE_SIZE = 50;
import { PAGE_SIZE } from "./values";
/**
* Renders the chat screen with virtualized history and live message updates.
@ -179,8 +179,8 @@ export default function Screen() {
if (!hasValidChatUser) {
return (
<div className="w-full h-full flex items-center justify-center text-sm text-muted-foreground">
Select a conversation to start chatting.
<div className="w-full h-full flex items-center justify-center text-xl text-foreground/80">
Invalid user
</div>
);
}

View file

@ -11,3 +11,5 @@ export type LiveMessage = RawMessage & {
failed?: boolean;
localId: string;
};
export const PAGE_SIZE = 25;

View file

@ -22,7 +22,7 @@ const message = z.object({
});
export const failedUser = {
display: "Failed to load user",
display: "Failed",
iota_id: 0,
omikron_connections: [],
online_status: "user_borked",