Project

General

Profile

Update TreeView » History » Version 2

Tomislav Pleše, 10/02/2025 07:01 AM

1 1 Tomislav Pleše
# Update TreeView
2 2 Tomislav Pleše
3
4
FLOW
5
6
7
Cases
8
1. Root Creation
9
2. Root Parent - Directly Under Root
10
3. Root Parent - Under Regular Point
11
4. Root-Shard Parent - Under Regular Point
12
5. Child-Shard Parent - Under Regular Point
13
6. Root Parent - Root Initial Sharding
14
7. Root-Shard Parent - Root 2nd Sharding
15
8. Regular Child - Regular Point Initial Sharding
16
9. Child-Shard Parent - Regular Point 2nd Sharding   
17
18
19
20
In my flutter app I have Point model (from which a node in tree view is created). There is a regular Point, and there is a Shard Point. Shard Point is the one that has one or more ShardDTOs in it's shardList list. Shards are created by sharding: user enters sub-prompt, and from that new Shard is created and added to shardsList.
21
22
I have already implemented a flow for handling Prompts for regular Points. It goes:
23
PromptInputField -> HomeScreen -> HomeScreenManager -> ThreadManager -> PointManager (when there is no Sharding).
24
25
I now want to implement a flow that will handle sub-Prompts (which creates Shard Points), where the flow would go:
26
PromptInputField -> HomeScreen -> HomeScreenManager -> ThreadManager -> ShardManager (when there is Sharding (creation of new Shards)). There can be use of existing methods in PointManager where applicable, but main logic should reside in the ShardManager.
27
28
The branching between Sharding and No Sharding flows is currently in the HomeScreenManger in the method: handlePrompt(). Try to see if it should stay there, or should be moved to the ThreadManager.
29
30
Look at my code and suggest minimal changes that will make this work.