From a604fb494fe3ef8a90df8527078fe3bf83829e3c Mon Sep 17 00:00:00 2001 From: Pepe44DEV Date: Wed, 1 Jul 2026 15:46:04 +0200 Subject: [PATCH] simplify heroui layouts and add sonarqube workflow --- .gitea/workflows/sonarqube.yml | 22 +++ frontend/src/components/layout/Sidebar.tsx | 115 ++++++++------- .../src/components/shared/ActivityTile.tsx | 11 +- frontend/src/components/shared/FormPanel.tsx | 10 +- frontend/src/components/shared/ListPanel.tsx | 10 +- .../src/components/shared/SectionCard.tsx | 6 +- frontend/src/components/shared/StatCard.tsx | 14 +- frontend/src/pages/Dashboard.tsx | 131 +++++++----------- frontend/src/pages/SupportLogin.tsx | 76 +++++----- frontend/src/pages/Welcome.tsx | 69 ++++----- 10 files changed, 237 insertions(+), 227 deletions(-) create mode 100644 .gitea/workflows/sonarqube.yml diff --git a/.gitea/workflows/sonarqube.yml b/.gitea/workflows/sonarqube.yml new file mode 100644 index 0000000..1301c75 --- /dev/null +++ b/.gitea/workflows/sonarqube.yml @@ -0,0 +1,22 @@ +name: SonarQube + +on: + push: + branches: + - main + - master + pull_request: + +jobs: + sonar: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - uses: sonarsource/sonarqube-scan-action@v5 + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_HOST_URL: http://10.0.0.15:9001 diff --git a/frontend/src/components/layout/Sidebar.tsx b/frontend/src/components/layout/Sidebar.tsx index 15e5d5d..576dc30 100644 --- a/frontend/src/components/layout/Sidebar.tsx +++ b/frontend/src/components/layout/Sidebar.tsx @@ -1,19 +1,20 @@ import { useState } from 'react'; -import { Avatar, Button, Chip, ScrollShadow, Tooltip } from '@heroui/react'; import { - ChevronLeft, ChevronRight, LogOut, Server, PanelLeftClose, PanelLeft, - Activity, AudioLines, CalendarDays, ClipboardList, Home, - LogIn, Music, Puzzle, RadioTower, Settings, Shield, Sparkles, - Tag, Ticket, Wrench, Bot + Avatar, Button, Card, CardContent, ScrollShadow, Tooltip, + Select, SelectTrigger, SelectValue, SelectPopover, ListBox, ListBoxItem +} from '@heroui/react'; +import { + LogOut, PanelLeftClose, PanelLeft, Activity, AudioLines, CalendarDays, + ClipboardList, Home, LogIn, Music, Puzzle, RadioTower, Settings, + Shield, Sparkles, Tag, Ticket, Wrench } from 'lucide-react'; import { useApp } from '../../context/AppContext'; -import { guildIconUrl } from '../../utils/formatters'; const navGroups = [ { label: 'Dashboard', items: [ - { key: 'overview', label: 'Übersicht', icon: }, + { key: 'overview', label: 'Uebersicht', icon: }, ] }, { @@ -61,44 +62,41 @@ export function Sidebar() { const { user, guilds, currentGuildId, section, setCurrentGuildId, setSection, handleLogout } = useApp(); const [collapsed, setCollapsed] = useState(false); - const selectedGuild = guilds.find((g) => g.id === currentGuildId); - return ( -