From: Daniel Karbach <daniel.karbach@localhorst.tv>
Date: Thu, 23 Feb 2023 22:34:08 +0000 (+0100)
Subject: small ux improvements
X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=b3beaab812bf23fec423d1d0823b2a25b137ccae;p=alttp.git

small ux improvements
---

diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php
index e04fda3..2fc689c 100644
--- a/app/Console/Kernel.php
+++ b/app/Console/Kernel.php
@@ -16,7 +16,7 @@ class Kernel extends ConsoleKernel
     protected function schedule(Schedule $schedule)
     {
 		$schedule->command('sync:avatars')->everyFiveMinutes();
-		$schedule->command('sync:speedgaming')->everyFifteenMinutes();
+		$schedule->command('sync:speedgaming')->everyFiveMinutes();
     }
 
     /**
diff --git a/resources/js/components/common/Icon.js b/resources/js/components/common/Icon.js
index dd88669..384362c 100644
--- a/resources/js/components/common/Icon.js
+++ b/resources/js/components/common/Icon.js
@@ -73,6 +73,9 @@ Icon.FORFEIT = makePreset('ForfeitIcon', 'square-xmark');
 Icon.LANGUAGE = makePreset('LanguageIcon', 'language');
 Icon.LOCKED = makePreset('LockedIcon', 'lock');
 Icon.LOGOUT = makePreset('LogoutIcon', 'sign-out-alt');
+Icon.MICROPHONE = makePreset('MicrophoneIcon', 'microphone');
+Icon.MONITOR = makePreset('MonitorIcon', 'tv');
+Icon.MOUSE = makePreset('MouseIcon', 'arrow-pointer');
 Icon.PENDING = makePreset('PendingIcon', 'clock');
 Icon.PIN = makePreset('PinIcon', 'location-pin');
 Icon.PROTOCOL = makePreset('ProtocolIcon', 'file-alt');
diff --git a/resources/js/components/episodes/Crew.js b/resources/js/components/episodes/Crew.js
index 610454e..0a037ee 100644
--- a/resources/js/components/episodes/Crew.js
+++ b/resources/js/components/episodes/Crew.js
@@ -4,6 +4,7 @@ import { Col, Row } from 'react-bootstrap';
 import { useTranslation } from 'react-i18next';
 
 import CrewMember from './CrewMember';
+import Icon from '../common/Icon';
 import { compareCrew } from '../../helpers/Crew';
 
 const Crew = ({ crew }) => {
@@ -23,6 +24,7 @@ const Crew = ({ crew }) => {
 		{commentators.length ?
 			<Col md>
 				<div className="fs-5">
+					<Icon.MICROPHONE className="ms-3 me-2" title="" />
 					{t('episodes.commentary')}
 				</div>
 				{commentators.map(c =>
@@ -33,6 +35,7 @@ const Crew = ({ crew }) => {
 		{trackers.length ?
 			<Col md>
 				<div className="fs-5">
+					<Icon.MOUSE className="ms-3 me-2" title="" />
 					{t('episodes.tracking')}
 				</div>
 				{trackers.map(c =>
@@ -43,6 +46,7 @@ const Crew = ({ crew }) => {
 		{techies.length ?
 			<Col md>
 				<div className="fs-5">
+					<Icon.MONITOR className="ms-3 me-2" title="" />
 					{t('episodes.setup')}
 				</div>
 				{techies.map(c =>
diff --git a/resources/js/components/episodes/Item.js b/resources/js/components/episodes/Item.js
index 5f43c12..19760ee 100644
--- a/resources/js/components/episodes/Item.js
+++ b/resources/js/components/episodes/Item.js
@@ -81,11 +81,10 @@ const Item = ({ episode, onAddRestream, onEditRestream, user }) => {
 						<div>
 							<Button
 								onClick={() => onAddRestream(episode)}
+								title={t('episodes.addRestream')}
 								variant="outline-secondary"
 							>
 								<Icon.ADD title="" />
-								{' '}
-								{t('episodes.addRestream')}
 							</Button>
 						</div>
 					: null}
diff --git a/resources/js/components/pages/Schedule.js b/resources/js/components/pages/Schedule.js
index 10b4b49..221fa98 100644
--- a/resources/js/components/pages/Schedule.js
+++ b/resources/js/components/pages/Schedule.js
@@ -118,7 +118,7 @@ const Schedule = ({ user }) => {
 		fetchEpisodes(controller, ahead, behind, filter);
 		const timer = setInterval(() => {
 			fetchEpisodes(controller, ahead, behind, filter);
-		}, 3 * 60 * 1000);
+		}, 1.5 * 60 * 1000);
 		return () => {
 			controller.abort();
 			clearInterval(timer);