kleneway / jacob

Just Another Coding Bot
https://jacb.ai
Apache License 2.0
0 stars 0 forks source link

Add "Send Filename to Chat" Button on Codebase Details Page #127

Open kleneway opened 1 month ago

kleneway commented 1 month ago

Description

Enhance collaboration within the Codebase Details page by implementing a new "Send Filename to Chat" button. This feature allows users to quickly share specific code files within project conversations, streamlining discussions by enabling the direct transfer of filenames to the chat interface. By reducing the need to manually type out filenames, teams can reference and discuss code more efficiently, improving overall productivity.

User Story

As a user, I want to send the filename of a selected code file directly to the chat page, so that I can easily reference and discuss specific files with my team without manually typing out filenames.

Features

Button Placement

Functionality

  1. Button Click:
    • Retrieve the unique ID of the selected file.
    • Encode the file_path and append it as a query parameter to the /chat URL (e.g., /chat?file_path=(url-encoded file path)).
    • Redirect the user to the chat page with the appended parameter.
  2. Chat Page Handling:
    • Detect the file_path parameter from the URL.
    • Set the filePath as the selected file in the chat context for reference.

Acceptance Criteria