Portal-Admin: archivierte Projekte/Kunden ausblenden, Kundentabelle ohne Horizontal-Scroll

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Claude
2026-07-12 19:30:16 +00:00
parent 1b4262b09f
commit b6f5ea11ec
3 changed files with 28 additions and 11 deletions

View File

@@ -105,7 +105,9 @@ router.get('/projects', async (req, res) => {
])
const nameById = customerNameMap(customers)
let items = projects.map((p) => ({
let items = projects
.filter((p) => !p.archived)
.map((p) => ({
id: p.$id,
projectName: p.projectName || '',
subdomain: p.subdomain || '',
@@ -155,7 +157,9 @@ router.get('/customers', async (req, res) => {
if (p.customerId) projectCount[p.customerId] = (projectCount[p.customerId] || 0) + 1
}
let items = customers.map((c) => ({
let items = customers
.filter((c) => !c.archived)
.map((c) => ({
id: c.$id,
code: c.code || '',
name: c.name || '',