-
VAR Operations Center
+
VAR Operations Center
@@ -33,12 +33,12 @@ export default function Navbar() {
rel="noopener noreferrer"
>
diff --git a/apps/dispatch/app/_components/navbar/Settings.tsx b/apps/dispatch/app/(app)/pilot/_components/navbar/_components/Settings.tsx
similarity index 100%
rename from apps/dispatch/app/_components/navbar/Settings.tsx
rename to apps/dispatch/app/(app)/pilot/_components/navbar/_components/Settings.tsx
diff --git a/apps/dispatch/app/_components/map/_components/MarkerCluster.tsx b/apps/dispatch/app/_components/map/_components/MarkerCluster.tsx
index 6b7ce508..e392dc39 100644
--- a/apps/dispatch/app/_components/map/_components/MarkerCluster.tsx
+++ b/apps/dispatch/app/_components/map/_components/MarkerCluster.tsx
@@ -216,7 +216,7 @@ export const MarkerCluster = () => {
const lng = aircraft.posLng!;
const existingClusterIndex = newCluster.findIndex(
- (c) => Math.abs(c.lat - lat) < 1 && Math.abs(c.lng - lng) < 1,
+ (c) => Math.abs(c.lat - lat) < 1.55 && Math.abs(c.lng - lng) < 1,
);
const existingCluster = newCluster[existingClusterIndex];
if (existingCluster) {
diff --git a/apps/hub/app/(app)/_components/Changelog.tsx b/apps/hub/app/(app)/_components/Changelog.tsx
index 45ed9d63..a70b0f15 100644
--- a/apps/hub/app/(app)/_components/Changelog.tsx
+++ b/apps/hub/app/(app)/_components/Changelog.tsx
@@ -5,13 +5,14 @@ import { Button } from "@repo/shared-components";
import MDEditor from "@uiw/react-md-editor";
import { RefreshCw } from "lucide-react";
import { updateChangelogAck } from "./ChangelogActions";
+import { Changelog } from "@repo/db";
export const ChangelogModal = ({
latestChangelog,
isOpen,
onClose,
}: {
- latestChangelog: { title: string; text: string; previewImage: string } | null;
+ latestChangelog: Changelog | null;
isOpen: boolean;
onClose: () => void;
}) => {
@@ -79,11 +80,7 @@ export const ChangelogModal = ({
);
};
-export const ChangelogBtn = ({
- latestChangelog,
-}: {
- latestChangelog: { title: string; text: string; previewImage: string } | null;
-}) => {
+export const ChangelogBtn = ({ latestChangelog }: { latestChangelog: Changelog | null }) => {
const [isOpen, setIsOpen] = useState(false);
if (!latestChangelog) return null;
@@ -109,7 +106,7 @@ export const ChangelogBtn = ({
export const OpenChangelogOnPageload = ({
latestChangelog,
}: {
- latestChangelog: { title: string; text: string; previewImage: string } | null;
+ latestChangelog: Changelog | null;
}) => {
const [isOpen, setIsOpen] = useState(true);
diff --git a/apps/hub/app/(app)/_components/ChangelogActions.tsx b/apps/hub/app/(app)/_components/ChangelogActions.tsx
index c446c81b..7a9ca313 100644
--- a/apps/hub/app/(app)/_components/ChangelogActions.tsx
+++ b/apps/hub/app/(app)/_components/ChangelogActions.tsx
@@ -12,11 +12,7 @@ export async function getLatestChangelog() {
});
if (latestChangelog.length > 0 && latestChangelog[0]) {
- return {
- title: latestChangelog[0].title,
- text: latestChangelog[0].text,
- previewImage: latestChangelog[0].previewImage || "",
- };
+ return latestChangelog[0];
}
return null;
diff --git a/packages/database/prisma/schema/migrations/20250724214505_dispatcher_auto_close/migration.sql b/packages/database/prisma/schema/migrations/20250724214505_dispatcher_auto_close/migration.sql
new file mode 100644
index 00000000..38e5ea56
--- /dev/null
+++ b/packages/database/prisma/schema/migrations/20250724214505_dispatcher_auto_close/migration.sql
@@ -0,0 +1,2 @@
+-- AlterTable
+ALTER TABLE "users" ADD COLUMN "settings_auto_close_map_popup" BOOLEAN NOT NULL DEFAULT false;
diff --git a/packages/database/prisma/schema/user.prisma b/packages/database/prisma/schema/user.prisma
index 5769cf1b..f7a84c2e 100644
--- a/packages/database/prisma/schema/user.prisma
+++ b/packages/database/prisma/schema/user.prisma
@@ -37,14 +37,15 @@ model User {
changelogAck Boolean @default(false)
// Settings:
- pathSelected Boolean @default(false)
- migratedFromV1 Boolean @default(false)
- settingsNtfyRoom String? @map(name: "settings_ntfy_room")
- settingsMicDevice String? @map(name: "settings_mic_device")
- settingsMicVolume Float? @map(name: "settings_mic_volume")
- settingsDmeVolume Float? @map(name: "settings_dme_volume")
- settingsRadioVolume Float? @map(name: "settings_funk_volume")
- settingsHideLastname Boolean @default(false) @map(name: "settings_hide_lastname")
+ pathSelected Boolean @default(false)
+ migratedFromV1 Boolean @default(false)
+ settingsNtfyRoom String? @map(name: "settings_ntfy_room")
+ settingsMicDevice String? @map(name: "settings_mic_device")
+ settingsMicVolume Float? @map(name: "settings_mic_volume")
+ settingsDmeVolume Float? @map(name: "settings_dme_volume")
+ settingsRadioVolume Float? @map(name: "settings_funk_volume")
+ settingsHideLastname Boolean @default(false) @map(name: "settings_hide_lastname")
+ settingsAutoCloseMapPopup Boolean @default(false) @map(name: "settings_auto_close_map_popup")
// email Verification:
emailVerificationToken String? @map(name: "email_verification_token")