Skip to content

fix(catalog): handle Excel UTF-8 BOM, formatted prices, and boolean tokens in CSV import #1602

Closed

Description

@khaira777

Menu CSV files exported from Microsoft Excel on Windows commonly start with a UTF-8 BOM (\uFEFF), use uppercase/word boolean values (TRUE/FALSE, Yes/No), or include unambiguous currency symbols/grouping commas in price columns, causing main/routes/menu-csv.ts to reject valid merchant spreadsheets.

Scope:

  • Strip a leading UTF-8 BOM (\uFEFF) before header parsing in parseCSV().
  • Support unambiguous formatted price inputs (leading/trailing currency symbols/codes and standard thousands grouping, while rejecting ambiguous separators) and case-insensitive boolean tokens (true/false, yes/no, 1/0) where boolean columns are parsed.
  • Preserve all existing CSV formula-injection guards, byte/row/column/cell caps, and strict validation invariants, with unit regression tests.

Activity

  1. khaira777 commented on Nov 17, 2026

    @khaira777
    ContributorAuthor

    Looking into this now to harden CSV menu imports for Windows Excel UTF-8 BOM, unambiguous formatted prices, and boolean tokens while keeping existing validation and injection guards intact.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions