Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 3.8k
fix(yaml): modules that require agent repo#873
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -9,6 +9,7 @@ import { | ||
| } from '@/components/ui/dropdown-menu' | ||
| import { ScrollArea } from '@/components/ui/scroll-area' | ||
| import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip' | ||
| import { isDev } from '@/lib/environment' | ||
| import { useCopilotStore } from '@/stores/copilot/store' | ||
| import { useChatStore } from '@/stores/panel/chat/store' | ||
| import { useConsoleStore } from '@/stores/panel/console/store' | ||
| @@ -304,14 +305,16 @@ export function Panel() { | ||
| > | ||
| Console | ||
| </button> | ||
| <button | ||
| onClick={() => handleTabClick('copilot')} | ||
| className={`panel-tab-base inline-flex flex-1 cursor-pointer items-center justify-center rounded-[10px] border border-transparent py-1 font-[450] text-sm outline-none transition-colors duration-200 ${ | ||
| isOpen && activeTab === 'copilot' ? 'panel-tab-active' : 'panel-tab-inactive' | ||
| }`} | ||
| > | ||
| Copilot | ||
| </button> | ||
| {!isDev && ( | ||
| <button | ||
| onClick={() => handleTabClick('copilot')} | ||
| className={`panel-tab-base inline-flex flex-1 cursor-pointer items-center justify-center rounded-[10px] border border-transparent py-1 font-[450] text-sm outline-none transition-colors duration-200 ${ | ||
| isOpen && activeTab === 'copilot' ? 'panel-tab-active' : 'panel-tab-inactive' | ||
| }`} | ||
| > | ||
| Copilot | ||
| </button> | ||
| )} | ||
Comment on lines
+308
to
+317
Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. logic: Consider what happens if a user has the copilot tab active when switching to dev mode or if activeTab is 'copilot' in dev mode | ||
| <button | ||
| onClick={() => handleTabClick('variables')} | ||
| className={`panel-tab-base inline-flex flex-1 cursor-pointer items-center justify-center rounded-[10px] border border-transparent py-1 font-[450] text-sm outline-none transition-colors duration-200 ${ | ||
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
style: The duplicate button logic appears redundant - it renders in expanded state for non-dev (!isDev && isExpanded) and always for dev (isDev). Consider simplifying to
{(isExpanded && !isDev) || isDev ? renderDuplicateButton() : null}for clarity.