diff --git a/.github/workflows/pr-target-check.yml b/.github/workflows/pr-target-check.yml index 18af621f..5803a10b 100644 --- a/.github/workflows/pr-target-check.yml +++ b/.github/workflows/pr-target-check.yml @@ -1,29 +1,29 @@ name: Redirect PRs to dev on: - pull_request_target: - branches: - - main + pull_request_target: + branches: + - main jobs: - close-and-redirect: - runs-on: ubuntu-latest - permissions: - pull-requests: write - steps: - - name: Close PR and redirect to dev - uses: actions/github-script@v7 - with: - script: | - await github.rest.issues.createComment({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: context.payload.pull_request.number, - body: "πŸ‘‹ Thanks for your contribution! We don't accept pull requests directly to `main`. Please re-open your PR targeting the `dev` branch instead. See our contributing guide for details." - }); - await github.rest.pulls.update({ - owner: context.repo.owner, - repo: context.repo.repo, - pull_number: context.payload.pull_request.number, - state: 'closed' - }); + close-and-redirect: + runs-on: ubuntu-latest + permissions: + pull-requests: write + steps: + - name: Close PR and redirect to dev + uses: actions/github-script@v7 + with: + script: | + await github.rest.issues.createComment({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: context.payload.pull_request.number, + body: "πŸ‘‹ Thanks for your contribution! We don't accept pull requests directly to `main`. Please re-open your PR targeting the `dev` branch instead. See our contributing guide for details." + }); + await github.rest.pulls.update({ + owner: context.repo.owner, + repo: context.repo.repo, + pull_number: context.payload.pull_request.number, + state: 'closed' + }); diff --git a/src/components/common/NotificationBell.tsx b/src/components/common/NotificationBell.tsx index 3cbefd94..37844f3d 100644 --- a/src/components/common/NotificationBell.tsx +++ b/src/components/common/NotificationBell.tsx @@ -1,8 +1,16 @@ -import { Bell } from 'lucide-react'; +import { + Bell, + ArrowRightLeft, + Clock, + TrendingUp, + UserPlus, + Key, +} from 'lucide-react'; import { useNavigate } from 'react-router'; import { cn } from '@/lib/utils'; import { useNotifications } from '@/hooks/useNotifications'; import { formatRelativeTime } from '@/utils/time.utils'; +import type { NotificationType } from '@/services/notification.service'; import { DropdownMenu, DropdownMenuContent, @@ -18,16 +26,80 @@ interface NotificationBellProps { className?: string; } +function renderNotificationIcon(type: NotificationType) { + switch (type) { + case 'trade_completed': + return ( +