Skip to content
Open
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
2 changes: 1 addition & 1 deletion e2e/tests/resale/cutoff-and-closure.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ test.describe('when a listed ticket can no longer be resold', () => {
const attendees = new AttendeePage(page);
await attendees.goto(event.eventId);
await attendees.cancelTicket(cancelled.buyerLastName);
await expect(page.getByText('Successfully cancelled attendee')).toBeVisible();
await expect(page.getByText('Attendee cancelled', { exact: true })).toBeVisible();
expect(listingFor(cancelled.attendees[0].shortId)).toMatchObject({ status: 'CLOSED', closedReason: 'TICKET_CANCELLED' });
await mailpit.waitForMessage(cancelled.buyerEmail, { subjectContains: CLOSED_SUBJECT });

Expand Down
2 changes: 1 addition & 1 deletion e2e/tests/resale/organizer-interference.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ test.describe('an organizer changing the seller\'s order while a buyer is checki
const attendees = new AttendeePage(page);
await attendees.goto(event.eventId);
await attendees.cancelTicket(sellerLastName);
await expect(page.getByText('Successfully cancelled attendee')).toBeVisible();
await expect(page.getByText('Attendee cancelled', { exact: true })).toBeVisible();
await expect(attendees.rowByText(sellerLastName)).toContainText('Cancelled');

expect(listingFor(sellerTicket.shortId)).toMatchObject({ status: 'CLOSED', closedReason: 'TICKET_CANCELLED' });
Expand Down
2 changes: 1 addition & 1 deletion e2e/tests/seating/generate-seats.unit.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const fixture = (name: string): string =>
readFileSync(fileURLToPath(new URL(`../../../backend/tests/Fixtures/seating/${name}.json`, import.meta.url)), 'utf8');

const linguiMacroStub = `data:text/javascript,${encodeURIComponent(
'export const t = (strings, ...values) => strings.reduce((text, part, i) => text + part + (i < values.length ? values[i] : ""), "");',
'export const t = (strings, ...values) => Array.isArray(strings) ? strings.reduce((text, part, i) => text + part + (i < values.length ? values[i] : ""), "") : strings.message;',
)}`;

register(`data:text/javascript,${encodeURIComponent(
Expand Down
4 changes: 2 additions & 2 deletions e2e/tests/seating/seat-release.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ test.describe('releasing reserved seats', () => {
const confirm = authedPage.getByRole('dialog');
await expect(confirm).toContainText('release seat Stalls · A-10');
await confirm.getByRole('button', { name: 'Confirm' }).click();
await expect(authedPage.getByText('Successfully cancelled attendee')).toBeVisible();
await expect(authedPage.getByText('Attendee cancelled', { exact: true })).toBeVisible();
await expect(attendees.rowByText(order.buyerEmail).getByText('Cancelled', { exact: true })).toBeVisible();

await openPublicMap(page, event);
Expand All @@ -86,7 +86,7 @@ test.describe('releasing reserved seats', () => {

await attendees.openRowAction(order.buyerEmail, 'Activate');
await authedPage.getByRole('dialog').getByRole('button', { name: 'Confirm' }).click();
await expect(authedPage.getByText('Successfully activated attendee')).toBeVisible();
await expect(authedPage.getByText('Attendee activated', { exact: true })).toBeVisible();

expect((await seatedAttendee(api, event, order.buyerEmail)).status).toBe('ACTIVE');
expect(await occupiedUids(api, event)).toContain(A10);
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/common/SsoButtons/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export const SsoButtons = ({providers, variant = 'signIn', onStart, disabled = f
{isPending && <span className={classes.spinner}><Loader size={16} color="gray"/></span>}
</button>
{isLastUsed && (
<span id={lastUsedId} className={classes.lastUsed}>{t`Last used`}</span>
<span id={lastUsedId} className={classes.lastUsed}>{t({message: 'Last used', context: 'Sign-in method badge'})}</span>
)}
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/ee/seating/components/lib/templates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const VALUE = 'b_value';
const defaultBands = (): SeatMapBand[] => [
{key: PREMIUM, name: t`Premium`, color: '#40296c'},
{key: STANDARD, name: t`Standard`, color: '#755fb1'},
{key: VALUE, name: t`Value`, color: '#b9a9d8'},
{key: VALUE, name: t({message: 'Value', context: 'Seat price band'}), color: '#b9a9d8'},
];

type WithoutGenerated<T> = Omit<T, 'id' | 'type' | 'seats'>;
Expand Down
12 changes: 2 additions & 10 deletions frontend/src/hooks/useAttendeeActions.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import {useState} from "react";
import {useAccess} from "./useAccess.ts";
import {t, Trans} from "@lingui/macro";
import {t} from "@lingui/macro";
import {useDisclosure} from "@mantine/hooks";
import {notifications} from "@mantine/notifications";
import {IconMailForward, IconPencil, IconSend, IconTrash, IconUserCog} from "@tabler/icons-react";
import {Attendee, IdParam, MessageType} from "../types.ts";
import {EntityAction} from "../components/common/EntityActions";
Expand Down Expand Up @@ -60,14 +59,7 @@ export const useAttendeeActions = ({eventId, onManage, onEdit}: UseAttendeeActio
}
}, {
onSuccess: () => {
notifications.show({
message: (
<Trans>
Successfully {isReactivating ? 'activated' : 'cancelled'} attendee
</Trans>
),
color: 'green',
});
showSuccess(isReactivating ? t`Attendee activated` : t`Attendee cancelled`);
},
onError: (error: any) => showError(
error?.response?.data?.errors?.status?.[0]
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/locales/cs.js

Large diffs are not rendered by default.

56 changes: 36 additions & 20 deletions frontend/src/locales/cs.po
Original file line number Diff line number Diff line change
Expand Up @@ -1957,7 +1957,7 @@ msgstr "Akce pro {0}"
msgid "Actions for {name}"
msgstr "Akce pro {name}"

#: src/hooks/useAttendeeActions.tsx:117
#: src/hooks/useAttendeeActions.tsx:109
msgid "Activate"
msgstr "Aktivovat"

Expand Down Expand Up @@ -3417,7 +3417,7 @@ msgstr "Je vám 18 let nebo více?"
msgid "Are you sure this event is not spam? It will be published immediately."
msgstr "Opravdu tato událost není spam? Bude okamžitě publikována."

#: src/hooks/useAttendeeActions.tsx:51
#: src/hooks/useAttendeeActions.tsx:50
msgid "Are you sure you want to activate this attendee?"
msgstr "Opravdu chcete tohoto účastníka aktivovat?"

Expand All @@ -3437,11 +3437,11 @@ msgstr "Opravdu chcete tohoto organizátora archivovat? Tím se archivují také
msgid "Are you sure you want to cancel {count} date(s)? Affected attendees will be notified by email."
msgstr "Opravdu chcete zrušit vybrané termíny ({count})? Dotčení účastníci budou upozorněni e-mailem."

#: src/hooks/useAttendeeActions.tsx:49
#: src/hooks/useAttendeeActions.tsx:48
msgid "Are you sure you want to cancel this attendee? This will void their ticket"
msgstr "Opravdu chcete tohoto účastníka zrušit? Tím se jeho vstupenka stane neplatnou."

#: src/hooks/useAttendeeActions.tsx:48
#: src/hooks/useAttendeeActions.tsx:47
msgid "Are you sure you want to cancel this attendee? This will void their ticket and release seat {seatLabel}, which may then be taken by someone else."
msgstr "Opravdu chcete zrušit tohoto účastníka? Jeho vstupenka bude zneplatněna a místo {seatLabel} se uvolní, takže ho pak může obsadit někdo jiný."

Expand Down Expand Up @@ -3762,10 +3762,18 @@ msgstr "Účastník"
msgid "Attendee {current} of {total}"
msgstr "Účastník {current} z {total}"

#: src/hooks/useAttendeeActions.tsx:62
msgid "Attendee activated"
msgstr "Účastník aktivován"

#: src/components/common/QuestionAndAnswerList/index.tsx:264
msgid "Attendee answers"
msgstr "Odpovědi účastníků"

#: src/hooks/useAttendeeActions.tsx:62
msgid "Attendee cancelled"
msgstr "Účastník zrušen"

#: src/components/forms/WebhookForm/index.tsx:115
msgid "Attendee Cancelled"
msgstr "Účastník zrušen"
Expand Down Expand Up @@ -4952,7 +4960,7 @@ msgstr "Nemůžete použít ověřovací aplikaci ani záložní kódy?"
#: src/ee/seating/components/SeatPicker/SeatSheet.tsx:88
#: src/ee/sso/components/SingleSignOn/ConnectionForm.tsx:213
#: src/ee/sso/components/SingleSignOn/EnforcementPanel.tsx:180
#: src/hooks/useAttendeeActions.tsx:117
#: src/hooks/useAttendeeActions.tsx:109
#: src/utilites/confirmationDialog.tsx:20
#: src/utilites/confirmationDialog.tsx:57
msgid "Cancel"
Expand Down Expand Up @@ -8951,7 +8959,7 @@ msgstr "Zvýhodněná cena"
#: src/ee/crm/components/routes/AudienceTemplates/index.tsx:129
#: src/ee/crm/components/SmsSettings/index.tsx:267
#: src/ee/seating/components/routes/organizer/SeatMaps/index.tsx:195
#: src/hooks/useAttendeeActions.tsx:95
#: src/hooks/useAttendeeActions.tsx:87
#: src/hooks/useOrderActions.tsx:108
msgid "Edit"
msgstr "Upravit"
Expand Down Expand Up @@ -10386,7 +10394,7 @@ msgstr "Neúspěšné úlohy"
msgid "Failed to abandon order. Please try again."
msgstr "Objednávku se nepodařilo zrušit. Zkuste to prosím znovu."

#: src/hooks/useAttendeeActions.tsx:75
#: src/hooks/useAttendeeActions.tsx:67
msgid "Failed to activate attendee"
msgstr "Účastníka se nepodařilo aktivovat"

Expand All @@ -10402,7 +10410,7 @@ msgstr "Konfiguraci se nepodařilo přiřadit"
msgid "Failed to cancel account deletion"
msgstr "Smazání účtu se nepodařilo zrušit"

#: src/hooks/useAttendeeActions.tsx:75
#: src/hooks/useAttendeeActions.tsx:67
msgid "Failed to cancel attendee"
msgstr "Účastníka se nepodařilo zrušit"

Expand Down Expand Up @@ -10588,7 +10596,7 @@ msgstr "Potvrzení objednávky se nepodařilo znovu odeslat"
msgid "Failed to resend ticket"
msgstr "Vstupenku se nepodařilo znovu odeslat"

#: src/hooks/useAttendeeActions.tsx:40
#: src/hooks/useAttendeeActions.tsx:39
msgid "Failed to resend ticket email"
msgstr "E-mail se vstupenkou se nepodařilo znovu odeslat"

Expand Down Expand Up @@ -13200,6 +13208,10 @@ msgid "Last Triggered"
msgstr "Naposledy spuštěno"

#: src/components/common/SsoButtons/index.tsx:126
msgctxt "Sign-in method badge"
msgid "Last used"
msgstr "Naposledy použito"

#: src/components/routes/event/Reports/PromoCodesReport/index.tsx:54
#: src/components/routes/settings/ApiKeys/ApiKeyRow.tsx:73
#: src/components/routes/settings/ApiKeys/index.tsx:176
Expand Down Expand Up @@ -13599,10 +13611,14 @@ msgstr "Nabídka stažena. Vaše vstupenka opět platí."
#: src/components/routes/event/Lineup/EventStatusBadge.tsx:8
#: src/components/routes/settings/Organizers/index.tsx:19
#: src/ee/crm/components/routes/AudienceForms/index.tsx:134
#: src/utilites/eventSummary.ts:34
msgid "Live"
msgstr "Aktivní"

#: src/utilites/eventSummary.ts:34
msgctxt "Event happening now"
msgid "Live"
msgstr "Probíhá"

#: src/components/routes/admin/Dashboard/index.tsx:458
msgid "Live dates starting in the next 7 days, largest first. Expect check-in and page traffic around these."
msgstr "Aktivní termíny začínající v příštích 7 dnech, od největších. Počítejte kolem nich se zvýšeným odbavováním a návštěvností stránek."
Expand Down Expand Up @@ -13845,7 +13861,7 @@ msgstr "Spravovat"
msgid "Manage {0}"
msgstr "Spravovat {0}"

#: src/hooks/useAttendeeActions.tsx:88
#: src/hooks/useAttendeeActions.tsx:80
msgid "Manage attendee"
msgstr "Spravovat účastníka"

Expand Down Expand Up @@ -14076,7 +14092,7 @@ msgstr "Zpráva po potvrzení"
msgid "Message approved successfully"
msgstr "Zpráva byla úspěšně schválena"

#: src/hooks/useAttendeeActions.tsx:103
#: src/hooks/useAttendeeActions.tsx:95
msgid "Message attendee"
msgstr "Napsat účastníkovi"

Expand Down Expand Up @@ -19773,7 +19789,7 @@ msgstr "Odeslat e-mail s objednávkou znovu"
msgid "Resend Ticket"
msgstr "Odeslat vstupenku znovu"

#: src/hooks/useAttendeeActions.tsx:110
#: src/hooks/useAttendeeActions.tsx:102
msgid "Resend ticket email"
msgstr "Odeslat e-mail se vstupenkou znovu"

Expand Down Expand Up @@ -23414,10 +23430,6 @@ msgstr "Hotovo"
msgid "Success! {0} will receive an email shortly."
msgstr "Hotovo! {0} brzy obdrží e-mail."

#: src/hooks/useAttendeeActions.tsx:65
msgid "Successfully {0} attendee"
msgstr "Účastník byl úspěšně {0}"

#: src/components/routes/profile/ConfirmEmailAddress/index.tsx:23
msgid "Successfully confirmed email address"
msgstr "E-mailová adresa byla úspěšně potvrzena"
Expand Down Expand Up @@ -25520,7 +25532,7 @@ msgid "Ticked the text message box at checkout"
msgstr "Při placení zaškrtl(a) políčko SMS"

#: src/components/routes/my-tickets/index.tsx:105
#: src/hooks/useAttendeeActions.tsx:117
#: src/hooks/useAttendeeActions.tsx:109
msgid "ticket"
msgstr "vstupenka"

Expand Down Expand Up @@ -25582,7 +25594,7 @@ msgstr "Údaje vstupenky změnil organizátor"
msgid "Ticket details changed by the buyer"
msgstr "Údaje vstupenky změnil kupující"

#: src/hooks/useAttendeeActions.tsx:39
#: src/hooks/useAttendeeActions.tsx:38
msgid "Ticket email has been resent to attendee"
msgstr "E-mail se vstupenkou byl znovu odeslán účastníkovi"

Expand Down Expand Up @@ -27234,9 +27246,13 @@ msgid "Validating your VAT number..."
msgstr "Ověřování vašeho DIČ..."

#: src/ee/crm/components/SegmentBuilder/index.tsx:175
#: src/ee/seating/components/lib/templates.ts:30
#: src/ee/sso/components/SingleSignOn/DomainList.tsx:113
msgid "Value"
msgstr "Hodnota"

#: src/ee/seating/components/lib/templates.ts:30
msgctxt "Seat price band"
msgid "Value"
msgstr "Zvýhodněné"

#: src/components/forms/TaxAndFeeForm/index.tsx:63
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/locales/de.js

Large diffs are not rendered by default.

Loading
Loading