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

オープン
#209 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

@Cubix33 がすでに取り組んでいます。

2026年1月4日 から。

  • #211 @Cubix33 による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
55/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
react, typescript
領域
frontend

調査の方向性

まず src/components/layout/Sidebar.tsx と LandingPage をレンダリングする既存の / ルートを読み、現在の navItems がどのように定義されているか、またリポジトリの状態がどのように処理されているかを確認します。ダッシュボードからルートへのナビゲーションと、新しいリポジトリに入ってもクラッシュしないことを検証し、その後、サイドバーのラベルと遷移先を期待される結果と照合します。

索引モデルが issue の本文から書いたものです。

説明

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
主要言語
Python
スター
103
フォーク
143
PR マージ指標
30日以内にマージされた PR はありません

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

AOSSIE-Org/Devr.AI のほかの issue

AOSSIE-Org/Devr.AI の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。