Skip to content

Universal-Etiketten, Länderauswahl im Profil, Startposition beim Druck, Korrekturen aus dem Review - #242

Merged
Garaz08 merged 16 commits into
developmentfrom
feat/universal-labels
Nov 4, 2026
Merged

Garaz08 merged 16 commits into
developmentfrom
feat/universal-labels

Conversation

@Garaz08

@Garaz08 Garaz08 commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Worum geht's

Etiketten, die Verkäufer beim nächsten Basar wiederverwenden können, und schnelleres Zurücksortieren bei vielen kleinen Teilen. Dazu die offenen Punkte aus dem Review von #234.

Außerdem: ein Länderfeld für Profile, Erklärungen auf den öffentlichen Seiten und die neuen Funktionen im Seed. Die Anleitung dazu steht in BazarPro/docs#14.

1. Was auf dem Etikett steht

Neue Einstellung labelMark pro Basar, in beiden Formaten:

  • Universal-Etikett (Standard für alle Basare)
  • Nur QR-Code

Die Verkäufernummer steht nicht mehr auf dem Etikett, auch nicht bei bestehenden Basaren. In Suche, Mails und auf den Sortierblättern bleibt sie. Der QR-Code enthält nur den Link zum Artikel.

2. Universal-Etiketten

  • Sortieren: erst nach dem großen Feld auf zehn Haufen, dann nach den zwei Zeichen in den Korb.
  • Codierung: 7 · 66 · 64. Die Ziffer ist die letzte Stelle der festen Nummer, bei den Korb-Zeichen gibt die erste Stelle die Farbe und die zweite die Form. Das ergibt 100.000 Codes ohne Zusatz. Sind kaum noch welche frei, kommt ein Buchstabe dazu (A … Z, AA …). Er steht neben der Ziffer und verschiebt nichts. Codes gehen nie aus und wiederholen sich nie.
  • Zufällig: Migration 0021_random_sort_codes.sql lost die Codes aus. Ein Code verrät also nichts über das Alter eines Kontos, und ein neuer Basar beginnt nicht bei 00 00.
  • Bleibt beim Verkäufer: Migration 0020_sort_code_for_sellers.sql gibt nur Verkäufern einen Code, mit dem ersten Artikel oder Basar. Codes werden nicht neu vergeben, auch nicht von gelöschten Konten.
  • Warnung: Unterscheiden sich zwei Verkäufer eines Basars nur im Buchstaben, sehen sie das unter „Meine Produkte“ und im Druckdialog (labels.getSortMarkClashes). Das Team sieht es in der Teilnehmerliste und auf den Sortierblättern.
  • Aussehen: Jedes Etikett hat eine graue Schnittlinie, das Zeichen einen Rahmen. Große Etiketten sind mittig aufgebaut.
  • Schwarz-Weiß: Jedes Zeichen zeigt auch seine Zahl, das hilft auch bei Farbenblindheit.
  • Sortierblätter: Das Team druckt auf der Verkäuferseite ein Blatt pro Korb, in Sortierreihenfolge.
  • Korb-Etikett: Verkäufer drucken ihr eigenes unter „Meine Produkte“, das Team in den Teilnehmer-Details unter Annahme.

