FEATURE REQUEST: Add an Analyze Repo menu to Sidebar for easier navigation

Đang mở
#209 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

@Cubix33 đang làm issue này rồi.

Từ ngày 4/1/2026.

  • #211 của @Cubix33 — đang mở

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
55/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
react, typescript
Lĩnh vực
frontend

Hướng nghiên cứu

Bắt đầu bằng cách đọc src/components/layout/Sidebar.tsx và route / hiện có render LandingPage; xác nhận cách các navItems hiện tại được định nghĩa và trạng thái repository được xử lý như thế nào. Kiểm tra việc điều hướng từ dashboard về root và đảm bảo việc truy cập một repository mới hoạt động mà không bị crash, sau đó đối chiếu nhãn và đích đến của sidebar với kết quả mong đợi.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Is your feature request related to a problem?
  • Yes, it is related to a problem
Describe the feature you'd like

🌟 Feature Description

I would like to add a "Analyze New Repo" (or "New Analysis") button to the application's sidebar menu.

Currently, the application flow starts at the LandingPage (at /), where users input a repository URL. However, once the analysis is complete and the user navigates to the Dashboard, there is no UI element to return to the LandingPage to analyze a different repository.

🔍 Problem Statement

When a user opens the website (e.g., localhost:5173), they land on the analysis input page. After successfully fetching data, the user is redirected to the /dashboard.

At this point, the Sidebar displays navigation options like Dashboard, Bot Integration, and Contributors, but it lacks an option to start over.

Users are currently "locked" into the current repository's view unless they manually modify the browser URL or refresh the application to return to the root (/) path.

🎯 Expected Outcome

  1. Sidebar Update: A new navigation item labeled "Analyze New Repo" (or similar) should appear in the Sidebar component.
  2. Navigation: Clicking this button should redirect the user back to the root route (/), which renders the LandingPage.
  3. State Management: The app should handle the transition cleanly, allowing the user to input a new URL and overwrite the existing repoData.

📷 Screenshots and Design Ideas

Current Sidebar (Missing Option to go back to Landing Page to analyze a repo)
Image
Proposed Solution

We can add a new item to the navItems array in Sidebar.tsx. I suggest using a "Plus" or "Search" icon from the existing lucide-react library.

Mockup of the code change:

// In src/components/layout/Sidebar.tsx

const navItems = [
  // New Item Added Here
  { icon: <Search size={20} />, label: 'Analyze New Repo', path: '/' }, 
  
  // Existing Items
  { icon: <LayoutDashboard size={20} />, label: 'Dashboard', path: '/dashboard' },
  { icon: <Bot size={20} />, label: 'Bot Integration', path: '/integration' },
  // ... others
];

📋 Additional Context

Component to Modify
  • File: src/components/layout/Sidebar.tsx
Route Handling
  • The / route is already protected and renders <LandingPage /> inside ProtectedLayout.
  • No routing changes are needed in App.tsx.
State Handling
  • We must ensure that navigating back to / does not crash the app if repoData is already present.
  • The current LandingPage logic appears designed to handle new inputs regardless of previous state, but this should be verified during implementation.
Record
  • I agree to follow this project's Code of Conduct
  • I want to work on implementing this feature
Ngôn ngữ chính
Python
Star
103
Fork
143
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

  • Không có Dockerfile hay tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của AOSSIE-Org/Devr.AI

Tất cả issue của AOSSIE-Org/Devr.AI

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.