Skip to content

Commit d6b1bec

Browse files
authored
Merge pull request #85 from CoolerMinecraft/airlineicao
Airlineicao
2 parents 39611b2 + 0e12096 commit d6b1bec

5 files changed

Lines changed: 47 additions & 222 deletions

File tree

Z_INDEX_GUIDE.md

Lines changed: 0 additions & 190 deletions
This file was deleted.

server/data/airlineData.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -890,5 +890,17 @@
890890
{
891891
"icao": "CGN",
892892
"callsign": "CESSNA"
893+
},
894+
{
895+
"icao": "EFW",
896+
"callsign": "GRIFFIN"
897+
},
898+
{
899+
"icao": "CFE",
900+
"callsign": "FLYER"
901+
},
902+
{
903+
"icao": "SHT",
904+
"callsign": "SHUTTLE"
893905
}
894906
]

server/db/users.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ export async function createOrUpdateUser(userData: {
268268
acars: {
269269
notesEnabled: true,
270270
chartsEnabled: true,
271+
autoRedirectToAcars: true,
271272
terminalWidth: 50,
272273
notesWidth: 20
273274
},

src/components/Navbar.tsx

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export default function Navbar({ sessionId, accessId }: NavbarProps) {
6363
window.addEventListener('scroll', handleScroll);
6464
handleScroll();
6565
return () => window.removeEventListener('scroll', handleScroll);
66-
},[]);
66+
}, []);
6767

6868
useEffect(() => {
6969
const handleResize = () => {
@@ -130,12 +130,10 @@ export default function Navbar({ sessionId, accessId }: NavbarProps) {
130130

131131
const handleCopy = async (text: string) => {
132132
try {
133-
// Try modern clipboard API first
134133
await navigator.clipboard.writeText(text);
135134
setCopied(text);
136135
setTimeout(() => setCopied(null), 2000);
137-
} catch (error) {
138-
// Fallback to older method
136+
} catch {
139137
try {
140138
const textArea = document.createElement('textarea');
141139
textArea.value = text;
@@ -214,7 +212,7 @@ export default function Navbar({ sessionId, accessId }: NavbarProps) {
214212

215213
return (
216214
<>
217-
{/* Mobile Notification Banner (Bottom - List Mode) */}
215+
{/* Mobile Notification Banner */}
218216
{filteredNotifications.length > 0 &&
219217
isMobile &&
220218
notificationMode === 'list' && (
@@ -310,8 +308,8 @@ export default function Navbar({ sessionId, accessId }: NavbarProps) {
310308
<a href="/" className="flex items-center space-x-2">
311309
<TowerControl className="h-8 w-8 text-blue-400" />
312310
<span className="text-2xl font-bold bg-gradient-to-r from-blue-400 to-blue-600 bg-clip-text text-transparent">
313-
PFControl{' '}
314-
<span className="text-red-300 font-medium text-md">Beta</span>
311+
PFControl
312+
{/* <span className="text-red-300 font-medium text-md">Beta</span> */}
315313
</span>
316314
</a>
317315
</div>

src/pages/Home.tsx

Lines changed: 29 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ interface AvailableImage {
3232
extension: string;
3333
}
3434

35-
export default function Home({ globalHolidayEnabled = false }: { globalHolidayEnabled?: boolean } = {}) {
35+
export default function Home({
36+
globalHolidayEnabled = false,
37+
}: { globalHolidayEnabled?: boolean } = {}) {
3638
const [stats, setStats] = useState({
3739
sessionsCreated: 0,
3840
registeredUsers: 0,
@@ -687,30 +689,32 @@ export default function Home({ globalHolidayEnabled = false }: { globalHolidayEn
687689
/>
688690

689691
{showTutorialPrompt && (
690-
<Modal
691-
isOpen={showTutorialPrompt}
692-
onClose={() => handleTutorialChoice(false)}
693-
title="Welcome to PFControl!"
694-
variant="primary"
695-
footer={
696-
<div className="flex justify-start space-x-3">
697-
<Button size="sm" onClick={() => handleTutorialChoice(true)}>
698-
Yes, start tutorial
699-
</Button>
700-
<Button
701-
size="sm"
702-
variant="outline"
703-
onClick={() => handleTutorialChoice(false)}
704-
>
705-
Skip
706-
</Button>
707-
</div>
708-
}
709-
>
710-
<p className="text-gray-300">
711-
Would you like a quick tutorial to get started?
712-
</p>
713-
</Modal>
692+
<div className="fixed inset-0 z-[10000] flex items-center justify-center">
693+
<Modal
694+
isOpen={showTutorialPrompt}
695+
onClose={() => handleTutorialChoice(false)}
696+
title="Welcome to PFControl!"
697+
variant="primary"
698+
footer={
699+
<div className="flex justify-start space-x-3">
700+
<Button size="sm" onClick={() => handleTutorialChoice(true)}>
701+
Yes, start tutorial
702+
</Button>
703+
<Button
704+
size="sm"
705+
variant="outline"
706+
onClick={() => handleTutorialChoice(false)}
707+
>
708+
Skip
709+
</Button>
710+
</div>
711+
}
712+
>
713+
<p className="text-gray-300">
714+
Would you like a quick tutorial to get started?
715+
</p>
716+
</Modal>
717+
</div>
714718
)}
715719

716720
<Footer />

0 commit comments

Comments
 (0)