mirror of
https://github.com/kjanat/livedash-node.git
synced 2026-01-16 10:12:09 +01:00
refactor: fix biome linting issues and update project documentation
- Fix 36+ biome linting issues reducing errors/warnings from 227 to 191 - Replace explicit 'any' types with proper TypeScript interfaces - Fix React hooks dependencies and useCallback patterns - Resolve unused variables and parameter assignment issues - Improve accessibility with proper label associations - Add comprehensive API documentation for admin and security features - Update README.md with accurate PostgreSQL setup and current tech stack - Create complete documentation for audit logging, CSP monitoring, and batch processing - Fix outdated project information and missing developer workflows
This commit is contained in:
@ -12,6 +12,7 @@ import {
|
||||
Plus,
|
||||
Search,
|
||||
Settings,
|
||||
Shield,
|
||||
User,
|
||||
Users,
|
||||
} from "lucide-react";
|
||||
@ -234,7 +235,7 @@ export default function PlatformDashboard() {
|
||||
description: (
|
||||
<div className="space-y-3">
|
||||
<p className="font-medium">
|
||||
Company "{companyName}" has been created.
|
||||
Company "{companyName}" has been created.
|
||||
</p>
|
||||
<div className="space-y-2">
|
||||
<div className="flex items-center justify-between bg-muted p-2 rounded">
|
||||
@ -366,6 +367,15 @@ export default function PlatformDashboard() {
|
||||
</p>
|
||||
</div>
|
||||
<div className="flex gap-4 items-center">
|
||||
<Button
|
||||
variant="outline"
|
||||
size="sm"
|
||||
onClick={() => router.push("/platform/security")}
|
||||
>
|
||||
<Shield className="w-4 h-4 mr-2" />
|
||||
Security Monitoring
|
||||
</Button>
|
||||
|
||||
<ThemeToggle />
|
||||
|
||||
{/* Search Filter */}
|
||||
@ -491,7 +501,7 @@ export default function PlatformDashboard() {
|
||||
<div className="flex items-center gap-2">
|
||||
{searchTerm && (
|
||||
<Badge variant="outline" className="text-xs">
|
||||
Search: "{searchTerm}"
|
||||
Search: "{searchTerm}"
|
||||
</Badge>
|
||||
)}
|
||||
<Dialog open={showAddCompany} onOpenChange={setShowAddCompany}>
|
||||
@ -693,7 +703,7 @@ export default function PlatformDashboard() {
|
||||
<div className="text-center py-8 text-muted-foreground">
|
||||
{searchTerm ? (
|
||||
<div className="space-y-2">
|
||||
<p>No companies match "{searchTerm}".</p>
|
||||
<p>No companies match "{searchTerm}".</p>
|
||||
<Button
|
||||
variant="link"
|
||||
onClick={() => setSearchTerm("")}
|
||||
|
||||
Reference in New Issue
Block a user