FEATURE REQUEST: Add an Analyze Repo menu to Sidebar for easier navigation
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 55/100
- Issue 类型
- 功能
- 描述清晰度
- 描述清楚
- 活跃度
- 停滞
- 技术栈
- react, typescript
- 领域
- frontend
调研方向
首先阅读 src/components/layout/Sidebar.tsx 以及渲染 LandingPage 的现有 / 路由;确认当前 navItems 是如何定义的,以及 repository 状态是如何处理的。验证从 dashboard 到 root 的导航,并确认进入新的 repository 时不会发生崩溃,然后根据预期结果检查 sidebar 标签和目标位置。
由索引模型根据 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
- Sidebar Update: A new navigation item labeled "Analyze New Repo" (or similar) should appear in the
Sidebarcomponent. - Navigation: Clicking this button should redirect the user back to the root route (
/), which renders theLandingPage. - 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)
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 />insideProtectedLayout. - No routing changes are needed in
App.tsx.
State Handling
- We must ensure that navigating back to
/does not crash the app ifrepoDatais already present. - The current
LandingPagelogic 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 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
AOSSIE-Org/Devr.AI 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 95/100
AOSSIE-Org/Devr.AI#315 · 1 条评论 ·
-
Bump Weaviate image to 1.39.13 (Go 1.26.10 / CVE-2026-111943)可能已有人在做 @dudanogueira 于 38 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
AOSSIE-Org/Devr.AI#309 · 1 条评论 ·
-
DOCS UPDATE: Incorrect Flask command path in backend installation guide可能已有人在做 @Ashwin-Pillai-22 于 321 天前认领。 未关闭
难度 1/5 1 小时以内 新手友好度 68/100
AOSSIE-Org/Devr.AI#229 · 3 条评论 ·
-
BUG:Devr.AI Agent loses user_profile for returning users and fails to persist conversation summaries & cumulative interaction counts可能已有人在做 @shubhumre777 于 34 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 55/100
AOSSIE-Org/Devr.AI#311 · 2 条评论 ·
-
BUG: Local pytest suite fails to collect due to deprecated imports and mock schemas可能重新可做 关联的 PR 已关闭且未合并。 未关闭
难度 2/5 1-3 小时 新手友好度 25/100
AOSSIE-Org/Devr.AI#307 · 1 条评论 ·
查看 AOSSIE-Org/Devr.AI 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
pimutils/vdirsyncer#1242 ·
-
priority:P2
难度 2/5 1-3 小时 新手友好度 75/100
QuantConnect/lean-cli#792 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 82/100
open-webui/open-webui#35360 · 1 条评论 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 76/100
-
Suggest link: Destiny Verify (MIT zero-dependency pre-commit security, citation & link hygiene CLI)未关闭
难度 1/5 1 小时以内 新手友好度 68/100