The current implementation of the "Add New Category" feature in our backend does not send the full category object to Supabase. This omission hinders the application's state management capability to accurately map categories to their respective links within the correct chat interface.
Impact
The chat interface cannot reliably determine which category a new link belongs to, leading to inconsistencies and erroneous behavior.
The UI may present users with incorrect information, causing confusion and reducing the accuracy of chat categorization.
Expected Behavior
When a new category is added via the Supabase function, the complete category object should be sent and processed. This would allow the frontend state to be updated appropriately, maintaining the integrity of the chat interface's link-category mapping.
Please Note - The frontend state management slice has an async thunk that must update for the entire flow to be functional. Modifications elsewhere in the application, such as writing independent functions do not inherently handle the state management functions, as done before for saved content feature. This fix in #50 can be referenced for this implementation as well.
Steps to Reproduce
These steps are reproducible post PR #50
Go to the Saved interface.
Attempt to add a new category and associate a link with it.
Go to the Chat interface.
Attempt to query Dragon AI for the new category just added.
Notice the erroneous response in category-link mapping.
Proposed Solution
Modify the backend "Add New Category" function to include the full category object in the request payload sent to Supabase.
Update the Supabase table schema if necessary to accommodate the full category object.
Ensure that the front-end state management logic correctly reflects changes when the new category is added.
Acceptance Criteria
[ ] The full category object is sent to Supabase when adding a new category.
[ ] Frontend state management accurately reflects the addition of new categories.
Please prioritize this issue as it is critical to the user experience and the overall functionality of our chat interfaces.
@inhwaS
Description
The current implementation of the "Add New Category" feature in our backend does not send the full category object to Supabase. This omission hinders the application's state management capability to accurately map categories to their respective links within the correct chat interface.
Impact
Expected Behavior
When a new category is added via the Supabase function, the complete category object should be sent and processed. This would allow the frontend state to be updated appropriately, maintaining the integrity of the chat interface's link-category mapping.
Please Note - The frontend state management slice has an async thunk that must update for the entire flow to be functional. Modifications elsewhere in the application, such as writing independent functions do not inherently handle the state management functions, as done before for saved content feature. This fix in #50 can be referenced for this implementation as well.
Steps to Reproduce
These steps are reproducible post PR #50
Proposed Solution
Acceptance Criteria
Please prioritize this issue as it is critical to the user experience and the overall functionality of our chat interfaces. @inhwaS