Skip to content

Manage aisles (aisle.conf) from the web server #630

Closed

Description

@LeMyst

cook server groups the shopping list by aisle.conf, but there is no way to change that file from the web UI: Preferences only prints its path, and an ingredient that no aisle names silently ends up under other on the shopping list. Fixing either means finding the file on the server and editing it by hand, and cook doctor aisle (the check for uncategorised ingredients) is CLI-only.

Proposal

A page to manage aisles, reached from the shopping list and from Preferences:

  • add, rename, reorder and remove aisles (the order is the shopping list's order);
  • add, rename, move and remove ingredients and their a | b synonyms;
  • list the ingredients the recipes use that no aisle names — what cook doctor aisle reports — and file each one under an aisle;
  • edit the file as text, saved only when the aisle parser accepts it;
  • create config/aisle.conf in the recipe directory when there is none;
  • on the shopping list, an "Assign aisle" picker on the items in other.

Edits should change only the lines concerned, so comments and the blank lines people use to group a long aisle survive (cooklang::aisle::write drops both). With sign-in on, changes need the same role as the pantry (shopper).

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