3. QR-Codes und Druck

  • Zentrale QR-Komponente: Alle QR-Codes kommen aus src/lib/qrCode.ts und components/ui/QrCode. qrcode.react ist entfernt.
  • Alle Etiketten: Das Team exportiert unter „Teilnehmer & Helfer“ die Artikel-Etiketten aller Verkäufer in einem PDF, ohne verkaufte und zurückgegebene Artikel.
  • Ein Druckdialog: Alle Etiketten-Exporte laufen über LabelPrintDialog: Basar-Auswahl, markierte Artikel, Team-Export und einzelnes Etikett.
  • Startposition (Startposition für Druck von Etiketten angeben #238): Der Dialog fragt bei jedem Export das erste freie Feld eines angebrochenen Bogens ab.

4. Korrekturen aus dem Review von #234

  • Adresse: Erinnerungen, Kalender, Exporte und Listen nennen die volle Adresse. Adressteile gelten nur noch als ganze Wörter als schon genannt. Eine Straße ohne Ort kommt ins JSON-LD.
  • Entwürfe: Ein Entwurf öffnet den Schritt, in dem er gespeichert wurde, und lässt sich verwerfen. ?type= geht vor einem alten Entwurf. Automatisch angelegt wird nur ein fertiger Entwurf. Abbrechen und Abmelden löschen ihn.
  • Bestätigungslink in einem anderen Browser: Ein Hinweis sagt, wo der Entwurf liegt.
  • Titelbild: Ein entferntes Titelbild bleibt entfernt.
  • Seiten laden: Fehlgeschlagene Seiten laden erneut, ohne manuelles Neuladen. Die Seite lädt nur neu, wenn der Server antwortet, wichtig bei Hallen-WLAN ohne Internet.
  • Kleinigkeiten: Kein Onboarding-Hinweis nach dem Wizard. Die Wizard-Vorschau zeigt „Nr. 17“ wie das echte Etikett.

5. Länderauswahl im Profil

  • Gemeinsames Feld: Beitritts-Assistent, Kontoeinstellungen und Basar-Formular nutzen dieselbe Auswahl (CountrySelect).
  • Postleitzahl: Sie wird nach dem gewählten Land geprüft, Österreich und die Schweiz also mit 4 Ziffern.
  • Daten: Migration 0018_user_country_code.sql stellt gängige Schreibweisen im Profil auf Codes um. Anderer Text bleibt erhalten und auswählbar. Gespeicherte Verkäufer-Nachweise bleiben unverändert.
  • Anzeige: Ausweisprüfung, Produktverwaltung und Nachweis-PDF zeigen den Namen des Landes in der Sprache des Nutzers.

6. Öffentliche Seiten und Seed

  • Funktionen-Seite: neuer Abschnitt mit Beispiel-Etiketten und Link zur Anleitung.
  • Preise-Seite: neue FAQ „Was ist ein Universal-Etikett?“.
  • Kurztexte: Funktionsliste, Karte auf der Startseite und Vorlagen nennen das Universal-Etikett.
  • Seed: Universal-Etiketten, Nur-QR-Etiketten, Adressen der Veranstaltungsorte (auch in Österreich) und Ländercodes im Profil. Zum Ausprobieren: anna.schmidt@example.org, Passwort 123456.

Getestet

  • Frontend: tsc, eslint und alle 494 Unit-Tests grün.
  • Backend: alle 257 API-Tests grün, lokal gegen eine temporäre Postgres und damit auch alle Migrationen. Dazu Unit-Tests, cargo fmt und clippy.
  • PDFs: Etiketten und Sortierblätter als Bild gerendert und angesehen, kleine Etiketten und Sortierblätter auch in Graustufen.
  • Nicht gelaufen:
    • Playwright-E2E-Tests lokal (die CI lässt sie laufen)
    • Durchklicken im Browser, auch der neue Abschnitt auf der Funktionen-Seite und die Länderauswahl
    • echter Druck mit Scan per Handy

Vor dem Merge prüfen

  • Reihenfolge: Die Funktionen-Seite verlinkt auf die neue Anleitung, Universal-Etiketten erklären docs#14 also zeitnah mit diesem PR veröffentlichen.
  • Datenschutz: Der Sortiercode verbindet einen Verkäufer über mehrere Basare. Prüfen, ob der Datenschutztext das nennen sollte.
  • Ausdruck: Ein gedrucktes kleines Etikett mit dem Handy scannen und das Sortierzeichen aus der Entfernung prüfen.

Bewusst offen

  • Andere Länder: Die Auswahl bietet nur DE, AT, CH, LI und LU. Neue Verkäufer aus anderen Ländern können ihr Land nicht angeben.
  • Bereits gedruckte Etiketten: Etiketten mit Verkäufernummer bleiben per QR-Code gültig, zeigen aber kein Sortierzeichen. Zum Sortieren nach Zeichen müssen sie einmal neu gedruckt werden.
  • Preis auf dem Etikett: Er kann beim Wiederverwenden veraltet sein.
  • Rückgabe-Scan: Noch nicht gebaut. Scannen zeigt Zeichen und Korb groß an und bucht den Artikel als zurückgegeben.

🤖 Generated with Claude Code

Garaz08 and others added 4 commits November 2, 2026 10:21
Without a number a label holds nothing specific to one bazaar, so sellers
can reuse it at the next one. On by default, older clients keep the value.
Drafts saved before a new switch existed take its default.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…es that load again

- Reminders, calendar, exports and lists name the full address; address parts
  count as repeated only as whole words; a street alone reaches the JSON-LD
- A draft returns to its step and can be discarded; ?type= beats an old draft;
  only a finished draft is created by itself; cancel and sign-out clear it
- Missing draft after the sign-up says where it is; a removed cover stays removed
- Failed page chunks load again without a manual reload; a reload only when the
  server answers; preloading retries; no onboarding prompt after the wizard
- Wizard preview prints the label number as the real label does

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…he sheet

A bazaar chooses what marks the seller on labels: the number, a universal
mark or nothing. The universal mark stays with the seller (users.sort_code),
so printed labels work at other bazaars: a large digit and three fields to sort
by sight. Fields have color and symbol, so black and white prints work and
color-blind helpers can tell them apart. Only on the small sheet.

The team prints one sheet per basket, in sorting order. Sellers can start on a
free place of a partly used sheet (#238).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Garaz08
Garaz08 changed the base branch from feat/seo-fixes to development November 2, 2026 10:00
@Garaz08 Garaz08 closed this Nov 2, 2026
@Garaz08 Garaz08 reopened this Nov 2, 2026
@github-actions

github-actions Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

🚀 Review-App

https://review-242.bazarpro.de

Modus: platform (wie bazarpro.de). Self-Hosting testen: Label review:single setzen.

Stand: c94a061 · Demo-Daten aus dem Seed, alle Konten mit Passwort 123456:

Rolle Konto
Admin admin@bazarpro.de
Veranstalter user1@bazarpro.de
Verkäufer seller@bazarpro.de
Käufer kaeufer1@bazarpro.de, kaeufer2@bazarpro.de

Laufendes Event mit allen Funktionen: Fahrradbörse Bürgerhalle (alle Funktionen).

📬 Alle Mails der Review-App: https://review-242-mail.bazarpro.de (Benutzer review, Passwort aus dem Secret REVIEW_MAIL_PASSWORD)

Die Review-App wird beim Schließen des Pull Requests entfernt.

Garaz08 and others added 2 commits November 2, 2026 13:43
The kids and clothing bazaars print universal labels, the flea market
QR-only labels. Venues get a structured address, including one in Austria.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The features page shows example labels and links to the guide, the pricing
FAQ answers what a universal label is, and the short texts name the option.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Profiles now store country codes like events do, and the postal code is
checked by the chosen country. A migration converts common spellings; other
text stays selectable and is shown as typed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Garaz08 Garaz08 changed the title Universal-Etiketten, Startposition beim Druck, Korrekturen aus dem Review Universal-Etiketten, Länderauswahl im Profil, Startposition beim Druck, Korrekturen aus dem Review Nov 3, 2026
Garaz08 and others added 3 commits November 4, 2026 16:26
…-labels

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… number

Labels no longer carry the seller number: a bazaar prints the seller's lasting mark
or only the QR code, in both formats.

The mark is a pile (color, shape, digit) and two basket marks from 00 to 99, whose
tens give the color and ones the shape. That makes 100,000 codes, then a letter is
added, so codes never run out or repeat. Only sellers get a code, with their first
item or bazaar, and no code is given out again.

If two sellers of a bazaar differ by the letter only, the seller sees a warning, and
the team sees it in the list and on the sorting sheets.

All QR codes come from one module and component, qrcode.react is gone. All label
exports go through one dialog, which always asks for the first free place (#238).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The central QR component sizes itself with CSS and has no width attribute.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codes are drawn at random, so a code tells nothing about the age of an account and a new
bazaar does not start at 00 00. Every label has a line to cut along, the mark has a frame
that holds it together, and on large labels everything is centered.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sellers get a button on their items page, the team one for each seller next to the mark.
The label is the sorting sheet of that basket and warns about a look-alike basket of the
bazaar.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ve nothing

The seller list stays short: mark and basket label moved to the seller's details under
intake. A letter now sits next to the digit in the free space of the pile, so the pile and
marks stay in place at every size. More letters stack up.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-labels

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Garaz08 and others added 2 commits November 4, 2026 21:50
A button on the seller page opens the print dialog with all items that still need a label,
seller by seller. The export asks the backend in batches and compresses the PDF, so a large
bazaar fits.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
It ran into the timeout under coverage in CI. The download functions of the sorting sheets
are covered too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Garaz08
Garaz08 merged commit 02bcc5a into development Nov 4, 2026
14 checks passed
@Garaz08
Garaz08 deleted the feat/universal-labels branch November 12, 2026 12:22

This branch was previously deployed

1 inactive deployment
review — c94a0612 Deployed Nov 4, 2026 by Garaz08 via deploy-review #548
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant