jacob-ai-bot / jacob

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

Feature Request: Add "Start New Issue" Button to Codebase Detail Component #182

Closed kleneway closed 4 minutes ago

kleneway commented 1 day ago

Feature Request: Add "Start New Issue" Button to Codebase Detail Component

Description

Enhance the Code Visualization - Codebase Detail component by introducing a new button labeled "Start New Issue". This feature will allow users to seamlessly create GitHub issues related to specific files directly from the codebase view, streamlining the reporting and tracking of necessary updates.

Current Functionality

Proposed Enhancement

"Start New Issue" Button

Implementation Steps

  1. UI Development:

    • Design the "Start New Issue" button to match the existing style of the chat button.
    • Ensure the button is clearly labeled and easily accessible within the Codebase Detail component.
  2. Functionality Integration:

    • Develop the click handler for the "Start New Issue" button to:
      • Extract the current file's name and path.
      • URL-encode the file path securely.
      • Navigate to the IssueWriter component, passing the encoded path as a parameter.
  3. IssueWriter Component Enhancement:

    • Modify the IssueWriter component to:
      • Receive and decode the file path from the URL parameter.
      • Auto-populate the issue title and body using the specified template.
      • Allow users to edit the pre-filled template before submission.
  4. Error Handling:

    • Implement error checks for:
      • Successful retrieval and encoding of the file path.
      • Successful navigation to the IssueWriter component.
    • Provide user-friendly error messages in case of failures.
  5. Testing:

    • Conduct thorough testing to ensure:
      • The "Start New Issue" button functions correctly across different files and scenarios.
      • The issue template is populated accurately and is editable.
      • Seamless integration with the IssueWriter component without introducing bugs.

Expected Outcome

Additional Information


@jacob-ai-bot --skip-build

jacob-ai-bot[bot] commented 3 hours ago

JACoB here...

You mentioned me on this issue and I am busy taking a look at it.

I'll continue to comment on this issue with status as I make progress.

jacob-ai-bot[bot] commented 3 hours ago

Update

I've completed my work on this issue and have created a pull request: JACoB PR for Issue Feature Request: Add "Start New Issue" Button to Codebase Detail Component.

Please review my changes there.