From 10d7273ec041a3ca6fd700afa8cc4ea31405b54c Mon Sep 17 00:00:00 2001 From: Carlos Valente <34649812+cpvalente@users.noreply.github.com> Date: Fri, 8 Mar 2024 19:54:18 +0100 Subject: [PATCH] Skip fixes (#805) * refactor: resolve current in time-to-end * refactor: recalculate on skip * Alpha tweaks (#806) * style: small tweaks to interface * refactor: simplify quick add --- .../app-settings/AppSettings.module.scss | 1 + .../src/features/app-settings/AppSettings.tsx | 2 + .../panel-content/PanelContent.tsx | 6 +- .../app-settings/panel/Panel.module.scss | 2 +- .../panel/about-panel/CheckUpdatesButton.tsx | 1 + .../panel/general-panel/GeneralPanel.tsx | 2 - .../integrations-panel/HttpIntegrations.tsx | 2 +- .../EditorSettingsForm.tsx | 0 .../panel/interface-panel/InterfacePanel.tsx | 27 ++++ .../panel/project-panel/ManageProjects.tsx | 2 +- .../panel/project-panel/ProjectCreateForm.tsx | 14 +- .../panel/project-panel/ProjectData.tsx | 144 ++++++++---------- .../project-panel/ProjectPanel.module.scss | 16 +- .../ProjectSettingsPanel.tsx | 1 + .../features/app-settings/settingsStore.ts | 13 +- apps/client/src/features/rundown/Rundown.tsx | 32 ++-- .../event-block/EventBlock.module.scss | 2 +- .../rundown/event-block/EventBlockInner.tsx | 2 +- .../event-block/RundownIndicators.module.scss | 4 +- .../composite/EventBlockPlayback.tsx | 4 +- .../event-editor/EventEditor.module.scss | 23 +-- .../rundown/event-editor/EventEditor.tsx | 4 +- .../rundown/quick-add-block/QuickAddBlock.tsx | 13 +- apps/server/src/api-data/db/db.controller.ts | 2 +- .../rundown-service/RundownService.ts | 25 ++- .../rundown-service/rundownCacheUtils.ts | 2 +- .../runtime-service/RuntimeService.ts | 11 +- apps/server/src/stores/runtimeState.ts | 21 ++- .../utils/src/rundown-utils/rundownUtils.ts | 8 +- 29 files changed, 221 insertions(+), 165 deletions(-) rename apps/client/src/features/app-settings/panel/{general-panel => interface-panel}/EditorSettingsForm.tsx (100%) create mode 100644 apps/client/src/features/app-settings/panel/interface-panel/InterfacePanel.tsx diff --git a/apps/client/src/features/app-settings/AppSettings.module.scss b/apps/client/src/features/app-settings/AppSettings.module.scss index 02ee5f3fd..11a8558b3 100644 --- a/apps/client/src/features/app-settings/AppSettings.module.scss +++ b/apps/client/src/features/app-settings/AppSettings.module.scss @@ -7,4 +7,5 @@ gap: 0.25rem; overflow: hidden; + background-color: black; } diff --git a/apps/client/src/features/app-settings/AppSettings.tsx b/apps/client/src/features/app-settings/AppSettings.tsx index cc870bb4a..e81a46cdb 100644 --- a/apps/client/src/features/app-settings/AppSettings.tsx +++ b/apps/client/src/features/app-settings/AppSettings.tsx @@ -5,6 +5,7 @@ import { useKeyDown } from '../../common/hooks/useKeyDown'; import AboutPanel from './panel/about-panel/AboutPanel'; import GeneralPanel from './panel/general-panel/GeneralPanel'; import IntegrationsPanel from './panel/integrations-panel/IntegrationsPanel'; +import InterfacePanel from './panel/interface-panel/InterfacePanel'; import LogPanel from './panel/log-panel/LogPanel'; import ProjectPanel from './panel/project-panel/ProjectPanel'; import ProjectSettingsPanel from './panel/project-settings-panel/ProjectSettingsPanel'; @@ -32,6 +33,7 @@ export default function AppSettings() { {selectedPanel === 'project' && } {selectedPanel === 'general' && } {selectedPanel === 'sources' && } + {selectedPanel === 'interface' && } {selectedPanel === 'integrations' && } {selectedPanel === 'project_settings' && } {selectedPanel === 'about' && } diff --git a/apps/client/src/features/app-settings/panel-content/PanelContent.tsx b/apps/client/src/features/app-settings/panel-content/PanelContent.tsx index fbe215077..8d83596bd 100644 --- a/apps/client/src/features/app-settings/panel-content/PanelContent.tsx +++ b/apps/client/src/features/app-settings/panel-content/PanelContent.tsx @@ -1,5 +1,5 @@ import { PropsWithChildren } from 'react'; -import { IconButton } from '@chakra-ui/react'; +import { Button } from '@chakra-ui/react'; import { IoClose } from '@react-icons/all-files/io5/IoClose'; import style from './PanelContent.module.scss'; @@ -14,7 +14,9 @@ export default function PanelContent(props: PropsWithChildren return (
- } variant='ontime-ghosted-white' /> +
{children}
diff --git a/apps/client/src/features/app-settings/panel/Panel.module.scss b/apps/client/src/features/app-settings/panel/Panel.module.scss index 421540bf0..ac294bef0 100644 --- a/apps/client/src/features/app-settings/panel/Panel.module.scss +++ b/apps/client/src/features/app-settings/panel/Panel.module.scss @@ -55,7 +55,7 @@ $inner-padding: 1rem; } .pad { - padding: 0 1rem; + margin: 0 2rem; max-height: 550px; overflow-y: scroll; } diff --git a/apps/client/src/features/app-settings/panel/about-panel/CheckUpdatesButton.tsx b/apps/client/src/features/app-settings/panel/about-panel/CheckUpdatesButton.tsx index 744937e63..d5bdf47bb 100644 --- a/apps/client/src/features/app-settings/panel/about-panel/CheckUpdatesButton.tsx +++ b/apps/client/src/features/app-settings/panel/about-panel/CheckUpdatesButton.tsx @@ -58,6 +58,7 @@ export default function CheckUpdatesButton(props: CheckUpdatesButtonProps) { isLoading={isFetching} isDisabled={disableButton} size='sm' + maxWidth='max-content' > Check for updates diff --git a/apps/client/src/features/app-settings/panel/general-panel/GeneralPanel.tsx b/apps/client/src/features/app-settings/panel/general-panel/GeneralPanel.tsx index 531a916d9..0962c20ab 100644 --- a/apps/client/src/features/app-settings/panel/general-panel/GeneralPanel.tsx +++ b/apps/client/src/features/app-settings/panel/general-panel/GeneralPanel.tsx @@ -1,6 +1,5 @@ import * as Panel from '../PanelUtils'; -import EditorSettingsForm from './EditorSettingsForm'; import GeneralPanelForm from './GeneralPanelForm'; import ViewSettingsForm from './ViewSettingsForm'; @@ -9,7 +8,6 @@ export default function GeneralPanel() { <> Settings - ); diff --git a/apps/client/src/features/app-settings/panel/integrations-panel/HttpIntegrations.tsx b/apps/client/src/features/app-settings/panel/integrations-panel/HttpIntegrations.tsx index 3f3575338..724221a3b 100644 --- a/apps/client/src/features/app-settings/panel/integrations-panel/HttpIntegrations.tsx +++ b/apps/client/src/features/app-settings/panel/integrations-panel/HttpIntegrations.tsx @@ -91,7 +91,7 @@ export default function HttpIntegrations() { - + {errors?.root && {errors.root.message}} diff --git a/apps/client/src/features/app-settings/panel/general-panel/EditorSettingsForm.tsx b/apps/client/src/features/app-settings/panel/interface-panel/EditorSettingsForm.tsx similarity index 100% rename from apps/client/src/features/app-settings/panel/general-panel/EditorSettingsForm.tsx rename to apps/client/src/features/app-settings/panel/interface-panel/EditorSettingsForm.tsx diff --git a/apps/client/src/features/app-settings/panel/interface-panel/InterfacePanel.tsx b/apps/client/src/features/app-settings/panel/interface-panel/InterfacePanel.tsx new file mode 100644 index 000000000..8d9cfa48d --- /dev/null +++ b/apps/client/src/features/app-settings/panel/interface-panel/InterfacePanel.tsx @@ -0,0 +1,27 @@ +import { Alert, AlertDescription, AlertIcon } from '@chakra-ui/react'; + +import * as Panel from '../PanelUtils'; + +import EditorSettingsForm from './EditorSettingsForm'; + +export default function InterfacePanel() { + return ( + <> + Interface + + + + + Interface settings +
+
+ These concern settings that are applied to this user in this browser. +
+ It will not affect other users or other browsers. +
+
+
+ + + ); +} diff --git a/apps/client/src/features/app-settings/panel/project-panel/ManageProjects.tsx b/apps/client/src/features/app-settings/panel/project-panel/ManageProjects.tsx index 1ed0af305..f90ebc560 100644 --- a/apps/client/src/features/app-settings/panel/project-panel/ManageProjects.tsx +++ b/apps/client/src/features/app-settings/panel/project-panel/ManageProjects.tsx @@ -81,7 +81,7 @@ export default function ManageProjects() { isDisabled={Boolean(loading) || isCreatingProject} rightIcon={} > - Add + New diff --git a/apps/client/src/features/app-settings/panel/project-panel/ProjectCreateForm.tsx b/apps/client/src/features/app-settings/panel/project-panel/ProjectCreateForm.tsx index cb9743297..09a1fdb3a 100644 --- a/apps/client/src/features/app-settings/panel/project-panel/ProjectCreateForm.tsx +++ b/apps/client/src/features/app-settings/panel/project-panel/ProjectCreateForm.tsx @@ -77,7 +77,7 @@ export default function ProjectCreateForm(props: ProjectCreateFromProps) { {error && {error}} -
+
-
-
-
-