Skip to content
This repository was archived by the owner on Mar 18, 2026. It is now read-only.

Hr#21

Merged
CocoRoF merged 9 commits into
mainfrom
hr
Jul 17, 2025
Merged

Hr#21
CocoRoF merged 9 commits into
mainfrom
hr

Conversation

@CocoRoF
Copy link
Copy Markdown
Collaborator

@CocoRoF CocoRoF commented Jul 17, 2025

This pull request introduces significant updates to the sidebar component, chat functionality, and API endpoints. Key changes include refactoring the sidebar to support dynamic chat items, enhancing chat session handling with new API methods, and standardizing API endpoint paths for consistency.

Sidebar Enhancements:

  • Refactored Sidebar.tsx to dynamically render chat items based on the chatItems prop, replacing hardcoded buttons with a map function. This improves flexibility and maintainability. [1] [2] [3]
  • Added a new getChatSidebarItems function in sidebarConfig.ts to define reusable chat-related sidebar items.
  • Introduced createChatItemClickHandler to handle chat item clicks, saving the active section in localStorage and navigating to /chat.

Chat API Enhancements:

  • Created new API functions createNewChat and executeChatMessage in chatAPI.js to support chat session creation and continuation.
  • Refactored the sendMessage function to handle both new and existing chat sessions, with backward compatibility for the legacy implementation.

API Endpoint Standardization:

  • Updated API paths across multiple files (interactionAPI.js, nodeAPI.js, workflowAPI.js) to prepend /api for consistency and clarity. [1] [2] [3] etc.)

@CocoRoF CocoRoF merged commit d2dedb7 into main Jul 17, 2025
4 checks passed
@CocoRoF CocoRoF deleted the hr branch July 22, 2025 01:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant