From e60522495a8f4608284dd49201b474df0deb27db Mon Sep 17 00:00:00 2001 From: rajch_ales Date: Wed, 5 Aug 2026 12:52:06 +0200 Subject: [PATCH] Configure Tailwind styling pipeline --- agent.md | 8 + package-lock.json | 1118 +++++++++++++++++++++++++- package.json | 8 +- public/styles.css | 854 +------------------- src/tailwind-components.css | 852 ++++++++++++++++++++ src/tailwind.css | 39 + tests/ui/catalog-maker.smoke.spec.js | 9 + 7 files changed, 2033 insertions(+), 855 deletions(-) create mode 100644 src/tailwind-components.css create mode 100644 src/tailwind.css diff --git a/agent.md b/agent.md index 18a577f..00636c8 100644 --- a/agent.md +++ b/agent.md @@ -29,6 +29,14 @@ This project replaces the Excel/VBA workflow named `Catalog maker - 20` with a N - Keep screenshots and traces in Playwright's ignored `test-results/` and `playwright-report/` directories; do not commit them. - A UI change is not complete until the relevant Playwright checks pass. +## Styling workflow + +- Use Tailwind CSS for new styling and UI changes. +- Keep shared tokens in `src/tailwind.css` using `@theme` and base/component layers. +- Run `npm run css:build` after styling changes; `public/styles.css` is generated output. +- Prefer Tailwind utility classes and Tailwind-style component patterns for buttons, panels, dialogs and responsive layouts. +- Use Playwright to inspect the rendered result after every visual change at desktop and narrow viewport sizes. + ## Runtime - Start the web app with `npm run dev`. diff --git a/package-lock.json b/package-lock.json index ed0dbc3..3b17de6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,7 +13,9 @@ "selenium-webdriver": "^4.46.0" }, "devDependencies": { - "playwright": "^1.62.1" + "@tailwindcss/cli": "^4.3.3", + "playwright": "^1.62.1", + "tailwindcss": "^4.3.3" }, "engines": { "node": ">=20" @@ -25,6 +27,641 @@ "integrity": "sha512-RzahvqTkfpY2jsDxo8YItPX+/iZ6hbiikw1YhE0bA9EKBR5Og8Pa6FHn9PO9M0zaXRVsr0GFQLKbB/0rzy9SzA==", "license": "Apache-2.0" }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.13", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", + "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/remapping": { + "version": "2.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz", + "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", + "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", + "dev": true, + "license": "MIT" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.31", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", + "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@parcel/watcher": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher/-/watcher-2.5.1.tgz", + "integrity": "sha512-dfUnCxiN9H4ap84DvD2ubjw+3vUNpstxa0TneY/Paat8a3R4uQZDLSvWjmznAY/DoahqTHl9V46HF/Zs3F29pg==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "dependencies": { + "detect-libc": "^1.0.3", + "is-glob": "^4.0.3", + "micromatch": "^4.0.5", + "node-addon-api": "^7.0.0" + }, + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "optionalDependencies": { + "@parcel/watcher-android-arm64": "2.5.1", + "@parcel/watcher-darwin-arm64": "2.5.1", + "@parcel/watcher-darwin-x64": "2.5.1", + "@parcel/watcher-freebsd-x64": "2.5.1", + "@parcel/watcher-linux-arm-glibc": "2.5.1", + "@parcel/watcher-linux-arm-musl": "2.5.1", + "@parcel/watcher-linux-arm64-glibc": "2.5.1", + "@parcel/watcher-linux-arm64-musl": "2.5.1", + "@parcel/watcher-linux-x64-glibc": "2.5.1", + "@parcel/watcher-linux-x64-musl": "2.5.1", + "@parcel/watcher-win32-arm64": "2.5.1", + "@parcel/watcher-win32-ia32": "2.5.1", + "@parcel/watcher-win32-x64": "2.5.1" + } + }, + "node_modules/@parcel/watcher-android-arm64": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-android-arm64/-/watcher-android-arm64-2.5.1.tgz", + "integrity": "sha512-KF8+j9nNbUN8vzOFDpRMsaKBHZ/mcjEjMToVMJOhTozkDonQFFrRcfdLWn6yWKCmJKmdVxSgHiYvTCef4/qcBA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-darwin-arm64": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-darwin-arm64/-/watcher-darwin-arm64-2.5.1.tgz", + "integrity": "sha512-eAzPv5osDmZyBhou8PoF4i6RQXAfeKL9tjb3QzYuccXFMQU0ruIc/POh30ePnaOyD1UXdlKguHBmsTs53tVoPw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-darwin-x64": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-darwin-x64/-/watcher-darwin-x64-2.5.1.tgz", + "integrity": "sha512-1ZXDthrnNmwv10A0/3AJNZ9JGlzrF82i3gNQcWOzd7nJ8aj+ILyW1MTxVk35Db0u91oD5Nlk9MBiujMlwmeXZg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-freebsd-x64": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-freebsd-x64/-/watcher-freebsd-x64-2.5.1.tgz", + "integrity": "sha512-SI4eljM7Flp9yPuKi8W0ird8TI/JK6CSxju3NojVI6BjHsTyK7zxA9urjVjEKJ5MBYC+bLmMcbAWlZ+rFkLpJQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-arm-glibc": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm-glibc/-/watcher-linux-arm-glibc-2.5.1.tgz", + "integrity": "sha512-RCdZlEyTs8geyBkkcnPWvtXLY44BCeZKmGYRtSgtwwnHR4dxfHRG3gR99XdMEdQ7KeiDdasJwwvNSF5jKtDwdA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-arm-musl": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm-musl/-/watcher-linux-arm-musl-2.5.1.tgz", + "integrity": "sha512-6E+m/Mm1t1yhB8X412stiKFG3XykmgdIOqhjWj+VL8oHkKABfu/gjFj8DvLrYVHSBNC+/u5PeNrujiSQ1zwd1Q==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-arm64-glibc": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm64-glibc/-/watcher-linux-arm64-glibc-2.5.1.tgz", + "integrity": "sha512-LrGp+f02yU3BN9A+DGuY3v3bmnFUggAITBGriZHUREfNEzZh/GO06FF5u2kx8x+GBEUYfyTGamol4j3m9ANe8w==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-arm64-musl": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm64-musl/-/watcher-linux-arm64-musl-2.5.1.tgz", + "integrity": "sha512-cFOjABi92pMYRXS7AcQv9/M1YuKRw8SZniCDw0ssQb/noPkRzA+HBDkwmyOJYp5wXcsTrhxO0zq1U11cK9jsFg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-x64-glibc": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-x64-glibc/-/watcher-linux-x64-glibc-2.5.1.tgz", + "integrity": "sha512-GcESn8NZySmfwlTsIur+49yDqSny2IhPeZfXunQi48DMugKeZ7uy1FX83pO0X22sHntJ4Ub+9k34XQCX+oHt2A==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-x64-musl": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-x64-musl/-/watcher-linux-x64-musl-2.5.1.tgz", + "integrity": "sha512-n0E2EQbatQ3bXhcH2D1XIAANAcTZkQICBPVaxMeaCVBtOpBZpWJuf7LwyWPSBDITb7In8mqQgJ7gH8CILCURXg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-win32-arm64": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-arm64/-/watcher-win32-arm64-2.5.1.tgz", + "integrity": "sha512-RFzklRvmc3PkjKjry3hLF9wD7ppR4AKcWNzH7kXR7GUe0Igb3Nz8fyPwtZCSquGrhU5HhUNDr/mKBqj7tqA2Vw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-win32-ia32": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-ia32/-/watcher-win32-ia32-2.5.1.tgz", + "integrity": "sha512-c2KkcVN+NJmuA7CGlaGD1qJh1cLfDnQsHjE89E60vUEMlqduHGCdCLJCID5geFVM0dOtA3ZiIO8BoEQmzQVfpQ==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-win32-x64": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-x64/-/watcher-win32-x64-2.5.1.tgz", + "integrity": "sha512-9lHBdJITeNR++EvSQVUcaZoWupyHfXe1jZvGZ06O/5MflPcuPLtEphScIBL+AiCWBO46tDSHzWyD0uDmmZqsgA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@tailwindcss/cli": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/cli/-/cli-4.3.3.tgz", + "integrity": "sha512-ZvS/n1ZHOBKcVlhkt8l5NNr1EDXk1NboYO5CYDOs6NUmvT9z6bzkwsosaJftY57T/3gWNzWMJzIXLodZC8ssdw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@parcel/watcher": "2.5.1", + "@tailwindcss/node": "4.3.3", + "@tailwindcss/oxide": "4.3.3", + "enhanced-resolve": "^5.24.1", + "mri": "^1.2.0", + "picocolors": "^1.1.1", + "tailwindcss": "4.3.3" + }, + "bin": { + "tailwindcss": "dist/index.mjs" + } + }, + "node_modules/@tailwindcss/node": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/node/-/node-4.3.3.tgz", + "integrity": "sha512-/T8IKEsf9VTU6tLjgC7+sv2mOPtQxzE2jMw7u4Tt40Tx+QSZxpzh95/H6cMKoja9XuW7iMdLJYBB0o9G1CaAgg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/remapping": "^2.3.5", + "enhanced-resolve": "^5.24.1", + "jiti": "^2.7.0", + "lightningcss": "1.32.0", + "magic-string": "^0.30.21", + "source-map-js": "^1.2.1", + "tailwindcss": "4.3.3" + } + }, + "node_modules/@tailwindcss/oxide": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide/-/oxide-4.3.3.tgz", + "integrity": "sha512-krXjAikiaFSPaK/FkAQT5UTx3VormQaiZ5hBFlJZ9UFQGB/rwg1MZIhHAG9smMQRTdyJxP6Qt5MwMtdyU5FWrA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 20" + }, + "optionalDependencies": { + "@tailwindcss/oxide-android-arm64": "4.3.3", + "@tailwindcss/oxide-darwin-arm64": "4.3.3", + "@tailwindcss/oxide-darwin-x64": "4.3.3", + "@tailwindcss/oxide-freebsd-x64": "4.3.3", + "@tailwindcss/oxide-linux-arm-gnueabihf": "4.3.3", + "@tailwindcss/oxide-linux-arm64-gnu": "4.3.3", + "@tailwindcss/oxide-linux-arm64-musl": "4.3.3", + "@tailwindcss/oxide-linux-x64-gnu": "4.3.3", + "@tailwindcss/oxide-linux-x64-musl": "4.3.3", + "@tailwindcss/oxide-wasm32-wasi": "4.3.3", + "@tailwindcss/oxide-win32-arm64-msvc": "4.3.3", + "@tailwindcss/oxide-win32-x64-msvc": "4.3.3" + } + }, + "node_modules/@tailwindcss/oxide-android-arm64": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-android-arm64/-/oxide-android-arm64-4.3.3.tgz", + "integrity": "sha512-Y85A2gmPSkl5Ve5qR86GL4HT509cFqQh1aes9p3sSkyTPwt0Pppf3GkwGe4JPACcRYjgJIEhQgM6dBClnr0NYw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-darwin-arm64": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-arm64/-/oxide-darwin-arm64-4.3.3.tgz", + "integrity": "sha512-BiaWatpBcERQFDlOjRDpIVXuFK5PJez5SA4JMg6VYZdBYU+qKfV/vqjcIs+IYmtitf1xYQZTwXvU/8y4lfZUGw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-darwin-x64": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-x64/-/oxide-darwin-x64-4.3.3.tgz", + "integrity": "sha512-fAeUqfV5ndhxRwai8cXGzdLvul9utWOmeTkv69unv4ZXixjn61Z+p9lCWdwOwA3TYboG3BwdVuN/RDjhBRl0mw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-freebsd-x64": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-freebsd-x64/-/oxide-freebsd-x64-4.3.3.tgz", + "integrity": "sha512-iyf5bV6+wnAlflVeEy7R25dupxTNECZN5QMI0qNT6eT+EgaGdZcKhGkr5SdoaWiLJ3spLqIY9VCeSGrwmtg4kw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-linux-arm-gnueabihf": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm-gnueabihf/-/oxide-linux-arm-gnueabihf-4.3.3.tgz", + "integrity": "sha512-aAYUprJAJQWWbRrPvtjdroZ56Md+JM8pMiopS6xGEwDfLhqj+2ver2p4nU4Mb3CRqcMmNBjo8KkUgcxhkzVQGQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-linux-arm64-gnu": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-gnu/-/oxide-linux-arm64-gnu-4.3.3.tgz", + "integrity": "sha512-nDxldcEENOxZRzC2uu9jrutZdAAQtb+8WWDCSnWL1zvBk1+FN+x6MtDViPB5AJMfttVCUhehGWus3XBPgatM/w==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-linux-arm64-musl": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-musl/-/oxide-linux-arm64-musl-4.3.3.tgz", + "integrity": "sha512-Md44bD6veX/PC5iyF8cDVnw4HBIANZepRZZ7a8DQOvkfo5WUBwcp6iAuCUz23u+4SUkhJlD3eL7hNdW8ezd/kA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-linux-x64-gnu": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-gnu/-/oxide-linux-x64-gnu-4.3.3.tgz", + "integrity": "sha512-tx7us1muwOKAKWao2v/GaafFeQboE6aj88vC6ziN2NCGcRm8gWUhwjzg+YdVB1e4boAtdtma4L43onunI6NS4w==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-linux-x64-musl": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-musl/-/oxide-linux-x64-musl-4.3.3.tgz", + "integrity": "sha512-SJxX60smvHgasZoBy11dX6YRjXJFovwWBoedhbQPOBzgFWBHGB+TVPWB9BxzR7TTxU8FQZAI2AyiNCMzFm8Img==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-wasm32-wasi": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-wasm32-wasi/-/oxide-wasm32-wasi-4.3.3.tgz", + "integrity": "sha512-jx1+rPhY/5Ympkktd656HBWEBLxP7dH06losBLjjf5vgCODXvi9KhtftWcMIwTFIDqBr7cRnQkdLnAG+IOlGvQ==", + "bundleDependencies": [ + "@napi-rs/wasm-runtime", + "@emnapi/core", + "@emnapi/runtime", + "@tybys/wasm-util", + "@emnapi/wasi-threads", + "tslib" + ], + "cpu": [ + "wasm32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/core": "^1.11.1", + "@emnapi/runtime": "^1.11.1", + "@emnapi/wasi-threads": "^1.2.2", + "@napi-rs/wasm-runtime": "^1.1.4", + "@tybys/wasm-util": "^0.10.2", + "tslib": "^2.8.1" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@tailwindcss/oxide-win32-arm64-msvc": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-arm64-msvc/-/oxide-win32-arm64-msvc-4.3.3.tgz", + "integrity": "sha512-3rc292Ca2ceK6Ulcc/bAVnTs/3nDtoPhyEKlgPv+yQJQi/JS/AMJlqzxvlDacL1nekbrcf6bTqp/jV4qgnPxNQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-win32-x64-msvc": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-x64-msvc/-/oxide-win32-x64-msvc-4.3.3.tgz", + "integrity": "sha512-yJ0pwIVc/nYeGoV02WtsN8KYyLQv7kyI2wDnkezyJlGGjkd4QLwDGAwl47YpPJeuI0M0ObaXGSPjvWDPeTPggw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 20" + } + }, "node_modules/@types/geojson": { "version": "7946.0.16", "resolved": "https://registry.npmjs.org/@types/geojson/-/geojson-7946.0.16.tgz", @@ -88,6 +725,19 @@ "url": "https://github.com/chalk/ansi-regex?sponsor=1" } }, + "node_modules/braces": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "dev": true, + "license": "MIT", + "dependencies": { + "fill-range": "^7.1.1" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/chalk": { "version": "5.6.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.6.2.tgz", @@ -144,6 +794,46 @@ "node": ">=0.10" } }, + "node_modules/detect-libc": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.3.tgz", + "integrity": "sha512-pGjwhsmsp4kL2RTz08wcOlGN83otlqHeD/Z5T8GXZB+/YcpQ/dgo+lbU8ZsGxV0HIvqqxo9l7mqYwyYMD9bKDg==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "detect-libc": "bin/detect-libc.js" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/enhanced-resolve": { + "version": "5.24.5", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.24.5.tgz", + "integrity": "sha512-L1l8TNvomm6UVW5B253AGxQagSQr+vGwhMlrrfRS2qmhx46AMpMVJKQYLvWYbysTMY8VoicOvzHzoHMbyzB+4A==", + "dev": true, + "license": "MIT", + "dependencies": { + "graceful-fs": "^4.2.4", + "tapable": "^2.3.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/fill-range": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "dev": true, + "license": "MIT", + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/fsevents": { "version": "2.3.2", "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", @@ -180,6 +870,13 @@ "node": ">=20.0.0" } }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "dev": true, + "license": "ISC" + }, "node_modules/http-proxy-agent": { "version": "7.0.2", "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz", @@ -234,12 +931,55 @@ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", "license": "ISC" }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.12.0" + } + }, "node_modules/isarray": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", "license": "MIT" }, + "node_modules/jiti": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.7.0.tgz", + "integrity": "sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==", + "dev": true, + "license": "MIT", + "bin": { + "jiti": "lib/jiti-cli.mjs" + } + }, "node_modules/jszip": { "version": "3.10.1", "resolved": "https://registry.npmjs.org/jszip/-/jszip-3.10.1.tgz", @@ -261,6 +1001,277 @@ "immediate": "~3.0.5" } }, + "node_modules/lightningcss": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.32.0.tgz", + "integrity": "sha512-NXYBzinNrblfraPGyrbPoD19C1h9lfI/1mzgWYvXUTe414Gz/X1FD2XBZSZM7rRTrMA8JL3OtAaGifrIKhQ5yQ==", + "dev": true, + "license": "MPL-2.0", + "dependencies": { + "detect-libc": "^2.0.3" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "optionalDependencies": { + "lightningcss-android-arm64": "1.32.0", + "lightningcss-darwin-arm64": "1.32.0", + "lightningcss-darwin-x64": "1.32.0", + "lightningcss-freebsd-x64": "1.32.0", + "lightningcss-linux-arm-gnueabihf": "1.32.0", + "lightningcss-linux-arm64-gnu": "1.32.0", + "lightningcss-linux-arm64-musl": "1.32.0", + "lightningcss-linux-x64-gnu": "1.32.0", + "lightningcss-linux-x64-musl": "1.32.0", + "lightningcss-win32-arm64-msvc": "1.32.0", + "lightningcss-win32-x64-msvc": "1.32.0" + } + }, + "node_modules/lightningcss-android-arm64": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.32.0.tgz", + "integrity": "sha512-YK7/ClTt4kAK0vo6w3X+Pnm0D2cf2vPHbhOXdoNti1Ga0al1P4TBZhwjATvjNwLEBCnKvjJc2jQgHXH0NEwlAg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-darwin-arm64": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.32.0.tgz", + "integrity": "sha512-RzeG9Ju5bag2Bv1/lwlVJvBE3q6TtXskdZLLCyfg5pt+HLz9BqlICO7LZM7VHNTTn/5PRhHFBSjk5lc4cmscPQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-darwin-x64": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.32.0.tgz", + "integrity": "sha512-U+QsBp2m/s2wqpUYT/6wnlagdZbtZdndSmut/NJqlCcMLTWp5muCrID+K5UJ6jqD2BFshejCYXniPDbNh73V8w==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-freebsd-x64": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.32.0.tgz", + "integrity": "sha512-JCTigedEksZk3tHTTthnMdVfGf61Fky8Ji2E4YjUTEQX14xiy/lTzXnu1vwiZe3bYe0q+SpsSH/CTeDXK6WHig==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm-gnueabihf": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.32.0.tgz", + "integrity": "sha512-x6rnnpRa2GL0zQOkt6rts3YDPzduLpWvwAF6EMhXFVZXD4tPrBkEFqzGowzCsIWsPjqSK+tyNEODUBXeeVHSkw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm64-gnu": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.32.0.tgz", + "integrity": "sha512-0nnMyoyOLRJXfbMOilaSRcLH3Jw5z9HDNGfT/gwCPgaDjnx0i8w7vBzFLFR1f6CMLKF8gVbebmkUN3fa/kQJpQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm64-musl": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.32.0.tgz", + "integrity": "sha512-UpQkoenr4UJEzgVIYpI80lDFvRmPVg6oqboNHfoH4CQIfNA+HOrZ7Mo7KZP02dC6LjghPQJeBsvXhJod/wnIBg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-gnu": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.32.0.tgz", + "integrity": "sha512-V7Qr52IhZmdKPVr+Vtw8o+WLsQJYCTd8loIfpDaMRWGUZfBOYEJeyJIkqGIDMZPwPx24pUMfwSxxI8phr/MbOA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-musl": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.32.0.tgz", + "integrity": "sha512-bYcLp+Vb0awsiXg/80uCRezCYHNg1/l3mt0gzHnWV9XP1W5sKa5/TCdGWaR/zBM2PeF/HbsQv/j2URNOiVuxWg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-win32-arm64-msvc": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.32.0.tgz", + "integrity": "sha512-8SbC8BR40pS6baCM8sbtYDSwEVQd4JlFTOlaD3gWGHfThTcABnNDBda6eTZeqbofalIJhFx0qKzgHJmcPTnGdw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-win32-x64-msvc": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.32.0.tgz", + "integrity": "sha512-Amq9B/SoZYdDi1kFrojnoqPLxYhQ4Wo5XiL8EVJrVsB8ARoC1PWW6VGtT0WKCemjy8aC+louJnjS7U18x3b06Q==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss/node_modules/detect-libc": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", + "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=8" + } + }, "node_modules/loglevel": { "version": "1.9.2", "resolved": "https://registry.npmjs.org/loglevel/-/loglevel-1.9.2.tgz", @@ -289,6 +1300,16 @@ "node": "20 || >=22" } }, + "node_modules/magic-string": { + "version": "0.30.21", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz", + "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.5" + } + }, "node_modules/mariadb": { "version": "3.5.3", "resolved": "https://registry.npmjs.org/mariadb/-/mariadb-3.5.3.tgz", @@ -305,6 +1326,20 @@ "node": ">= 20.0.0" } }, + "node_modules/micromatch": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", + "dev": true, + "license": "MIT", + "dependencies": { + "braces": "^3.0.3", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, "node_modules/modern-tar": { "version": "0.7.7", "resolved": "https://registry.npmjs.org/modern-tar/-/modern-tar-0.7.7.tgz", @@ -314,18 +1349,55 @@ "node": ">=18.0.0" } }, + "node_modules/mri": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/mri/-/mri-1.2.0.tgz", + "integrity": "sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, "node_modules/ms": { "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", "license": "MIT" }, + "node_modules/node-addon-api": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-7.1.1.tgz", + "integrity": "sha512-5m3bsyrjFWE1xf7nz7YXdN4udnVtXK6/Yfgn5qnahL6bCkf2yKt4k3nuTKAtT4r3IG8JNR2ncsIMdZuAzJjHQQ==", + "dev": true, + "license": "MIT" + }, "node_modules/pako": { "version": "1.0.11", "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz", "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==", "license": "(MIT AND Zlib)" }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "dev": true, + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.2.tgz", + "integrity": "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, "node_modules/playwright": { "version": "1.62.1", "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.62.1.tgz", @@ -453,6 +1525,16 @@ "integrity": "sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA==", "license": "MIT" }, + "node_modules/source-map-js": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", + "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/string_decoder": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", @@ -477,6 +1559,27 @@ "url": "https://github.com/chalk/strip-ansi?sponsor=1" } }, + "node_modules/tailwindcss": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.3.3.tgz", + "integrity": "sha512-gOhV3P7ufE62QDGg1zVaTgCR+EtPv92k2nIhVcVKcLmxT1sUBsQGhnZj175j+MqRt4zLF7ic+sCYjfhxMxj7YQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/tapable": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.3.3.tgz", + "integrity": "sha512-uxc/zpqFg6x7C8vOE7lh6Lbda8eEL9zmVm/PLeTPBRhh1xCgdWaQ+J1CUieGpIfm2HdtsUpRv+HshiasBMcc6A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, "node_modules/tmp": { "version": "0.2.7", "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.7.tgz", @@ -486,6 +1589,19 @@ "node": ">=14.14" } }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, "node_modules/undici-types": { "version": "8.3.0", "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-8.3.0.tgz", diff --git a/package.json b/package.json index e98a236..fcb57e6 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,9 @@ "catalog:dry-run": "node src/cli.js catalog-maker --dry-run", "test": "node --test", "test:ui": "playwright test", - "test:e2e": "playwright test tests/ui/database.e2e.spec.js" + "test:e2e": "playwright test tests/ui/database.e2e.spec.js", + "css:build": "tailwindcss -i ./src/tailwind.css -o ./public/styles.css --minify", + "build": "npm run css:build" }, "engines": { "node": ">=20" @@ -21,6 +23,8 @@ "selenium-webdriver": "^4.46.0" }, "devDependencies": { - "playwright": "^1.62.1" + "@tailwindcss/cli": "^4.3.3", + "playwright": "^1.62.1", + "tailwindcss": "^4.3.3" } } diff --git a/public/styles.css b/public/styles.css index 01c524b..096bd0d 100644 --- a/public/styles.css +++ b/public/styles.css @@ -1,852 +1,2 @@ -:root { - color-scheme: light; - --surface: #f4f6f8; - --panel: #22272e; - --panel-soft: #2d333b; - --panel-line: #3e4651; - --detail-label: #e2e6ea; - --detail-value: #eefdf9; - --detail-border: #c8d3d9; - --table-head: #d9dee4; - --table-row: #f5f6f7; - --table-row-alt: #eceff2; - --table-line: #cfd6dd; - --text: #15181c; - --muted: #68717d; - --accent: #7ee34d; - --accent-text: #10220b; - --safe: #0f7b4d; - --danger: #e02424; - --focus: #2f6fed; -} - -* { - box-sizing: border-box; -} - -body { - margin: 0; - min-height: 100vh; - color: var(--text); - font-family: - Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, - sans-serif; - background: var(--surface); -} - -button, -input, -select { - font: inherit; -} - -.catalog-screen { - min-height: 100vh; - display: grid; - grid-template-columns: 172px 292px minmax(720px, 1fr); -} - -.control-panel { - min-height: 100vh; - max-height: 100vh; - padding: 6px; - background: var(--panel); - display: flex; - flex-direction: column; - gap: 6px; - overflow-y: auto; -} - -.control-panel > #settingsButton { - order: 99; -} - -.app-status { - order: 98; - margin-top: auto; - display: flex; - flex-wrap: wrap; - gap: 3px; - padding: 5px; - border: 1px solid var(--panel-line); - border-radius: 6px; - background: var(--panel-soft); - color: #f3f6f8; - font-size: 11px; - line-height: 1.2; -} - -.record-id { - height: 39px; - display: grid; - place-items: center; - border: 1px solid rgba(126, 227, 77, 0.42); - border-radius: 6px; - background: linear-gradient(180deg, #9aff60, var(--accent)); - color: var(--accent-text); - font-size: 26px; - font-weight: 700; - line-height: 1; - font-variant-numeric: tabular-nums; -} - -.arrow-row { - display: grid; - grid-template-columns: 1fr 1fr; - gap: 5px; -} - -.arrow-button, -.action-button, -.input-like { - width: 100%; - border: 1px solid var(--panel-line); - border-radius: 5px; - background: #f8fafc; - color: #111827; -} - -.arrow-button, -.action-button { - cursor: pointer; -} - -.arrow-button { - height: 31px; - position: relative; - display: grid; - place-items: center; -} - -.arrow-button::before { - content: ""; - width: 0; - height: 0; - border-top: 8px solid transparent; - border-bottom: 8px solid transparent; -} - -.arrow-button-prev::before { - border-right: 11px solid #111827; -} - -.arrow-button-next::before { - border-left: 11px solid #111827; -} - -.arrow-button:disabled::before { - opacity: 0.55; -} - -.parser-actions { - display: grid; - gap: 4px; -} - -.parser-actions .action-button { - min-height: 28px; - font-size: 11px; -} - -.action-button { - min-height: 32px; - padding: 0 8px; - font-size: 12px; - display: grid; - place-items: center; - text-align: center; -} - -.action-button.primary { - min-height: 34px; - font-size: 14px; - font-weight: 700; -} - -.arrow-button:hover:not(:disabled), -.action-button:hover:not(:disabled) { - border-color: #7a8492; - background: #ffffff; -} - -.arrow-button:disabled, -.action-button:disabled { - cursor: default; - opacity: 0.45; -} - -.input-like { - height: 28px; - padding: 3px 7px; - font-size: 12px; - outline: none; -} - -select.input-like { - text-align: center; - text-align-last: center; -} - -#scanInput { - background: #e5e8ec; - text-align: center; -} - -.input-like:focus { - border-color: var(--focus); - box-shadow: 0 0 0 2px rgba(47, 111, 237, 0.18); -} - -.input-like::placeholder { - color: #8b95a1; -} - -.picture-slot { - aspect-ratio: 1 / 1; - width: 100%; - min-height: 0; - display: grid; - place-items: center; - border: 1px dashed #6d7784; - border-radius: 5px; - background: var(--panel-soft); - color: #b8c0ca; - font-size: 12px; - overflow: hidden; -} - -.picture-slot img { - width: 100%; - height: 100%; - display: block; - object-fit: contain; -} - -.mapping-box { - display: grid; - gap: 3px; - font-size: 11px; -} - -.mapping-state { - height: 28px; - display: flex; - align-items: center; - min-width: 0; - padding: 3px 7px; - border: 1px solid var(--panel-line); - border-right: 0; - border-radius: 5px 0 0 5px; - background: #f8fafc; - color: #111827; - font-weight: 400; - line-height: 1.15; -} - -.mapping-state.is-ready { - background: #f8fafc; - color: #111827; -} - -.mapping-state.is-missing { - background: #fff0f0; - color: #b42318; - font-weight: 700; -} - -.mapping-list { - display: grid; - gap: 3px; -} - -.mapping-details { - min-width: 0; -} - -.mapping-details summary { - display: grid; - grid-template-columns: minmax(0, 1fr) 22px; - align-items: center; - cursor: pointer; - list-style: none; -} - -.mapping-details summary::-webkit-details-marker { - display: none; -} - -.mapping-details summary:hover { - filter: brightness(1.04); -} - -.mapping-toggle { - width: 22px; - height: 28px; - display: grid; - place-items: center; - border: 1px solid var(--panel-line); - border-left: 0; - border-radius: 0 5px 5px 0; - background: #f8fafc; -} - -.mapping-toggle::before { - content: ">"; - color: #111827; - font-size: 11px; - font-weight: 900; - line-height: 1; -} - -.mapping-details[open] .mapping-toggle::before { - transform: rotate(90deg); -} - -.mapping-source-row { - min-width: 0; - max-width: 100%; - display: grid; - grid-template-columns: minmax(0, 1fr) auto; - align-items: center; - gap: 4px; - padding: 3px 4px; - border: 1px solid #46505c; - border-radius: 5px; - background: #1b2026; - color: #f3f6f8; -} - -.mapping-source-row.is-disabled { - opacity: 0.55; -} - -.mapping-source-name { - min-width: 0; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; - font-weight: 800; -} - -.mapping-source-status { - flex: 0 0 auto; - padding: 1px 4px; - border-radius: 4px; - font-size: 9px; - font-weight: 400; -} - -.mapping-source-status.is-ok { - background: #e8edf3; - color: #303944; -} - -.mapping-source-status.is-bad { - background: #ffe0dc; - color: #b42318; - font-weight: 700; -} - -.mapping-source-status.is-muted { - background: #4b5563; - color: #e5e7eb; -} - -.product-panel { - min-width: 0; - padding: 22px 0 8px; - background: #d3d8de; - border-right: 1px solid #bdc6cf; -} - -.field-grid { - display: grid; - grid-template-columns: 132px minmax(0, 168px); -} - -.field-label, -.field-value { - min-height: 22px; - padding: 4px 8px; - border-bottom: 1px solid var(--detail-border); - font-size: 12px; - line-height: 1.15; -} - -.field-label { - color: #26313d; - background: var(--detail-label); -} - -.field-value { - background: var(--detail-value); - text-align: right; - overflow-wrap: anywhere; - font-variant-numeric: tabular-nums; -} - -.field-value[data-field="manufacturer_name"] { - color: #b42318; - font-weight: 700; -} - -.data-panel { - min-width: 0; - background: var(--surface); -} - -.safe-mode, -#modePill { - padding: 2px 6px; - border-radius: 5px; - background: #e8f7ef; - color: var(--safe); - font-weight: 700; -} - -#databaseStatus.database-error { - background: #fde8e7; - color: #b42318; -} - -#modePill { - background: #edf1f5; - color: #4d5966; - font-weight: 600; -} - -.table-wrap { - height: 100vh; - overflow: auto; -} - -.variant-table { - width: 100%; - min-width: 820px; - border-collapse: separate; - border-spacing: 0; - table-layout: fixed; - font-size: 12px; - background: var(--table-row); -} - -.variant-table th, -.variant-table td { - height: 22px; - border-right: 1px solid var(--table-line); - border-bottom: 1px solid var(--table-line); - padding: 2px 7px; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; - font-variant-numeric: tabular-nums; -} - -.variant-table th { - position: sticky; - top: 0; - z-index: 2; - background: var(--table-head); - color: #303944; - font-weight: 700; - text-align: center; -} - -.variant-table td { - background: var(--table-row); -} - -.variant-table tr:nth-child(even) td { - background: var(--table-row-alt); -} - -.variant-table tr:hover td { - background: #fff7df; -} - -.empty-row { - color: var(--muted); - text-align: center; - font-style: italic; -} - -.variant-table .problem-ean { - background: var(--danger) !important; - color: #ffffff; - font-weight: 700; -} - -.modal-backdrop { - position: fixed; - inset: 0; - z-index: 20; - display: grid; - place-items: center; - padding: 24px; - background: rgba(17, 24, 39, 0.38); -} - -.modal-backdrop[hidden] { - display: none; -} - -.suggested-dialog { - width: min(900px, 94vw); - max-height: min(620px, 88vh); - display: grid; - grid-template-rows: auto minmax(0, 1fr); - border: 1px solid #9aa5b1; - border-radius: 8px; - overflow: hidden; - background: #f8fafc; - box-shadow: 0 18px 60px rgba(15, 23, 42, 0.34); -} - -.source-dialog { - width: min(820px, 94vw); - max-height: min(620px, 88vh); - display: grid; - grid-template-rows: auto minmax(0, 1fr); - border: 1px solid #9aa5b1; - border-radius: 8px; - overflow: hidden; - background: #f8fafc; - box-shadow: 0 18px 60px rgba(15, 23, 42, 0.34); -} - -.settings-dialog { - width: min(520px, 94vw); - max-height: 92vh; - display: grid; - grid-template-rows: auto minmax(0, 1fr); - border: 1px solid #9aa5b1; - border-radius: 8px; - overflow: hidden; - background: #f8fafc; - box-shadow: 0 18px 60px rgba(15, 23, 42, 0.34); -} - -.settings-content { - display: grid; - gap: 8px; - padding: 10px; - overflow: visible; -} - -.settings-group { - display: grid; - gap: 6px; - margin: 0; - padding: 8px; - border: 1px solid var(--table-line); - border-radius: 6px; - background: #ffffff; -} - -.settings-group legend { - padding: 0 5px; - font-size: 12px; - font-weight: 700; -} - -.settings-option { - display: flex; - align-items: center; - gap: 8px; - font-size: 12px; -} - -.local-db-fields { - display: grid; - gap: 6px; - padding: 8px; - border: 1px solid var(--table-line); - border-radius: 5px; - background: #f7f9fb; -} - -.local-db-fields[hidden] { - display: none; -} - -.settings-field { - display: grid; - grid-template-columns: 82px minmax(0, 1fr); - align-items: center; - gap: 8px; - font-size: 11px; -} - -.settings-field input { - min-width: 0; - padding: 4px 6px; - border: 1px solid #cbd3dc; - border-radius: 4px; - font: inherit; -} - -.settings-test-button { - width: 100%; - padding: 5px 8px; - border: 1px solid #b8c3ce; - border-radius: 4px; - background: #eef2f5; - color: #26323d; - cursor: pointer; -} - -.settings-test-button:disabled { - opacity: 0.6; - cursor: wait; -} - -.connection-ok { - color: #18794e; -} - -.connection-error { - color: #b42318; - font-weight: 600; -} - -.settings-option input { - margin: 0; -} - -.settings-option input:disabled + span { - color: var(--muted); -} - -.settings-note, -.settings-permissions { - margin: 0; - color: var(--muted); - font-size: 11px; - line-height: 1.35; -} - -.settings-permissions { - display: grid; - gap: 3px; - padding-top: 3px; -} - -.suggested-header { - min-height: 42px; - display: flex; - align-items: center; - justify-content: space-between; - gap: 12px; - padding: 8px 10px; - border-bottom: 1px solid var(--table-line); - background: #e8edf3; -} - -.suggested-header h2 { - margin: 0; - font-size: 14px; -} - -.modal-close { - border: 1px solid #b6c0ca; - border-radius: 5px; - padding: 5px 10px; - background: #ffffff; - cursor: pointer; - font-size: 12px; -} - -.suggested-list { - overflow: auto; -} - -.suggested-row { - display: grid; - grid-template-columns: 58px 92px 1fr 160px 64px 84px; - align-items: center; - gap: 8px; - padding: 6px 10px; - border-bottom: 1px solid var(--table-line); - font-size: 12px; -} - -.suggested-row:nth-child(even) { - background: #eef2f6; -} - -.suggested-row img { - width: 46px; - height: 46px; - object-fit: contain; - border: 1px solid #d3dae2; - background: #ffffff; -} - -.suggested-id, -.suggested-active { - text-align: center; - font-variant-numeric: tabular-nums; -} - -.suggested-name, -.suggested-reference { - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; -} - -.suggested-pick { - border: 1px solid #2f6fed; - border-radius: 5px; - padding: 5px 8px; - background: #2f6fed; - color: #ffffff; - cursor: pointer; - font-size: 12px; -} - -.source-list { - display: grid; - gap: 8px; - padding: 10px; - overflow: auto; -} - -.source-section { - display: grid; - gap: 4px; - border: 1px solid var(--table-line); - border-radius: 6px; - overflow: hidden; - background: #ffffff; -} - -.source-section-header, -.source-row { - display: grid; - grid-template-columns: minmax(0, 1fr) auto; - align-items: center; - gap: 10px; - min-height: 32px; - padding: 6px 8px; - font-size: 12px; -} - -.source-section-header { - background: #e8edf3; -} - -.source-section-actions { - display: flex; - align-items: center; - gap: 6px; -} - -.source-picture-action { - border: 1px solid #9aa8b7; - border-radius: 4px; - padding: 3px 6px; - background: #ffffff; - color: #172033; - cursor: pointer; - font-size: 10px; -} - -.source-picture-action:hover { - background: #e9f2ff; - border-color: #2f6fed; -} - -.source-row { - color: #172033; - text-decoration: none; - border-top: 1px solid var(--table-line); -} - -.source-row:hover { - background: #fff7df; -} - -.source-row-title { - min-width: 0; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; -} - -.source-status, -.source-row-action { - padding: 2px 6px; - border-radius: 5px; - font-size: 10px; - font-weight: 800; -} - -.picture-candidate { - display: grid; - grid-template-rows: 132px auto; - gap: 6px; - color: inherit; - text-decoration: none; - font-size: 11px; - min-width: 132px; -} - -.picture-candidate img { - width: 132px; - height: 132px; - object-fit: contain; - background: #fff; - border: 1px solid #d5dce5; -} - -.picture-candidate span { - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; -} - -.source-status.is-ok { - background: #dff7e7; - color: #0f7b4d; -} - -.source-status.is-muted, -.source-row-action { - background: #edf1f5; - color: #4d5966; -} - -@media (max-width: 980px) { - .catalog-screen { - grid-template-columns: 1fr; - } - - .control-panel { - min-height: auto; - display: grid; - grid-template-columns: repeat(2, minmax(0, 1fr)); - } - - .record-id, - .arrow-row, - .parser-actions, - .app-status, - .mapping-box, - .picture-slot { - grid-column: span 2; - } - - .product-panel { - padding: 0; - } - - .field-grid { - grid-template-columns: 160px minmax(0, 1fr); - } - - .table-wrap { - height: auto; - max-height: 70vh; - } -} +/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */ +@layer theme{:root,:host{--font-sans:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-catalog-surface:#f4f6f8}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*,:before,:after{box-sizing:border-box}html{color-scheme:light}body{min-height:100vh;font-family:var(--font-sans);color:#15181c;background:var(--color-catalog-surface);margin:0}button,input,select{font:inherit}}@layer components;@layer utilities{.visible{visibility:visible}.contents{display:contents}.hidden{display:none}}:root{color-scheme:light;--surface:#f4f6f8;--panel:#22272e;--panel-soft:#2d333b;--panel-line:#3e4651;--detail-label:#e2e6ea;--detail-value:#eefdf9;--detail-border:#c8d3d9;--table-head:#d9dee4;--table-row:#f5f6f7;--table-row-alt:#eceff2;--table-line:#cfd6dd;--text:#15181c;--muted:#68717d;--accent:#7ee34d;--accent-text:#10220b;--safe:#0f7b4d;--danger:#e02424;--focus:#2f6fed}*{box-sizing:border-box}body{min-height:100vh;color:var(--text);background:var(--surface);margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Arial,sans-serif}button,input,select{font:inherit}.catalog-screen{grid-template-columns:172px 292px minmax(720px,1fr);min-height:100vh;display:grid}.control-panel{background:var(--panel);flex-direction:column;gap:6px;min-height:100vh;max-height:100vh;padding:6px;display:flex;overflow-y:auto}.control-panel>#settingsButton{order:99}.app-status{border:1px solid var(--panel-line);background:var(--panel-soft);color:#f3f6f8;border-radius:6px;flex-wrap:wrap;order:98;gap:3px;margin-top:auto;padding:5px;font-size:11px;line-height:1.2;display:flex}.record-id{background:linear-gradient(180deg, #9aff60, var(--accent));height:39px;color:var(--accent-text);font-variant-numeric:tabular-nums;border:1px solid #7ee34d6b;border-radius:6px;place-items:center;font-size:26px;font-weight:700;line-height:1;display:grid}.arrow-row{grid-template-columns:1fr 1fr;gap:5px;display:grid}.arrow-button,.action-button,.input-like{border:1px solid var(--panel-line);color:#111827;background:#f8fafc;border-radius:5px;width:100%}.arrow-button,.action-button{cursor:pointer}.arrow-button{place-items:center;height:31px;display:grid;position:relative}.arrow-button:before{content:"";border-top:8px solid #0000;border-bottom:8px solid #0000;width:0;height:0}.arrow-button-prev:before{border-right:11px solid #111827}.arrow-button-next:before{border-left:11px solid #111827}.arrow-button:disabled:before{opacity:.55}.parser-actions{gap:4px;display:grid}.parser-actions .action-button{min-height:28px;font-size:11px}.action-button{text-align:center;place-items:center;min-height:32px;padding:0 8px;font-size:12px;display:grid}.action-button.primary{min-height:34px;font-size:14px;font-weight:700}.arrow-button:hover:not(:disabled),.action-button:hover:not(:disabled){background:#fff;border-color:#7a8492}.arrow-button:disabled,.action-button:disabled{cursor:default;opacity:.45}.input-like{outline:none;height:28px;padding:3px 7px;font-size:12px}select.input-like{text-align:center;text-align-last:center}#scanInput{text-align:center;background:#e5e8ec}.input-like:focus{border-color:var(--focus);box-shadow:0 0 0 2px #2f6fed2e}.input-like::placeholder{color:#8b95a1}.picture-slot{aspect-ratio:1;background:var(--panel-soft);color:#b8c0ca;border:1px dashed #6d7784;border-radius:5px;place-items:center;width:100%;min-height:0;font-size:12px;display:grid;overflow:hidden}.picture-slot img{object-fit:contain;width:100%;height:100%;display:block}.mapping-box{gap:3px;font-size:11px;display:grid}.mapping-state{border:1px solid var(--panel-line);color:#111827;background:#f8fafc;border-right:0;border-radius:5px 0 0 5px;align-items:center;min-width:0;height:28px;padding:3px 7px;font-weight:400;line-height:1.15;display:flex}.mapping-state.is-ready{color:#111827;background:#f8fafc}.mapping-state.is-missing{color:#b42318;background:#fff0f0;font-weight:700}.mapping-list{gap:3px;display:grid}.mapping-details{min-width:0}.mapping-details summary{cursor:pointer;grid-template-columns:minmax(0,1fr) 22px;align-items:center;list-style:none;display:grid}.mapping-details summary::-webkit-details-marker{display:none}.mapping-details summary:hover{filter:brightness(1.04)}.mapping-toggle{border:1px solid var(--panel-line);background:#f8fafc;border-left:0;border-radius:0 5px 5px 0;place-items:center;width:22px;height:28px;display:grid}.mapping-toggle:before{content:">";color:#111827;font-size:11px;font-weight:900;line-height:1}.mapping-details[open] .mapping-toggle:before{transform:rotate(90deg)}.mapping-source-row{color:#f3f6f8;background:#1b2026;border:1px solid #46505c;border-radius:5px;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px;min-width:0;max-width:100%;padding:3px 4px;display:grid}.mapping-source-row.is-disabled{opacity:.55}.mapping-source-name{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-weight:800;overflow:hidden}.mapping-source-status{border-radius:4px;flex:none;padding:1px 4px;font-size:9px;font-weight:400}.mapping-source-status.is-ok{color:#303944;background:#e8edf3}.mapping-source-status.is-bad{color:#b42318;background:#ffe0dc;font-weight:700}.mapping-source-status.is-muted{color:#e5e7eb;background:#4b5563}.product-panel{background:#d3d8de;border-right:1px solid #bdc6cf;min-width:0;padding:22px 0 8px}.field-grid{grid-template-columns:132px minmax(0,168px);display:grid}.field-label,.field-value{border-bottom:1px solid var(--detail-border);min-height:22px;padding:4px 8px;font-size:12px;line-height:1.15}.field-label{color:#26313d;background:var(--detail-label)}.field-value{background:var(--detail-value);text-align:right;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.field-value[data-field=manufacturer_name]{color:#b42318;font-weight:700}.data-panel{background:var(--surface);min-width:0}.safe-mode,#modePill{color:var(--safe);background:#e8f7ef;border-radius:5px;padding:2px 6px;font-weight:700}#databaseStatus.database-error{color:#b42318;background:#fde8e7}#modePill{color:#4d5966;background:#edf1f5;font-weight:600}.table-wrap{height:100vh;overflow:auto}.variant-table{border-collapse:separate;border-spacing:0;table-layout:fixed;background:var(--table-row);width:100%;min-width:820px;font-size:12px}.variant-table th,.variant-table td{border-right:1px solid var(--table-line);border-bottom:1px solid var(--table-line);white-space:nowrap;text-overflow:ellipsis;font-variant-numeric:tabular-nums;height:22px;padding:2px 7px;overflow:hidden}.variant-table th{z-index:2;background:var(--table-head);color:#303944;text-align:center;font-weight:700;position:sticky;top:0}.variant-table td{background:var(--table-row)}.variant-table tr:nth-child(2n) td{background:var(--table-row-alt)}.variant-table tr:hover td{background:#fff7df}.empty-row{color:var(--muted);text-align:center;font-style:italic}.variant-table .problem-ean{color:#fff;font-weight:700;background:var(--danger)!important}.modal-backdrop{z-index:20;background:#11182761;place-items:center;padding:24px;display:grid;position:fixed;inset:0}.modal-backdrop[hidden]{display:none}.suggested-dialog{background:#f8fafc;border:1px solid #9aa5b1;border-radius:8px;grid-template-rows:auto minmax(0,1fr);width:min(900px,94vw);max-height:min(620px,88vh);display:grid;overflow:hidden;box-shadow:0 18px 60px #0f172a57}.source-dialog{background:#f8fafc;border:1px solid #9aa5b1;border-radius:8px;grid-template-rows:auto minmax(0,1fr);width:min(820px,94vw);max-height:min(620px,88vh);display:grid;overflow:hidden;box-shadow:0 18px 60px #0f172a57}.settings-dialog{background:#f8fafc;border:1px solid #9aa5b1;border-radius:8px;grid-template-rows:auto minmax(0,1fr);width:min(520px,94vw);max-height:92vh;display:grid;overflow:hidden;box-shadow:0 18px 60px #0f172a57}.settings-content{gap:8px;padding:10px;display:grid;overflow:visible}.settings-group{border:1px solid var(--table-line);background:#fff;border-radius:6px;gap:6px;margin:0;padding:8px;display:grid}.settings-group legend{padding:0 5px;font-size:12px;font-weight:700}.settings-option{align-items:center;gap:8px;font-size:12px;display:flex}.local-db-fields{border:1px solid var(--table-line);background:#f7f9fb;border-radius:5px;gap:6px;padding:8px;display:grid}.local-db-fields[hidden]{display:none}.settings-field{grid-template-columns:82px minmax(0,1fr);align-items:center;gap:8px;font-size:11px;display:grid}.settings-field input{min-width:0;font:inherit;border:1px solid #cbd3dc;border-radius:4px;padding:4px 6px}.settings-test-button{color:#26323d;cursor:pointer;background:#eef2f5;border:1px solid #b8c3ce;border-radius:4px;width:100%;padding:5px 8px}.settings-test-button:disabled{opacity:.6;cursor:wait}.connection-ok{color:#18794e}.connection-error{color:#b42318;font-weight:600}.settings-option input{margin:0}.settings-option input:disabled+span{color:var(--muted)}.settings-note,.settings-permissions{color:var(--muted);margin:0;font-size:11px;line-height:1.35}.settings-permissions{gap:3px;padding-top:3px;display:grid}.suggested-header{border-bottom:1px solid var(--table-line);background:#e8edf3;justify-content:space-between;align-items:center;gap:12px;min-height:42px;padding:8px 10px;display:flex}.suggested-header h2{margin:0;font-size:14px}.modal-close{cursor:pointer;background:#fff;border:1px solid #b6c0ca;border-radius:5px;padding:5px 10px;font-size:12px}.suggested-list{overflow:auto}.suggested-row{border-bottom:1px solid var(--table-line);grid-template-columns:58px 92px 1fr 160px 64px 84px;align-items:center;gap:8px;padding:6px 10px;font-size:12px;display:grid}.suggested-row:nth-child(2n){background:#eef2f6}.suggested-row img{object-fit:contain;background:#fff;border:1px solid #d3dae2;width:46px;height:46px}.suggested-id,.suggested-active{text-align:center;font-variant-numeric:tabular-nums}.suggested-name,.suggested-reference{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.suggested-pick{color:#fff;cursor:pointer;background:#2f6fed;border:1px solid #2f6fed;border-radius:5px;padding:5px 8px;font-size:12px}.source-list{gap:8px;padding:10px;display:grid;overflow:auto}.source-section{border:1px solid var(--table-line);background:#fff;border-radius:6px;gap:4px;display:grid;overflow:hidden}.source-section-header,.source-row{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;min-height:32px;padding:6px 8px;font-size:12px;display:grid}.source-section-header{background:#e8edf3}.source-section-actions{align-items:center;gap:6px;display:flex}.source-picture-action{color:#172033;cursor:pointer;background:#fff;border:1px solid #9aa8b7;border-radius:4px;padding:3px 6px;font-size:10px}.source-picture-action:hover{background:#e9f2ff;border-color:#2f6fed}.source-row{color:#172033;border-top:1px solid var(--table-line);text-decoration:none}.source-row:hover{background:#fff7df}.source-row-title{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.source-status,.source-row-action{border-radius:5px;padding:2px 6px;font-size:10px;font-weight:800}.picture-candidate{color:inherit;grid-template-rows:132px auto;gap:6px;min-width:132px;font-size:11px;text-decoration:none;display:grid}.picture-candidate img{object-fit:contain;background:#fff;border:1px solid #d5dce5;width:132px;height:132px}.picture-candidate span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.source-status.is-ok{color:#0f7b4d;background:#dff7e7}.source-status.is-muted,.source-row-action{color:#4d5966;background:#edf1f5}@media (max-width:980px){.catalog-screen{grid-template-columns:1fr}.control-panel{grid-template-columns:repeat(2,minmax(0,1fr));min-height:auto;display:grid}.record-id,.arrow-row,.parser-actions,.app-status,.mapping-box,.picture-slot{grid-column:span 2}.product-panel{padding:0}.field-grid{grid-template-columns:160px minmax(0,1fr)}.table-wrap{height:auto;max-height:70vh}} \ No newline at end of file diff --git a/src/tailwind-components.css b/src/tailwind-components.css new file mode 100644 index 0000000..01c524b --- /dev/null +++ b/src/tailwind-components.css @@ -0,0 +1,852 @@ +:root { + color-scheme: light; + --surface: #f4f6f8; + --panel: #22272e; + --panel-soft: #2d333b; + --panel-line: #3e4651; + --detail-label: #e2e6ea; + --detail-value: #eefdf9; + --detail-border: #c8d3d9; + --table-head: #d9dee4; + --table-row: #f5f6f7; + --table-row-alt: #eceff2; + --table-line: #cfd6dd; + --text: #15181c; + --muted: #68717d; + --accent: #7ee34d; + --accent-text: #10220b; + --safe: #0f7b4d; + --danger: #e02424; + --focus: #2f6fed; +} + +* { + box-sizing: border-box; +} + +body { + margin: 0; + min-height: 100vh; + color: var(--text); + font-family: + Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, + sans-serif; + background: var(--surface); +} + +button, +input, +select { + font: inherit; +} + +.catalog-screen { + min-height: 100vh; + display: grid; + grid-template-columns: 172px 292px minmax(720px, 1fr); +} + +.control-panel { + min-height: 100vh; + max-height: 100vh; + padding: 6px; + background: var(--panel); + display: flex; + flex-direction: column; + gap: 6px; + overflow-y: auto; +} + +.control-panel > #settingsButton { + order: 99; +} + +.app-status { + order: 98; + margin-top: auto; + display: flex; + flex-wrap: wrap; + gap: 3px; + padding: 5px; + border: 1px solid var(--panel-line); + border-radius: 6px; + background: var(--panel-soft); + color: #f3f6f8; + font-size: 11px; + line-height: 1.2; +} + +.record-id { + height: 39px; + display: grid; + place-items: center; + border: 1px solid rgba(126, 227, 77, 0.42); + border-radius: 6px; + background: linear-gradient(180deg, #9aff60, var(--accent)); + color: var(--accent-text); + font-size: 26px; + font-weight: 700; + line-height: 1; + font-variant-numeric: tabular-nums; +} + +.arrow-row { + display: grid; + grid-template-columns: 1fr 1fr; + gap: 5px; +} + +.arrow-button, +.action-button, +.input-like { + width: 100%; + border: 1px solid var(--panel-line); + border-radius: 5px; + background: #f8fafc; + color: #111827; +} + +.arrow-button, +.action-button { + cursor: pointer; +} + +.arrow-button { + height: 31px; + position: relative; + display: grid; + place-items: center; +} + +.arrow-button::before { + content: ""; + width: 0; + height: 0; + border-top: 8px solid transparent; + border-bottom: 8px solid transparent; +} + +.arrow-button-prev::before { + border-right: 11px solid #111827; +} + +.arrow-button-next::before { + border-left: 11px solid #111827; +} + +.arrow-button:disabled::before { + opacity: 0.55; +} + +.parser-actions { + display: grid; + gap: 4px; +} + +.parser-actions .action-button { + min-height: 28px; + font-size: 11px; +} + +.action-button { + min-height: 32px; + padding: 0 8px; + font-size: 12px; + display: grid; + place-items: center; + text-align: center; +} + +.action-button.primary { + min-height: 34px; + font-size: 14px; + font-weight: 700; +} + +.arrow-button:hover:not(:disabled), +.action-button:hover:not(:disabled) { + border-color: #7a8492; + background: #ffffff; +} + +.arrow-button:disabled, +.action-button:disabled { + cursor: default; + opacity: 0.45; +} + +.input-like { + height: 28px; + padding: 3px 7px; + font-size: 12px; + outline: none; +} + +select.input-like { + text-align: center; + text-align-last: center; +} + +#scanInput { + background: #e5e8ec; + text-align: center; +} + +.input-like:focus { + border-color: var(--focus); + box-shadow: 0 0 0 2px rgba(47, 111, 237, 0.18); +} + +.input-like::placeholder { + color: #8b95a1; +} + +.picture-slot { + aspect-ratio: 1 / 1; + width: 100%; + min-height: 0; + display: grid; + place-items: center; + border: 1px dashed #6d7784; + border-radius: 5px; + background: var(--panel-soft); + color: #b8c0ca; + font-size: 12px; + overflow: hidden; +} + +.picture-slot img { + width: 100%; + height: 100%; + display: block; + object-fit: contain; +} + +.mapping-box { + display: grid; + gap: 3px; + font-size: 11px; +} + +.mapping-state { + height: 28px; + display: flex; + align-items: center; + min-width: 0; + padding: 3px 7px; + border: 1px solid var(--panel-line); + border-right: 0; + border-radius: 5px 0 0 5px; + background: #f8fafc; + color: #111827; + font-weight: 400; + line-height: 1.15; +} + +.mapping-state.is-ready { + background: #f8fafc; + color: #111827; +} + +.mapping-state.is-missing { + background: #fff0f0; + color: #b42318; + font-weight: 700; +} + +.mapping-list { + display: grid; + gap: 3px; +} + +.mapping-details { + min-width: 0; +} + +.mapping-details summary { + display: grid; + grid-template-columns: minmax(0, 1fr) 22px; + align-items: center; + cursor: pointer; + list-style: none; +} + +.mapping-details summary::-webkit-details-marker { + display: none; +} + +.mapping-details summary:hover { + filter: brightness(1.04); +} + +.mapping-toggle { + width: 22px; + height: 28px; + display: grid; + place-items: center; + border: 1px solid var(--panel-line); + border-left: 0; + border-radius: 0 5px 5px 0; + background: #f8fafc; +} + +.mapping-toggle::before { + content: ">"; + color: #111827; + font-size: 11px; + font-weight: 900; + line-height: 1; +} + +.mapping-details[open] .mapping-toggle::before { + transform: rotate(90deg); +} + +.mapping-source-row { + min-width: 0; + max-width: 100%; + display: grid; + grid-template-columns: minmax(0, 1fr) auto; + align-items: center; + gap: 4px; + padding: 3px 4px; + border: 1px solid #46505c; + border-radius: 5px; + background: #1b2026; + color: #f3f6f8; +} + +.mapping-source-row.is-disabled { + opacity: 0.55; +} + +.mapping-source-name { + min-width: 0; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + font-weight: 800; +} + +.mapping-source-status { + flex: 0 0 auto; + padding: 1px 4px; + border-radius: 4px; + font-size: 9px; + font-weight: 400; +} + +.mapping-source-status.is-ok { + background: #e8edf3; + color: #303944; +} + +.mapping-source-status.is-bad { + background: #ffe0dc; + color: #b42318; + font-weight: 700; +} + +.mapping-source-status.is-muted { + background: #4b5563; + color: #e5e7eb; +} + +.product-panel { + min-width: 0; + padding: 22px 0 8px; + background: #d3d8de; + border-right: 1px solid #bdc6cf; +} + +.field-grid { + display: grid; + grid-template-columns: 132px minmax(0, 168px); +} + +.field-label, +.field-value { + min-height: 22px; + padding: 4px 8px; + border-bottom: 1px solid var(--detail-border); + font-size: 12px; + line-height: 1.15; +} + +.field-label { + color: #26313d; + background: var(--detail-label); +} + +.field-value { + background: var(--detail-value); + text-align: right; + overflow-wrap: anywhere; + font-variant-numeric: tabular-nums; +} + +.field-value[data-field="manufacturer_name"] { + color: #b42318; + font-weight: 700; +} + +.data-panel { + min-width: 0; + background: var(--surface); +} + +.safe-mode, +#modePill { + padding: 2px 6px; + border-radius: 5px; + background: #e8f7ef; + color: var(--safe); + font-weight: 700; +} + +#databaseStatus.database-error { + background: #fde8e7; + color: #b42318; +} + +#modePill { + background: #edf1f5; + color: #4d5966; + font-weight: 600; +} + +.table-wrap { + height: 100vh; + overflow: auto; +} + +.variant-table { + width: 100%; + min-width: 820px; + border-collapse: separate; + border-spacing: 0; + table-layout: fixed; + font-size: 12px; + background: var(--table-row); +} + +.variant-table th, +.variant-table td { + height: 22px; + border-right: 1px solid var(--table-line); + border-bottom: 1px solid var(--table-line); + padding: 2px 7px; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + font-variant-numeric: tabular-nums; +} + +.variant-table th { + position: sticky; + top: 0; + z-index: 2; + background: var(--table-head); + color: #303944; + font-weight: 700; + text-align: center; +} + +.variant-table td { + background: var(--table-row); +} + +.variant-table tr:nth-child(even) td { + background: var(--table-row-alt); +} + +.variant-table tr:hover td { + background: #fff7df; +} + +.empty-row { + color: var(--muted); + text-align: center; + font-style: italic; +} + +.variant-table .problem-ean { + background: var(--danger) !important; + color: #ffffff; + font-weight: 700; +} + +.modal-backdrop { + position: fixed; + inset: 0; + z-index: 20; + display: grid; + place-items: center; + padding: 24px; + background: rgba(17, 24, 39, 0.38); +} + +.modal-backdrop[hidden] { + display: none; +} + +.suggested-dialog { + width: min(900px, 94vw); + max-height: min(620px, 88vh); + display: grid; + grid-template-rows: auto minmax(0, 1fr); + border: 1px solid #9aa5b1; + border-radius: 8px; + overflow: hidden; + background: #f8fafc; + box-shadow: 0 18px 60px rgba(15, 23, 42, 0.34); +} + +.source-dialog { + width: min(820px, 94vw); + max-height: min(620px, 88vh); + display: grid; + grid-template-rows: auto minmax(0, 1fr); + border: 1px solid #9aa5b1; + border-radius: 8px; + overflow: hidden; + background: #f8fafc; + box-shadow: 0 18px 60px rgba(15, 23, 42, 0.34); +} + +.settings-dialog { + width: min(520px, 94vw); + max-height: 92vh; + display: grid; + grid-template-rows: auto minmax(0, 1fr); + border: 1px solid #9aa5b1; + border-radius: 8px; + overflow: hidden; + background: #f8fafc; + box-shadow: 0 18px 60px rgba(15, 23, 42, 0.34); +} + +.settings-content { + display: grid; + gap: 8px; + padding: 10px; + overflow: visible; +} + +.settings-group { + display: grid; + gap: 6px; + margin: 0; + padding: 8px; + border: 1px solid var(--table-line); + border-radius: 6px; + background: #ffffff; +} + +.settings-group legend { + padding: 0 5px; + font-size: 12px; + font-weight: 700; +} + +.settings-option { + display: flex; + align-items: center; + gap: 8px; + font-size: 12px; +} + +.local-db-fields { + display: grid; + gap: 6px; + padding: 8px; + border: 1px solid var(--table-line); + border-radius: 5px; + background: #f7f9fb; +} + +.local-db-fields[hidden] { + display: none; +} + +.settings-field { + display: grid; + grid-template-columns: 82px minmax(0, 1fr); + align-items: center; + gap: 8px; + font-size: 11px; +} + +.settings-field input { + min-width: 0; + padding: 4px 6px; + border: 1px solid #cbd3dc; + border-radius: 4px; + font: inherit; +} + +.settings-test-button { + width: 100%; + padding: 5px 8px; + border: 1px solid #b8c3ce; + border-radius: 4px; + background: #eef2f5; + color: #26323d; + cursor: pointer; +} + +.settings-test-button:disabled { + opacity: 0.6; + cursor: wait; +} + +.connection-ok { + color: #18794e; +} + +.connection-error { + color: #b42318; + font-weight: 600; +} + +.settings-option input { + margin: 0; +} + +.settings-option input:disabled + span { + color: var(--muted); +} + +.settings-note, +.settings-permissions { + margin: 0; + color: var(--muted); + font-size: 11px; + line-height: 1.35; +} + +.settings-permissions { + display: grid; + gap: 3px; + padding-top: 3px; +} + +.suggested-header { + min-height: 42px; + display: flex; + align-items: center; + justify-content: space-between; + gap: 12px; + padding: 8px 10px; + border-bottom: 1px solid var(--table-line); + background: #e8edf3; +} + +.suggested-header h2 { + margin: 0; + font-size: 14px; +} + +.modal-close { + border: 1px solid #b6c0ca; + border-radius: 5px; + padding: 5px 10px; + background: #ffffff; + cursor: pointer; + font-size: 12px; +} + +.suggested-list { + overflow: auto; +} + +.suggested-row { + display: grid; + grid-template-columns: 58px 92px 1fr 160px 64px 84px; + align-items: center; + gap: 8px; + padding: 6px 10px; + border-bottom: 1px solid var(--table-line); + font-size: 12px; +} + +.suggested-row:nth-child(even) { + background: #eef2f6; +} + +.suggested-row img { + width: 46px; + height: 46px; + object-fit: contain; + border: 1px solid #d3dae2; + background: #ffffff; +} + +.suggested-id, +.suggested-active { + text-align: center; + font-variant-numeric: tabular-nums; +} + +.suggested-name, +.suggested-reference { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +.suggested-pick { + border: 1px solid #2f6fed; + border-radius: 5px; + padding: 5px 8px; + background: #2f6fed; + color: #ffffff; + cursor: pointer; + font-size: 12px; +} + +.source-list { + display: grid; + gap: 8px; + padding: 10px; + overflow: auto; +} + +.source-section { + display: grid; + gap: 4px; + border: 1px solid var(--table-line); + border-radius: 6px; + overflow: hidden; + background: #ffffff; +} + +.source-section-header, +.source-row { + display: grid; + grid-template-columns: minmax(0, 1fr) auto; + align-items: center; + gap: 10px; + min-height: 32px; + padding: 6px 8px; + font-size: 12px; +} + +.source-section-header { + background: #e8edf3; +} + +.source-section-actions { + display: flex; + align-items: center; + gap: 6px; +} + +.source-picture-action { + border: 1px solid #9aa8b7; + border-radius: 4px; + padding: 3px 6px; + background: #ffffff; + color: #172033; + cursor: pointer; + font-size: 10px; +} + +.source-picture-action:hover { + background: #e9f2ff; + border-color: #2f6fed; +} + +.source-row { + color: #172033; + text-decoration: none; + border-top: 1px solid var(--table-line); +} + +.source-row:hover { + background: #fff7df; +} + +.source-row-title { + min-width: 0; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +.source-status, +.source-row-action { + padding: 2px 6px; + border-radius: 5px; + font-size: 10px; + font-weight: 800; +} + +.picture-candidate { + display: grid; + grid-template-rows: 132px auto; + gap: 6px; + color: inherit; + text-decoration: none; + font-size: 11px; + min-width: 132px; +} + +.picture-candidate img { + width: 132px; + height: 132px; + object-fit: contain; + background: #fff; + border: 1px solid #d5dce5; +} + +.picture-candidate span { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +.source-status.is-ok { + background: #dff7e7; + color: #0f7b4d; +} + +.source-status.is-muted, +.source-row-action { + background: #edf1f5; + color: #4d5966; +} + +@media (max-width: 980px) { + .catalog-screen { + grid-template-columns: 1fr; + } + + .control-panel { + min-height: auto; + display: grid; + grid-template-columns: repeat(2, minmax(0, 1fr)); + } + + .record-id, + .arrow-row, + .parser-actions, + .app-status, + .mapping-box, + .picture-slot { + grid-column: span 2; + } + + .product-panel { + padding: 0; + } + + .field-grid { + grid-template-columns: 160px minmax(0, 1fr); + } + + .table-wrap { + height: auto; + max-height: 70vh; + } +} diff --git a/src/tailwind.css b/src/tailwind.css new file mode 100644 index 0000000..e68cb53 --- /dev/null +++ b/src/tailwind.css @@ -0,0 +1,39 @@ +@import "tailwindcss"; +@source "../public"; + +@theme { + --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; + --color-catalog-surface: #f4f6f8; + --color-catalog-panel: #22272e; + --color-catalog-accent: #7ee34d; + --color-catalog-danger: #e02424; + --color-catalog-focus: #2f6fed; +} + +@layer base { + *, ::before, ::after { + box-sizing: border-box; + } + + html { + color-scheme: light; + } + + body { + margin: 0; + min-height: 100vh; + font-family: var(--font-sans); + color: #15181c; + background: var(--color-catalog-surface); + } + + button, + input, + select { + font: inherit; + } +} + +/* Compatibility component layer. Existing selectors stay stable while the + visual system is migrated to Tailwind utilities incrementally. */ +@import "./tailwind-components.css"; diff --git a/tests/ui/catalog-maker.smoke.spec.js b/tests/ui/catalog-maker.smoke.spec.js index 96adf4b..c1ea641 100644 --- a/tests/ui/catalog-maker.smoke.spec.js +++ b/tests/ui/catalog-maker.smoke.spec.js @@ -21,3 +21,12 @@ test("settings modal opens and shows local database controls", async ({ page }) await expect(page.locator("#localDbHost")).toBeVisible(); await expect(page.locator("#testLocalDbButton")).toBeVisible(); }); + +test("catalog maker remains usable on a narrow viewport", async ({ page }) => { + await page.setViewportSize({ width: 390, height: 844 }); + await page.goto("/"); + + await expect(page.locator("#findSourcesButton")).toBeVisible(); + await expect(page.locator("#settingsButton")).toBeVisible(); + await page.screenshot({ path: "test-results/catalog-maker-mobile.png", fullPage: true }); +});