Skip to content

Commit da994d6

Browse files
authored
Merge pull request #14 from HiEventsDev/develop
Style fixes
2 parents 96f5fac + d682af8 commit da994d6

File tree

10 files changed

+26
-14
lines changed

10 files changed

+26
-14
lines changed

backend/app/DomainObjects/MessageDomainObject.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ public static function getAllowedSorts(): AllowedSorts
2525
return new AllowedSorts(
2626
[
2727
self::CREATED_AT => [
28-
'asc' => 'Sent Date Ascending',
29-
'desc' => 'Sent Date Descending',
28+
'asc' => 'Sent Date Oldest',
29+
'desc' => 'Sent Date Newest',
3030
],
3131
self::SUBJECT => [
32-
'asc' => 'Subject Ascending',
33-
'desc' => 'Subject Descending',
32+
'asc' => 'Subject A-Z',
33+
'desc' => 'Subject Z-A',
3434
],
3535
],
3636
);

backend/app/Resources/Order/OrderItemResource.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ public function toArray(Request $request): array
2121
'quantity' => $this->getQuantity(),
2222
'ticket_id' => $this->getTicketId(),
2323
'item_name' => $this->getItemName(),
24+
'price_before_discount' => $this->getPriceBeforeDiscount(),
2425
'taxes_and_fees_rollup' => $this->getTaxesAndFeesRollup(),
2526
];
2627
}

backend/app/Resources/Order/OrderItemResourcePublic.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function toArray(Request $request): array
2929
'total_tax' => $this->getTotalTax(),
3030
'total_gross' => $this->getTotalGross(),
3131
'taxes_and_fees_rollup' => $this->getTaxesAndFeesRollup(),
32-
'ticket' => $this->when(!!$this->getTicket(), fn() => new TicketResourcePublic($this->getTicket())),
32+
'ticket' => $this->when((bool)$this->getTicket(), fn() => new TicketResourcePublic($this->getTicket())),
3333
];
3434
}
3535
}

backend/resources/views/emails/event/message.blade.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
<b>{{ $event->getTitle() }}</b>. If you believe you have received this email in error,
1515
please contact the event organizer at <a
1616
href="mailto:{{$eventSettings->getSupportEmail()}}">{{$eventSettings->getSupportEmail()}}</a>.
17+
If you believe this is spam, please report it to <a href="mailto:{{config('mail.from.address')}}">{{config('mail.from.address')}}</a>.
1718
</div>
1819
</x-mail::message>
1920

frontend/src/components/common/EventDocumentHead/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/* eslint-disable lingui/no-unlocalized-strings */
22
import {Helmet} from "react-helmet-async";
3-
import {t} from "@lingui/macro";
43
import {Event} from "../../../types";
54
import {eventCoverImageUrl, eventHomepageUrl} from "../../../utilites/urlHelper.ts";
65
import {utcToTz} from "../../../utilites/dates.ts";
@@ -11,7 +10,7 @@ interface EventDocumentHeadProps {
1110

1211
export const EventDocumentHead = ({event}: EventDocumentHeadProps) => {
1312
const eventSettings = event.settings;
14-
const title = (eventSettings?.seo_title ?? event.title) + ' | ' + t` Powered By Hi.Events`;
13+
const title = (eventSettings?.seo_title ?? event.title) + ' | ' + `Hi.Events`;
1514
const description = eventSettings?.seo_description ?? event.description_preview;
1615
const keywords = eventSettings?.seo_keywords;
1716
const image = eventCoverImageUrl(event);

frontend/src/components/common/OrderSummary/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ export const OrderSummary = ({event, order, showFreeWhenZeroTotal = true}: Order
2121
<div className={classes.itemValue}>
2222
{!!item.price_before_discount && (
2323
<div style={{color: '#888', marginRight: '5px', display: 'inline-block'}}>
24-
2524
<Currency
2625
currency={event.currency}
2726
price={item.price_before_discount * item.quantity}

frontend/src/components/forms/QuestionForm/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export const QuestionForm = ({form, tickets}: QuestionFormProps) => {
105105
icon: <IconSquareCheck/>,
106106
label: t`Checkboxes`,
107107
value: QuestionType.CHECKBOX,
108-
description: t`These allow multiple selections`,
108+
description: t`Checkbox options allow multiple selections`,
109109
},
110110
{
111111
icon: <IconCircleCheck/>,

frontend/src/components/modals/RefundOrderModal/RefundOrderModal.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
margin-bottom: 20px;
88
padding: 15px;
99
border-radius: var(--tk-radius-lg);
10-
background-color: var(--tk-secondary);
10+
border: 3px solid var(--tk-secondary);
1111

1212
@include respond-below(md) {
1313
flex-direction: column;

frontend/src/components/modals/SendMessageModal/index.tsx

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,11 @@ export const SendMessageModal = (props: EventMessageModalProps) => {
9595
is_test: false,
9696
send_copy_to_current_user: false,
9797
type: 'EVENT',
98+
acknowledgement: false,
9899
},
100+
validate: {
101+
acknowledgement: (value) => value === true ? null : t`You must acknowledge that this email is not promotional`,
102+
}
99103
});
100104

101105
const handleSend = (values: any) => {
@@ -204,8 +208,8 @@ export const SendMessageModal = (props: EventMessageModalProps) => {
204208

205209
<Alert variant={'outline'} mt={20} icon={<IconAlertCircle size="1rem"/>}
206210
title={t`Before you send!`}>
207-
{t`Please ensure you only send emails directly related to the order. Promotional emails
208-
should not be sent using this form.`}
211+
{t`Only important emails, which are directly related to this event, should be sent using this form.
212+
Any misuse, including sending promotional emails, will lead to an immediate account ban.`}
209213
</Alert>
210214

211215
{!isAccountVerified && (
@@ -214,7 +218,15 @@ export const SendMessageModal = (props: EventMessageModalProps) => {
214218
</Alert>
215219
)}
216220

217-
<Button mt={20} loading={sendMessageMutation.isLoading} type={'submit'} fullWidth leftSection={<IconSend/>}>
221+
<Switch mt={20} {...form.getInputProps('acknowledgement', {type: 'checkbox'})}
222+
label={(
223+
<Trans>
224+
This email is not promotional and is directly related to the event.
225+
</Trans>
226+
)}/>
227+
228+
<Button mt={20} loading={sendMessageMutation.isLoading} type={'submit'} fullWidth
229+
leftSection={<IconSend/>}>
218230
{form.values.is_test ? t`Send Test` : t`Send`}
219231
</Button>
220232
</fieldset>

frontend/src/styles/global.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
--tk-primary: #472e78;
66
--tk-secondary: #efebf7;
77
--tk-secondary-text: #7c7091;
8-
--tk-color-gray: #3c2b5c05;
8+
--tk-color-gray: #f7f6f8;
99
--tk-color-gray-2: #e2e2e2;
1010
--tk-color-gray-dark: #838383;
1111
--tk-color-money-green: #00b894;

0 commit comments

Comments
 (0)