Repository navigation
feat: Verkäufer ohne Artikel anschreiben und abmelden, Verkäufer nach Postleitzahl eingrenzen (#304) - #311
Open
Garaz08 wants to merge 13 commits into
Open
feat: Verkäufer ohne Artikel anschreiben und abmelden, Verkäufer nach Postleitzahl eingrenzen (#304)#311Garaz08 wants to merge 13 commits into
Garaz08 wants to merge 13 commits into
Conversation
…he backend (#304) - New audience "withoutItems" for messages to sellers, the seller list marks them, and eventSeller.removeSellersWithoutItems unregisters them all at once (organizer only), with an optional message. Unlike an exclusion they may join again; who announces an item meanwhile stays (serializable transactions, tested concurrently). - features.allowedPostalCodes / postalCodeCountry: only sellers whose postal code starts with a prefix, in that country, join on their own. Invitations, the access code and the team pass it; walk-in sellers never join. Saved short ("89" covers "890"). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- In the step "Mitmachen" and the settings: a map of the postal code areas of one country (plain SVG, no map tiles). A radius around the bazaar or the organizer's own location chooses areas, a tap adds or removes single ones, longer prefixes can be typed. Whole regions are stored short. Data and build script in scripts/postal-areas. - Sellers see the region on the bazaar page, in the list, in the conditions and before registering; who is from elsewhere learns why and that an invitation helps. - Seller list: filter "Ohne Artikel" with reminder (message preset to them) and "Alle abmelden" with confirmation and optional message. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
🚀 Review-Apphttps://review-311.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-311-mail.bazarpro.de (Benutzer Die Review-App wird beim Schließen des Pull Requests entfernt. |
- Dragging moves the map at once; it is drawn anew when it comes to rest - Two fingers zoom; Ctrl or Cmd with the wheel zooms, the plain wheel scrolls the page - The area tooltip follows the mouse without re-rendering the map - Labels are placed on a grid so each check only looks at nearby boxes - Tests cover drag, two-finger zoom and wheel zoom
- Show the region as a switch row among the registration settings, with its explanation in an info tip - Put country, centre, map, radius and chosen areas into one compact block - Replace the step hints and summary sentence with the area count and the chosen codes - Update the unit and e2e tests to the new texts and elements
- Bazaar regions store prefixes per country, e.g. {"DE": ["88"], "AT": ["69"]}, so a region can cross a border
- Replaces the single postalCodeCountry; the API now takes allowedPostalCodes as a map per country
- The postal code map draws all countries at once with keyed areas, and the tooltip names the country
- Registration texts, seller rules and the backend check list each country's prefixes
- Load sellers without items once in get_vendors_for_event, not for every vendor load - Remove sellers leaving an event with one DELETE each for sellers and roles, then touch them in a loop - Add notify_users and enqueue_many: one query loads all recipients, one insert queues all mails - join_event loads the user profile once for the region and fixed seller data checks - Map areas carry a bounding box "b" (boxes.py, written by build.py) so nearby areas are found without reading every path
- Add events.region_map_image_id (migration 0039) and accept regionMapImage in create and edit; clearRegionMapImage removes it - Purge and delete the region picture with the event's other files in retention, and keep it out of orphan file cleanup - Name the largest places of each postal code area and the towns on the postal code maps (scripts/postal-areas/places.py, built from GeoNames cities1000)
- Registration text says "Nur aus der Region" where a map exists; codes move to the map caption - Event cards, public page and registration dialog pass the codes to RegionMapTip - Demo kids, ski and book bazaars get a region and its picture
…e test (#304) Saving the region now draws a map of it, so the public page shows "Nur aus der Region" with the map and its codes on hover, and the join dialog points to the map. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Reject postal code and country changes while a region bazaar the seller joined is not over (profile.postalCodeFixed) - Add users.isMyPostalCodeFixed so the profile form shows the lock and explains it - Warn in the join dialog that the postal code counts and stays once registered - Name the region in the conditions and link it to its map, instead of listing codes twice - Cover the lock, its release after the bazaar, and the dialog text in tests
- Record admitted_by_region on event_sellers (migration 0040) when the region lets a seller in - Keep the postal code fixed only for those sellers; access code, invitation, team and excluded sellers stay free - Make isMyPostalCodeFixed read the bazaars it depends on, so organizer changes update it live - Cap postal codes in messages at 12, then show "+N" as the app does - Draw the region circle once a stored region loads (EditEventRegion) - InfoTip: depend on whether a trigger exists, not on the node, which is new on every render
- Show "Karte ansehen" next to the region text; it opens the map large with the postal codes - Show a small map preview in the seller conditions; a tap enlarges it - Replace RegionMapTip with RegionMap and drop the trigger and width options from InfoTip
…dialog (#304) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch was successfully 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.
Closes #304
Verkäufer aus der Region (
features.allowedPostalCodes,postalCodeCountry)89,7322) für ein Land.joinEventprüft die PLZ aus dem Profil (join.postalCodenennt die erlaubten Bereiche; ohne PLZjoin.postalCodeMissing). Ältere Profile mit „Deutschland“ stattDEzählen mit, ohne Land gilt Deutschland89deckt890ab, höchstens 500 PräfixeKarte im Wizard („Mitmachen“) und in den Einstellungen
scripts/postal-areasFür Verkäufer
Verkäufer ohne Artikel
0038)Tests
regional_sellers.rs): PLZ-Prüfung inkl. Land und fehlender PLZ, Einladung/Zugangscode/Helfer umgehen sie, Speichern und Validieren, Zielgruppe, Sammel-Abmeldung mit Rechten, Platz, Mail und erneuter Anmeldung, gleichzeitiges Anmelden von Artikelncargo test,clippy -D warnings,fmt, Vitest (848, Branches 80,7 %),tsc -b, lint, Playwright (Chromium, 44/44)🤖 Generated with Claude Code