kleneway / jacob

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

Add Research component to dashboard workspace #85

Open kleneway opened 3 months ago

kleneway commented 3 months ago

Add Research Component to Dashboard Workspace

Description

We need to add a new "Research" component to the dashboard application to display research items. Currently, the dashboard shows items such as Prompts, Code, Issue, Pull Request, etc. With the addition of research items in the database, we should also display them in the dashboard. The research items need to be added to the task when the dashboard loads and passed down to the research component.

Requirements

Implementation Details

  1. Data Fetching and Passing:

    • Fetch research items using tRPC hooks in src/app/dashboard/[org]/[repo]/[developer]/Dashboard.tsx.
    • Pass the fetched research items to the new Research component.
  2. Component Creation:

    • Create a new file Research.tsx in src/app/dashboard/[org]/[repo]/[developer]/components/workspace/.
    • Use react-markdown and react-syntax-highlighter for rendering markdown content with syntax highlighting.
    • Follow the styling patterns used in other workspace components, utilizing Tailwind CSS.
  3. Integration:

    • Add a new case in the Workspace component's switch statement to render the Research component when the event type is "research".
    • Ensure the research data is included in the events fetched by the API.

New Files:

Acceptance Criteria:

@jacob-ai-bot

Steps to Address Issue: 1. Create a new file 'Research.tsx' in the specified directory.

  1. Implement the Research component with markdown rendering and syntax highlighting.
  2. Style the component using Tailwind CSS to match other workspace components.
  3. Update the Dashboard.tsx file to fetch research items using tRPC hooks.
  4. Modify the Workspace component to include the new Research component.
  5. Ensure the API includes research data in the events it fetches.
  6. Test the new component to verify it meets all acceptance criteria.

Files to Create: /src/app/dashboard/[org]/[repo]/[developer]/components/workspace/Research.tsx

Files to Update: /src/app/dashboard/[org]/[repo]/[developer]/Dashboard.tsx, /src/app/dashboard/[org]/[repo]/[developer]/components/workspace/index.tsx

task assigned to: @jacob-ai-bot

jacob-local-kevin[bot] commented 3 months 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-local-kevin[bot] commented 3 months ago

Unfortunately, I ran into trouble working on this.

Here is some error information:

Missing required variables: context