Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified public/startseite-hero.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
113 changes: 91 additions & 22 deletions scripts/screenshots.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,18 @@ const LOCALES = {
dir: SCREENSHOT_DIR,
stopTour: 'Beenden',
next: 'Weiter',
kidsBazaar: 'Kinderbasar (Nummernbasar)',
eventTitle: 'Titel der Veranstaltung *',
location: 'Ort *',
kidsBazaar: 'Kinderbasar',
eventTitle: 'Titel des Basars *',
location: 'Veranstaltungsort *',
contact: 'Kontaktdaten / Veranstalter-Info *',
summary: 'Alles im Blick',
join: /Als Verkäufer beitreten/,
summary: 'So sieht dein Basar aus',
join: /Als Verkäufer anmelden/,
itemCode: 'Artikel-Code',
add: 'Hinzufügen',
print: 'Drucken',
invite: 'Per E-Mail einladen',
settlement: 'Abrechnung',
inviteEmail: 'anna.beispiel@example.org',
demo: {
title: 'Kinderkleiderbasar Frühjahr 2027',
description: 'Kinderkleidung, Spielzeug und Babyausstattung aus zweiter Hand.',
Expand All @@ -47,13 +52,18 @@ const LOCALES = {
dir: path.join(SCREENSHOT_DIR, 'en'),
stopTour: 'End',
next: 'Next',
kidsBazaar: "Children's bazaar (number bazaar)",
eventTitle: 'Event title *',
location: 'Location *',
kidsBazaar: "Children's bazaar",
eventTitle: 'Bazaar title *',
location: 'Venue *',
contact: 'Contact details / organizer info *',
summary: 'Everything at a glance',
join: /Join as a seller/,
summary: 'This is your bazaar',
join: /Register as a seller/,
itemCode: 'Item code',
add: 'Add',
print: 'Print',
invite: 'Invite by email',
settlement: 'Settlement',
inviteEmail: 'anna.example@example.org',
demo: {
title: "Kids' clothing bazaar spring 2027",
description: 'Second-hand kids’ clothes, toys and baby gear.',
Expand All @@ -75,9 +85,9 @@ async function apiQuery(fn, args) {
return body.value;
}

async function newPage(browser, lang) {
async function newPage(browser, lang, viewport = { width: 1280, height: 800 }) {
const context = await browser.newContext({
viewport: { width: 1280, height: 800 },
viewport,
deviceScaleFactor: 2,
reducedMotion: 'reduce',
locale: LOCALES[lang].browser,
Expand Down Expand Up @@ -109,8 +119,8 @@ async function open(page, route, texts) {
// An active onboarding tour would cover the page
const stop = page.getByRole('button', { name: texts.stopTour, exact: true });
if (await stop.isVisible().catch(() => false)) await stop.click();
// The sticky app header would cover the top of element screenshots
await page.addStyleTag({ content: 'header.sticky { position: relative !important; }' });
// Sticky header and action bar would lie across element screenshots
await page.addStyleTag({ content: '.sticky { position: relative !important; top: auto !important; bottom: auto !important; }' });
await page.mouse.move(0, 0);
await page.waitForTimeout(600);
}
Expand Down Expand Up @@ -139,20 +149,33 @@ async function organizer(browser, lang) {
// Creation wizard: kind of bazaar, then through to the summary
await open(page, '/events/new', texts);
await shot(page.locator('main'), 'basar-art', texts.dir);
await page.getByRole('button', { name: new RegExp(texts.kidsBazaar.replace(/[()]/g, '\\$&')) }).click();
await page.getByRole('button', { name: new RegExp(`^${texts.kidsBazaar}`) }).click();
const next = () => page.getByRole('button', { name: texts.next, exact: true }).click();
const step = async (name) => {
await page.mouse.move(0, 0);
await page.waitForTimeout(400);
await shot(page.locator('main'), name, texts.dir);
};
// The kind of bazaar leads straight to the first step
await step('wizard-verkauf');
await next();
await step('wizard-artikel');
await next();
await step('wizard-gebuehren');
await next();
await step('wizard-mitmachen');
await next();
await page.getByLabel(texts.eventTitle).fill(texts.demo.title);
await page.locator('#description').fill(texts.demo.description);
await page.getByLabel(texts.location).fill(texts.demo.location);
await page.locator('#startDate').fill(inDays(30, 9));
await page.locator('#endDate').fill(inDays(30, 14));
const next = () => page.getByRole('button', { name: texts.next, exact: true }).click();
await next(); // sale
await next(); // fees
await page.getByLabel(texts.contact).fill(texts.demo.contact);
await next(); // items
await next(); // registration
await next(); // hand-in and pickup
await next(); // summary
await page.getByLabel(texts.contact).blur();
await step('wizard-termin');
await next();
await step('wizard-abgabe');
await next();
await page.getByRole('heading', { name: texts.summary }).waitFor();
await page.mouse.move(0, 0);
await page.waitForTimeout(400);
Expand All @@ -174,7 +197,53 @@ async function organizer(browser, lang) {
await page.mouse.move(0, 0);
await page.waitForTimeout(800);
await shot(page.locator('main'), 'kasse', texts.dir);

// Overview with the next steps of the bazaar
await open(page, `/events/view/${bikeEvent._id}`, texts);
await shot(page, 'basar-uebersicht', texts.dir);

// Sellers: both menus, and the invitation
await open(page, `/events/view/${bikeEvent._id}/sellers`, texts);
const menu = (name) => page.getByRole('button', { name, exact: true }).click();
await menu(texts.print);
await page.getByRole('menu').waitFor();
await shot(page, 'verkaeufer-drucken', texts.dir);
await page.keyboard.press('Escape');
await menu(texts.add);
await page.getByRole('menu').waitFor();
await shot(page, 'verkaeufer-hinzufuegen', texts.dir);
await page.getByRole('menuitem', { name: texts.invite }).click();
const dialog = page.getByRole('dialog');
await dialog.waitFor();
await dialog.locator('input[type="email"]').fill(texts.inviteEmail);
await page.evaluate(() =>
document.activeElement instanceof HTMLElement ? document.activeElement.blur() : null
);
await page.waitForTimeout(300);
await shot(dialog, 'einladen-dialog', texts.dir);
await page.keyboard.press('Escape');

// Settlement of a seller who sold something, with the print menu open
const res = await page.request.post(`${BASE_URL}/api/query/eventRoles.getVendorsForEvent`, {
data: { eventId: bikeEvent._id },
});
const vendors = (await res.json()).value;
const vendor = vendors.find((v) => v.totalRevenue > 0);
if (!vendor) throw new Error('Demo-Verkäufer mit Verkäufen fehlt – Seed ausgeführt?');
await open(page, `/events/view/${bikeEvent._id}/products?vendor=${vendor._id}`, texts);
await page.getByRole('tab', { name: texts.settlement, exact: true }).click();
await menu(texts.print);
await page.getByRole('menu').waitFor();
await page.waitForTimeout(400);
await shot(page, 'verkaeufer-abrechnung', texts.dir);
await page.context().close();

// On phones: tab bar with the scanner in the middle
const phone = await newPage(browser, lang, { width: 390, height: 780 });
await login(phone, 'user1@bazarpro.de', lang);
await open(phone, `/events/view/${bikeEvent._id}`, texts);
await shot(phone, 'handy-navigation', texts.dir);
await phone.context().close();
}

async function seller(browser, lang, sellerEvent) {
Expand Down
Binary file added src/assets/ausdrucke/abrechnung.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/ausdrucke/en/abrechnung.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/etiketten/etiketten-gray.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/etiketten/etiketten-gross.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/etiketten/etiketten.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/etiketten/legende.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/etiketten/sortierblatt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/screenshots/artikel-formular.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/screenshots/basar-art.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/screenshots/basar-beitreten-dialog.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/screenshots/basar-seite-verkaeufer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/screenshots/basar-uebersicht.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/screenshots/basar-zusammenfassung.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/screenshots/einladen-dialog.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/screenshots/en/artikel-formular.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/screenshots/en/basar-art.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/screenshots/en/basar-beitreten-dialog.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/screenshots/en/basar-seite-verkaeufer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/screenshots/en/basar-uebersicht.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/screenshots/en/basar-zusammenfassung.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/screenshots/en/einladen-dialog.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/screenshots/en/handy-navigation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/screenshots/en/kasse.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/screenshots/en/meine-produkte.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/screenshots/en/meine-veranstaltungen.png
Binary file added src/assets/screenshots/en/verkaeufer-drucken.png
Binary file added src/assets/screenshots/en/wizard-abgabe.png
Binary file added src/assets/screenshots/en/wizard-artikel.png
Binary file added src/assets/screenshots/en/wizard-gebuehren.png
Binary file added src/assets/screenshots/en/wizard-mitmachen.png
Binary file added src/assets/screenshots/en/wizard-termin.png
Binary file added src/assets/screenshots/en/wizard-verkauf.png
Binary file added src/assets/screenshots/handy-navigation.png
Binary file modified src/assets/screenshots/kasse.png
Binary file modified src/assets/screenshots/meine-produkte.png
Binary file modified src/assets/screenshots/meine-veranstaltungen.png
Binary file added src/assets/screenshots/verkaeufer-abrechnung.png
Binary file added src/assets/screenshots/verkaeufer-drucken.png
Binary file added src/assets/screenshots/wizard-abgabe.png
Binary file added src/assets/screenshots/wizard-artikel.png
Binary file added src/assets/screenshots/wizard-gebuehren.png
Binary file added src/assets/screenshots/wizard-mitmachen.png
Binary file added src/assets/screenshots/wizard-termin.png
Binary file added src/assets/screenshots/wizard-verkauf.png
6 changes: 3 additions & 3 deletions src/content/docs/en/erste-schritte/was-ist-bazarpro.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ BazarPro runs in the browser, on a smartphone just as well as on a computer. No
| **Seller** | Joins a bazaar, gets a **seller number** there, lists items with a price and – depending on the bazaar – a photo, prints the QR labels and picks up money and unsold items at the end. In the app, this role is called **Participant**. |
| **Visitor** | Finds bazaars, browses the items in advance and scans an item's QR code on site to see its price and location. Doesn't need an account. |

<Aside type="tip" title="Switching roles">
One account can be both: organizer and seller. At the bottom of the app's sidebar, use **Switch role** to change between **Organizer** and **Participant**. You see different menu items depending on the role.
<Aside type="tip" title="Switching areas">
One account can be both: organizer and seller. At the top of the app's sidebar, you change between **Sell** and **Organize**. You see different menu items depending on the area.
</Aside>

## The journey of an item
Expand All @@ -32,7 +32,7 @@ BazarPro runs in the browser, on a smartphone just as well as on a computer. No
5. **Settlement & return** – After the bazaar, sales, commission, any intake fee and the payout are calculated. BazarPro reminds the seller by email to pick up. Whatever wasn't sold goes back to them. Status: **Returned**.

<Aside>
The label shows the QR code, title, seller number and – if given – the size. BazarPro only prints the price if the organizer turns that on and doesn't allow discounts. That way, at bazaars with discounts, the seller can still lower the price without printing a new label.
The label shows the QR code, title, depending on the bazaar a reusable [sorting mark](/en/veranstalter/universal-etiketten/) and – if given – the size. BazarPro only prints the price if the organizer turns that on and doesn't allow discounts. That way, at bazaars with discounts, the seller can still lower the price without printing a new label.
</Aside>

## Next steps
Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/en/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import { CardGrid, LinkCard } from '@astrojs/starlight/components';
/>
<LinkCard
title="The bazaar day"
description="Intake, cash desk with a cart, settlement and cash count."
description="Intake, cash desk with a cart, settlement and printouts for sellers."
href="/en/veranstalter/basartag/"
/>
<LinkCard
Expand Down
10 changes: 5 additions & 5 deletions src/content/docs/en/ratgeber/kinderbasar-organisieren.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ Clear rules save discussions on the bazaar day. Put them in the bazaar descripti

### Create the bazaar in BazarPro

When you create the bazaar, pick the kind **Children's bazaar (number bazaar)**. It presets suitable settings: small labels, photos optional, 50 items per seller and discounts. Then add the title, location, date, the description with your rules and times, the allowed categories and the **commission**. With 15 % commission and an item for €10, the seller gets €8.50 and €1.50 stays with the bazaar.
When you create the bazaar, pick the kind **Children's bazaar**. It presets suitable settings: small universal labels, photos optional, 50 items per seller and discounts. Then add the title, location, date, the description with your rules and times, the allowed categories and the **commission**. With 15 % commission and an item for €10, the seller gets €8.50 and €1.50 stays with the bazaar.

A few settings are especially useful for kids' bazaars:

- **Maximum number of sellers and items per seller:** Limit the number of sellers and their items so that intake and space are enough.
- **Allow items without photo:** Nobody likes photographing 40 bodysuits. Without photos, creating items is much faster.
- **Small labels:** 40 per A4 page with cutting lines. Each shows the QR code, title, **seller number** and size – like at a classic number bazaar.
- **[Universal labels](/en/veranstalter/universal-etiketten/):** 40 per A4 page with cutting lines. Each shows the QR code, title, size and the seller's **sorting mark** made of colors, shapes and numbers. Helpers sort by it in two steps, and sellers keep using the labels at the next bazaar.
- **Intake fee (optional):** Many bazaars charge a small amount per item on top of the commission, e.g. €0.20. It is deducted from the payout at settlement.
- **Hand-in and pickup:** Enter the times. BazarPro then sends sellers an email with all details the evening before and reminds them to pick up after the bazaar.
- **Access code (optional):** If the bazaar should first be open only to parents of your daycare, give the code out only there.
Expand Down Expand Up @@ -181,7 +181,7 @@ After intake, the items are sorted into areas: clothes by **size**, plus toys, b

### Return and payout

After the sale, the remaining items are **sorted by seller** – thanks to the seller number on every label, this works like at a classic number bazaar. BazarPro shows you for each seller which items sold and which go back – so you know exactly what to look for.
After the sale, the remaining items are **sorted by seller**: first by the large field on the label into ten piles, then by the two marks into each seller's basket. Print the [sorting sheets](/en/veranstalter/universal-etiketten/#sorting-items-back) for the baskets under **Participants & helpers**. BazarPro shows you for each seller which items sold and which go back – so you know exactly what to look for.

<Steps>

Expand Down Expand Up @@ -214,8 +214,8 @@ That works – as long as nothing goes wrong. Typos at the cash desk, illegible
- sellers create their items **themselves**, you don't have to type up lists,
- the cash desk **scans instead of typing**,
- the **settlement per seller** is ready immediately,
- sellers get their **seller number** automatically, and it's on every label,
- sellers can reuse their unsold items at the **next bazaar**.
- sellers get their **seller number** and **sorting mark** automatically,
- sellers can reuse their unsold items and their [universal labels](/en/veranstalter/universal-etiketten/) at the **next bazaar**.

## Printable checklist

Expand Down
Loading
Loading