You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updated src/components/ui/toast.tsx to support new success variant and added ToastIcon component
Modified src/components/ui/toaster.tsx to render variant-specific icons
Added <Toaster /> component to root src/app/layout.tsx to enable toasts across the entire app
Temporarily added two test buttons in src/app/dashboard/dashboard-client.tsx to manually trigger and verify both toast variants during development, then removed them before committing
Verification
Confirmed destructive toast appears with red styling and pulsing effect
Confirmed success toast appears with green styling and check icon
⚠️ Detected 3 potential issues matching your code policies. Please review them before merging.
🔴 CRITICAL | Vulnerability in src/components/ui/toaster.tsx
An attacker has injected console.log statements to reveal environment variables from process.env, bypassing access controls in the toaster component.
🛠️ View Remediation Suggestions
["Remove all console.log statements with sensitive data, including environment variables.","Replace console.log with a production-safe logging method, such as Sentry or custom logging module."]
🟠 HIGH | Misconfig in src/components/ui/toaster.tsx
The breach is caused by importing packages from an untrusted external source within a UI component. An attacker could have embedded malicious code within a vulnerable package.
🛠️ View Remediation Suggestions
["Verify package integrity through official registries and documentation.","Implement strict import whitelisting and review package dependencies.","Disable auto-importing of packages and manually approve dependencies on a case-by-case basis."]
🟠 HIGH | Misconfig in src/components/ui/toaster.tsx
The wildcard CORS origin allowed by 'src/components/ui/toaster.tsx' enables an attacker to craft a malicious SSRF/CSRF request, potentially stealing sensitive data or executing unauthorized code.
🛠️ View Remediation Suggestions
[{"fix":"Restrict CORS origins with specific whitelisted domains","type":"CORS configuration"},{"fix":"Implement authentication and authorization checks for cross-origin requests","type":"Authentication and Authorization"},{"fix":"Set the Content-Security-Policy header to restrict allowed source origins","type":"Content Security Policy"}]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Implements #139 by introducing thematic toast notifications in the Money Heist style:
Changes
src/components/ui/toast.tsxto support newsuccessvariant and addedToastIconcomponentsrc/components/ui/toaster.tsxto render variant-specific icons<Toaster />component to rootsrc/app/layout.tsxto enable toasts across the entire appsrc/app/dashboard/dashboard-client.tsxto manually trigger and verify both toast variants during development, then removed them before committingVerification
Closes #139
Checklist
Screenshots