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

feat: removed notification, adjusted alert messages #2267

Merged
merged 1 commit into from
Sep 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
7 changes: 1 addition & 6 deletions src/components/App/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
import { colors } from '~/utils/colors'
import { updateBudget } from '~/utils/setBudget'
import version from '~/utils/versionHelper'
import { SuccessNotify } from '../common/SuccessToast'
import { ModalsContainer } from '../ModalsContainer'
import { ActionsToolbar } from './ActionsToolbar'
import { AppBar } from './AppBar'
Expand Down Expand Up @@ -161,7 +160,7 @@

queueRef.current = { nodes: [], edges: [] } // Reset the queue
addNewNode(batchedData) // Call the original addNewNode function with batched data
}, 2000) // Adjust delay as necessary
}, 3000) // Adjust delay as necessary
},
[addNewNode],
)
Expand Down Expand Up @@ -291,7 +290,7 @@
}

ws.onmessage = (event) => {
console.log('Message from server:', event.data)

Check warning on line 293 in src/components/App/index.tsx

View workflow job for this annotation

GitHub Actions / eslint-run

Unexpected console statement

Check warning on line 293 in src/components/App/index.tsx

View workflow job for this annotation

GitHub Actions / craco-build-run

Unexpected console statement

const data = JSON.parse(event.data)

Expand All @@ -302,11 +301,7 @@
const message = data?.message?.message

if (message) {
SuccessNotify(message)

setRunningProjectMessages(message)

console.log(message)
}

// Handle the message from the server here
Expand All @@ -317,7 +312,7 @@
}

ws.onclose = () => {
console.log('WebSocket connection closed')

Check warning on line 315 in src/components/App/index.tsx

View workflow job for this annotation

GitHub Actions / eslint-run

Unexpected console statement

Check warning on line 315 in src/components/App/index.tsx

View workflow job for this annotation

GitHub Actions / craco-build-run

Unexpected console statement
}
}, [runningProjectId, setRunningProjectMessages])

Expand Down
4 changes: 2 additions & 2 deletions src/components/Stats/Alerts/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ const AlertWrapper = styled(Flex).attrs({
const ContentWrapper = styled(Flex)`
max-height: 33vh;
max-width: 30vw;
background: ${colors.BG1};

.item {
background: ${colors.BG1};
padding: 4px 0;
padding: 8px 0;
border-bottom: 1px solid ${colors.black};
word-break: break-word;
}
Expand Down
Loading