Repository navigation
Standardkategorien für neue Installationen, Kategorien-Seite im Admin-Bereich - #245
Merged
Merged
Conversation
A new self-hosted instance had no categories and no way to add them in the app, so no bazaar could be created. The server now fills an empty table on start; an instance with categories keeps exactly those. The Convex import and the demo seed replace the defaults while no users exist, so they do not end up next to the imported or English categories. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Admins see every category with its extra fields and usage, can add and rename categories, and delete those nothing uses. The name still decides the extra fields, so the dialog shows them while typing and warns when they change. Categories get translated names in `translations`, shown wherever a name is displayed; `label` stays the name for the field rules and the fallback. The default categories get their English names, also on existing instances. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Inside a form Radix keeps a hidden native select. A value arriving before its option made that one report "", which wiped the value: opening an item to edit with the categories already loaded lost its category and condition, so its extra fields were gone and saving failed. No option can be empty, so an empty value is ignored. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
🚀 Review-Apphttps://review-245.bazarpro.de Modus: platform (wie bazarpro.de). Self-Hosting testen: Label Stand:
Laufendes Event mit allen Funktionen: Fahrradbörse Bürgerhalle (alle Funktionen). 📬 Alle Mails der Review-App: https://review-245-mail.bazarpro.de (Benutzer Die Review-App wird beim Schließen des Pull Requests entfernt. |
This was referenced Nov 4, 2026
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Worum geht's
Auf einer neuen Installation gab es keine Kategorien und keinen Weg, in der App welche anzulegen. Deshalb ließ sich kein Basar erstellen. Dieser PR behebt das und ergänzt eine Verwaltungsseite für Kategorien.
Closes #236
1. Standardkategorien beim Start
categories.seedIfEmpty). Vorhandene Kategorien bleiben unverändert. Ein Fehler führt nur zu einer Warnung im Log.--locale enkeine deutschen neben den englischen.2. Seite „Kategorien“ (
/admin/categories)3. Englische Namen
0019_category_translations.sqlergänzt die Spaltetranslationsund trägt für die deutschen Standardnamen die englischen ein.src/i18n/categories.ts). Fehlt eine Übersetzung, erscheintlabel.Beim Review beachten
0019, weil Universal-Etiketten, Länderauswahl im Profil, Startposition beim Druck, Korrekturen aus dem Review #242 bereits0017und0018belegt. Die Dateien kollidieren dadurch unabhängig von der Merge-Reihenfolge nicht.Getestet
cargo fmtundclippy.tsc,eslintund alle 448 Unit-Tests grün.Bewusst offen
🤖 Generated with Claude Code