Feature rtk query
Summary by CodeRabbit
Release Notes
-
New Features
- Introduced a new
Home
component for workspace management. - Added API slices for managing workspaces, projects, and guardrail responses.
- New
ErrorScreen
component to display error messages to users. - Enhanced workspace and project data retrieval using RTK Query hooks.
- New functionality for creating and listing workspaces and projects.
- Added hooks for managing guardrail responses and actions.
- Implemented new API endpoints for managing chatbots, including creation and listing functionalities.
- Introduced a new API slice for managing message tag definitions.
- Added new hooks for managing message tag definitions and chatbots.
- Enhanced error handling and retry logic for token expiration scenarios.
- Streamlined team member management with new API hooks for creating and updating roles.
- Added functionality for managing contact details through a new API slice.
- Integrated new hooks for managing machine learning models and project settings.
- Introduced new hooks for managing flow entities and moderation actions.
- Enhanced chat management with new API interactions for fetching and creating chats.
- Added a
Skeleton
component for loading states. - Added a
ChatbotPreview
component with improved rendering logic. - Introduced a
ChatContainer
component with enhanced loading and error states.
- Introduced a new
-
Bug Fixes
- Improved error handling and loading states across various components.
- Streamlined authentication and workspace management processes.
-
Refactor
- Updated multiple components to utilize hooks for fetching data directly from the API instead of relying on props.
- Simplified state management by removing unnecessary props and functions.
- Transitioned from Redux-based state management to API query hooks for chatbots.
- Refactored components to enhance clarity and maintainability by adopting a more modern React pattern.
- Updated type definitions and interfaces to reflect changes in tag management.
- Removed functions related to team member management that were no longer needed.
- Enhanced the
DeleteProjectModal
andUpdateMemberRoleModal
components to use mutation hooks for improved functionality. - Streamlined the
BuiltinModeration
andEditModerationCategoryModal
components to utilize API hooks for moderation actions. - Removed outdated or unused code related to workspace and project management.
- Eliminated functions and components that were no longer needed, such as chatbot-related functionalities.
Edited by CodeRabbit