Skip to content

Commit b9678cc

Browse files
committed
docs: Update Architecture diagrams
1 parent b0a9a9f commit b9678cc

File tree

2 files changed

+19
-5
lines changed

2 files changed

+19
-5
lines changed

tools/server/webui/docs/architecture/high-level-architecture-simplified.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ flowchart TB
1111
C_Screen["ChatScreen"]
1212
C_Form["ChatForm"]
1313
C_Messages["ChatMessages"]
14+
C_Message["ChatMessage"]
15+
C_MessageEditForm["ChatMessageEditForm"]
1416
C_ModelsSelector["ModelsSelector"]
1517
C_Settings["ChatSettings"]
1618
end
@@ -54,7 +56,9 @@ flowchart TB
5456
5557
%% Component hierarchy
5658
C_Screen --> C_Form & C_Messages & C_Settings
57-
C_Form & C_Messages --> C_ModelsSelector
59+
C_Messages --> C_Message
60+
C_Message --> C_MessageEditForm
61+
C_Form & C_MessageEditForm --> C_ModelsSelector
5862
5963
%% Components → Hooks → Stores
6064
C_Form & C_Messages --> H1 & H2
@@ -93,7 +97,7 @@ flowchart TB
9397
classDef apiStyle fill:#e3f2fd,stroke:#1565c0,stroke-width:2px
9498
9599
class R1,R2,RL routeStyle
96-
class C_Sidebar,C_Screen,C_Form,C_Messages,C_ModelsSelector,C_Settings componentStyle
100+
class C_Sidebar,C_Screen,C_Form,C_Messages,C_Message,C_MessageEditForm,C_ModelsSelector,C_Settings componentStyle
97101
class H1,H2 hookStyle
98102
class S1,S2,S3,S4,S5 storeStyle
99103
class SV1,SV2,SV3,SV4,SV5 serviceStyle

tools/server/webui/docs/architecture/high-level-architecture.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ end
1616
C_Form["ChatForm"]
1717
C_Messages["ChatMessages"]
1818
C_Message["ChatMessage"]
19+
C_MessageUser["ChatMessageUser"]
20+
C_MessageEditForm["ChatMessageEditForm"]
1921
C_Attach["ChatAttachments"]
2022
C_ModelsSelector["ModelsSelector"]
2123
C_Settings["ChatSettings"]
@@ -38,7 +40,7 @@ end
3840
S1Error["<b>Error Handling:</b><br/>showErrorDialog()<br/>dismissErrorDialog()<br/>isAbortError()"]
3941
S1Msg["<b>Message Operations:</b><br/>addMessage()<br/>sendMessage()<br/>updateMessage()<br/>deleteMessage()<br/>getDeletionInfo()"]
4042
S1Regen["<b>Regeneration:</b><br/>regenerateMessage()<br/>regenerateMessageWithBranching()<br/>continueAssistantMessage()"]
41-
S1Edit["<b>Editing:</b><br/>editAssistantMessage()<br/>editUserMessagePreserveResponses()<br/>editMessageWithBranching()"]
43+
S1Edit["<b>Editing:</b><br/>editAssistantMessage()<br/>editUserMessagePreserveResponses()<br/>editMessageWithBranching()<br/>clearEditMode()<br/>isEditModeActive()<br/>getAddFilesHandler()<br/>setEditModeActive()"]
4244
S1Utils["<b>Utilities:</b><br/>getApiOptions()<br/>parseTimingData()<br/>getOrCreateAbortController()<br/>getConversationModel()"]
4345
end
4446
subgraph S2["conversationsStore"]
@@ -88,6 +90,10 @@ end
8890
RE7["getChatStreaming()"]
8991
RE8["getAllLoadingChats()"]
9092
RE9["getAllStreamingChats()"]
93+
RE9a["isEditModeActive()"]
94+
RE9b["getAddFilesHandler()"]
95+
RE9c["setEditModeActive()"]
96+
RE9d["clearEditMode()"]
9197
end
9298
subgraph ConvExports["conversationsStore"]
9399
RE10["conversations()"]
@@ -182,14 +188,18 @@ end
182188
%% Component hierarchy
183189
C_Screen --> C_Form & C_Messages & C_Settings
184190
C_Messages --> C_Message
185-
C_Message --> C_ModelsSelector
191+
C_Message --> C_MessageUser
192+
C_MessageUser --> C_MessageEditForm
193+
C_MessageEditForm --> C_ModelsSelector
194+
C_MessageEditForm --> C_Attach
186195
C_Form --> C_ModelsSelector
187196
C_Form --> C_Attach
188197
C_Message --> C_Attach
189198
190199
%% Components use Hooks
191200
C_Form --> H1
192201
C_Message --> H1 & H2
202+
C_MessageEditForm --> H1
193203
C_Screen --> H2
194204
195205
%% Hooks use Stores
@@ -244,7 +254,7 @@ end
244254
classDef apiStyle fill:#e3f2fd,stroke:#1565c0,stroke-width:2px
245255
246256
class R1,R2,RL routeStyle
247-
class C_Sidebar,C_Screen,C_Form,C_Messages,C_Message componentStyle
257+
class C_Sidebar,C_Screen,C_Form,C_Messages,C_Message,C_MessageUser,C_MessageEditForm componentStyle
248258
class C_ModelsSelector,C_Settings componentStyle
249259
class C_Attach componentStyle
250260
class H1,H2,H3 methodStyle

0 commit comments

Comments
 (0)