develop #6
|
|
@ -0,0 +1,14 @@
|
|||
node_modules
|
||||
**/node_modules
|
||||
.venv
|
||||
**/.venv
|
||||
__pycache__
|
||||
**/__pycache__
|
||||
*.pyc
|
||||
*.pyo
|
||||
*.pyd
|
||||
.pytest_cache
|
||||
**/dist
|
||||
.git
|
||||
.gitignore
|
||||
|
||||
|
|
@ -14,7 +14,7 @@ COPY frontend/package.json ./
|
|||
RUN npm install
|
||||
|
||||
COPY frontend/ ./
|
||||
RUN npm run build || (mkdir -p dist && cp index.html dist/index.html)
|
||||
RUN npm run build
|
||||
|
||||
# ---- Stage 2: Hardened Nginx Runtime ----
|
||||
FROM nginx:1.27-alpine AS runtime
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -6,7 +6,6 @@
|
|||
*/
|
||||
import React from 'react';
|
||||
import { authStore } from '../../stores/authStore';
|
||||
import { Card } from '../../components/ui/Card';
|
||||
import { Button } from '../../components/ui/Button';
|
||||
import { ShieldAlert, ArrowLeft, LogOut } from 'lucide-react';
|
||||
|
||||
|
|
|
|||
|
|
@ -7,8 +7,7 @@
|
|||
import React, { useState } from 'react';
|
||||
import { authStore } from '../../stores/authStore';
|
||||
import { Button } from '../../components/ui/Button';
|
||||
import { Card } from '../../components/ui/Card';
|
||||
import { ShieldCheck, LogIn, ChevronRight } from 'lucide-react';
|
||||
import { ShieldCheck, LogIn } from 'lucide-react';
|
||||
|
||||
export const LoginView: React.FC = () => {
|
||||
const [selectedPersona, setSelectedPersona] = useState<string>('buyer@malwa-agri.demo');
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ import { apiClient } from '../../services/api';
|
|||
import { Card } from '../../components/ui/Card';
|
||||
import { Button } from '../../components/ui/Button';
|
||||
import { StatusPill } from '../../components/ui/StatusPill';
|
||||
import { LogOut, ShieldCheck, KeyRound } from 'lucide-react';
|
||||
import { LogOut, ShieldCheck } from 'lucide-react';
|
||||
|
||||
export const SessionView: React.FC = () => {
|
||||
const [isLoggingOut, setIsLoggingOut] = useState<boolean>(false);
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import { tenantStore } from '../../stores/tenantStore';
|
|||
import { apiClient } from '../../services/api';
|
||||
import { StatusPill } from '../../components/ui/StatusPill';
|
||||
import { Button } from '../../components/ui/Button';
|
||||
import { FileText, Code2, Eye } from 'lucide-react';
|
||||
import { Eye } from 'lucide-react';
|
||||
|
||||
/**
|
||||
* Immutable Transaction Audit Log Viewer Screen.
|
||||
|
|
@ -51,7 +51,7 @@ export const AuditLogView: React.FC = () => {
|
|||
const fetchAuditLogs = async (tenantId: string) => {
|
||||
setLoading(true);
|
||||
setError(null);
|
||||
const resp = await apiClient<{ events: AuditEvent[] }>('/api/v1/audit/events');
|
||||
const resp = await apiClient<{ events: AuditEvent[] }>(`/api/v1/audit/events?tenant_id=${encodeURIComponent(tenantId)}`);
|
||||
setLoading(false);
|
||||
if (resp.status === 200 && resp.data?.events) {
|
||||
setEvents(resp.data.events);
|
||||
|
|
@ -90,6 +90,12 @@ export const AuditLogView: React.FC = () => {
|
|||
</div>
|
||||
)}
|
||||
|
||||
{loading && (
|
||||
<div className="text-xs text-text-muted font-mono">
|
||||
Refreshing audit log ledger...
|
||||
</div>
|
||||
)}
|
||||
|
||||
{/* Audit Log Table adhering to DESIGN.md */}
|
||||
<div className="bg-card-surface border border-card-border rounded shadow-none overflow-hidden">
|
||||
<table className="min-w-full divide-y divide-card-border">
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@ import React, { useEffect, useState } from 'react';
|
|||
import { tenantStore, TenantMembershipInfo } from '../../stores/tenantStore';
|
||||
import { apiClient } from '../../services/api';
|
||||
import { Building2, ChevronDown } from 'lucide-react';
|
||||
import { StatusPill } from '../../components/ui/StatusPill';
|
||||
|
||||
/**
|
||||
* Header Tenant Switcher Dropdown Component.
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import React, { useEffect, useState } from 'react';
|
|||
import { apiClient } from '../../services/api';
|
||||
import { Button } from '../../components/ui/Button';
|
||||
import { StatusPill } from '../../components/ui/StatusPill';
|
||||
import { Plus, Building2, SlidersHorizontal } from 'lucide-react';
|
||||
import { Plus } from 'lucide-react';
|
||||
|
||||
/**
|
||||
* Platform Tenants Management View.
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import { tenantStore } from '../../stores/tenantStore';
|
|||
import { apiClient } from '../../services/api';
|
||||
import { Button } from '../../components/ui/Button';
|
||||
import { StatusPill } from '../../components/ui/StatusPill';
|
||||
import { UserPlus, UserCheck, Shield } from 'lucide-react';
|
||||
import { UserPlus } from 'lucide-react';
|
||||
|
||||
/**
|
||||
* Tenant Members & Roles Management View.
|
||||
|
|
|
|||
|
|
@ -0,0 +1,6 @@
|
|||
/// <reference types="vite/client" />
|
||||
|
||||
declare const process: {
|
||||
env: Record<string, string | undefined>;
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue