Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
e1c9cf3
Various semantic changes in email text, footer, and changes event pag…
grablair Oct 19, 2024
bb0eb59
Allow the header of emails to link to a webpage other than the app URL
grablair Oct 19, 2024
f2ce929
Fix app name variable
grablair Oct 19, 2024
791dbde
Merge pull request #263 from grablair/feat/email-logo-link-configuration
daveearley Oct 20, 2024
e05cd1d
Merge pull request #262 from grablair/fix/semantic-changes
daveearley Oct 20, 2024
35c5d5d
Start work on responsive colors for QR code scans
grablair Oct 27, 2024
eef5657
Modify colors, add in-progress
grablair Oct 27, 2024
60eb4db
type fix
daveearley Oct 28, 2024
fd7d28f
Merge pull request #269 from grablair/feat/qr-scan-response-improvements
daveearley Oct 28, 2024
8fdd298
Fix all-in-one Docker setup
daveearley Oct 29, 2024
c85050a
Merge pull request #271 from HiEventsDev/fix-all-in-one-docker-setup
daveearley Oct 29, 2024
ce93233
Fix: Handle deprecated timezones
daveearley Oct 29, 2024
7bc5ad1
Merge pull request #273 from HiEventsDev/fix/allow-deprecated-timezones
daveearley Oct 29, 2024
ca2afa1
Add notification sounds for QR scan results; add sound toggle
grablair Oct 29, 2024
82199e0
Add scan check in in-progress beep
grablair Oct 29, 2024
4e50de2
Change sound-off icon color to a gray
grablair Oct 29, 2024
fe8b216
Change sound file paths to not use 'public'
grablair Oct 29, 2024
fdcbe56
Add failure sound to when an attendee code was already scanned that s…
grablair Oct 29, 2024
12c049e
Make the already-checked-in sound an error, not a success
grablair Oct 29, 2024
225ed54
Compress audio files and TS fixes
daveearley Oct 30, 2024
f39f020
Merge pull request #275 from grablair/feat/qr-scanning-sounds
daveearley Oct 30, 2024
bfa934a
Add deploy workflow
daveearley Nov 2, 2024
b606ff1
Merge branch 'develop' into feature/pr-preview-environments
daveearley Nov 2, 2024
d580b8d
update triggers
daveearley Nov 2, 2024
1bba33a
Merge branch 'feature/pr-preview-environments' of github.com:HiEvents…
daveearley Nov 2, 2024
5c17717
yaml formatting
daveearley Nov 2, 2024
7698998
Merge pull request #278 from HiEventsDev/feature/pr-preview-environments
daveearley Nov 2, 2024
00caaf9
remove action
daveearley Nov 3, 2024
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: 2 additions & 0 deletions backend/app/Http/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use HiEvents\Http\Middleware\Authenticate;
use HiEvents\Http\Middleware\EncryptCookies;
use HiEvents\Http\Middleware\HandleDeprecatedTimezones;
use HiEvents\Http\Middleware\PreventRequestsDuringMaintenance;
use HiEvents\Http\Middleware\RedirectIfAuthenticated;
use HiEvents\Http\Middleware\SetAccountContext;
Expand Down Expand Up @@ -45,6 +46,7 @@ class Kernel extends HttpKernel
ValidatePostSize::class,
TrimStrings::class,
ConvertEmptyStringsToNull::class,
HandleDeprecatedTimezones::class,
];

