Skip to content

Conversation

@knajjars
Copy link
Collaborator

@knajjars knajjars commented Jun 24, 2024

AI Description

This PR makes changes to the Agents component, including:

  • Renaming isAgentsSidePanelOpen to isAgentsSidePanel in AgentsList.tsx and AgentsSidePanel.tsx.
  • Replacing useSettingsStore with useAgentsStore in AgentsList.tsx, AgentsSidePanel.tsx, MobileHeader.tsx, and Settings/SettingsDrawer.tsx.
  • Adding useRecentAgents from '@/hooks/agents'inAgentCard.tsx, CreateAgentForm.tsx, and DiscoverAgentCard.tsx`.
  • Replacing useAgentsStore with useRecentAgents in AgentCard.tsx.
  • Replacing useAgentsStore with useSettingsStore in UpdateAgentPanel.tsx.
  • Adding useAgentsStore in Conversation/index.tsx and Conversation/MessagingContainer.tsx.
  • Replacing useSettingsStore with useAgentsStore in Conversation/Header.tsx.
  • Adding useLocalStorageValue from '@react-hookz/web'inhooks/agents.ts`.
  • Adding LOCAL_STORAGE_KEYS from '@/constants'inhooks/agents.ts`.
  • Replacing useAgentsStore with useLocalStorageValue and LOCAL_STORAGE_KEYS in hooks/agents.ts.
  • Adding useAgentsStore in stores/index.ts.
  • Removing useAgentsStore from stores/persistedStore.ts.
  • Adding isEditAgentPanelOpen and isAgentsSidePanelOpen to the INITIAL_STATE in stores/slices/agentsSlice.ts.
  • Replacing isEditAgentPanelOpen with setEditAgentPanelOpen in stores/slices/settingsSlice.ts.
  • Removing isAgentsSidePanelOpen from State and Actions in stores/slices/settingsSlice.ts.
  • Removing setIsAgentsSidePanelOpen from Actions in stores/slices/settingsSlice.ts.
  • Adding useAgentsStore in stores/slices/settingsSlice.ts.

@knajjars knajjars changed the title fix(toolkit): fix(toolkit): remove settings tab and fixes bug Jun 24, 2024
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (main@0bf8b73). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #267   +/-   ##
=======================================
  Coverage        ?   86.66%           
=======================================
  Files           ?      149           
  Lines           ?     5549           
  Branches        ?        0           
=======================================
  Hits            ?     4809           
  Misses          ?      740           
  Partials        ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@knajjars knajjars merged commit 235c536 into main Jun 24, 2024
@knajjars knajjars deleted the OS-2181 branch June 24, 2024 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants