-
Notifications
You must be signed in to change notification settings - Fork 19
fix: diel country block #286
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
Conversation
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
🤖 AI Code Analysis Results📝 Manual Coding⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜ 0% 0 of 2,629 characters (0%) in newly added lines are AI-generated 📊 Analysis Summary
📋 Per-File Breakdown (New Lines Only)
📝 This PR contains traditional hand-written code. 📊 Raw Data (for dashboard){
"timestamp": "2025-09-29T11:11:29.550Z",
"repository": "deriv-com/deriv-api-docs",
"branch": "unknown",
"author": "unknown",
"summary": {
"totalCharacters": 2629,
"aiCharacters": 0,
"percentage": 0
},
"files": [
{
"name": "src/contexts/app-manager/app-manager.context.tsx",
"totalCharacters": 32,
"aiCharacters": 0,
"percentage": 0,
"status": "modified",
"hasAddedContent": true,
"addedContent": " is_dashboard_blocked: boolean;"
},
{
"name": "src/contexts/app-manager/app-manager.provider.tsx",
"totalCharacters": 312,
"aiCharacters": 0,
"percentage": 0,
"status": "modified",
"hasAddedContent": true,
"addedContent": " const { getAllApps, apps: updatedApps, error } = useGetApps();\n const [is_dashboard_blocked, setIsDashboardBlocked] = useState(false);\n useEffect(() => {\n if (error?.error?.code === 'AppList') {\n setIsDashboardBlocked(true);\n }\n }, [error]);\n\n is_dashboard_blocked,\n is_dashboard_blocked,"
},
{
"name": "src/contexts/auth/auth.provider.tsx",
"totalCharacters": 440,
"aiCharacters": 0,
"percentage": 0,
"status": "modified",
"hasAddedContent": true,
"addedContent": " try {\n const { authorize } = await apiManager.authorize(\n currentLoginAccount.token,\n setIsConnected,\n setIsAuthorized,\n );\n setIsAuthorized(true);\n setisSwitchingAccount(false);\n const { account_list, ...user } = authorize;\n setUserAccounts(account_list);\n setUser(user);\n } catch (error) {\n console.error('Failed to authorize:', error);\n }"
},
{
"name": "src/features/dashboard/components/permission-denied-error/permission-denied-error.scss",
"totalCharacters": 386,
"aiCharacters": 0,
"percentage": 0,
"status": "modified",
"hasAddedContent": true,
"addedContent": ".permission-denied-container {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n min-height: 60vh;\n padding: 2rem;\n text-align: center;\n}\n\n.permission-denied-content {\n max-width: 600px;\n margin: 0 auto;\n\n h1 {\n margin-bottom: 1rem;\n color: var(--ifm-color-danger);\n }\n\n p {\n margin-bottom: 2rem;\n font-size: 1.2rem;\n }\n}"
},
{
"name": "src/features/dashboard/components/permission-denied-error/permission-denied-error.tsx",
"totalCharacters": 1043,
"aiCharacters": 0,
"percentage": 0,
"status": "modified",
"hasAddedContent": true,
"addedContent": "import React from 'react';\nimport { translate } from '@docusaurus/Translate';\nimport { Button } from '@deriv-com/quill-ui';\nimport useDocusaurusContext from '@docusaurus/useDocusaurusContext';\nimport './permission-denied-error.scss';\n\nconst PermissionDeniedError = () => {\n const {\n i18n: { currentLocale },\n } = useDocusaurusContext();\n\n const is_en = currentLocale === 'en';\n const homeUrl = `${!is_en ? `/${currentLocale}` : ''}/`;\n\n const handleGoHome = () => {\n window.location.href =..."
},
{
"name": "src/features/dashboard/dashboard.tsx",
"totalCharacters": 298,
"aiCharacters": 0,
"percentage": 0,
"status": "modified",
"hasAddedContent": true,
"addedContent": "import PermissionDeniedError from './components/permission-denied-error/permission-denied-error';\n const { setIsDashboard, is_dashboard_blocked } = useAppManager();\n\n // Show permission denied error if the flag is set\n if (is_logged_in && is_dashboard_blocked) return <PermissionDeniedError />;\n"
},
{
"name": "src/features/dashboard/hooks/useGetApp/index.tsx",
"totalCharacters": 118,
"aiCharacters": 0,
"percentage": 0,
"status": "modified",
"hasAddedContent": true,
"addedContent": " const { send, data, is_loading, error } = useWS('app_list');\n return { getAllApps, apps: data, is_loading, error };"
}
]
} 🚀 Analysis powered by ShiftAI • Analyzes only PR changes, not entire files |
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.OpenSSF Scorecard
Scanned Manifest Files |
prince-deriv
approved these changes
Sep 29, 2025
nijil-deriv
approved these changes
Sep 29, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
🤖 Auto-generated PR
This PR was automatically created by ShiftAI CLI.
fix: diel country block