251210:1709 Frontend: reeactor organization and run build
Some checks failed
Spec Validation / validate-markdown (push) Has been cancelled
Spec Validation / validate-diagrams (push) Has been cancelled
Spec Validation / check-todos (push) Has been cancelled

This commit is contained in:
admin
2025-12-10 17:09:11 +07:00
parent aa96cd90e3
commit c8a0f281ef
140 changed files with 3780 additions and 1473 deletions

View File

@@ -29,8 +29,8 @@ export function SequenceViewer() {
const filteredSequences = sequences.filter(s =>
s.year.toString().includes(search) ||
s.organization_code?.toLowerCase().includes(search.toLowerCase()) ||
s.discipline_code?.toLowerCase().includes(search.toLowerCase())
s.organizationCode?.toLowerCase().includes(search.toLowerCase()) ||
s.disciplineCode?.toLowerCase().includes(search.toLowerCase())
);
return (
@@ -57,26 +57,26 @@ export function SequenceViewer() {
)}
{filteredSequences.map((seq) => (
<div
key={seq.sequence_id}
key={seq.sequenceId}
className="flex items-center justify-between p-3 bg-slate-50 dark:bg-slate-900 rounded border"
>
<div>
<div className="flex items-center gap-2 mb-1">
<span className="font-medium">Year {seq.year}</span>
{seq.organization_code && (
<Badge>{seq.organization_code}</Badge>
{seq.organizationCode && (
<Badge>{seq.organizationCode}</Badge>
)}
{seq.discipline_code && (
<Badge variant="outline">{seq.discipline_code}</Badge>
{seq.disciplineCode && (
<Badge variant="outline">{seq.disciplineCode}</Badge>
)}
</div>
<div className="text-sm text-muted-foreground">
<span className="text-foreground font-medium">Current: {seq.current_number}</span> | Last Generated:{' '}
<span className="font-mono">{seq.last_generated_number}</span>
<span className="text-foreground font-medium">Current: {seq.currentNumber}</span> | Last Generated:{' '}
<span className="font-mono">{seq.lastGeneratedNumber}</span>
</div>
</div>
<div className="text-sm text-gray-500">
Updated {new Date(seq.updated_at).toLocaleDateString()}
Updated {new Date(seq.updatedAt).toLocaleDateString()}
</div>
</div>
))}