bambuddy/frontend
maziggy 91e4219994 fix(inventory): assign-spool picker note visible on mobile (#793 follow-up)
The original #793 fix added the spool note as an HTML title= tooltip
on each picker button in AssignSpoolModal.tsx. title= only surfaces
on hover, which doesn't exist on touch devices — phone users tapping
a card just selected it, the note never appeared. Users who store
their tracking ID in the note field were blind on mobile (raised by
@EmcetPL on the closed issue).

Render the note as a small muted truncated line directly under the
weight on both the internal-inventory branch (line 436-ish) and the
Spoolman branch (line 510-ish): text-[10px] text-bambu-gray/70 mt-1
truncate, kept inside the truthy `&&` guard so empty notes don't add
a blank row. The existing title={spool.note} is preserved on the new
<p> so desktop hover and mobile long-press still surface the full
untruncated text for notes that overflow the truncate.

Mirrored across both inventory branches per the parity rule
(internal and Spoolman pickers stay shape-equal). No backend change,
no new state, no popover, no new touch target.
2026-06-27 09:56:15 +02:00
..
docs [Fix] Virtual Printer FTP routed to wrong VP with different access codes (#735) 2026-03-18 09:04:31 +01:00
mockups - Refactored printer card's AMS section for better experience 2026-01-01 12:08:55 +01:00
public fix(a2l): transparent printer-card image + getPrinterImage resolver 2026-06-10 11:09:02 +02:00
scripts fix(printers): cam wall — offline tile chip + don't kill shared 2026-06-26 16:01:28 +02:00
src fix(inventory): assign-spool picker note visible on mobile (#793 follow-up) 2026-06-27 09:56:15 +02:00
.gitignore Added screenshots 2025-11-28 10:23:59 +01:00
.npmrc Fix npm audit high-severity minimatch ReDoS (GHSA-3ppc-4f35-3m26) 2026-02-19 08:23:53 +01:00
eslint.config.js Improved frontend tests 2026-01-30 13:02:57 +01:00
index.html fix: unbreak CSP for sidebar iframes, service worker, and Google Fonts 2026-04-13 16:38:17 +02:00
package-lock.json feat(file-manager): recursive subfolder search + per-folder markdown description panel (#1268) 2026-06-22 11:40:58 +02:00
package.json feat(file-manager): recursive subfolder search + per-folder markdown description panel (#1268) 2026-06-22 11:40:58 +02:00
postcss.config.js Added screenshots 2025-11-28 10:23:59 +01:00
README.md Added screenshots 2025-11-28 10:23:59 +01:00
tailwind.config.js Add SpoolBuddy tag detection modal and fix NFC reader silent failure 2026-02-28 08:54:39 +01:00
tsconfig.app.json Fix docker build 2025-12-12 16:48:12 +01:00
tsconfig.json Added screenshots 2025-11-28 10:23:59 +01:00
tsconfig.node.json Added screenshots 2025-11-28 10:23:59 +01:00
vite.config.ts fix(frontend): revert base: '' so deep SPA routes load their assets on initial navigation (issue #1221) 2026-05-08 08:39:00 +02:00
vitest.config.ts feat: Centralise sidebar ordering and add page visibility options (#1673) 2026-06-17 12:04:57 +02:00

React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

React Compiler

The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.

Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:

export default defineConfig([
  globalIgnores(['dist']),
  {
    files: ['**/*.{ts,tsx}'],
    extends: [
      // Other configs...

      // Remove tseslint.configs.recommended and replace with this
      tseslint.configs.recommendedTypeChecked,
      // Alternatively, use this for stricter rules
      tseslint.configs.strictTypeChecked,
      // Optionally, add this for stylistic rules
      tseslint.configs.stylisticTypeChecked,

      // Other configs...
    ],
    languageOptions: {
      parserOptions: {
        project: ['./tsconfig.node.json', './tsconfig.app.json'],
        tsconfigRootDir: import.meta.dirname,
      },
      // other options...
    },
  },
])

You can also install eslint-plugin-react-x and eslint-plugin-react-dom for React-specific lint rules:

// eslint.config.js
import reactX from 'eslint-plugin-react-x'
import reactDom from 'eslint-plugin-react-dom'

export default defineConfig([
  globalIgnores(['dist']),
  {
    files: ['**/*.{ts,tsx}'],
    extends: [
      // Other configs...
      // Enable lint rules for React
      reactX.configs['recommended-typescript'],
      // Enable lint rules for React DOM
      reactDom.configs.recommended,
    ],
    languageOptions: {
      parserOptions: {
        project: ['./tsconfig.node.json', './tsconfig.app.json'],
        tsconfigRootDir: import.meta.dirname,
      },
      // other options...
    },
  },
])