From b76676963461a3cc4e4947d18560ad6353e6d4dc Mon Sep 17 00:00:00 2001 From: seb Date: Mon, 5 Oct 2026 01:01:03 +0200 Subject: [PATCH] u --- index.html | 7 +- src/colors.js | 348 +++++++++++++++++- src/components/AppShell.jsx | 5 +- src/components/HelpBadge.jsx | 29 +- src/components/LoginPage.jsx | 5 +- .../article/ArticleImageSearchDialog.jsx | 31 +- src/components/article/ArticlePhoto.jsx | 5 +- .../article/ArticlePhotosDialog.jsx | 20 +- .../article/ArticleStockAdjustDialog.jsx | 25 +- src/components/article/ArticleTileTab.jsx | 27 +- src/components/article/ArticleView.jsx | 5 +- .../article/boxes/ArticleViewBrand.jsx | 5 +- .../article/boxes/ArticleViewEANs.jsx | 8 +- .../article/boxes/ArticleViewLists.jsx | 12 +- .../article/boxes/ArticleViewName.jsx | 5 +- .../article/boxes/ArticleViewPrice.jsx | 8 +- .../article/boxes/ArticleViewStock.jsx | 18 +- src/components/article/boxes/PriceTaxRow.jsx | 9 +- src/components/article/boxes/PriceUnitRow.jsx | 5 +- .../article/boxes/TierPricePills.jsx | 5 +- .../article/tabs/ArticleHistoryTab.jsx | 22 +- .../article/tabs/ArticleSupplierTab.jsx | 12 +- .../brand/BrandImageSearchDialog.jsx | 31 +- src/components/brand/BrandThumb.jsx | 8 +- src/components/chat/AskUserPrompt.jsx | 28 +- src/components/chat/ChatDrawer.jsx | 33 +- src/components/chat/ChatFab.jsx | 29 +- src/components/chat/ChatFlowList.jsx | 17 +- src/components/chat/HealingMarkdown.jsx | 15 +- src/components/chat/NewConversationDialog.jsx | 18 +- .../manifest/ArticleSearchDialog.jsx | 5 +- src/components/manifest/Attachment.jsx | 34 +- .../manifest/BookDeliveryDialog.jsx | 8 +- src/components/manifest/DeliveryList.jsx | 5 +- src/components/manifest/ManifestFormLine.jsx | 6 +- src/components/manifest/ManifestHeader.jsx | 7 +- src/components/manifest/PdfViewerPanel.jsx | 11 +- src/components/manifest/TextEditorPanel.jsx | 11 +- src/components/manifest/manifestConfig.js | 24 +- src/components/tiles/ArticleTile.jsx | 36 +- src/components/tiles/CategoryTile.jsx | 14 +- src/index.css | 52 ++- src/main.jsx | 5 + src/nav.js | 3 +- src/routes/artikel.jsx | 6 +- src/routes/artikel/kategorien.jsx | 5 +- src/routes/artikel/lager.jsx | 11 +- src/routes/artikel/marken.jsx | 5 +- src/routes/artikel/merkmale.jsx | 27 +- src/routes/artikel/vorlagen.jsx | 8 +- src/routes/infos/ArticleHistoryPage.jsx | 5 +- src/routes/kunde.jsx | 5 +- src/routes/kunde/_entityId.jsx | 11 +- src/routes/kunde/gruppen.jsx | 5 +- src/routes/kunde/neu.jsx | 12 +- src/routes/lieferung/lieferanten.jsx | 5 +- src/routes/lieferung/neu.jsx | 13 +- src/theme/themes/default.js | 35 +- src/utils/textThumbnail.js | 14 +- 59 files changed, 903 insertions(+), 280 deletions(-) diff --git a/index.html b/index.html index 1eaa375..c978437 100644 --- a/index.html +++ b/index.html @@ -5,15 +5,18 @@ - + Dashfront - + {returnTo ? ( [b.id, b.name])); @@ -180,7 +183,7 @@ class ArtikelMarkenPage extends PureComponent { return ( - + {brands.length === 0 ? ( diff --git a/src/routes/artikel/merkmale.jsx b/src/routes/artikel/merkmale.jsx index 00245a8..8f532a2 100644 --- a/src/routes/artikel/merkmale.jsx +++ b/src/routes/artikel/merkmale.jsx @@ -24,6 +24,15 @@ import { notifyError } from '../../utils/notify'; import { setLastArticleSku } from '../../automats'; import attributeAutomat, { selectAttributes } from '../../automats/attributeAutomat'; import propertyAutomat, { selectProperties } from '../../automats/propertyAutomat'; +import { + BLUE_PANEL, + ORANGE_PANEL, + PURPLE_PANEL, + SELECT_BG, + SELECT_BG_HOVER, + SELECT_BORDER, + TINT_SUBTLE, +} from '../../colors'; function draftsFrom(items, key = 'name') { return Object.fromEntries((items || []).map((row) => [row.id, row[key]])); @@ -609,16 +618,10 @@ class ArtikelMerkmalePage extends PureComponent { return ( <> {/* SortableJS ghost / chosen styling from /artikel/lager */} - {/* Tile 1: Attribute (Auswahllisten) */} - + @@ -642,11 +645,11 @@ class ArtikelMerkmalePage extends PureComponent { borderRadius: 1.5, alignItems: 'center', cursor: 'pointer', - bgcolor: isSelected ? 'rgba(59, 130, 246, 0.12)' : 'transparent', - border: isSelected ? '1px solid rgba(59, 130, 246, 0.3)' : '1px solid transparent', + bgcolor: isSelected ? SELECT_BG : 'transparent', + border: isSelected ? `1px solid ${SELECT_BORDER}` : '1px solid transparent', transition: 'all 0.15s ease', '&:hover': { - bgcolor: isSelected ? 'rgba(59, 130, 246, 0.16)' : 'rgba(0, 0, 0, 0.04)', + bgcolor: isSelected ? SELECT_BG_HOVER : TINT_SUBTLE, }, }} data-id={a.id} @@ -764,7 +767,7 @@ class ArtikelMerkmalePage extends PureComponent { {/* Tile 2: Werte für das gewählte Attribut */} - + @@ -867,7 +870,7 @@ class ArtikelMerkmalePage extends PureComponent { {/* Tile 3: Merkmale (Freitext) */} - + diff --git a/src/routes/artikel/vorlagen.jsx b/src/routes/artikel/vorlagen.jsx index e46c05d..aab352a 100644 --- a/src/routes/artikel/vorlagen.jsx +++ b/src/routes/artikel/vorlagen.jsx @@ -25,6 +25,10 @@ import { notifyError } from '../../utils/notify'; import { setLastArticleSku } from '../../automats'; import { labeltemplate } from '../../api'; import { enqueueSnackbar } from 'notistack'; +import { + BLUE_BG, + SURFACE_BASE, +} from '../../colors'; const CanvasEditor = lazy(async () => { await import('react-canvas-label-editor/style.css'); @@ -465,7 +469,7 @@ class ArtikelVorlagenPage extends PureComponent { return ( <> - +