Skip to content
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

Fixed(AI-Chat): AI Screen by Default Feature Flag #2363

Closed
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions cypress/e2e/trendingTopics/trendingTopics.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ describe('test trending topics', () => {
// wait for boltwall queue to send tweets to jarvis
cy.wait(70000)

cy.get('[data-testid="explore-graph-btn"]').click()

cy.wait('@getTrends').then((interception) => {
const responseBody = interception.response.body

Expand Down
2 changes: 0 additions & 2 deletions cypress/support/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,5 @@ Cypress.Commands.add('initialSetup', (username, budget) => {

cy.wait(['@loadAbout', '@loadLatest', '@loadStats'])

cy.get('[data-testid="explore-graph-btn"]', { timeout: 90000 }).should('be.visible').click()

cy.wait(['@getTrends'])
})
7 changes: 6 additions & 1 deletion src/stores/useAppStore/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { create } from 'zustand'
import { TAboutParams } from '~/network/fetchSourcesData'
import { useFeatureFlagStore } from '~/stores/useFeatureFlagStore'

export type SecondarySidebarActiveTab = '' | 'sentiment' | 'sources' | 'about'

Expand Down Expand Up @@ -71,7 +72,11 @@ export const useAppStore = create<AppStore>((set, get) => ({
transcriptIsOpen: !sidebarIsOpen ? false : get().transcriptIsOpen,
}),
setTranscriptOpen: (transcriptIsOpen) => set({ transcriptIsOpen }),
setUniverseQuestionIsOpen: () => set({ universeQuestionIsOpen: !get().universeQuestionIsOpen }),
setUniverseQuestionIsOpen: () => {
Shoaibdev7 marked this conversation as resolved.
Show resolved Hide resolved
const { chatInterfaceFeatureFlag } = useFeatureFlagStore.getState()

set({ universeQuestionIsOpen: chatInterfaceFeatureFlag ? !get().universeQuestionIsOpen : false })
},
setAppMetaData: (appMetaData) => set({ appMetaData }),
setShowCollapseButton: (showCollapseButton) => set({ showCollapseButton }),
setSelectedColor: (selectedColor) => set({ selectedColor }),
Expand Down
Loading