Skip to content

fix(toolkit): remove settings tab and fixes bug #267

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

Merged
merged 3 commits into from
Jun 24, 2024
Merged

fix(toolkit): remove settings tab and fixes bug #267

merged 3 commits into from
Jun 24, 2024

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
2 checks passed
@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.

3 participants