/**
Expand Down
27 changes: 27 additions & 0 deletions backend/app/Http/Middleware/HandleDeprecatedTimezones.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php

namespace HiEvents\Http\Middleware;

use Closure;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Log;

class HandleDeprecatedTimezones
{
public function handle(Request $request, Closure $next)
{
$timezoneMapping = config('timezones.deprecated');

if ($request->has('timezone')) {
$timezone = $request->input('timezone');

if (array_key_exists($timezone, $timezoneMapping)) {
$request->merge(['timezone' => $timezoneMapping[$timezone]]);
} elseif (!in_array($timezone, timezone_identifiers_list(), true)) {
Log::warning("Unexpected timezone received: $timezone");
}
}

return $next($request);
}
}
1 change: 1 addition & 0 deletions backend/config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
],

'email_logo_url' => env('APP_EMAIL_LOGO_URL'),
'email_logo_link_url' => env('APP_EMAIL_LOGO_LINK_URL', env('APP_FRONTEND_URL', 'http://localhost')),
'email_footer_text' => env('APP_EMAIL_FOOTER_TEXT'),

/*
Expand Down
18 changes: 18 additions & 0 deletions backend/config/timezones.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

return [
'deprecated' => [
'Asia/Calcutta' => 'Asia/Kolkata',
'Asia/Saigon' => 'Asia/Ho_Chi_Minh',
'America/Buenos_Aires' => 'America/Argentina/Buenos_Aires',
'Europe/Kiev' => 'Europe/Kyiv',
'Africa/Asmera' => 'Africa/Asmara',
'America/Indianapolis' => 'America/Indiana/Indianapolis',
'Asia/Chongqing' => 'Asia/Shanghai',
'Asia/Macao' => 'Asia/Macau',
'Pacific/Samoa' => 'Pacific/Pago_Pago',
'Pacific/Yap' => 'Pacific/Chuuk',
'Etc/GMT+0' => 'Etc/GMT',
'Etc/Greenwich' => 'Etc/GMT',
],
];
1 change: 0 additions & 1 deletion backend/database/migrations/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,6 @@ create table if not exists tickets
deleted_at timestamp,
type varchar(20) default 'PAID'::character varying not null,
is_hidden boolean default false,
start_collapsed boolean default false,
primary key (id),
constraint fk_tickets_event_id
foreign key (event_id) references events
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@
{{ __('If you have any questions or need assistance, please reply to this email or contact the event organizer') }}
{{ __('at') }} <a href="mailto:{{$eventSettings->getSupportEmail()}}">{{$eventSettings->getSupportEmail()}}</a>.

{{ __('Best regards,') }}
<br>
{{config('app.name')}}
{{ __('Best regards,') }}<br>
{{ config('app.name') }}

<script type="application/ld+json">
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
{{ __('If you have any questions or need assistance, please respond to this email.') }}
<br><br>
{{ __('Thank you') }},<br>
{{config('app.name')}}
{{ config('app.name') }}

{!! $eventSettings->getGetEmailFooterHtml() !!}
</x-mail::message>
5 changes: 2 additions & 3 deletions backend/resources/views/emails/orders/order-failed.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@
{{ __('If you have any questions or need assistance, feel free to reach out to our support team') }}
{{ __('at') }} {{ $supportEmail ?? '[email protected]' }}.

{{ __('Best regards') }},
<br>
{{config('app.name')}}
{{ __('Best regards') }},<br>
{{ config('app.name') }}

{!! $eventSettings->getGetEmailFooterHtml() !!}
</x-mail::message>
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@

{{ __('You have received a refund of :refundAmount for the following event: :eventTitle.', ['refundAmount' => $refundAmount, 'eventTitle' => $event->getTitle()]) }}

{{ __('Thank you') }}
{{ __('Thank you') }},<br>
{{ config('app.name') }}

{!! $eventSettings->getGetEmailFooterHtml() !!}
</x-mail::message>
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</x-mail::button>

{{ __('Best regards') }},<br>
{{ __('Hi.Events') }}
{{ config('app.name') }}

{!! $eventSettings->getGetEmailFooterHtml() !!}
</x-mail::message>
3 changes: 1 addition & 2 deletions backend/resources/views/emails/orders/summary.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
- **{{ __('Prepare for the Event:') }}** {{ __('Make sure to note the event date, time, and location.') }}
- **{{ __('Stay Updated:') }}** {{ __('Keep an eye on your email for any updates from the event organizer.') }}

{{ __('Best regards,') }}
<br>
{{ __('Best regards,') }}<br>
{{ config('app.name') }}
</x-mail::message>
7 changes: 3 additions & 4 deletions backend/resources/views/vendor/mail/html/message.blade.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<x-mail::layout>
{{-- Header --}}
<x-slot:header>
<x-mail::header :url="config('app.frontend_url')">
<x-mail::header :url="config('app.email_logo_link_url')">
@if($appLogo = config('app.email_logo_url'))
<img src="{{ $appLogo }}" class="logo" alt="{{ config('app.name') }}"
style="max-width: 300px;">
Expand Down Expand Up @@ -36,9 +36,8 @@
{{-- You can find the full license text at: https://github.com/HiEventsDev/hi.events/blob/main/LICENSE --}}
{{-- In accordance with Section 7(b) of the AGPL, we ask that you retain the "Powered by Hi.Events" notice. --}}
{{-- If you wish to remove this notice, a commercial license is available at: https://hi.events/licensing --}}
© {{ date('Y') }} <a title="Manage events and sell tickets online with Hi.Events"
href="https://hi.events?utm_source=app-email-footer">Hi.Events</a> - Effortless
Event Management

© {{ date('Y') }} {{ config('app.name') }} | Powered by <a title="Manage events and sell tickets online with Hi.Events" href="https://hi.events?utm_source=app-email-footer">Hi.Events</a>
@endif
</x-mail::footer>
</x-slot:footer>
Expand Down
8 changes: 7 additions & 1 deletion docker/all-in-one/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,17 @@ services:
- DATABASE_URL=postgresql://postgres:secret@postgres:5432/hi-events

depends_on:
- postgres
postgres:
condition: service_healthy

postgres:
image: postgres:latest
container_name: postgres
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 10s
timeout: 5s
retries: 5
environment:
POSTGRES_DB: hi-events
POSTGRES_USER: postgres
Expand Down
Binary file added frontend/public/sounds/scan-error.wav
Binary file not shown.
Binary file added frontend/public/sounds/scan-in-progress.wav
Binary file not shown.
Binary file added frontend/public/sounds/scan-success.wav
Binary file not shown.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@
z-index: 2;
}

.soundToggle {
position: absolute;
bottom: 20px;
left: 20px;
z-index: 2;
}

.closeButton {
position: absolute;
top: 20px;
Expand All @@ -62,7 +69,8 @@
position: absolute;
animation: colorfulBorder 10s infinite;
border-radius: 10px;
outline: solid 50vmax #472e7840;
outline: solid 50vmax rgb(71 46 120 / 50%);
transition: outline-color .2s ease-out;
min-width: 200px;
min-height: 200px;

Expand All @@ -72,6 +80,18 @@
}
}

.scannerOverlay.success {
outline: solid 50vmax rgb(80 148 80 / 75%);
}

.scannerOverlay.failure {
outline: solid 50vmax rgb(193 72 72 / 75%);
}

.scannerOverlay.checkingIn {
outline: solid 50vmax rgb(172 158 85 / 60%);
}

video {
width: 100vw !important;
height: 100vh !important;
Expand Down
Loading