Update TreeView » History » Revision 2
Revision 1 (Tomislav Pleše, 10/02/2025 06:25 AM) → Revision 2/12 (Tomislav Pleše, 10/02/2025 07:01 AM)
# Update TreeView
FLOW
Cases
1. Root Creation
2. Root Parent - Directly Under Root
3. Root Parent - Under Regular Point
4. Root-Shard Parent - Under Regular Point
5. Child-Shard Parent - Under Regular Point
6. Root Parent - Root Initial Sharding
7. Root-Shard Parent - Root 2nd Sharding
8. Regular Child - Regular Point Initial Sharding
9. Child-Shard Parent - Regular Point 2nd Sharding
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.
I have already implemented a flow for handling Prompts for regular Points. It goes:
PromptInputField -> HomeScreen -> HomeScreenManager -> ThreadManager -> PointManager (when there is no Sharding).
I now want to implement a flow that will handle sub-Prompts (which creates Shard Points), where the flow would go:
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.
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.
Look at my code and suggest minimal changes that will make this work.