feat: remove "Agent Tools" from side navigation and related components

- Deleted the "Agent Tools" navigation item from the sidebar.
- Updated keyboard shortcuts and app store types to reflect the removal.
- Cleaned up imports and references in relevant files.
- Retained the `agent-tools-view.tsx` component for potential future use.
This commit is contained in:
Cody Seibert
2025-12-12 02:50:02 -05:00
parent ba24753630
commit b950f13e11
10 changed files with 69 additions and 58 deletions

View File

@@ -1,29 +0,0 @@
## Summary
I've implemented the requested feature. Here's what was changed:
### Changes Made to `apps/app/src/components/ui/course-promo-badge.tsx`:
1. **Removed the modal dialog completely** - The `Dialog` component and all its sub-components (`DialogContent`, `DialogHeader`, `DialogTitle`, `DialogDescription`, `DialogFooter`) along with the modal state (`open`) have been removed.
2. **Changed from button to direct link** - The `<button>` element that triggered the modal has been replaced with an `<a>` anchor tag that links directly to `https://agenticjumpstart.com`.
3. **Simplified imports** - Removed unused imports:
- Removed: `Rocket`, `ExternalLink`, `Code`, `MessageSquare`, `Brain`, `Terminal` from lucide-react
- Removed: All Dialog-related imports from `./dialog`
- Removed: `Button` import
- Kept: `Sparkles` and `X` (still needed for the badge UI)
4. **Added proper link attributes** - Added `target="_blank"` to open in a new tab and `rel="noopener noreferrer"` for security best practices.
5. **Updated dismiss button** - Added `e.preventDefault()` to the dismiss button's click handler to prevent the link from being followed when clicking the X to dismiss the badge.
### Behavior:
- **Before**: Clicking "Become a 10x Dev" opened a modal dialog with course information and a "Get Started" button that opened the site
- **After**: Clicking "Become a 10x Dev" navigates directly to `https://agenticjumpstart.com` in a new tab
- The dismiss (X) button functionality remains unchanged - clicking it hides the badge
### Notes for Developer:
- The TypeScript error shown during build check is unrelated to this change (it's in `use-auto-mode.ts` file and was pre-existing)
- The component is now significantly simpler with less code to maintain
- No tests were found specifically for this component, so no test updates were needed

View File

@@ -1,14 +0,0 @@
{
"category": "Uncategorized",
"description": "instead of showing a modal when clicking become a 10x dev, just load up a new link directly to the agenticjumpstart.com site",
"steps": [],
"status": "completed",
"images": [],
"imagePaths": [],
"skipTests": true,
"model": "opus",
"thinkingLevel": "none",
"id": "feature-1765524702667-c4ede0vih",
"startedAt": "2025-12-12T07:41:40.120Z",
"updatedAt": "2025-12-12T07:43:00.682Z"
}

View File

@@ -0,0 +1,33 @@
The navigation now shows only:
- **Project** section: Kanban Board, Agent Runner
- **Tools** section: Spec Editor, Context, AI Profiles
The "Agent Tools" item has been successfully removed from the side navigation.
## Summary
I've successfully removed "Agent Tools" from the side navigation by making the following changes:
### Files Modified:
1. **`apps/app/src/components/layout/sidebar.tsx`**
- Removed the navigation item for "Agent Tools" (id: "tools")
- Removed the unused `Wrench` icon import from lucide-react
2. **`apps/app/src/components/ui/keyboard-map.tsx`**
- Removed `tools: "Agent Tools"` from `SHORTCUT_LABELS`
- Removed `tools: "navigation"` from `SHORTCUT_CATEGORIES`
3. **`apps/app/src/store/app-store.ts`**
- Removed `"tools"` from the `ViewMode` type union
- Removed `tools: string` from the `KeyboardShortcuts` interface
- Removed `tools: "T"` from `DEFAULT_KEYBOARD_SHORTCUTS`
4. **`apps/app/src/app/page.tsx`**
- Removed the import for `AgentToolsView`
- Removed the `case "tools": return <AgentToolsView />` from the view switch statement
### Notes:
- The `agent-tools-view.tsx` component file was **not** deleted, as the user only requested to remove it from the navigation. The component remains in the codebase in case it's needed later.
- The keyboard shortcut "T" is now available for other features if needed.
- All lint errors found are pre-existing in the codebase and not related to these changes.

View File

@@ -0,0 +1,14 @@
{
"category": "Uncategorized",
"description": "for now, just remove agent tools from the side navigation, they are useless",
"steps": [],
"status": "completed",
"images": [],
"imagePaths": [],
"skipTests": true,
"model": "opus",
"thinkingLevel": "none",
"id": "feature-1765525566442-wsdrtodkc",
"startedAt": "2025-12-12T07:46:08.507Z",
"updatedAt": "2025-12-12T07:48:34.967Z"
}

View File

@@ -7,7 +7,6 @@ import { BoardView } from "@/components/views/board-view";
import { SpecView } from "@/components/views/spec-view";
import { AgentView } from "@/components/views/agent-view";
import { SettingsView } from "@/components/views/settings-view";
import { AgentToolsView } from "@/components/views/agent-tools-view";
import { InterviewView } from "@/components/views/interview-view";
import { ContextView } from "@/components/views/context-view";
import { ProfilesView } from "@/components/views/profiles-view";
@@ -171,8 +170,6 @@ export default function Home() {
return <AgentView />;
case "settings":
return <SettingsView />;
case "tools":
return <AgentToolsView />;
case "interview":
return <InterviewView />;
case "context":

View File

@@ -13,7 +13,6 @@ import {
Bot,
Folder,
X,
Wrench,
PanelLeft,
PanelLeftClose,
ChevronDown,
@@ -577,12 +576,6 @@ export function Sidebar() {
icon: BookOpen,
shortcut: shortcuts.context,
},
{
id: "tools",
label: "Agent Tools",
icon: Wrench,
shortcut: shortcuts.tools,
},
{
id: "profiles",
label: "AI Profiles",

View File

@@ -88,7 +88,6 @@ const SHORTCUT_LABELS: Record<keyof KeyboardShortcuts, string> = {
agent: "Agent Runner",
spec: "Spec Editor",
context: "Context",
tools: "Agent Tools",
settings: "Settings",
profiles: "AI Profiles",
toggleSidebar: "Toggle Sidebar",
@@ -109,7 +108,6 @@ const SHORTCUT_CATEGORIES: Record<keyof KeyboardShortcuts, "navigation" | "ui" |
agent: "navigation",
spec: "navigation",
context: "navigation",
tools: "navigation",
settings: "navigation",
profiles: "navigation",
toggleSidebar: "ui",

View File

@@ -9,7 +9,6 @@ export type ViewMode =
| "board"
| "agent"
| "settings"
| "tools"
| "interview"
| "context"
| "profiles"
@@ -113,7 +112,6 @@ export interface KeyboardShortcuts {
agent: string;
spec: string;
context: string;
tools: string;
settings: string;
profiles: string;
@@ -139,7 +137,6 @@ export const DEFAULT_KEYBOARD_SHORTCUTS: KeyboardShortcuts = {
agent: "A",
spec: "D",
context: "C",
tools: "T",
settings: "S",
profiles: "M",

File diff suppressed because one or more lines are too long

View File

@@ -6,5 +6,13 @@
"workingDirectory": "/Users/webdevcody/Workspace/automaker",
"createdAt": "2025-12-12T07:12:04.582Z",
"updatedAt": "2025-12-12T07:28:18.571Z"
},
"msg_1765525491205_xeuqv7i9v": {
"id": "msg_1765525491205_xeuqv7i9v",
"name": "Optimal Helper 52",
"projectPath": "/Users/webdevcody/Workspace/automaker",
"workingDirectory": "/Users/webdevcody/Workspace/automaker",
"createdAt": "2025-12-12T07:44:51.205Z",
"updatedAt": "2025-12-12T07:46:03.339Z"
}
}